Find pstack's watcher in ~/.pi/pstack #29
No reviewers
Labels
No labels
ready-for-agent
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bryan/dotfiles!29
Loading…
Reference in a new issue
No description provided.
Delete branch "ticket-43-have-the-forgejo-watcher-find-pstack-in"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
When run by hand,
watch-pr-forgejoshould find pstack where it is installed.scripts/reconcile-pi-pstack.shputs pstack in~/.pi/pstack, but the watcher looked only under$PI_CODING_AGENT_DIRor~/.pi/agent. With no variables set it stopped with "pstack's watch-pr is not at …" and exit 64.Closes bryan/dotfiles-workspace#43
What changed
dot-agents/pstack-forgejo/watch-pr-dir.ts(new) decides the order in one function. It triesPSTACK_WATCH_PR_DIR(the watch-pr directory itself), then the pstack package under$PI_CODING_AGENT_DIR, then under~/.pi/pstack, then under~/.pi/agent. The first that holdscli.tswins. Unset or empty variables are skipped, and so is a set variable whose directory has nocli.ts.watch-pr-forgejouses that function. When pstack is in none of those places, it exits 64 and lists each path it tried, in order.tests/test-pstack-watch-pr-dir.tscovers each case with real temporary directories, plus one end-to-end run of the watcher under bun, which is skipped when bun is missing.AGENTS.mdrow for the watcher andforge-operations.mdnow say where it looks.Verification
bash tests/run-all.sh: 35 test files, all passed..agents/skills/verify(dotfiles-verify run <file>), sandboxed, with a throwaway HOME and no network:~/.pi/pstack,--helpexits 0 and prints the watcher's usage.~/.pi/agent<~/.pi/pstack<PI_CODING_AGENT_DIR<PSTACK_WATCH_PR_DIR.