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 | 08f7fa2e05e841e6fbfb135a0013f8b35ee52bd6 (patch) | |
| tree | 61ca5a5c9f6d9c380665e379b241fb92b27059f0 /modules/custom-datetime.el | |
| parent | 1b79590a4c0a909356d3d312f4cf53c6a2663c87 (diff) | |
| download | dotemacs-08f7fa2e05e841e6fbfb135a0013f8b35ee52bd6.tar.gz dotemacs-08f7fa2e05e841e6fbfb135a0013f8b35ee52bd6.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/custom-datetime.el')
0 files changed, 0 insertions, 0 deletions
