@sjawhar/claude-envoy 4.3.0 → 4.4.0

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": "4.3.0"
5
+ "version": "4.4.0"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-envoy",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "Put Envoy events into the Claude Code session's own conversation and expose Envoy MCP tools.",
5
5
  "mcpServers": {}
6
6
  }
@@ -14854,6 +14854,15 @@ var dispatchToolSpecs = [
14854
14854
  validation: handoffValidation,
14855
14855
  strict: true
14856
14856
  },
14857
+ {
14858
+ name: "dispatch_steps",
14859
+ example: { issue: "DSP-1" },
14860
+ description: "Print each step that ran on an issue, as the Legion daemon recorded it at the step's " + "start and at its end. The first line is `<KEY>: <n> steps in <m> tasks`. Then each run " + "of a step prints one line, task by task, in the order each task first ran: `<task> " + "<step> <kind> <role> <type> attempt <attempt> <agent> <model> <started_at> <ended_at> " + "<result>`. kind is step, retro or merge. step is the step's place in its task, from 1, " + "and 0 for a retro or a merge. attempt counts the runs of the same task, step and kind, " + "from 1. agent is the claim of the role that ran the step, and model is the model that " + "answered it, as provider/model. result is passed, failed or stopped. A field with no " + "value prints -, and a run that has not ended prints running for its end and its result. " + "A closed issue's steps read too. An issue that no step ran on prints 0 steps in 0 tasks, " + "and a key Dispatch does not hold fails as dispatch read fails for it, NOT_FOUND: not " + `found. ${ISSUE_REFERENCE}`,
14861
+ arguments: (z) => ({
14862
+ issue: z.string().describe(ISSUE_REFERENCE)
14863
+ }),
14864
+ strict: true
14865
+ },
14857
14866
  {
14858
14867
  name: "dispatch_inbox",
14859
14868
  example: {},
@@ -18985,6 +18994,9 @@ class DispatchClient {
18985
18994
  async handoff(id) {
18986
18995
  return this.#json("GET", ["api", "v1", "handoffs", id]);
18987
18996
  }
18997
+ async listSteps(issue) {
18998
+ return this.#json("GET", ["api", "v1", "issues", await this.#resolveIssue(issue), "steps"]);
18999
+ }
18988
19000
  async getIssueReferences(issue) {
18989
19001
  return this.#json("GET", ["api", "v1", "issues", await this.#resolveIssue(issue), "references"], undefined, { versions: "latest" });
18990
19002
  }
@@ -25128,6 +25140,40 @@ async function inboxCommand(context) {
25128
25140
  };
25129
25141
  }
25130
25142
 
25143
+ // ../envoy-client/src/dispatch-commands/steps.ts
25144
+ function orDash(value) {
25145
+ return value === null || value === "" ? "-" : value;
25146
+ }
25147
+ function stepLine(record) {
25148
+ return [
25149
+ record.task,
25150
+ record.step,
25151
+ record.kind,
25152
+ record.role,
25153
+ orDash(record.type),
25154
+ "attempt",
25155
+ record.attempt,
25156
+ orDash(record.agent),
25157
+ orDash(record.model),
25158
+ orDash(record.started_at),
25159
+ ...record.ended_at === null ? ["running", "running"] : [record.ended_at, orDash(record.result)]
25160
+ ].join(" ");
25161
+ }
25162
+ async function stepsCommand(context) {
25163
+ const { client, issue } = context;
25164
+ const read = await client.listSteps(issue());
25165
+ const tasks = (read.tasks ?? []).map((task) => ({ task: task.task, steps: task.steps ?? [] }));
25166
+ const records = tasks.flatMap((task) => task.steps);
25167
+ return {
25168
+ text: [
25169
+ `${read.issue}: ${records.length} steps in ${tasks.length} tasks`,
25170
+ ...records.map(stepLine)
25171
+ ].join(`
25172
+ `),
25173
+ details: { issue: read.issue, tasks }
25174
+ };
25175
+ }
25176
+
25131
25177
  // ../envoy-client/src/dispatch-commands/table.ts
25132
25178
  function acting(run) {
25133
25179
  return { origin: "resolved", run };
@@ -25166,6 +25212,7 @@ var dispatchCommands = {
25166
25212
  dispatch_artifact: acting(artifactCommand),
25167
25213
  dispatch_handoff_write: acting(handoffWriteCommand),
25168
25214
  dispatch_handoff_read: acting(handoffReadCommand),
25215
+ dispatch_steps: acting(stepsCommand),
25169
25216
  dispatch_read: acting(readCommand),
25170
25217
  dispatch_answers: onSession(answersCommand),
25171
25218
  dispatch_whoami: onSession(whoamiCommand),
package/dist/dispatch.js CHANGED
@@ -15918,6 +15918,15 @@ var dispatchToolSpecs = [
15918
15918
  validation: handoffValidation,
15919
15919
  strict: true
15920
15920
  },
15921
+ {
15922
+ name: "dispatch_steps",
15923
+ example: { issue: "DSP-1" },
15924
+ description: "Print each step that ran on an issue, as the Legion daemon recorded it at the step's " + "start and at its end. The first line is `<KEY>: <n> steps in <m> tasks`. Then each run " + "of a step prints one line, task by task, in the order each task first ran: `<task> " + "<step> <kind> <role> <type> attempt <attempt> <agent> <model> <started_at> <ended_at> " + "<result>`. kind is step, retro or merge. step is the step's place in its task, from 1, " + "and 0 for a retro or a merge. attempt counts the runs of the same task, step and kind, " + "from 1. agent is the claim of the role that ran the step, and model is the model that " + "answered it, as provider/model. result is passed, failed or stopped. A field with no " + "value prints -, and a run that has not ended prints running for its end and its result. " + "A closed issue's steps read too. An issue that no step ran on prints 0 steps in 0 tasks, " + "and a key Dispatch does not hold fails as dispatch read fails for it, NOT_FOUND: not " + `found. ${ISSUE_REFERENCE}`,
15925
+ arguments: (z) => ({
15926
+ issue: z.string().describe(ISSUE_REFERENCE)
15927
+ }),
15928
+ strict: true
15929
+ },
15921
15930
  {
15922
15931
  name: "dispatch_inbox",
15923
15932
  example: {},
@@ -19263,6 +19272,9 @@ class DispatchClient {
19263
19272
  async handoff(id) {
19264
19273
  return this.#json("GET", ["api", "v1", "handoffs", id]);
19265
19274
  }
19275
+ async listSteps(issue) {
19276
+ return this.#json("GET", ["api", "v1", "issues", await this.#resolveIssue(issue), "steps"]);
19277
+ }
19266
19278
  async getIssueReferences(issue) {
19267
19279
  return this.#json("GET", ["api", "v1", "issues", await this.#resolveIssue(issue), "references"], undefined, { versions: "latest" });
19268
19280
  }
@@ -26161,6 +26173,40 @@ async function inboxCommand(context) {
26161
26173
  };
26162
26174
  }
26163
26175
 
26176
+ // ../envoy-client/src/dispatch-commands/steps.ts
26177
+ function orDash(value) {
26178
+ return value === null || value === "" ? "-" : value;
26179
+ }
26180
+ function stepLine(record) {
26181
+ return [
26182
+ record.task,
26183
+ record.step,
26184
+ record.kind,
26185
+ record.role,
26186
+ orDash(record.type),
26187
+ "attempt",
26188
+ record.attempt,
26189
+ orDash(record.agent),
26190
+ orDash(record.model),
26191
+ orDash(record.started_at),
26192
+ ...record.ended_at === null ? ["running", "running"] : [record.ended_at, orDash(record.result)]
26193
+ ].join(" ");
26194
+ }
26195
+ async function stepsCommand(context) {
26196
+ const { client, issue } = context;
26197
+ const read = await client.listSteps(issue());
26198
+ const tasks = (read.tasks ?? []).map((task) => ({ task: task.task, steps: task.steps ?? [] }));
26199
+ const records = tasks.flatMap((task) => task.steps);
26200
+ return {
26201
+ text: [
26202
+ `${read.issue}: ${records.length} steps in ${tasks.length} tasks`,
26203
+ ...records.map(stepLine)
26204
+ ].join(`
26205
+ `),
26206
+ details: { issue: read.issue, tasks }
26207
+ };
26208
+ }
26209
+
26164
26210
  // ../envoy-client/src/dispatch-commands/table.ts
26165
26211
  function acting(run) {
26166
26212
  return { origin: "resolved", run };
@@ -26199,6 +26245,7 @@ var dispatchCommands = {
26199
26245
  dispatch_artifact: acting(artifactCommand),
26200
26246
  dispatch_handoff_write: acting(handoffWriteCommand),
26201
26247
  dispatch_handoff_read: acting(handoffReadCommand),
26248
+ dispatch_steps: acting(stepsCommand),
26202
26249
  dispatch_read: acting(readCommand),
26203
26250
  dispatch_answers: onSession(answersCommand),
26204
26251
  dispatch_whoami: onSession(whoamiCommand),
@@ -37510,6 +37510,15 @@ var dispatchToolSpecs = [
37510
37510
  validation: handoffValidation,
37511
37511
  strict: true
37512
37512
  },
37513
+ {
37514
+ name: "dispatch_steps",
37515
+ example: { issue: "DSP-1" },
37516
+ description: "Print each step that ran on an issue, as the Legion daemon recorded it at the step's " + "start and at its end. The first line is `<KEY>: <n> steps in <m> tasks`. Then each run " + "of a step prints one line, task by task, in the order each task first ran: `<task> " + "<step> <kind> <role> <type> attempt <attempt> <agent> <model> <started_at> <ended_at> " + "<result>`. kind is step, retro or merge. step is the step's place in its task, from 1, " + "and 0 for a retro or a merge. attempt counts the runs of the same task, step and kind, " + "from 1. agent is the claim of the role that ran the step, and model is the model that " + "answered it, as provider/model. result is passed, failed or stopped. A field with no " + "value prints -, and a run that has not ended prints running for its end and its result. " + "A closed issue's steps read too. An issue that no step ran on prints 0 steps in 0 tasks, " + "and a key Dispatch does not hold fails as dispatch read fails for it, NOT_FOUND: not " + `found. ${ISSUE_REFERENCE}`,
37517
+ arguments: (z) => ({
37518
+ issue: z.string().describe(ISSUE_REFERENCE)
37519
+ }),
37520
+ strict: true
37521
+ },
37513
37522
  {
37514
37523
  name: "dispatch_inbox",
37515
37524
  example: {},
@@ -44302,6 +44311,9 @@ class DispatchClient {
44302
44311
  async handoff(id) {
44303
44312
  return this.#json("GET", ["api", "v1", "handoffs", id]);
44304
44313
  }
44314
+ async listSteps(issue) {
44315
+ return this.#json("GET", ["api", "v1", "issues", await this.#resolveIssue(issue), "steps"]);
44316
+ }
44305
44317
  async getIssueReferences(issue) {
44306
44318
  return this.#json("GET", ["api", "v1", "issues", await this.#resolveIssue(issue), "references"], undefined, { versions: "latest" });
44307
44319
  }
@@ -52063,6 +52075,40 @@ async function inboxCommand(context) {
52063
52075
  };
52064
52076
  }
52065
52077
 
52078
+ // ../envoy-client/src/dispatch-commands/steps.ts
52079
+ function orDash(value) {
52080
+ return value === null || value === "" ? "-" : value;
52081
+ }
52082
+ function stepLine(record) {
52083
+ return [
52084
+ record.task,
52085
+ record.step,
52086
+ record.kind,
52087
+ record.role,
52088
+ orDash(record.type),
52089
+ "attempt",
52090
+ record.attempt,
52091
+ orDash(record.agent),
52092
+ orDash(record.model),
52093
+ orDash(record.started_at),
52094
+ ...record.ended_at === null ? ["running", "running"] : [record.ended_at, orDash(record.result)]
52095
+ ].join(" ");
52096
+ }
52097
+ async function stepsCommand(context) {
52098
+ const { client, issue } = context;
52099
+ const read = await client.listSteps(issue());
52100
+ const tasks = (read.tasks ?? []).map((task) => ({ task: task.task, steps: task.steps ?? [] }));
52101
+ const records = tasks.flatMap((task) => task.steps);
52102
+ return {
52103
+ text: [
52104
+ `${read.issue}: ${records.length} steps in ${tasks.length} tasks`,
52105
+ ...records.map(stepLine)
52106
+ ].join(`
52107
+ `),
52108
+ details: { issue: read.issue, tasks }
52109
+ };
52110
+ }
52111
+
52066
52112
  // ../envoy-client/src/dispatch-commands/table.ts
52067
52113
  function acting(run) {
52068
52114
  return { origin: "resolved", run };
@@ -52101,6 +52147,7 @@ var dispatchCommands = {
52101
52147
  dispatch_artifact: acting(artifactCommand),
52102
52148
  dispatch_handoff_write: acting(handoffWriteCommand),
52103
52149
  dispatch_handoff_read: acting(handoffReadCommand),
52150
+ dispatch_steps: acting(stepsCommand),
52104
52151
  dispatch_read: acting(readCommand),
52105
52152
  dispatch_answers: onSession(answersCommand),
52106
52153
  dispatch_whoami: onSession(whoamiCommand),
@@ -57782,7 +57829,7 @@ var import_nats2 = __toESM(require_mod4(), 1);
57782
57829
 
57783
57830
  // package.json
57784
57831
  var name2 = "@sjawhar/claude-envoy";
57785
- var version2 = "4.3.0";
57832
+ var version2 = "4.4.0";
57786
57833
  var legion = {
57787
57834
  daemonApiVersion: 152
57788
57835
  };
@@ -14855,6 +14855,15 @@ var dispatchToolSpecs = [
14855
14855
  validation: handoffValidation,
14856
14856
  strict: true
14857
14857
  },
14858
+ {
14859
+ name: "dispatch_steps",
14860
+ example: { issue: "DSP-1" },
14861
+ description: "Print each step that ran on an issue, as the Legion daemon recorded it at the step's " + "start and at its end. The first line is `<KEY>: <n> steps in <m> tasks`. Then each run " + "of a step prints one line, task by task, in the order each task first ran: `<task> " + "<step> <kind> <role> <type> attempt <attempt> <agent> <model> <started_at> <ended_at> " + "<result>`. kind is step, retro or merge. step is the step's place in its task, from 1, " + "and 0 for a retro or a merge. attempt counts the runs of the same task, step and kind, " + "from 1. agent is the claim of the role that ran the step, and model is the model that " + "answered it, as provider/model. result is passed, failed or stopped. A field with no " + "value prints -, and a run that has not ended prints running for its end and its result. " + "A closed issue's steps read too. An issue that no step ran on prints 0 steps in 0 tasks, " + "and a key Dispatch does not hold fails as dispatch read fails for it, NOT_FOUND: not " + `found. ${ISSUE_REFERENCE}`,
14862
+ arguments: (z) => ({
14863
+ issue: z.string().describe(ISSUE_REFERENCE)
14864
+ }),
14865
+ strict: true
14866
+ },
14858
14867
  {
14859
14868
  name: "dispatch_inbox",
14860
14869
  example: {},
@@ -18986,6 +18995,9 @@ class DispatchClient {
18986
18995
  async handoff(id) {
18987
18996
  return this.#json("GET", ["api", "v1", "handoffs", id]);
18988
18997
  }
18998
+ async listSteps(issue) {
18999
+ return this.#json("GET", ["api", "v1", "issues", await this.#resolveIssue(issue), "steps"]);
19000
+ }
18989
19001
  async getIssueReferences(issue) {
18990
19002
  return this.#json("GET", ["api", "v1", "issues", await this.#resolveIssue(issue), "references"], undefined, { versions: "latest" });
18991
19003
  }
@@ -25129,6 +25141,40 @@ async function inboxCommand(context) {
25129
25141
  };
25130
25142
  }
25131
25143
 
25144
+ // ../envoy-client/src/dispatch-commands/steps.ts
25145
+ function orDash(value) {
25146
+ return value === null || value === "" ? "-" : value;
25147
+ }
25148
+ function stepLine(record) {
25149
+ return [
25150
+ record.task,
25151
+ record.step,
25152
+ record.kind,
25153
+ record.role,
25154
+ orDash(record.type),
25155
+ "attempt",
25156
+ record.attempt,
25157
+ orDash(record.agent),
25158
+ orDash(record.model),
25159
+ orDash(record.started_at),
25160
+ ...record.ended_at === null ? ["running", "running"] : [record.ended_at, orDash(record.result)]
25161
+ ].join(" ");
25162
+ }
25163
+ async function stepsCommand(context) {
25164
+ const { client, issue } = context;
25165
+ const read = await client.listSteps(issue());
25166
+ const tasks = (read.tasks ?? []).map((task) => ({ task: task.task, steps: task.steps ?? [] }));
25167
+ const records = tasks.flatMap((task) => task.steps);
25168
+ return {
25169
+ text: [
25170
+ `${read.issue}: ${records.length} steps in ${tasks.length} tasks`,
25171
+ ...records.map(stepLine)
25172
+ ].join(`
25173
+ `),
25174
+ details: { issue: read.issue, tasks }
25175
+ };
25176
+ }
25177
+
25132
25178
  // ../envoy-client/src/dispatch-commands/table.ts
25133
25179
  function acting(run) {
25134
25180
  return { origin: "resolved", run };
@@ -25167,6 +25213,7 @@ var dispatchCommands = {
25167
25213
  dispatch_artifact: acting(artifactCommand),
25168
25214
  dispatch_handoff_write: acting(handoffWriteCommand),
25169
25215
  dispatch_handoff_read: acting(handoffReadCommand),
25216
+ dispatch_steps: acting(stepsCommand),
25170
25217
  dispatch_read: acting(readCommand),
25171
25218
  dispatch_answers: onSession(answersCommand),
25172
25219
  dispatch_whoami: onSession(whoamiCommand),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/claude-envoy",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Claude Code plugin for Legion's Envoy bus",
6
6
  "type": "module",