@sjawhar/claude-envoy 1.40.0 → 1.40.1

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.0"
5
+ "version": "1.40.1"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-envoy",
3
- "version": "1.40.0",
3
+ "version": "1.40.1",
4
4
  "description": "Put Envoy events into the Claude Code session's own conversation and expose Envoy MCP tools.",
5
5
  "mcpServers": {}
6
6
  }
package/dist/dispatch.js CHANGED
@@ -15226,7 +15226,7 @@ function imagesArgument(z, owner) {
15226
15226
  var ASK_URGENCIES = ["low", "med", "high", "blocking"];
15227
15227
  var DISPATCH_BLOCK_UNITS = 32000;
15228
15228
  var DISPATCH_ITEM_BLOCKS = 32768;
15229
- var BODY_BLOCK_RULE = `Each block (a paragraph, list, quote, table or code block) holds at most ${DISPATCH_BLOCK_UNITS} ` + `characters and a body at most ${DISPATCH_ITEM_BLOCKS} blocks; Dispatch refuses a longer one and ` + "names it, and `dispatch limits` prints the bounds.";
15229
+ var BODY_BLOCK_RULE = `Each block (a paragraph, list, quote, table or code block) holds at most ${DISPATCH_BLOCK_UNITS} ` + `characters and a body at most ${DISPATCH_ITEM_BLOCKS} blocks; Dispatch refuses a longer one and ` + "names it, and `dispatch limits` prints the bounds. A body holding a decision block (`:::ask`) " + "is refused however short it is, since nobody can answer a question put in a comment or a " + "message: ask the question in the issue's own document, as a decision block there, or open an " + "ask with `dispatch ask`.";
15230
15230
  var ASK_BOUND_RULE = "Dispatch bounds an ask's question and its options together, refuses a longer one and names " + "the bound, and `dispatch limits` prints it. An ask is short and asks one thing; its reasoning " + "goes in the document, not in the question.";
15231
15231
  var DISPATCH_HANDOFF_BODY_MAX = 262144;
15232
15232
  var HANDOFF_PHASE_PATTERN = /^[a-z][a-z0-9-]{0,31}$/;
@@ -36875,7 +36875,7 @@ function imagesArgument(z, owner) {
36875
36875
  var ASK_URGENCIES = ["low", "med", "high", "blocking"];
36876
36876
  var DISPATCH_BLOCK_UNITS = 32000;
36877
36877
  var DISPATCH_ITEM_BLOCKS = 32768;
36878
- var BODY_BLOCK_RULE = `Each block (a paragraph, list, quote, table or code block) holds at most ${DISPATCH_BLOCK_UNITS} ` + `characters and a body at most ${DISPATCH_ITEM_BLOCKS} blocks; Dispatch refuses a longer one and ` + "names it, and `dispatch limits` prints the bounds.";
36878
+ var BODY_BLOCK_RULE = `Each block (a paragraph, list, quote, table or code block) holds at most ${DISPATCH_BLOCK_UNITS} ` + `characters and a body at most ${DISPATCH_ITEM_BLOCKS} blocks; Dispatch refuses a longer one and ` + "names it, and `dispatch limits` prints the bounds. A body holding a decision block (`:::ask`) " + "is refused however short it is, since nobody can answer a question put in a comment or a " + "message: ask the question in the issue's own document, as a decision block there, or open an " + "ask with `dispatch ask`.";
36879
36879
  var ASK_BOUND_RULE = "Dispatch bounds an ask's question and its options together, refuses a longer one and names " + "the bound, and `dispatch limits` prints it. An ask is short and asks one thing; its reasoning " + "goes in the document, not in the question.";
36880
36880
  var DISPATCH_HANDOFF_BODY_MAX = 262144;
36881
36881
  var HANDOFF_PHASE_PATTERN = /^[a-z][a-z0-9-]{0,31}$/;
@@ -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.0";
55501
+ var version2 = "1.40.1";
55502
55502
  var legion = {
55503
55503
  daemonApiVersion: 68
55504
55504
  };
@@ -14225,7 +14225,7 @@ function imagesArgument(z, owner) {
14225
14225
  var ASK_URGENCIES = ["low", "med", "high", "blocking"];
14226
14226
  var DISPATCH_BLOCK_UNITS = 32000;
14227
14227
  var DISPATCH_ITEM_BLOCKS = 32768;
14228
- var BODY_BLOCK_RULE = `Each block (a paragraph, list, quote, table or code block) holds at most ${DISPATCH_BLOCK_UNITS} ` + `characters and a body at most ${DISPATCH_ITEM_BLOCKS} blocks; Dispatch refuses a longer one and ` + "names it, and `dispatch limits` prints the bounds.";
14228
+ var BODY_BLOCK_RULE = `Each block (a paragraph, list, quote, table or code block) holds at most ${DISPATCH_BLOCK_UNITS} ` + `characters and a body at most ${DISPATCH_ITEM_BLOCKS} blocks; Dispatch refuses a longer one and ` + "names it, and `dispatch limits` prints the bounds. A body holding a decision block (`:::ask`) " + "is refused however short it is, since nobody can answer a question put in a comment or a " + "message: ask the question in the issue's own document, as a decision block there, or open an " + "ask with `dispatch ask`.";
14229
14229
  var ASK_BOUND_RULE = "Dispatch bounds an ask's question and its options together, refuses a longer one and names " + "the bound, and `dispatch limits` prints it. An ask is short and asks one thing; its reasoning " + "goes in the document, not in the question.";
14230
14230
  var DISPATCH_HANDOFF_BODY_MAX = 262144;
14231
14231
  var HANDOFF_PHASE_PATTERN = /^[a-z][a-z0-9-]{0,31}$/;
@@ -81,6 +81,12 @@ carries them — `close_root` answers `CLOSE_REASON_TOO_LONG` and `handoff_compl
81
81
  `READY_PACKET_TOO_LONG`, each naming the bound and how far over the text is — so this notice is a
82
82
  refusal those checks did not predict.
83
83
 
84
+ Those two calls also answer `CLOSE_REASON_DECISION_BLOCK` and `READY_PACKET_DECISION_BLOCK` for a
85
+ text holding a decision block (`:::ask{…}`). Such a text is refused however short it is, because
86
+ a question put in a message is one nobody can answer where it stands. The question belongs in the
87
+ issue's own document, as a decision block there, or in an ask opened with `dispatch ask`; the
88
+ close reason or the packet then goes again with the decision stated.
89
+
84
90
  On a status write the daemon writes the status all the same, retrying it on the row's backoff
85
91
  until Dispatch takes it, so the status is set unless Dispatch refused the status itself — the
86
92
  reason says which. With the status set, only the reason beside it is on no issue: the issue's
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/claude-envoy",
3
- "version": "1.40.0",
3
+ "version": "1.40.1",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Claude Code plugin for Legion's Envoy bus",
6
6
  "type": "module",
@@ -10,13 +10,13 @@ Dispatch is a record for the people who decide, never a log of your work.
10
10
  - Use the `dispatch` command; the HTTP API only for what no command does. `dispatch <command> --help` gives its rules and an example.
11
11
  - Put long text on stdin: `--<field>-file -` with a quoted here-document (`<<'EOF'`); give object and list fields as JSON.
12
12
  - Exit 1 is a refusal, 2 a usage error. A refusal lists every problem: fix all, call once.
13
- - A Dispatch command hard to use, or storing or losing something wrongly, is a defect to report, not work around: open an issue in the owning project's code and tell that project's controller; a Legion role tells its architect (`skill://legion-worker/references/findings.md`).
13
+ - A command hard to use, or storing or losing something wrongly, is a defect to report, not work around: open an issue in the owning project's code and tell its controller; a Legion role tells its architect (`skill://legion-worker/references/findings.md`).
14
14
 
15
15
  ## Asks and ask blocks
16
16
 
17
17
  - An ask is a question for a person, never a request to another agent. Ask an agent by envoy_send or a comment on the issue.
18
18
  - An ask waits on the issue's assignee until a person hands it on. No agent can hand one on.
19
- - A design question a document records is an ask block at the end of its section:
19
+ - A design question a document records is an ask block ending its section:
20
20
 
21
21
  ```md
22
22
  :::ask{urgency="med"}
@@ -27,6 +27,7 @@ The question and the recommendation (`skill://dispatch-writing-specs`).
27
27
  :::
28
28
  ```
29
29
 
30
+ - A decision block in a comment, message or close reason is refused: ask in the issue's document, or `dispatch ask`.
30
31
  - Never repeat an open ask in a message.
31
32
  - Change an open ask's block with `dispatch edit-ask` (its ask id), or `doc-edit`'s `replace` or `move` (its block id). An answered ask is fixed: ask anew. `dispatch read --ref` takes either id.
32
33
  - Reply on an open ask with `dispatch comment --reply-to-ask`; `--turn agent` (a progress note) needs it. An approval request a newer version moved needs `request-approval` again.
@@ -28,7 +28,7 @@ dispatch search --query 'reviewer threads OR review comments'
28
28
 
29
29
  ## Research before you ask
30
30
 
31
- - Research when a file, command or document can show the answer (a pattern, a convention, a solved problem, a technical approach).
31
+ - Research when a file, command or document can show the answer.
32
32
  - Ask a person only for what their authority, taste or risk appetite settles, because no file holds that. Where a file records the decision, cite it (`file:line`) and follow it; ask again only when the facts it rested on changed.
33
33
  - Say what you searched: each part you found with its source, and each part you did not, with the queries you ran. Ask only the part no search answered.
34
34