agent-coord-mcp 0.26.27 → 0.26.28
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 +18 -12
- package/dist/bind.js +40 -0
- package/dist/bind.js.map +1 -0
- package/dist/capabilities.js +41 -1
- package/dist/capabilities.js.map +1 -1
- package/dist/server.js +48 -15
- package/dist/server.js.map +1 -1
- package/dist/tools/herdr-tail.js +7 -1
- package/dist/tools/herdr-tail.js.map +1 -1
- package/dist/tools/stall.js +29 -1
- package/dist/tools/stall.js.map +1 -1
- package/dist/tools/transport.js +1 -1
- package/dist/transports/config.js +42 -25
- package/dist/transports/config.js.map +1 -1
- package/dist/transports/herdr.js +2 -2
- package/dist/transports/herdr.js.map +1 -1
- package/hooks/push-cursor.mjs +22 -6
- package/package.json +2 -1
- package/scripts/coord-stall-clock.mjs +26 -2
- package/src/bind.ts +40 -0
- package/src/capabilities.ts +44 -2
- package/src/server.ts +57 -18
- package/src/tools/herdr-tail.ts +18 -1
- package/src/tools/stall.ts +48 -3
- package/src/tools/transport.ts +1 -1
- package/src/transports/config.ts +56 -38
- package/src/transports/herdr.ts +9 -3
package/src/transports/herdr.ts
CHANGED
|
@@ -136,7 +136,13 @@ const LIVE_STATUSES = new Set(["idle", "working", "blocked", "done"]);
|
|
|
136
136
|
* held — NO key was sent (no ready box, a draft, a menu, or the pane unreadable).
|
|
137
137
|
* Safe to retry.
|
|
138
138
|
* typed-unconfirmed — the text was typed but did not show in the box; Enter was NOT sent.
|
|
139
|
-
* pending — the text is still in the box after every Enter.
|
|
139
|
+
* pending — the text is still in the box after every Enter. ⟨q-1ce5bc97⟩ step 1: this
|
|
140
|
+
* is the MOST recoverable non-delivery there is — the payload is KNOWN to be
|
|
141
|
+
* sitting, verified, in the target's own box, not lost and not ambiguous.
|
|
142
|
+
* `safeToRetry: false` here turned a transient misread into a PERMANENT drop:
|
|
143
|
+
* the tail's held-path (`herdr-tail.ts`) is what retries safely (it advances
|
|
144
|
+
* nothing on a hold, and stops the source rather than typing past it), so
|
|
145
|
+
* refusing that path was refusing the one recovery this outcome has. NOW true.
|
|
140
146
|
* unverified — Enter was sent and the screen after it does not prove submission.
|
|
141
147
|
*/
|
|
142
148
|
export type PushOutcome = "delivered" | "held" | "typed-unconfirmed" | "pending" | "unverified";
|
|
@@ -354,7 +360,7 @@ export class HerdrTransport implements Transport {
|
|
|
354
360
|
if (boxHoldsPayload(box, text)) continue;
|
|
355
361
|
return { delivered: false, verified: false, outcome: "unverified", safeToRetry: false, enters, error: `enter sent to ${target}, but the screen after it does not show the message submitted (${box.ready ? (box.draft ? "the box holds other text" : "the box is empty and the transcript gained no line carrying it") : box.reason})` };
|
|
356
362
|
}
|
|
357
|
-
return { delivered: false, verified: true, outcome: "pending", safeToRetry:
|
|
363
|
+
return { delivered: false, verified: true, outcome: "pending", safeToRetry: true, enters, error: `text still sitting unsubmitted in ${target}'s input after ${enters} enters` };
|
|
358
364
|
}
|
|
359
365
|
|
|
360
366
|
/** The screen, styled, so the ready-box reader can tell a ghost suggestion from a draft. null = unreadable. */
|
|
@@ -380,7 +386,7 @@ export class HerdrTransport implements Transport {
|
|
|
380
386
|
if (pending === false) return { delivered: true, verified: true, unguarded: true, outcome: "delivered", safeToRetry: false, enters };
|
|
381
387
|
if (pending === null) return { delivered: false, verified: false, unguarded: true, outcome: "unverified", safeToRetry: false, enters, error: `enter sent to ${target}, but the pane could not be read back to verify it` };
|
|
382
388
|
}
|
|
383
|
-
return { delivered: false, verified: true, unguarded: true, outcome: "pending", safeToRetry:
|
|
389
|
+
return { delivered: false, verified: true, unguarded: true, outcome: "pending", safeToRetry: true, enters, error: `text still sitting unsubmitted in ${target}'s input after ${enters} enters` };
|
|
384
390
|
}
|
|
385
391
|
|
|
386
392
|
/**
|