agent-coord-mcp 0.26.24 → 0.26.26

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 (60) hide show
  1. package/README.md +31 -70
  2. package/dist/capabilities.js +169 -4
  3. package/dist/capabilities.js.map +1 -1
  4. package/dist/gated-head.js +12 -1
  5. package/dist/gated-head.js.map +1 -1
  6. package/dist/server-spread.js +60 -53
  7. package/dist/server-spread.js.map +1 -1
  8. package/dist/server.js +53 -4
  9. package/dist/server.js.map +1 -1
  10. package/dist/tools/herdr-delivery.js +86 -26
  11. package/dist/tools/herdr-delivery.js.map +1 -1
  12. package/dist/tools/herdr-tail.js +243 -0
  13. package/dist/tools/herdr-tail.js.map +1 -0
  14. package/dist/tools/jsonl-offsets.js +37 -0
  15. package/dist/tools/jsonl-offsets.js.map +1 -0
  16. package/dist/tools/messaging.js +18 -0
  17. package/dist/tools/messaging.js.map +1 -1
  18. package/dist/tools/records.js +18 -2
  19. package/dist/tools/records.js.map +1 -1
  20. package/dist/tools/registry.js +56 -21
  21. package/dist/tools/registry.js.map +1 -1
  22. package/dist/tools/transport.js +17 -148
  23. package/dist/tools/transport.js.map +1 -1
  24. package/dist/transports/config.js +22 -11
  25. package/dist/transports/config.js.map +1 -1
  26. package/dist/transports/herdr.js +134 -18
  27. package/dist/transports/herdr.js.map +1 -1
  28. package/dist/transports/index.js +4 -3
  29. package/dist/transports/index.js.map +1 -1
  30. package/dist/transports/tmux.js +5 -2
  31. package/dist/transports/tmux.js.map +1 -1
  32. package/dist/transports/types.js +18 -3
  33. package/dist/transports/types.js.map +1 -1
  34. package/hooks/control-bytes.mjs +69 -0
  35. package/hooks/submit.mjs +227 -9
  36. package/hooks/tier.mjs +7 -1
  37. package/package.json +4 -2
  38. package/scripts/check-global-mcp-fallback.mjs +85 -0
  39. package/scripts/coord-pusher.mjs +5 -1
  40. package/scripts/coord-seat.mjs +96 -0
  41. package/scripts/coord-token.mjs +79 -4
  42. package/scripts/stop-agent.sh +8 -4
  43. package/src/capabilities.ts +170 -5
  44. package/src/gated-head.ts +12 -1
  45. package/src/server-spread.ts +52 -4
  46. package/src/server.ts +49 -3
  47. package/src/tools/herdr-delivery.ts +92 -24
  48. package/src/tools/herdr-tail.ts +276 -0
  49. package/src/tools/jsonl-offsets.ts +29 -0
  50. package/src/tools/messaging.ts +20 -0
  51. package/src/tools/records.ts +18 -2
  52. package/src/tools/registry.ts +56 -20
  53. package/src/tools/transport.ts +17 -154
  54. package/src/transports/config.ts +25 -12
  55. package/src/transports/herdr.ts +193 -17
  56. package/src/transports/index.ts +4 -3
  57. package/src/transports/tmux.ts +5 -2
  58. package/src/transports/types.ts +24 -4
  59. package/hooks/tmux-pusher.mjs +0 -967
  60. package/scripts/spawn-agent.sh +0 -94
@@ -27,17 +27,32 @@
27
27
  * instead of reading the field, and a `string` discriminant cannot tell the
28
28
  * compiler that a branch was missed. Not a two-member union either — see (1).
29
29
  */
30
+ /**
31
+ * ⟨q-ec020f6a⟩ LOCAL tmux-push was DELETED outright (0 of 13 live seats used it; keeping
32
+ * it meant a second delivery mechanism — hooks/tmux-pusher.mjs, now removed — plus a
33
+ * role-card precondition that halted every live herdr seat on a false requirement).
34
+ *
35
+ * `TMUX_PUSH` stays DEFINED AND EXPORTED, but OUT of `TransportKind`/`TRANSPORT_KINDS`, for
36
+ * exactly one reason: a marker written to disk before this change can still literally read
37
+ * `"tmux-push"`, and `isLocallyProbeable`/`isTmuxKind` below must keep classifying that
38
+ * HISTORICAL value correctly (never `"dead"` where it used to read `"unknown"`) even
39
+ * though nothing can construct a NEW one — `resolveTransport` has no case for it and
40
+ * `config.ts` refuses it. Classifying old data and constructing new data are different
41
+ * questions; removing it from the union answers only the second.
42
+ */
30
43
  export const TMUX_PUSH = "tmux-push" as const;
31
44
  export const TMUX_PUSH_REMOTE = "tmux-push-remote" as const;
32
45
  export const HERDR = "herdr" as const;
33
46
 
34
- export type TransportKind = typeof TMUX_PUSH | typeof TMUX_PUSH_REMOTE | typeof HERDR;
47
+ export type TransportKind = typeof TMUX_PUSH_REMOTE | typeof HERDR;
35
48
 
36
- export const TRANSPORT_KINDS: readonly TransportKind[] = [TMUX_PUSH, TMUX_PUSH_REMOTE, HERDR] as const;
49
+ export const TRANSPORT_KINDS: readonly TransportKind[] = [TMUX_PUSH_REMOTE, HERDR] as const;
37
50
 
38
51
  /**
39
- * The tmux family. Both members are delivered by a pusher process typing into a
40
- * pane; they differ in WHERE that pane is, which is why liveness splits below.
52
+ * The tmux family, for LIVENESS CLASSIFICATION of whatever a marker on disk says —
53
+ * including the historical, no-longer-constructible local kind (`TMUX_PUSH`, above).
54
+ * Both members are delivered by a pusher process typing into a pane; they differed in
55
+ * WHERE that pane was, which is why liveness splits below.
41
56
  *
42
57
  * THIS IS THE ONE PLACE THE TMUX LITERALS LIVE. Twelve call sites used to spell
43
58
  * them; they now ask.
@@ -87,6 +102,11 @@ export type TransportMarker = {
87
102
  target?: string;
88
103
  /** The original field. Still written. See `target`. */
89
104
  tmuxTarget?: string;
105
+ /**
106
+ * ⟨q-abd88dd4⟩ herdr only: why `pid` holds what it holds (see `herdrMarkerPid`). A herdr
107
+ * marker's pid is addressed to PRE-HERDR readers and is never liveness for this build.
108
+ */
109
+ pidWhy?: string;
90
110
  since: number;
91
111
  /**
92
112
  * Remote pushers run on a different machine; the local pid is meaningless,