@sjawhar/claude-envoy 1.35.0 → 1.36.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": "1.35.0"
5
+ "version": "1.36.0"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-envoy",
3
- "version": "1.35.0",
3
+ "version": "1.36.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
  }
@@ -55433,7 +55433,7 @@ var import_nats2 = __toESM(require_mod4(), 1);
55433
55433
 
55434
55434
  // package.json
55435
55435
  var name = "@sjawhar/claude-envoy";
55436
- var version2 = "1.35.0";
55436
+ var version2 = "1.36.0";
55437
55437
  var legion = {
55438
55438
  daemonApiVersion: 62
55439
55439
  };
@@ -57717,7 +57717,7 @@ function phaseOpParameters(zod) {
57717
57717
  }
57718
57718
  var PHASE_OP_SENTENCES = {
57719
57719
  readRecord: "read_record returns the record of `issue` from the daemon's state. ",
57720
- 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 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. ",
57720
+ 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. ",
57721
57721
  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. "
57722
57722
  };
57723
57723
  function legionToolDescription(host) {
@@ -57827,13 +57827,19 @@ async function releaseRecords(runtime, since) {
57827
57827
  }
57828
57828
  let releasedMs = 0;
57829
57829
  let wokenSoon = 0;
57830
+ let suspendedNoRole = 0;
57830
57831
  for (const release of records.releases) {
57832
+ if (release.roles.length === 0) {
57833
+ suspendedNoRole += 1;
57834
+ continue;
57835
+ }
57831
57836
  const from = Date.parse(release.at);
57832
57837
  const woken = wokenAt.get(release.id);
57833
57838
  releasedMs += Math.max((woken ?? asOf.getTime()) - from, 0);
57834
57839
  if (woken !== undefined && woken - from <= WOKEN_SOON_MS)
57835
57840
  wokenSoon += 1;
57836
57841
  }
57842
+ const wakeable = records.releases.length - suspendedNoRole;
57837
57843
  const waits = records.resumes.flatMap((resume) => resume.firstTurnAt === undefined ? [] : [(Date.parse(resume.firstTurnAt) - Date.parse(resume.at)) / 1000]).sort((one, other) => one - other);
57838
57844
  const whole = (value) => value === null ? null : Math.round(value);
57839
57845
  return {
@@ -57844,6 +57850,7 @@ async function releaseRecords(runtime, since) {
57844
57850
  holds: records.holds,
57845
57851
  counts: {
57846
57852
  releases: records.releases.length,
57853
+ releasesSuspendingNoRole: suspendedNoRole,
57847
57854
  resumes: records.resumes.length,
57848
57855
  resumesByKind: countedBy(records.resumes, (resume) => resume.kind),
57849
57856
  holds: records.holds.length,
@@ -57852,7 +57859,7 @@ async function releaseRecords(runtime, since) {
57852
57859
  podHoursReleased: Math.round(releasedMs / 3600000 * 100) / 100,
57853
57860
  wokenWithinTenMinutes: {
57854
57861
  releases: wokenSoon,
57855
- share: records.releases.length === 0 ? 0 : Math.round(wokenSoon / records.releases.length * 1000) / 1000
57862
+ share: wakeable === 0 ? 0 : Math.round(wokenSoon / wakeable * 1000) / 1000
57856
57863
  },
57857
57864
  wakeToFirstTurnSeconds: {
57858
57865
  measured: waits.length,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/claude-envoy",
3
- "version": "1.35.0",
3
+ "version": "1.36.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Claude Code plugin for Legion's Envoy bus",
6
6
  "type": "module",