agmsg 1.2.3 → 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +64 -14
  2. package/README.md +8 -1
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,55 @@ 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
+
7
56
  ## [1.2.3] - 2026-08-22
8
57
 
9
58
  ### Added
@@ -456,7 +505,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
456
505
  - Support spawning into herdr panes (#495)
457
506
  - Drag files onto a pane to insert their path (#481)
458
507
  - Adaptive catch-up so a backlog doesn't crawl at 100/5s
459
- - Add team-list.sh (agmsg team list --json, koit-approved)
508
+ - Add team-list.sh (agmsg team list --json)
460
509
  - Add status --json and pending list/abort (ADR 0007 addendum)
461
510
  - Consume connected team credentials
462
511
  - Add scripts/remote.sh (connect/status/disconnect/doctor) per ADR 0007
@@ -491,10 +540,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
491
540
  - Resolve symlinks before trampoline compare; doctor checks node
492
541
  - Detect the macOS CLT python3 trampoline, not just PATH presence
493
542
  - Close the python3 dependency-tiering gap on the remote path
494
- - Close the integer-overflow bypass in AGMSG_TEAM_LIST_MAX_TEAMS validation (co1 delta review round 2)
495
- - Validate AGMSG_TEAM_LIST_MAX_TEAMS as a positive integer (co1 delta review)
543
+ - Close the integer-overflow bypass in AGMSG_TEAM_LIST_MAX_TEAMS validation
544
+ - Validate AGMSG_TEAM_LIST_MAX_TEAMS as a positive integer
496
545
  - Fail closed on incompleteness; shrink v1 schema
497
- - Wire 'agmsg team list' into actual dispatch entry points (co1 P1)
546
+ - Wire 'agmsg team list' into actual dispatch entry points
498
547
  - Stop binding config JSON via .param set (#87-class tokenizer bug)
499
548
  - Hide imported identity at TTY
500
549
  - Separate token input from E2EE prompts
@@ -529,15 +578,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
529
578
  - Read messages from the event log too, not just the legacy table
530
579
  - Assert against the event log, not the legacy messages table
531
580
  - Escape interpolated names in rename/rename-team SQL (#223, #87)
532
- - Jsonl compact keys reads by tuple, not a space-join (co1 #221)
581
+ - Jsonl compact keys reads by tuple, not a space-join (#221)
533
582
  - Make the jsonl driver parse under macOS bash 3.2 (#207, #221 CI)
534
- - Jsonl mark aborts on a failed existing-reads scan (co1 #207 residual)
535
- - Jsonl driver must not swallow failures as ok (co1 #207 review)
583
+ - Jsonl mark aborts on a failed existing-reads scan (#207)
584
+ - Jsonl driver must not swallow failures as ok (#207)
536
585
  - Watch-once stale-wake token = unread-set digest, not a max id (#207)
537
- - Document --limit semantics + make storage_history agent truly optional (co1 #206 review)
538
- - Export skips unknown event types; pin high-water with a tail-duplicate test (co1 #205 review)
539
- - Describe is a metadata op; surface backend errors; chronological reads (co1 re-review, #204)
540
- - Legacy read, pipefail framing, §1.4 control ops (co1 review, #204)
586
+ - Document --limit semantics + make storage_history agent truly optional (#206)
587
+ - Export skips unknown event types; pin high-water with a tail-duplicate test (#205)
588
+ - Describe is a metadata op; surface backend errors; chronological reads (#204)
589
+ - Legacy read, pipefail framing, §1.4 control ops (#204)
541
590
 
542
591
  ### Performance
543
592
  - Seal a bulk push page in parallel (#502)
@@ -565,8 +614,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
565
614
  - Close Stage 2 frontier edge cases
566
615
  - Define Stage 2 read-state synchronization
567
616
  - Note rename.sh/rename-team.sh/api.sh as sqlite-coupled known gaps
568
- - Correct the ctrl:despawn cursor-advance comment (co1 step-3 review)
569
- - Clarify stdout framing, cursor token, watch tip (co1 review, #203)
617
+ - Correct the ctrl:despawn cursor-advance comment
618
+ - Clarify stdout framing, cursor token, watch tip (#203)
570
619
  - Storage contract §2 — messages-only, opaque cursor, recipient-scoped read (#203)
571
620
  - Draft ADR 0003 — storage axis driver ABI, contract, scope (proposed)
572
621
 
@@ -794,7 +843,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
794
843
 
795
844
  ### Documentation
796
845
  - Add supported-agents logo strip
797
- - List hermes in the --agent-type help (co1 nit)
846
+ - List hermes in the --agent-type help
798
847
  - Add docs/plugins.md + README section + plugins/ drop-in dir
799
848
  - Refresh manifest table + paths for the 1.1.0 layout
800
849
  - Lead Quick Start with npx, the zero-clone install path
@@ -877,6 +926,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
877
926
  - Handle empty TaskList explicitly to stop fresh-session loop (#71)
878
927
  - Storage driver pluginization design (epic #51) (#52)
879
928
 
929
+ [1.3.0]: https://github.com/fujibee/agmsg/compare/v1.2.3...v1.3.0
880
930
  [1.2.3]: https://github.com/fujibee/agmsg/compare/v1.2.2...v1.2.3
881
931
  [1.2.2]: https://github.com/fujibee/agmsg/compare/v1.2.1...v1.2.2
882
932
  [1.2.1]: https://github.com/fujibee/agmsg/compare/v1.2.0...v1.2.1
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.3",
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"