- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
Suite release / scope (push) Successful in 34s
Suite release / reserve (push) Has been skipped
Suite release / reused-checks (push) Has been skipped
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / finalize (push) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / check-package (push) Has been skipped
Suite release / publish (push) Has been skipped
Suite release / deliver (push) Has been skipped
Suite release / deliver-prune (push) Has been skipped
Suite release / module (push) Successful in 34s
|
||
| go.mod | ||
| preview.go | ||
| preview_test.go | ||
| README.md | ||
preview
Watches the panes a session opens in Nelson's tmux window to show him something
(SES-174): a test server's split from
tmux-throwaway's show or show-pane, or a window from tmux-preview window. When one closes
some way other than by him, the session is told, through at-claude's wake as tmux-preview's
message, with the pane's last lines; when he closes it, nothing is said.
The two are told apart by how the pane ends, with no guessing. His Ctrl+W and an agent's own
close run kill-pane, which fires no hook. A program that ends, crashes or is killed leaves its
pane dead, since an armed pane keeps remain-on-exit on, and fires pane-died, whose hook
runs tmux-preview died. Exit status 0 is the program ending as asked, so the pane just closes;
anything else wakes the session. Either way the dead pane is removed
(HOMECFG-219).
Arm(pane, watch): marks a pane as a session's preview and sets itspane-diedhook.Died(pane, wake): the hook: reads the dead pane, removes it, and wakes the session when it didn't end cleanly.Disarm(throwaway): closes a test server's panes without telling anyone.
It was at-home-tools' preview package until shared packages got repositories of their own
(AGT-85,
AHT-258); tmux-preview and tmux-throwaway
import it.
Using it
require forgejo.romaine.life/romaine-life/preview v0.1.0
Testing
go test ./.... The tests check the wake's text and need no tmux.
Shipping
A library: the release-module topic in
pipeline-templates' fleet.json
tags each merge that changes the code, and every fleet repository whose go.mod requires it
gets a take-up. Forgejo pushes it to its public GitHub copy, which proxy.golang.org serves to
builds outside CI.