@sjawhar/claude-envoy 5.19.1 → 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.
@@ -2,5 +2,5 @@
2
2
  "name": "claude-envoy",
3
3
  "description": "Put Envoy events into the Claude Code session's own conversation and expose Envoy MCP tools.",
4
4
  "mcpServers": "./.mcp.json",
5
- "version": "5.19.1"
5
+ "version": "5.19.2"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-envoy",
3
- "version": "5.19.1",
3
+ "version": "5.19.2",
4
4
  "description": "Put Envoy events into the Claude Code session's own conversation and expose Envoy MCP tools.",
5
5
  "mcpServers": {}
6
6
  }
@@ -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.1";
62718
+ var version2 = "5.19.2";
62719
62719
  var legion = {
62720
- daemonApiVersion: 228
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.1",
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": 228
22
+ "daemonApiVersion": 232
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -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 — the refused turns themselves are counted by the bridge,
52
- * which reports each turn's outcome to the daemon (INFRA-714).
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 a session the provider keeps refusing is the daemon failing its
548
- // claim on the outcomes the bridge reports, which the timer's own record check reads.
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 ?? "" })