@sjawhar/claude-envoy 5.19.0 → 5.19.2
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/.omp-plugin/plugin.json
CHANGED
package/dist/envoy-channel.js
CHANGED
|
@@ -62715,9 +62715,9 @@ var import_nats5 = __toESM(require_mod4(), 1);
|
|
|
62715
62715
|
|
|
62716
62716
|
// package.json
|
|
62717
62717
|
var name2 = "@sjawhar/claude-envoy";
|
|
62718
|
-
var version2 = "5.19.
|
|
62718
|
+
var version2 = "5.19.2";
|
|
62719
62719
|
var legion = {
|
|
62720
|
-
daemonApiVersion:
|
|
62720
|
+
daemonApiVersion: 232
|
|
62721
62721
|
};
|
|
62722
62722
|
var package_default = {
|
|
62723
62723
|
name: name2,
|
|
@@ -64766,7 +64766,9 @@ var turnOutcomeFields = {
|
|
|
64766
64766
|
generation: number2().int().positive(),
|
|
64767
64767
|
sequence: number2().int().positive(),
|
|
64768
64768
|
outcome: _enum2(["clean", "refused"]),
|
|
64769
|
-
message: string2().optional()
|
|
64769
|
+
message: string2().optional(),
|
|
64770
|
+
httpStatus: number2().int().min(100).max(599).optional(),
|
|
64771
|
+
unprompted: boolean2().optional()
|
|
64770
64772
|
};
|
|
64771
64773
|
var LegionTurnOutcomeAgentRequest = strictObject({
|
|
64772
64774
|
claimToken: nonEmptyString2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sjawhar/claude-envoy",
|
|
3
|
-
"version": "5.19.
|
|
3
|
+
"version": "5.19.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Claude Code plugin for Legion's Envoy bus",
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"AGENTS.md"
|
|
20
20
|
],
|
|
21
21
|
"legion": {
|
|
22
|
-
"daemonApiVersion":
|
|
22
|
+
"daemonApiVersion": 232
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
package/src/legion-phase-hook.ts
CHANGED
|
@@ -48,8 +48,12 @@ import { configuredValue } from "./claude-session"
|
|
|
48
48
|
* timer, because the task that refused turn carried ended with it and nothing else would wake
|
|
49
49
|
* this worker, so a single transient refusal would otherwise leave the issue idle. What stops
|
|
50
50
|
* the reminding for good is the runner's record check, which drops every reminder once the
|
|
51
|
-
* daemon has failed this role's claim
|
|
52
|
-
*
|
|
51
|
+
* daemon has failed this role's claim. The bridge reports each turn's outcome to the daemon, with
|
|
52
|
+
* the status Claude Code named, and marks a turn no prompt of the daemon's ran — a reminder
|
|
53
|
+
* written over the inbox — so the daemon judges that turn from the report (dispatch://INFRA-4508):
|
|
54
|
+
* a refusal whose status cannot clear fails the claim at once and holds the issue, and a refusal
|
|
55
|
+
* that can clear fails nothing, so the reminders keep their pace and the project's controller is
|
|
56
|
+
* told once at six such turns in a row.
|
|
53
57
|
*/
|
|
54
58
|
|
|
55
59
|
/** The tool's name: Claude Code shows it as `mcp__legion__legion_phase_hook`, and a hook entry
|
|
@@ -544,8 +548,11 @@ export function createPhaseHookEndpoint(deps: PhaseHookDeps): PhaseHookEndpoint
|
|
|
544
548
|
// provider refusing the turn, and the machine takes it as one: it earns no
|
|
545
549
|
// continuation, because the next turn would be refused the same way, and one timer,
|
|
546
550
|
// because nothing else would wake this worker once the task that turn carried ended
|
|
547
|
-
// with it. What ends
|
|
548
|
-
//
|
|
551
|
+
// with it. What ends the reminding is the daemon failing the claim, which the timer's
|
|
552
|
+
// own record check reads: it does at once for a refusal whose status cannot clear, the
|
|
553
|
+
// status the bridge reports beside the turn's outcome, a reminder's own turn included,
|
|
554
|
+
// and never for a refusal that can clear, of which the controller is told at six in a
|
|
555
|
+
// row (dispatch://INFRA-4508).
|
|
549
556
|
// Claude Code ignores whatever this hook returns, which costs nothing now that there
|
|
550
557
|
// is nothing to return.
|
|
551
558
|
await reminder.settle({ kind: "refused", message: event.lastAssistantMessage ?? "" })
|