@sjawhar/claude-envoy 5.29.0 → 5.30.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": "5.29.0"
5
+ "version": "5.30.0"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-envoy",
3
- "version": "5.29.0",
3
+ "version": "5.30.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
  }
@@ -15154,7 +15154,7 @@ var dispatchToolSpecs = [
15154
15154
  {
15155
15155
  name: "dispatch_steps",
15156
15156
  example: { issue: "DSP-1" },
15157
- 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}`,
15157
+ description: "Print each step that ran on an issue, as the Legion daemon recorded it at the step's " + "start and at its end, and the experiment and the variant the issue was drawn into, where " + "its records name one. The first line is `<KEY>: <n> steps in <m> tasks`. Where the " + "records of the issue's newest run name an experiment, the next line is `Experiment " + "<experiment>: variant <variant>.`, and an issue whose newest run's records name none " + "prints no such line. 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}`,
15158
15158
  arguments: (z) => ({
15159
15159
  issue: z.string().describe(ISSUE_REFERENCE)
15160
15160
  }),
@@ -15163,7 +15163,7 @@ var dispatchToolSpecs = [
15163
15163
  {
15164
15164
  name: "dispatch_plans",
15165
15165
  example: { project: "INFRA" },
15166
- description: "Print each finished issue of a project, newest close first, with the plan Legion ran it " + "from, the rating each retro gave that plan with its reason, its time and its count of " + "failed steps. An issue is finished when its status is done and Dispatch closed it. The " + "first line is `<PROJECT>: <n> finished issues`. Then each issue prints one line: `<KEY> " + "closed <closed_at> plan <source> (<n> tasks: <steps of the first task>) ratings " + `<rating>/${LEGION_PLAN_RATING_MOST} "<reason>"[, <rating>/${LEGION_PLAN_RATING_MOST} "<reason>" ...] time <h>h<m>m failed steps <n>\`. ` + "source is default (Legion's default steps) or owner (the plan the issue's owner wrote), " + `and the plan is the one of the issue's newest run. A rating is ${LEGION_PLAN_RATING_LEAST} (the plan cost the ` + `work) to ${LEGION_PLAN_RATING_MOST} (the plan fit the work), one for each retro in the order the retros ran, and ` + "its reason prints as a JSON string. time runs from the first start of the issue's steps " + "to the last end, in whole hours and minutes rounded down. failed steps counts the runs " + "of a step that failed, retros and merges left out. An issue with no plan prints plan " + "none, one with no rating prints ratings none, and one whose time is not known prints " + "time -: an issue Legion never ran prints all three. since and until, each an RFC 3339 " + "time, keep the issues closed at or after since and before until.",
15166
+ description: "Print each finished issue of a project, newest close first, with the plan Legion ran it " + "from, the rating each retro gave that plan with its reason, its time, its count of " + "failed steps, and the experiment and the variant it was drawn into, where its records " + "name one. An issue is finished when its status is done and Dispatch closed it. The " + "first line is `<PROJECT>: <n> finished issues`. Then each issue prints one line: `<KEY> " + "closed <closed_at> plan <source> (<n> tasks: <steps of the first task>) ratings " + `<rating>/${LEGION_PLAN_RATING_MOST} "<reason>"[, <rating>/${LEGION_PLAN_RATING_MOST} "<reason>" ...] time <h>h<m>m failed steps <n>[ variant <experiment>/<variant>]\`. ` + "The line ends with variant <experiment>/<variant> where the records of the issue's " + "newest run name an experiment, and at failed steps <n> where they name none. " + "source is default (Legion's default steps) or owner (the plan the issue's owner wrote), " + `and the plan is the one of the issue's newest run. A rating is ${LEGION_PLAN_RATING_LEAST} (the plan cost the ` + `work) to ${LEGION_PLAN_RATING_MOST} (the plan fit the work), one for each retro in the order the retros ran, and ` + "its reason prints as a JSON string. time runs from the first start of the issue's steps " + "to the last end, in whole hours and minutes rounded down. failed steps counts the runs " + "of a step that failed, retros and merges left out. An issue with no plan prints plan " + "none, one with no rating prints ratings none, and one whose time is not known prints " + "time -: an issue Legion never ran prints all three. since and until, each an RFC 3339 " + "time, keep the issues closed at or after since and before until.",
15167
15167
  arguments: (z) => ({
15168
15168
  project: z.string().describe("Project key whose finished issues to list, such as INFRA."),
15169
15169
  since: z.string().describe("Optional RFC 3339 time; only issues closed at or after it.").optional(),
@@ -28566,7 +28566,8 @@ function issueLine(issue) {
28566
28566
  ratingsText(issue.ratings),
28567
28567
  timeText(issue.duration_seconds),
28568
28568
  "failed steps",
28569
- issue.failed_steps
28569
+ issue.failed_steps,
28570
+ ...issue.experiment == null || issue.variant == null ? [] : [`variant ${issue.experiment}/${issue.variant}`]
28570
28571
  ].join(" ");
28571
28572
  }
28572
28573
  async function plansCommand(context) {
@@ -29595,6 +29596,11 @@ function stepLine(record) {
29595
29596
  ...record.ended_at === null ? ["running", "running"] : [record.ended_at, orDash(record.result)]
29596
29597
  ].join(" ");
29597
29598
  }
29599
+ function variantLines(records) {
29600
+ const newest = Math.max(...records.map((record) => record.generation));
29601
+ const named = records.find((record) => record.generation === newest && record.experiment != null && record.variant != null);
29602
+ return named === undefined ? [] : [`Experiment ${named.experiment}: variant ${named.variant}.`];
29603
+ }
29598
29604
  async function stepsCommand(context) {
29599
29605
  const { client, issue } = context;
29600
29606
  const read = await client.listSteps(issue());
@@ -29603,6 +29609,7 @@ async function stepsCommand(context) {
29603
29609
  return {
29604
29610
  text: [
29605
29611
  `${read.issue}: ${records.length} steps in ${tasks.length} tasks`,
29612
+ ...variantLines(records),
29606
29613
  ...records.map(stepLine)
29607
29614
  ].join(`
29608
29615
  `),
package/dist/dispatch.js CHANGED
@@ -15760,7 +15760,7 @@ var dispatchToolSpecs = [
15760
15760
  {
15761
15761
  name: "dispatch_steps",
15762
15762
  example: { issue: "DSP-1" },
15763
- 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}`,
15763
+ description: "Print each step that ran on an issue, as the Legion daemon recorded it at the step's " + "start and at its end, and the experiment and the variant the issue was drawn into, where " + "its records name one. The first line is `<KEY>: <n> steps in <m> tasks`. Where the " + "records of the issue's newest run name an experiment, the next line is `Experiment " + "<experiment>: variant <variant>.`, and an issue whose newest run's records name none " + "prints no such line. 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}`,
15764
15764
  arguments: (z) => ({
15765
15765
  issue: z.string().describe(ISSUE_REFERENCE)
15766
15766
  }),
@@ -15769,7 +15769,7 @@ var dispatchToolSpecs = [
15769
15769
  {
15770
15770
  name: "dispatch_plans",
15771
15771
  example: { project: "INFRA" },
15772
- description: "Print each finished issue of a project, newest close first, with the plan Legion ran it " + "from, the rating each retro gave that plan with its reason, its time and its count of " + "failed steps. An issue is finished when its status is done and Dispatch closed it. The " + "first line is `<PROJECT>: <n> finished issues`. Then each issue prints one line: `<KEY> " + "closed <closed_at> plan <source> (<n> tasks: <steps of the first task>) ratings " + `<rating>/${LEGION_PLAN_RATING_MOST} "<reason>"[, <rating>/${LEGION_PLAN_RATING_MOST} "<reason>" ...] time <h>h<m>m failed steps <n>\`. ` + "source is default (Legion's default steps) or owner (the plan the issue's owner wrote), " + `and the plan is the one of the issue's newest run. A rating is ${LEGION_PLAN_RATING_LEAST} (the plan cost the ` + `work) to ${LEGION_PLAN_RATING_MOST} (the plan fit the work), one for each retro in the order the retros ran, and ` + "its reason prints as a JSON string. time runs from the first start of the issue's steps " + "to the last end, in whole hours and minutes rounded down. failed steps counts the runs " + "of a step that failed, retros and merges left out. An issue with no plan prints plan " + "none, one with no rating prints ratings none, and one whose time is not known prints " + "time -: an issue Legion never ran prints all three. since and until, each an RFC 3339 " + "time, keep the issues closed at or after since and before until.",
15772
+ description: "Print each finished issue of a project, newest close first, with the plan Legion ran it " + "from, the rating each retro gave that plan with its reason, its time, its count of " + "failed steps, and the experiment and the variant it was drawn into, where its records " + "name one. An issue is finished when its status is done and Dispatch closed it. The " + "first line is `<PROJECT>: <n> finished issues`. Then each issue prints one line: `<KEY> " + "closed <closed_at> plan <source> (<n> tasks: <steps of the first task>) ratings " + `<rating>/${LEGION_PLAN_RATING_MOST} "<reason>"[, <rating>/${LEGION_PLAN_RATING_MOST} "<reason>" ...] time <h>h<m>m failed steps <n>[ variant <experiment>/<variant>]\`. ` + "The line ends with variant <experiment>/<variant> where the records of the issue's " + "newest run name an experiment, and at failed steps <n> where they name none. " + "source is default (Legion's default steps) or owner (the plan the issue's owner wrote), " + `and the plan is the one of the issue's newest run. A rating is ${LEGION_PLAN_RATING_LEAST} (the plan cost the ` + `work) to ${LEGION_PLAN_RATING_MOST} (the plan fit the work), one for each retro in the order the retros ran, and ` + "its reason prints as a JSON string. time runs from the first start of the issue's steps " + "to the last end, in whole hours and minutes rounded down. failed steps counts the runs " + "of a step that failed, retros and merges left out. An issue with no plan prints plan " + "none, one with no rating prints ratings none, and one whose time is not known prints " + "time -: an issue Legion never ran prints all three. since and until, each an RFC 3339 " + "time, keep the issues closed at or after since and before until.",
15773
15773
  arguments: (z) => ({
15774
15774
  project: z.string().describe("Project key whose finished issues to list, such as INFRA."),
15775
15775
  since: z.string().describe("Optional RFC 3339 time; only issues closed at or after it.").optional(),
@@ -34053,7 +34053,8 @@ function issueLine(issue) {
34053
34053
  ratingsText(issue.ratings),
34054
34054
  timeText(issue.duration_seconds),
34055
34055
  "failed steps",
34056
- issue.failed_steps
34056
+ issue.failed_steps,
34057
+ ...issue.experiment == null || issue.variant == null ? [] : [`variant ${issue.experiment}/${issue.variant}`]
34057
34058
  ].join(" ");
34058
34059
  }
34059
34060
  async function plansCommand(context) {
@@ -35082,6 +35083,11 @@ function stepLine(record) {
35082
35083
  ...record.ended_at === null ? ["running", "running"] : [record.ended_at, orDash(record.result)]
35083
35084
  ].join(" ");
35084
35085
  }
35086
+ function variantLines(records) {
35087
+ const newest = Math.max(...records.map((record) => record.generation));
35088
+ const named = records.find((record) => record.generation === newest && record.experiment != null && record.variant != null);
35089
+ return named === undefined ? [] : [`Experiment ${named.experiment}: variant ${named.variant}.`];
35090
+ }
35085
35091
  async function stepsCommand(context) {
35086
35092
  const { client, issue } = context;
35087
35093
  const read = await client.listSteps(issue());
@@ -35090,6 +35096,7 @@ async function stepsCommand(context) {
35090
35096
  return {
35091
35097
  text: [
35092
35098
  `${read.issue}: ${records.length} steps in ${tasks.length} tasks`,
35099
+ ...variantLines(records),
35093
35100
  ...records.map(stepLine)
35094
35101
  ].join(`
35095
35102
  `),
@@ -37954,7 +37954,7 @@ var dispatchToolSpecs = [
37954
37954
  {
37955
37955
  name: "dispatch_steps",
37956
37956
  example: { issue: "DSP-1" },
37957
- 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}`,
37957
+ description: "Print each step that ran on an issue, as the Legion daemon recorded it at the step's " + "start and at its end, and the experiment and the variant the issue was drawn into, where " + "its records name one. The first line is `<KEY>: <n> steps in <m> tasks`. Where the " + "records of the issue's newest run name an experiment, the next line is `Experiment " + "<experiment>: variant <variant>.`, and an issue whose newest run's records name none " + "prints no such line. 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}`,
37958
37958
  arguments: (z) => ({
37959
37959
  issue: z.string().describe(ISSUE_REFERENCE)
37960
37960
  }),
@@ -37963,7 +37963,7 @@ var dispatchToolSpecs = [
37963
37963
  {
37964
37964
  name: "dispatch_plans",
37965
37965
  example: { project: "INFRA" },
37966
- description: "Print each finished issue of a project, newest close first, with the plan Legion ran it " + "from, the rating each retro gave that plan with its reason, its time and its count of " + "failed steps. An issue is finished when its status is done and Dispatch closed it. The " + "first line is `<PROJECT>: <n> finished issues`. Then each issue prints one line: `<KEY> " + "closed <closed_at> plan <source> (<n> tasks: <steps of the first task>) ratings " + `<rating>/${LEGION_PLAN_RATING_MOST} "<reason>"[, <rating>/${LEGION_PLAN_RATING_MOST} "<reason>" ...] time <h>h<m>m failed steps <n>\`. ` + "source is default (Legion's default steps) or owner (the plan the issue's owner wrote), " + `and the plan is the one of the issue's newest run. A rating is ${LEGION_PLAN_RATING_LEAST} (the plan cost the ` + `work) to ${LEGION_PLAN_RATING_MOST} (the plan fit the work), one for each retro in the order the retros ran, and ` + "its reason prints as a JSON string. time runs from the first start of the issue's steps " + "to the last end, in whole hours and minutes rounded down. failed steps counts the runs " + "of a step that failed, retros and merges left out. An issue with no plan prints plan " + "none, one with no rating prints ratings none, and one whose time is not known prints " + "time -: an issue Legion never ran prints all three. since and until, each an RFC 3339 " + "time, keep the issues closed at or after since and before until.",
37966
+ description: "Print each finished issue of a project, newest close first, with the plan Legion ran it " + "from, the rating each retro gave that plan with its reason, its time, its count of " + "failed steps, and the experiment and the variant it was drawn into, where its records " + "name one. An issue is finished when its status is done and Dispatch closed it. The " + "first line is `<PROJECT>: <n> finished issues`. Then each issue prints one line: `<KEY> " + "closed <closed_at> plan <source> (<n> tasks: <steps of the first task>) ratings " + `<rating>/${LEGION_PLAN_RATING_MOST} "<reason>"[, <rating>/${LEGION_PLAN_RATING_MOST} "<reason>" ...] time <h>h<m>m failed steps <n>[ variant <experiment>/<variant>]\`. ` + "The line ends with variant <experiment>/<variant> where the records of the issue's " + "newest run name an experiment, and at failed steps <n> where they name none. " + "source is default (Legion's default steps) or owner (the plan the issue's owner wrote), " + `and the plan is the one of the issue's newest run. A rating is ${LEGION_PLAN_RATING_LEAST} (the plan cost the ` + `work) to ${LEGION_PLAN_RATING_MOST} (the plan fit the work), one for each retro in the order the retros ran, and ` + "its reason prints as a JSON string. time runs from the first start of the issue's steps " + "to the last end, in whole hours and minutes rounded down. failed steps counts the runs " + "of a step that failed, retros and merges left out. An issue with no plan prints plan " + "none, one with no rating prints ratings none, and one whose time is not known prints " + "time -: an issue Legion never ran prints all three. since and until, each an RFC 3339 " + "time, keep the issues closed at or after since and before until.",
37967
37967
  arguments: (z) => ({
37968
37968
  project: z.string().describe("Project key whose finished issues to list, such as INFRA."),
37969
37969
  since: z.string().describe("Optional RFC 3339 time; only issues closed at or after it.").optional(),
@@ -56051,7 +56051,8 @@ function issueLine(issue) {
56051
56051
  ratingsText(issue.ratings),
56052
56052
  timeText(issue.duration_seconds),
56053
56053
  "failed steps",
56054
- issue.failed_steps
56054
+ issue.failed_steps,
56055
+ ...issue.experiment == null || issue.variant == null ? [] : [`variant ${issue.experiment}/${issue.variant}`]
56055
56056
  ].join(" ");
56056
56057
  }
56057
56058
  async function plansCommand(context) {
@@ -57050,6 +57051,11 @@ function stepLine(record) {
57050
57051
  ...record.ended_at === null ? ["running", "running"] : [record.ended_at, orDash(record.result)]
57051
57052
  ].join(" ");
57052
57053
  }
57054
+ function variantLines(records) {
57055
+ const newest = Math.max(...records.map((record) => record.generation));
57056
+ const named = records.find((record) => record.generation === newest && record.experiment != null && record.variant != null);
57057
+ return named === undefined ? [] : [`Experiment ${named.experiment}: variant ${named.variant}.`];
57058
+ }
57053
57059
  async function stepsCommand(context) {
57054
57060
  const { client, issue } = context;
57055
57061
  const read = await client.listSteps(issue());
@@ -57058,6 +57064,7 @@ async function stepsCommand(context) {
57058
57064
  return {
57059
57065
  text: [
57060
57066
  `${read.issue}: ${records.length} steps in ${tasks.length} tasks`,
57067
+ ...variantLines(records),
57061
57068
  ...records.map(stepLine)
57062
57069
  ].join(`
57063
57070
  `),
@@ -63507,7 +63514,7 @@ var import_nats5 = __toESM(require_mod4(), 1);
63507
63514
 
63508
63515
  // package.json
63509
63516
  var name2 = "@sjawhar/claude-envoy";
63510
- var version2 = "5.29.0";
63517
+ var version2 = "5.30.0";
63511
63518
  var legion = {
63512
63519
  daemonApiVersion: 275
63513
63520
  };
@@ -18656,7 +18656,7 @@ var dispatchToolSpecs = [
18656
18656
  {
18657
18657
  name: "dispatch_steps",
18658
18658
  example: { issue: "DSP-1" },
18659
- 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}`,
18659
+ description: "Print each step that ran on an issue, as the Legion daemon recorded it at the step's " + "start and at its end, and the experiment and the variant the issue was drawn into, where " + "its records name one. The first line is `<KEY>: <n> steps in <m> tasks`. Where the " + "records of the issue's newest run name an experiment, the next line is `Experiment " + "<experiment>: variant <variant>.`, and an issue whose newest run's records name none " + "prints no such line. 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}`,
18660
18660
  arguments: (z) => ({
18661
18661
  issue: z.string().describe(ISSUE_REFERENCE)
18662
18662
  }),
@@ -18665,7 +18665,7 @@ var dispatchToolSpecs = [
18665
18665
  {
18666
18666
  name: "dispatch_plans",
18667
18667
  example: { project: "INFRA" },
18668
- description: "Print each finished issue of a project, newest close first, with the plan Legion ran it " + "from, the rating each retro gave that plan with its reason, its time and its count of " + "failed steps. An issue is finished when its status is done and Dispatch closed it. The " + "first line is `<PROJECT>: <n> finished issues`. Then each issue prints one line: `<KEY> " + "closed <closed_at> plan <source> (<n> tasks: <steps of the first task>) ratings " + `<rating>/${LEGION_PLAN_RATING_MOST} "<reason>"[, <rating>/${LEGION_PLAN_RATING_MOST} "<reason>" ...] time <h>h<m>m failed steps <n>\`. ` + "source is default (Legion's default steps) or owner (the plan the issue's owner wrote), " + `and the plan is the one of the issue's newest run. A rating is ${LEGION_PLAN_RATING_LEAST} (the plan cost the ` + `work) to ${LEGION_PLAN_RATING_MOST} (the plan fit the work), one for each retro in the order the retros ran, and ` + "its reason prints as a JSON string. time runs from the first start of the issue's steps " + "to the last end, in whole hours and minutes rounded down. failed steps counts the runs " + "of a step that failed, retros and merges left out. An issue with no plan prints plan " + "none, one with no rating prints ratings none, and one whose time is not known prints " + "time -: an issue Legion never ran prints all three. since and until, each an RFC 3339 " + "time, keep the issues closed at or after since and before until.",
18668
+ description: "Print each finished issue of a project, newest close first, with the plan Legion ran it " + "from, the rating each retro gave that plan with its reason, its time, its count of " + "failed steps, and the experiment and the variant it was drawn into, where its records " + "name one. An issue is finished when its status is done and Dispatch closed it. The " + "first line is `<PROJECT>: <n> finished issues`. Then each issue prints one line: `<KEY> " + "closed <closed_at> plan <source> (<n> tasks: <steps of the first task>) ratings " + `<rating>/${LEGION_PLAN_RATING_MOST} "<reason>"[, <rating>/${LEGION_PLAN_RATING_MOST} "<reason>" ...] time <h>h<m>m failed steps <n>[ variant <experiment>/<variant>]\`. ` + "The line ends with variant <experiment>/<variant> where the records of the issue's " + "newest run name an experiment, and at failed steps <n> where they name none. " + "source is default (Legion's default steps) or owner (the plan the issue's owner wrote), " + `and the plan is the one of the issue's newest run. A rating is ${LEGION_PLAN_RATING_LEAST} (the plan cost the ` + `work) to ${LEGION_PLAN_RATING_MOST} (the plan fit the work), one for each retro in the order the retros ran, and ` + "its reason prints as a JSON string. time runs from the first start of the issue's steps " + "to the last end, in whole hours and minutes rounded down. failed steps counts the runs " + "of a step that failed, retros and merges left out. An issue with no plan prints plan " + "none, one with no rating prints ratings none, and one whose time is not known prints " + "time -: an issue Legion never ran prints all three. since and until, each an RFC 3339 " + "time, keep the issues closed at or after since and before until.",
18669
18669
  arguments: (z) => ({
18670
18670
  project: z.string().describe("Project key whose finished issues to list, such as INFRA."),
18671
18671
  since: z.string().describe("Optional RFC 3339 time; only issues closed at or after it.").optional(),
@@ -31400,7 +31400,8 @@ function issueLine(issue) {
31400
31400
  ratingsText(issue.ratings),
31401
31401
  timeText(issue.duration_seconds),
31402
31402
  "failed steps",
31403
- issue.failed_steps
31403
+ issue.failed_steps,
31404
+ ...issue.experiment == null || issue.variant == null ? [] : [`variant ${issue.experiment}/${issue.variant}`]
31404
31405
  ].join(" ");
31405
31406
  }
31406
31407
  async function plansCommand(context) {
@@ -32429,6 +32430,11 @@ function stepLine(record) {
32429
32430
  ...record.ended_at === null ? ["running", "running"] : [record.ended_at, orDash(record.result)]
32430
32431
  ].join(" ");
32431
32432
  }
32433
+ function variantLines(records) {
32434
+ const newest = Math.max(...records.map((record) => record.generation));
32435
+ const named = records.find((record) => record.generation === newest && record.experiment != null && record.variant != null);
32436
+ return named === undefined ? [] : [`Experiment ${named.experiment}: variant ${named.variant}.`];
32437
+ }
32432
32438
  async function stepsCommand(context) {
32433
32439
  const { client, issue } = context;
32434
32440
  const read = await client.listSteps(issue());
@@ -32437,6 +32443,7 @@ async function stepsCommand(context) {
32437
32443
  return {
32438
32444
  text: [
32439
32445
  `${read.issue}: ${records.length} steps in ${tasks.length} tasks`,
32446
+ ...variantLines(records),
32440
32447
  ...records.map(stepLine)
32441
32448
  ].join(`
32442
32449
  `),
@@ -74,5 +74,5 @@ The version you give replaces them with your own one block: delete theirs, and p
74
74
  ## Reading how plans went
75
75
 
76
76
  `dispatch steps --issue <KEY>` lists each run of each step of an issue and how it ended.
77
- Each finished issue of a project, with its plan's source and steps, its retro's ratings, its time and its count of failed steps, is `dispatch plans --project <KEY>`.
77
+ `dispatch plans --project <KEY>` lists each finished issue of a project with its plan and how that plan went.
78
78
  Read it before you choose the steps of an issue like one that finished.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/claude-envoy",
3
- "version": "5.29.0",
3
+ "version": "5.30.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Claude Code plugin for Legion's Envoy bus",
6
6
  "type": "module",