diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-24 06:43:45 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-24 06:43:45 -0400 |
| commit | b77daef495e4454dcf939214d0438f43294e6d62 (patch) | |
| tree | 4d02651f870fd107f58e575dcf88d2daf421ff4e /modules/cj-cache-lib.el | |
| parent | 987729bee878dea4c1afca72790d6da688c2cff5 (diff) | |
| download | dotemacs-b77daef495e4454dcf939214d0438f43294e6d62.tar.gz dotemacs-b77daef495e4454dcf939214d0438f43294e6d62.zip | |
feat(ai-term): wrap-teardown + shutdown entry points for rulesets
Add the three headless functions the rulesets wrap-it-up workflow calls via emacsclient -e, since this module owns the aiv- session naming, the agent buffer, and the geometry restore. cj/ai-term-quit kills a project's tmux session and agent buffer and restores the layout, idempotent and safe when already gone. cj/ai-term-live-count returns the integer count of live aiv- sessions for the shutdown safety gate. cj/ai-term-shutdown-countdown re-checks that gate, then runs an abort-able run-at-time countdown in the echo area and, uncancelled, runs the shutdown command (a defcustom so tests stub it). Reuses the existing kill/close helpers. 13 ERT tests cover the live-count parsing, the quit kill-and-idempotency, and the gate-abort/cancel/tick logic; the tmux and shutdown side effects are manual.
Claude-Session: https://claude.ai/code/session_01BqrdWUo9GcznYX2pZr76gZ
Diffstat (limited to 'modules/cj-cache-lib.el')
0 files changed, 0 insertions, 0 deletions
