@sjawhar/claude-envoy 1.40.2 → 1.40.3

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": "1.40.2"
5
+ "version": "1.40.3"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-envoy",
3
- "version": "1.40.2",
3
+ "version": "1.40.3",
4
4
  "description": "Put Envoy events into the Claude Code session's own conversation and expose Envoy MCP tools.",
5
5
  "mcpServers": {}
6
6
  }
@@ -55498,7 +55498,7 @@ var import_nats2 = __toESM(require_mod4(), 1);
55498
55498
 
55499
55499
  // package.json
55500
55500
  var name = "@sjawhar/claude-envoy";
55501
- var version2 = "1.40.2";
55501
+ var version2 = "1.40.3";
55502
55502
  var legion = {
55503
55503
  daemonApiVersion: 68
55504
55504
  };
@@ -57779,12 +57779,13 @@ var operation = (op, shape) => strictObject({ op: literal(op), ...shape }, {
57779
57779
  error: (issue) => issue.code === "unrecognized_keys" ? issue.keys.map((key) => `${op} does not accept field "${key}"`).join("; ") : undefined
57780
57780
  });
57781
57781
  var PhaseOpArguments = discriminatedUnion("op", [
57782
- operation("read_record", { issue: requiredString("read_record", "issue") }),
57782
+ operation("read_record", { issue: string2().optional() }),
57783
57783
  operation("read_release_records", {
57784
57784
  since: windowStart
57785
57785
  }),
57786
57786
  operation("handoff_complete", {
57787
57787
  summary: requiredString("handoff_complete", "summary"),
57788
+ issue: string2().optional(),
57788
57789
  verdict: _enum2(["pass", "pending", "fail"], {
57789
57790
  error: "handoff_complete's verdict is pass, pending or fail"
57790
57791
  }).optional(),
@@ -57827,7 +57828,7 @@ function phaseOpParameters(zod) {
57827
57828
  return byField;
57828
57829
  }
57829
57830
  var PHASE_OP_SENTENCES = {
57830
- readRecord: "read_record returns the record of `issue` from the daemon's state. ",
57831
+ readRecord: "read_record returns the record of `issue` from the daemon's state, your own issue when you leave `issue` out. ",
57831
57832
  readReleaseRecords: "read_release_records returns this deployment's idle-release records from `since` (an RFC 3339 time) on, read with this session's own claim: " + "every release, resume and hold the daemon recorded, and over them the counts of releases, of the releases among them that suspended no " + "role, of resumes by wake kind and of holds by reason, the pod-hours released, the share of releases woken again within ten minutes, and " + "the median, 90th percentile and maximum seconds from a wake to the woken role's first turn. A release that suspended no role is woken by " + "nothing, so the pod-hours released and the woken share count the releases that suspended a role alone. ",
57832
57833
  requestBackwardMove: "request_backward_move returns an issue to an earlier phase (`to`, `reason`): a phase worker moves its own issue; " + "the tree's architect moves an issue in accepting, named by `issue`, back to implementing or testing, which counts a review round. "
57833
57834
  };
@@ -57865,12 +57866,19 @@ async function executePhaseOp(runtime, input) {
57865
57866
  }
57866
57867
  const args = parsed.data;
57867
57868
  switch (args.op) {
57868
- case "read_record":
57869
- return { record: recordFrom(await daemon.state(), args.issue) };
57869
+ case "read_record": {
57870
+ const issue = args.issue !== undefined && args.issue.trim() !== "" ? args.issue : claim.issue;
57871
+ return { record: recordFrom(await daemon.state(), issue) };
57872
+ }
57870
57873
  case "read_release_records":
57871
57874
  return releaseRecords(runtime, args.since);
57872
- case "handoff_complete":
57875
+ case "handoff_complete": {
57876
+ const named = args.issue?.trim() ?? "";
57877
+ if (named !== "" && named !== claim.issue) {
57878
+ throw new Error(`handoff_complete reports this session's own issue ${claim.issue}; leave issue out, or name ${claim.issue}, not ${named}`);
57879
+ }
57873
57880
  return retryWhileDaemonRestarts("handoff_complete", () => completeHandoff(runtime, args), runtime.restart);
57881
+ }
57874
57882
  case "request_backward_move": {
57875
57883
  let issue;
57876
57884
  if (claim.role === "architect") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/claude-envoy",
3
- "version": "1.40.2",
3
+ "version": "1.40.3",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Claude Code plugin for Legion's Envoy bus",
6
6
  "type": "module",