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.
- package/README.md +31 -70
- package/dist/capabilities.js +169 -4
- package/dist/capabilities.js.map +1 -1
- package/dist/gated-head.js +12 -1
- package/dist/gated-head.js.map +1 -1
- package/dist/server-spread.js +60 -53
- package/dist/server-spread.js.map +1 -1
- package/dist/server.js +53 -4
- package/dist/server.js.map +1 -1
- package/dist/tools/herdr-delivery.js +86 -26
- package/dist/tools/herdr-delivery.js.map +1 -1
- package/dist/tools/herdr-tail.js +243 -0
- package/dist/tools/herdr-tail.js.map +1 -0
- package/dist/tools/jsonl-offsets.js +37 -0
- package/dist/tools/jsonl-offsets.js.map +1 -0
- package/dist/tools/messaging.js +18 -0
- package/dist/tools/messaging.js.map +1 -1
- package/dist/tools/records.js +18 -2
- package/dist/tools/records.js.map +1 -1
- package/dist/tools/registry.js +56 -21
- package/dist/tools/registry.js.map +1 -1
- package/dist/tools/transport.js +17 -148
- package/dist/tools/transport.js.map +1 -1
- package/dist/transports/config.js +22 -11
- package/dist/transports/config.js.map +1 -1
- package/dist/transports/herdr.js +134 -18
- package/dist/transports/herdr.js.map +1 -1
- package/dist/transports/index.js +4 -3
- package/dist/transports/index.js.map +1 -1
- package/dist/transports/tmux.js +5 -2
- package/dist/transports/tmux.js.map +1 -1
- package/dist/transports/types.js +18 -3
- package/dist/transports/types.js.map +1 -1
- package/hooks/control-bytes.mjs +69 -0
- package/hooks/submit.mjs +227 -9
- package/hooks/tier.mjs +7 -1
- package/package.json +4 -2
- package/scripts/check-global-mcp-fallback.mjs +85 -0
- package/scripts/coord-pusher.mjs +5 -1
- package/scripts/coord-seat.mjs +96 -0
- package/scripts/coord-token.mjs +79 -4
- package/scripts/stop-agent.sh +8 -4
- package/src/capabilities.ts +170 -5
- package/src/gated-head.ts +12 -1
- package/src/server-spread.ts +52 -4
- package/src/server.ts +49 -3
- package/src/tools/herdr-delivery.ts +92 -24
- package/src/tools/herdr-tail.ts +276 -0
- package/src/tools/jsonl-offsets.ts +29 -0
- package/src/tools/messaging.ts +20 -0
- package/src/tools/records.ts +18 -2
- package/src/tools/registry.ts +56 -20
- package/src/tools/transport.ts +17 -154
- package/src/transports/config.ts +25 -12
- package/src/transports/herdr.ts +193 -17
- package/src/transports/index.ts +4 -3
- package/src/transports/tmux.ts +5 -2
- package/src/transports/types.ts +24 -4
- package/hooks/tmux-pusher.mjs +0 -967
- package/scripts/spawn-agent.sh +0 -94
package/src/transports/types.ts
CHANGED
|
@@ -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
|
|
47
|
+
export type TransportKind = typeof TMUX_PUSH_REMOTE | typeof HERDR;
|
|
35
48
|
|
|
36
|
-
export const TRANSPORT_KINDS: readonly TransportKind[] = [
|
|
49
|
+
export const TRANSPORT_KINDS: readonly TransportKind[] = [TMUX_PUSH_REMOTE, HERDR] as const;
|
|
37
50
|
|
|
38
51
|
/**
|
|
39
|
-
* The tmux family
|
|
40
|
-
*
|
|
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,
|