agmsg 1.2.2 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,82 @@ All notable changes to this project are documented here.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [1.3.0] - 2026-09-14
8
+
9
+ ### Added
10
+ - Terminal drivers for tmux, herdr, and plain OS terminal windows: `peek`, `poke`, and `arrange` work through whichever terminal a member runs in (#1014, #1060, #1078, #1163, #1207)
11
+ - `peek` with no member name summarizes the screens of the whole local team (#1194)
12
+ - `where` reports this session's terminal, its pane, and the operations that terminal supports; Claude Code sessions are told their terminal at start (#1082, #1173, #1224)
13
+ - `team` shows, for each teammate, whether `peek`, `poke`, and `arrange` can reach it, and why not when they cannot (#1232)
14
+ - `fix`: a session proves which pane it is running in and repairs only its own name and placement records (#1152, #1157, #1188, #1191, #1227)
15
+ - A session names its own pane when it acts, and `spawn` names the pane it created and sets its agent key (#1065, #1080, #1099)
16
+ - `send` accepts `--body-file <path>` and `--body -` (stdin) like `poke`, and refuses a body that looks like a flag (#1101)
17
+ - Antigravity (`agy`): the skill is installed where `agy` discovers skills, and monitor delivery with safe automatic resume is available on Linux (#1090, #1223)
18
+ - Report a mark-read that lost to a concurrent writer (#1011) (#1013)
19
+ - Deliver the inbox mid-turn via a PostToolUse hook, not only at Stop (#1003) (#1004)
20
+
21
+ ### Changed
22
+ - `team` is read-only: the leader-side repair options `--fix`, `--fix-pane-names`, and `--rename-sessions` are removed; each session repairs itself with `fix` (#1152, #1211, #1213)
23
+ - actas lock, readiness, and spawn records are keyed by team and member id, so team or member names containing `__` no longer collide (#1023)
24
+ - Agent type detection follows an explicit priority, and `GEMINI_API_KEY` on its own is only a last resort (#1247)
25
+ - Per-driver notes live at `scripts/drivers/terminals/<driver>/README.md`; `install --update` removes the old `SKILL.md` copies (#1248)
26
+
27
+ ### Fixed
28
+ - Codex seats that hold an actas lock no longer drop out of their own bridge's delivery, and spawned seats do not inherit it (#1239, #1245)
29
+ - Claude Code's `actas` and `drop` instructions again start the watcher through the Monitor tool and confirm it attached (#1237)
30
+ - `spawn` skips the readiness wait only when delivery is explicitly off or turn (#647)
31
+ - A graceful `despawn` waits for the pane to close, not only for the lock (#1097)
32
+ - herdr socket paths containing `:` round-trip through placement records (#1166)
33
+ - `watch` and `inbox` deliver a backlog past the argument-length limit instead of failing silently (#777, #1045)
34
+ - `check-inbox` consumes rows only after the payload is written (#1026)
35
+ - The Windows hook payload stays off the login shell's stdout (#1015)
36
+ - Antigravity's delivery plug parses under bash 3.2 (#1244)
37
+ - Pass non-remote subcommands through (#590)
38
+ - The remaining argv-to-stdin sites, plus a Windows CRLF row-separator bug (#991)
39
+ - Give the identity lease a start token on Windows (#978)
40
+ - One wake, one turn — attribute mid-start turn-end signals by turn id (#889)
41
+ - Discover a ws:// app-server in the SessionStart plug (#1057)
42
+ - Refuse a non-string envelope.blob/cipher instead of storing "null" (#1042) (#1048)
43
+ - Count roster mutations as held so the read frontier can advance (#968) (#986)
44
+ - A store at the current schema revision skips init's write batch (#1001) (#1010)
45
+ - Probe before the pipe, not inside it (#462) (#904)
46
+ - Widen _wait_pidfile's window and name what it saw (#595) (#797)
47
+ - Stand down instead of an unfiltered watcher when a resumed seat is unidentified (#982) (#993)
48
+ - Refuse to guess between multiple installs on --update with no --cmd (#659)
49
+ - Write Codex writable_roots through a symlinked config.toml instead of replacing the link (#747) (#995)
50
+ - Stop the apply failure path from discarding the shell's stderr (#974)
51
+ - Stand down when the installation is updated underneath (#963) (#965)
52
+
53
+ ### Performance
54
+ - Batch the rollout mtime scan (#1035) (#1037)
55
+
56
+ ## [1.2.3] - 2026-08-22
57
+
58
+ ### Added
59
+ - Emit push.posted when the POST is over, before the acks are written (#918)
60
+
61
+ ### Fixed
62
+ - Name the sync engine in the update warning, not just watch.sh (#964)
63
+ - Reap a same-(project,role) orphan before spawning (#906 link 2) (#943)
64
+ - Preserve exact identity pairs in check-inbox (#721)
65
+ - Exit when another writer owns the thread (#906 link 1) (#935)
66
+ - Make the failure cap reach and bound the re-arm rate (#906 link 3) (#941)
67
+ - Retry a busy apply that races EPIPE, keeping the hung-driver bound (#931)
68
+ - A pulled field that is an array must not become shell words (#930)
69
+ - Report a busy store as busy, not as a failed check, and wait for it (#920)
70
+ - Say which check returned 13 (#911)
71
+
72
+ ### Performance
73
+ - Index the two lookups that made import scale with the store (#956)
74
+ - Quote SQL literals with a bash expansion, not a fork (#948)
75
+ - A release PR is a version bump, not a third full matrix (#945)
76
+ - Parse a pull page with one jq, framed by NUL, with no eval (#908, #940) (#942)
77
+ - Check a pulled wire id without a process (#939)
78
+ - Find the first gap once, not once per candidate (#932)
79
+ - One jq per acknowledgement, not six forks (#927)
80
+ - Quote each pulled message's fields once, not at 42 fork sites (#908) (#925)
81
+ - Index events.legacy_id, looked up by value everywhere (#926)
82
+
7
83
  ## [1.2.2] - 2026-08-20
8
84
 
9
85
  ### Fixed
@@ -60,6 +136,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
60
136
  - A start that never began is a failed start, not a silent return (#810)
61
137
 
62
138
  ### Documentation
139
+ - State the reason, not who gave it
63
140
  - A pushed head is not a shipped one
64
141
  - The header said builtins while calling three commands
65
142
 
@@ -428,7 +505,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
428
505
  - Support spawning into herdr panes (#495)
429
506
  - Drag files onto a pane to insert their path (#481)
430
507
  - Adaptive catch-up so a backlog doesn't crawl at 100/5s
431
- - Add team-list.sh (agmsg team list --json, koit-approved)
508
+ - Add team-list.sh (agmsg team list --json)
432
509
  - Add status --json and pending list/abort (ADR 0007 addendum)
433
510
  - Consume connected team credentials
434
511
  - Add scripts/remote.sh (connect/status/disconnect/doctor) per ADR 0007
@@ -849,6 +926,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
849
926
  - Handle empty TaskList explicitly to stop fresh-session loop (#71)
850
927
  - Storage driver pluginization design (epic #51) (#52)
851
928
 
929
+ [1.3.0]: https://github.com/fujibee/agmsg/compare/v1.2.3...v1.3.0
930
+ [1.2.3]: https://github.com/fujibee/agmsg/compare/v1.2.2...v1.2.3
931
+ [1.2.2]: https://github.com/fujibee/agmsg/compare/v1.2.1...v1.2.2
932
+ [1.2.1]: https://github.com/fujibee/agmsg/compare/v1.2.0...v1.2.1
852
933
  [1.2.0]: https://github.com/fujibee/agmsg/compare/v1.2.0-rc.6...v1.2.0
853
934
  [1.2.0-rc.6]: https://github.com/fujibee/agmsg/compare/v1.2.0-rc.5...v1.2.0-rc.6
854
935
  [1.2.0-rc.5]: https://github.com/fujibee/agmsg/compare/v1.2.0-rc.4...v1.2.0-rc.5
package/README.md CHANGED
@@ -334,13 +334,20 @@ See [docs/opencode.md](docs/opencode.md) for full setup instructions.
334
334
  ~/.agents/skills/<cmd>/scripts/send.sh <team> <from> <to> "<message>" [--force]
335
335
  ~/.agents/skills/<cmd>/scripts/inbox.sh <team> <agent_id>
336
336
  ~/.agents/skills/<cmd>/scripts/history.sh <team> [agent_id] [limit]
337
- ~/.agents/skills/<cmd>/scripts/team.sh <team>
337
+ ~/.agents/skills/<cmd>/scripts/team.sh <team> [--json | --fix | --fix-pane-names | --rename-sessions]
338
+ ~/.agents/skills/<cmd>/scripts/placement-collisions.sh
338
339
  ~/.agents/skills/<cmd>/scripts/whoami.sh <project_path> <type>
339
340
  ~/.agents/skills/<cmd>/scripts/delivery.sh set <mode> <type> <project_path>
340
341
  ~/.agents/skills/<cmd>/scripts/delivery.sh status [<type> <project_path>]
341
342
  ~/.agents/skills/<cmd>/scripts/reset.sh <project_path> <type> [agent_id]
342
343
  ```
343
344
 
345
+ `team.sh` combines the roster with terminal placement, activity, delivery mode, and identity consistency. Verified identity is collapsed to `identity=ok`; mismatches and values that could not be observed are expanded with their evidence. `--json` emits every field for every registration. The repair flags report each action per identity cell as `changed`, `skipped`, `failed`, or (for a session name that could not be read back) `poked_unverified`. They are two different kinds of act: `--fix-pane-names` repairs the pane label and agent key through the terminal's own API and never types into a session; `--rename-sessions` repairs the CLI session name by typing the type's rename command (`/rename <team>-<agent>` for Claude Code, whatever the type's manifest declares otherwise) into the pane, and only after positively identifying a ready process there. `--fix` does both, unconditionally, including the keystroke. Pane liveness will join this view when the pane-state contract lands; until then the unavailable column is omitted rather than filled with `unknown`.
346
+
347
+ `placement-collisions.sh` is a separate, read-only installation-wide report. It never repairs or removes a record; keeping this fleet observation outside `team.sh` prevents an operator-level scan from becoming part of a seat's repair path. Today it reports only the record-only layer: two DIFFERENT seats' records resolved to the same canonical (kind, instance, pane) locator, entirely from records on disk — no terminal is ever asked anything. A ref with no instance component to resolve (every herdr ref today; a legacy bare tmux `%N`/`@N`) is not joined by raw string equality; it is listed under `unscoped_records` instead, since record-only evidence cannot tell such refs apart across terminal instances. `collisions: none` means the walk completed and found nothing; `collisions: none_observed` paired with `coverage: partial` means something along the way (a team config, a placement record, an empty ref) could not be read, so the empty answer is not a proven one; `collisions: not_attempted` means there was no `teams/` directory to walk at all. An actual-location layer — matching a seat's own record against where a live census actually observes it — is designed but not yet wired here; see the script's header.
348
+
349
+ Terminal identity has a different number of observable names on each backend. Herdr exposes three independent values: the visible pane label, its internal agent key, and the CLI session name. tmux exposes two: the `@agmsg_agent` pane option is the internal key, while the CLI owns `pane_title`, so there is no independent pane-label field after the CLI starts. `team.sh` reports that tmux field as `n/a` rather than treating an unavailable concept as a mismatch.
350
+
344
351
  `send.sh` takes four positional arguments — `<team> <from> <to> "<message>"` — plus an optional trailing `--force`. Quote the message so the shell sees it as one argument; an unquoted message with spaces will be misparsed. Both `from` and `to` must already be registered in `<team>`; an unregistered name errors out (listing the currently registered names) instead of silently storing an undeliverable message. Pass `--force` to bypass this check for an intentional pre-registration send.
345
352
 
346
353
  ## FAQ / Design notes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agmsg",
3
- "version": "1.2.2",
3
+ "version": "1.3.0",
4
4
  "description": "Cross-agent messaging via SQLite for CLI AI agents (Claude Code, Codex, Gemini CLI, GitHub Copilot CLI, Antigravity, OpenCode). The npm package is a thin bootstrapper that fetches and runs the canonical bash installer at https://github.com/fujibee/agmsg.",
5
5
  "bin": {
6
6
  "agmsg": "bin/agmsg.js"