feat: all 3 commands — gacp, lock, unlock

This commit is contained in:
2026-06-09 17:34:07 +02:00
parent 9fc2a6205a
commit a08d7a0223
3 changed files with 30 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
Claim PRIME session lock. This makes the current session the exclusive recipient of:
- Incoming Signal messages (via signal-bridge)
- TTS playback rights
- Any other inbound comms routing
Steps:
1. Call `whoami_info` to get your session ID.
2. Write that session ID to `~/.local/state/opencode/prime.lock` (create parent dirs if needed).
3. Confirm: "PRIME locked to session {id}"
This always overwrites — no contention check, no confirmation needed. The current session becomes PRIME immediately.