@sjawhar/claude-envoy 6.21.1 → 6.22.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": "6.21.1"
5
+ "version": "6.22.0"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-envoy",
3
- "version": "6.21.1",
3
+ "version": "6.22.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
  }
@@ -16325,12 +16325,22 @@ function itemFromSearch(search) {
16325
16325
 
16326
16326
  // ../contracts/src/dispatch-block-ref.ts
16327
16327
  var encoder = new TextEncoder;
16328
+ var NONPLAIN_CHARACTER = /[^A-Za-z0-9-]/u;
16329
+ function percentEncoded(byte) {
16330
+ return `%${byte.toString(16).toUpperCase().padStart(2, "0")}`;
16331
+ }
16328
16332
  function encodeBlockId(id) {
16329
- let encoded = "";
16330
- for (const character of id) {
16331
- for (const byte of encoder.encode(character)) {
16332
- const bare = byte >= 48 && byte <= 57 || byte >= 65 && byte <= 90 || byte >= 97 && byte <= 122 || byte === 45;
16333
- encoded += bare ? String.fromCharCode(byte) : `%${byte.toString(16).toUpperCase().padStart(2, "0")}`;
16333
+ const start = id.search(NONPLAIN_CHARACTER);
16334
+ if (start === -1)
16335
+ return id;
16336
+ let encoded = id.slice(0, start);
16337
+ for (const character of id.slice(start)) {
16338
+ const code = character.charCodeAt(0);
16339
+ if (code >= 128) {
16340
+ for (const byte of encoder.encode(character))
16341
+ encoded += percentEncoded(byte);
16342
+ } else {
16343
+ encoded += NONPLAIN_CHARACTER.test(character) ? percentEncoded(code) : character;
16334
16344
  }
16335
16345
  }
16336
16346
  return encoded;
@@ -16949,6 +16959,14 @@ var DISPATCH_READING_SURFACES = [
16949
16959
  rendered: false,
16950
16960
  surface: "plan-task-line"
16951
16961
  },
16962
+ {
16963
+ files: ["packages/dispatch/web/src/features/issue-page/spec-filter/SpecFilterBody.tsx"],
16964
+ reach: "/issues/<ISSUE>/spec with the new issue page on, a decision cell or because line",
16965
+ reason: "The Spec view draws what decided a statement as one line of plain text with no markup: a decision's quote, the first sentence of the answer's or the decision's words, and the question an answer answers, each cut to one line by `specDecidedBy` (`spec-filter/spec-decided-by.ts`), which names each reference from the page's published names via `one-line.ts`'s `referenceStandIns` before the view draws the string, rather than mounting `PlainText` or `usePlainHeadline`. It passes no source record: the plain string reads no per-record question map for `#id` references and makes no per-record reads, drawing only from the page's published names.",
16966
+ record: false,
16967
+ rendered: false,
16968
+ surface: "spec-decision-line"
16969
+ },
16952
16970
  {
16953
16971
  files: [
16954
16972
  "packages/dispatch/web/src/features/doc/ApprovalChip.tsx",
@@ -19376,6 +19394,8 @@ var SESSION_LIVE_WINDOW_MS = 300000;
19376
19394
  var LISTENER_CALL_TIMEOUT_MS = 5000;
19377
19395
  var LISTENER_CALL_RETRY_DELAY_MS = 250;
19378
19396
  var LISTENER_CALL_ATTEMPTS = 2;
19397
+ var LISTENER_CALL_BUDGET_MS = LISTENER_CALL_ATTEMPTS * LISTENER_CALL_TIMEOUT_MS + (LISTENER_CALL_ATTEMPTS - 1) * LISTENER_CALL_RETRY_DELAY_MS;
19398
+ var THIRD_REFRESH_DONE_MS = 3 * SESSION_HEARTBEAT_MS + LISTENER_CALL_BUDGET_MS;
19379
19399
  var BUS_UNANSWERED_PREFIX = "envoy: the message bus did not answer";
19380
19400
  // ../contracts/src/related-forms.ts
19381
19401
  function relatedCheckFormOf(suggestions) {
package/dist/dispatch.js CHANGED
@@ -16925,12 +16925,22 @@ function itemFromSearch(search) {
16925
16925
 
16926
16926
  // ../contracts/src/dispatch-block-ref.ts
16927
16927
  var encoder = new TextEncoder;
16928
+ var NONPLAIN_CHARACTER = /[^A-Za-z0-9-]/u;
16929
+ function percentEncoded(byte) {
16930
+ return `%${byte.toString(16).toUpperCase().padStart(2, "0")}`;
16931
+ }
16928
16932
  function encodeBlockId(id) {
16929
- let encoded = "";
16930
- for (const character of id) {
16931
- for (const byte of encoder.encode(character)) {
16932
- const bare = byte >= 48 && byte <= 57 || byte >= 65 && byte <= 90 || byte >= 97 && byte <= 122 || byte === 45;
16933
- encoded += bare ? String.fromCharCode(byte) : `%${byte.toString(16).toUpperCase().padStart(2, "0")}`;
16933
+ const start = id.search(NONPLAIN_CHARACTER);
16934
+ if (start === -1)
16935
+ return id;
16936
+ let encoded = id.slice(0, start);
16937
+ for (const character of id.slice(start)) {
16938
+ const code = character.charCodeAt(0);
16939
+ if (code >= 128) {
16940
+ for (const byte of encoder.encode(character))
16941
+ encoded += percentEncoded(byte);
16942
+ } else {
16943
+ encoded += NONPLAIN_CHARACTER.test(character) ? percentEncoded(code) : character;
16934
16944
  }
16935
16945
  }
16936
16946
  return encoded;
@@ -17549,6 +17559,14 @@ var DISPATCH_READING_SURFACES = [
17549
17559
  rendered: false,
17550
17560
  surface: "plan-task-line"
17551
17561
  },
17562
+ {
17563
+ files: ["packages/dispatch/web/src/features/issue-page/spec-filter/SpecFilterBody.tsx"],
17564
+ reach: "/issues/<ISSUE>/spec with the new issue page on, a decision cell or because line",
17565
+ reason: "The Spec view draws what decided a statement as one line of plain text with no markup: a decision's quote, the first sentence of the answer's or the decision's words, and the question an answer answers, each cut to one line by `specDecidedBy` (`spec-filter/spec-decided-by.ts`), which names each reference from the page's published names via `one-line.ts`'s `referenceStandIns` before the view draws the string, rather than mounting `PlainText` or `usePlainHeadline`. It passes no source record: the plain string reads no per-record question map for `#id` references and makes no per-record reads, drawing only from the page's published names.",
17566
+ record: false,
17567
+ rendered: false,
17568
+ surface: "spec-decision-line"
17569
+ },
17552
17570
  {
17553
17571
  files: [
17554
17572
  "packages/dispatch/web/src/features/doc/ApprovalChip.tsx",
@@ -19976,6 +19994,8 @@ var SESSION_LIVE_WINDOW_MS = 300000;
19976
19994
  var LISTENER_CALL_TIMEOUT_MS = 5000;
19977
19995
  var LISTENER_CALL_RETRY_DELAY_MS = 250;
19978
19996
  var LISTENER_CALL_ATTEMPTS = 2;
19997
+ var LISTENER_CALL_BUDGET_MS = LISTENER_CALL_ATTEMPTS * LISTENER_CALL_TIMEOUT_MS + (LISTENER_CALL_ATTEMPTS - 1) * LISTENER_CALL_RETRY_DELAY_MS;
19998
+ var THIRD_REFRESH_DONE_MS = 3 * SESSION_HEARTBEAT_MS + LISTENER_CALL_BUDGET_MS;
19979
19999
  var BUS_UNANSWERED_PREFIX = "envoy: the message bus did not answer";
19980
20000
  // ../contracts/src/related-forms.ts
19981
20001
  function relatedCheckFormOf(suggestions) {
@@ -39125,12 +39125,22 @@ function itemFromSearch(search) {
39125
39125
 
39126
39126
  // ../contracts/src/dispatch-block-ref.ts
39127
39127
  var encoder = new TextEncoder;
39128
+ var NONPLAIN_CHARACTER = /[^A-Za-z0-9-]/u;
39129
+ function percentEncoded(byte) {
39130
+ return `%${byte.toString(16).toUpperCase().padStart(2, "0")}`;
39131
+ }
39128
39132
  function encodeBlockId(id) {
39129
- let encoded = "";
39130
- for (const character of id) {
39131
- for (const byte of encoder.encode(character)) {
39132
- const bare = byte >= 48 && byte <= 57 || byte >= 65 && byte <= 90 || byte >= 97 && byte <= 122 || byte === 45;
39133
- encoded += bare ? String.fromCharCode(byte) : `%${byte.toString(16).toUpperCase().padStart(2, "0")}`;
39133
+ const start = id.search(NONPLAIN_CHARACTER);
39134
+ if (start === -1)
39135
+ return id;
39136
+ let encoded = id.slice(0, start);
39137
+ for (const character of id.slice(start)) {
39138
+ const code = character.charCodeAt(0);
39139
+ if (code >= 128) {
39140
+ for (const byte of encoder.encode(character))
39141
+ encoded += percentEncoded(byte);
39142
+ } else {
39143
+ encoded += NONPLAIN_CHARACTER.test(character) ? percentEncoded(code) : character;
39134
39144
  }
39135
39145
  }
39136
39146
  return encoded;
@@ -39749,6 +39759,14 @@ var DISPATCH_READING_SURFACES = [
39749
39759
  rendered: false,
39750
39760
  surface: "plan-task-line"
39751
39761
  },
39762
+ {
39763
+ files: ["packages/dispatch/web/src/features/issue-page/spec-filter/SpecFilterBody.tsx"],
39764
+ reach: "/issues/<ISSUE>/spec with the new issue page on, a decision cell or because line",
39765
+ reason: "The Spec view draws what decided a statement as one line of plain text with no markup: a decision's quote, the first sentence of the answer's or the decision's words, and the question an answer answers, each cut to one line by `specDecidedBy` (`spec-filter/spec-decided-by.ts`), which names each reference from the page's published names via `one-line.ts`'s `referenceStandIns` before the view draws the string, rather than mounting `PlainText` or `usePlainHeadline`. It passes no source record: the plain string reads no per-record question map for `#id` references and makes no per-record reads, drawing only from the page's published names.",
39766
+ record: false,
39767
+ rendered: false,
39768
+ surface: "spec-decision-line"
39769
+ },
39752
39770
  {
39753
39771
  files: [
39754
39772
  "packages/dispatch/web/src/features/doc/ApprovalChip.tsx",
@@ -42176,6 +42194,8 @@ var SESSION_LIVE_WINDOW_MS = 300000;
42176
42194
  var LISTENER_CALL_TIMEOUT_MS = 5000;
42177
42195
  var LISTENER_CALL_RETRY_DELAY_MS = 250;
42178
42196
  var LISTENER_CALL_ATTEMPTS = 2;
42197
+ var LISTENER_CALL_BUDGET_MS = LISTENER_CALL_ATTEMPTS * LISTENER_CALL_TIMEOUT_MS + (LISTENER_CALL_ATTEMPTS - 1) * LISTENER_CALL_RETRY_DELAY_MS;
42198
+ var THIRD_REFRESH_DONE_MS = 3 * SESSION_HEARTBEAT_MS + LISTENER_CALL_BUDGET_MS;
42179
42199
  var BUS_UNANSWERED_PREFIX = "envoy: the message bus did not answer";
42180
42200
  // ../contracts/src/related-forms.ts
42181
42201
  function relatedCheckFormOf(suggestions) {
@@ -67808,7 +67828,7 @@ var import_nats5 = __toESM(require_mod4(), 1);
67808
67828
 
67809
67829
  // package.json
67810
67830
  var name2 = "@sjawhar/claude-envoy";
67811
- var version2 = "6.21.1";
67831
+ var version2 = "6.22.0";
67812
67832
  var package_default = {
67813
67833
  name: name2,
67814
67834
  version: version2,
@@ -19912,12 +19912,22 @@ function itemFromSearch(search) {
19912
19912
 
19913
19913
  // ../contracts/src/dispatch-block-ref.ts
19914
19914
  var encoder3 = new TextEncoder;
19915
+ var NONPLAIN_CHARACTER = /[^A-Za-z0-9-]/u;
19916
+ function percentEncoded(byte) {
19917
+ return `%${byte.toString(16).toUpperCase().padStart(2, "0")}`;
19918
+ }
19915
19919
  function encodeBlockId(id) {
19916
- let encoded = "";
19917
- for (const character of id) {
19918
- for (const byte of encoder3.encode(character)) {
19919
- const bare = byte >= 48 && byte <= 57 || byte >= 65 && byte <= 90 || byte >= 97 && byte <= 122 || byte === 45;
19920
- encoded += bare ? String.fromCharCode(byte) : `%${byte.toString(16).toUpperCase().padStart(2, "0")}`;
19920
+ const start = id.search(NONPLAIN_CHARACTER);
19921
+ if (start === -1)
19922
+ return id;
19923
+ let encoded = id.slice(0, start);
19924
+ for (const character of id.slice(start)) {
19925
+ const code = character.charCodeAt(0);
19926
+ if (code >= 128) {
19927
+ for (const byte of encoder3.encode(character))
19928
+ encoded += percentEncoded(byte);
19929
+ } else {
19930
+ encoded += NONPLAIN_CHARACTER.test(character) ? percentEncoded(code) : character;
19921
19931
  }
19922
19932
  }
19923
19933
  return encoded;
@@ -20536,6 +20546,14 @@ var DISPATCH_READING_SURFACES = [
20536
20546
  rendered: false,
20537
20547
  surface: "plan-task-line"
20538
20548
  },
20549
+ {
20550
+ files: ["packages/dispatch/web/src/features/issue-page/spec-filter/SpecFilterBody.tsx"],
20551
+ reach: "/issues/<ISSUE>/spec with the new issue page on, a decision cell or because line",
20552
+ reason: "The Spec view draws what decided a statement as one line of plain text with no markup: a decision's quote, the first sentence of the answer's or the decision's words, and the question an answer answers, each cut to one line by `specDecidedBy` (`spec-filter/spec-decided-by.ts`), which names each reference from the page's published names via `one-line.ts`'s `referenceStandIns` before the view draws the string, rather than mounting `PlainText` or `usePlainHeadline`. It passes no source record: the plain string reads no per-record question map for `#id` references and makes no per-record reads, drawing only from the page's published names.",
20553
+ record: false,
20554
+ rendered: false,
20555
+ surface: "spec-decision-line"
20556
+ },
20539
20557
  {
20540
20558
  files: [
20541
20559
  "packages/dispatch/web/src/features/doc/ApprovalChip.tsx",
@@ -22963,6 +22981,8 @@ var SESSION_LIVE_WINDOW_MS = 300000;
22963
22981
  var LISTENER_CALL_TIMEOUT_MS = 5000;
22964
22982
  var LISTENER_CALL_RETRY_DELAY_MS = 250;
22965
22983
  var LISTENER_CALL_ATTEMPTS = 2;
22984
+ var LISTENER_CALL_BUDGET_MS = LISTENER_CALL_ATTEMPTS * LISTENER_CALL_TIMEOUT_MS + (LISTENER_CALL_ATTEMPTS - 1) * LISTENER_CALL_RETRY_DELAY_MS;
22985
+ var THIRD_REFRESH_DONE_MS = 3 * SESSION_HEARTBEAT_MS + LISTENER_CALL_BUDGET_MS;
22966
22986
  var BUS_UNANSWERED_PREFIX = "envoy: the message bus did not answer";
22967
22987
  // ../contracts/src/related-forms.ts
22968
22988
  function relatedCheckFormOf(suggestions) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/claude-envoy",
3
- "version": "6.21.1",
3
+ "version": "6.22.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Claude Code plugin for Legion's Envoy bus",
6
6
  "type": "module",