@sjawhar/claude-envoy 4.20.1 → 4.21.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": "4.20.1"
5
+ "version": "4.21.1"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-envoy",
3
- "version": "4.20.1",
3
+ "version": "4.21.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
  }
@@ -14706,7 +14706,7 @@ var dispatchToolSpecs = [
14706
14706
  name: "dispatch_artifact",
14707
14707
  example: { issue: "DSP-1", name: "design.md", content: `# Design
14708
14708
  ` },
14709
- description: "Attach a local file or inline text as an issue artifact or project document, or make an empty document from its name alone. Do not use it to edit a live document; use " + "dispatch doc-edit instead. Never upload a document's own name to change it (spec.md replaces the spec whole); edit it with dispatch doc-edit. " + `${ARTIFACT_SOURCE_RULE} ` + `${ARTIFACT_NAME_EXISTS_RULE} A call that stores nothing - no path, and content absent or blank - is refused under a held name even with force and a token, so a title typed twice never empties the document that holds it; that refusal names no token, since no token makes such a call one Dispatch takes. ` + "A markdown document is at most 1 MiB and any other file at most 25 MiB. " + "An upload that replaces a document the owner already holds under that name says which version it replaces: precondition.document takes the document token dispatch doc-read prints as `Document token: sha256:\u2026`, and an upload that names none is refused with 400 PRECONDITION_REQUIRED. A token behind the live document is refused with 409 PRECONDITION_FAILED. The refusal tells you to read the document again with dispatch doc-read, which prints the token the document carries now, and to upload again naming that token. A first upload under a name replaces no version, and a file that is not a document holds no token, so neither names one. " + `${ARTIFACT_CONTENT_NAME_RULE} ${ARTIFACT_STORED_TEXT_RULE} ` + "Markdown is also refused with 413 CAP_EXCEEDED when it makes more than 65,536 elements (a block weighs 3, and an empty list item, quote, footnote definition or typed block 3 more for the empty paragraph it holds; a table cell 4, a hard line break 3, an image 3, a piece of inline HTML 2, an autolink 2, a footnote reference 2; inline syntax, marks, lines of text and backslash escapes or character references 1 each), or when a new version would leave the document's stored markdown (what its text reads back as) longer than 1 MiB or making more than 65,536 elements, and longer or heavier than before; shorten it or split it across documents. " + "In a table row, write every | in a cell as \\|, in code too: a | after two backslashes ends the cell, and a row with more cells than its table is refused. " + "Markdown holding an ask block whose body breaks its content rule (one or more question paragraphs, then at most one bullet list of options, last) is refused with 400 INVALID_ASK_BLOCK; a new version of a document is held to it only for the asks it writes or changes. " + `${CI_CHECK_RULE} ` + `${OWNER_REFERENCE}`,
14709
+ description: "Attach a local file or inline text as an issue artifact or project document, or make an empty document from its name alone. Do not use it to edit a live document; use " + "dispatch doc-edit instead. Never upload a document's own name to change it (spec.md replaces the spec whole); edit it with dispatch doc-edit. " + `${ARTIFACT_SOURCE_RULE} ` + `${ARTIFACT_NAME_EXISTS_RULE} A call that stores nothing - no path, and content absent or blank - is refused under a held name even with force and a token, so a title typed twice never empties the document that holds it; that refusal names no token, since no token makes such a call one Dispatch takes. ` + "A markdown document is at most 1 MiB and any other file at most 25 MiB. " + "An upload that replaces a document the owner already holds under that name says which version it replaces: precondition.document takes the document token dispatch doc-read prints as `Document token: sha256:\u2026`, and Dispatch checks it under the write's own lock. An upload that names none is taken for now without a check, since older dispatch commands cannot name one; name the token wherever the command can, because a later release refuses an upload naming none with 400 PRECONDITION_REQUIRED. A token behind the live document is refused with 409 PRECONDITION_FAILED. The refusal tells you to read the document again with dispatch doc-read, which prints the token the document carries now, and to upload again naming that token. A first upload under a name replaces no version, and a file that is not a document holds no token, so neither names one. " + `${ARTIFACT_CONTENT_NAME_RULE} ${ARTIFACT_STORED_TEXT_RULE} ` + "Markdown is also refused with 413 CAP_EXCEEDED when it makes more than 65,536 elements (a block weighs 3, and an empty list item, quote, footnote definition or typed block 3 more for the empty paragraph it holds; a table cell 4, a hard line break 3, an image 3, a piece of inline HTML 2, an autolink 2, a footnote reference 2; inline syntax, marks, lines of text and backslash escapes or character references 1 each), or when a new version would leave the document's stored markdown (what its text reads back as) longer than 1 MiB or making more than 65,536 elements, and longer or heavier than before; shorten it or split it across documents. " + "In a table row, write every | in a cell as \\|, in code too: a | after two backslashes ends the cell, and a row with more cells than its table is refused. " + "Markdown holding an ask block whose body breaks its content rule (one or more question paragraphs, then at most one bullet list of options, last) is refused with 400 INVALID_ASK_BLOCK; a new version of a document is held to it only for the asks it writes or changes. " + `${CI_CHECK_RULE} ` + `${OWNER_REFERENCE}`,
14710
14710
  arguments: (z) => ({
14711
14711
  issue: z.string().describe(ISSUE_REFERENCE).optional(),
14712
14712
  project: z.string().describe("Project key for an unlinked document.").optional(),
@@ -15349,6 +15349,67 @@ var DispatchServerStartedPayloadSchema = strictObject({
15349
15349
  commit: string2().min(1),
15350
15350
  started_at: exports_iso.datetime()
15351
15351
  });
15352
+ var EVENT_TYPE_MEMBERS = {
15353
+ "architecture.sync_failed": true,
15354
+ "architecture.synced": true,
15355
+ "artifact.approved": true,
15356
+ "artifact.changes_requested": true,
15357
+ "artifact.created": true,
15358
+ "artifact.human_edited": true,
15359
+ "artifact.removed": true,
15360
+ "artifact.renamed": true,
15361
+ "artifact.version": true,
15362
+ "ask.anchor_refreshed": true,
15363
+ "ask.answered": true,
15364
+ "ask.asked_of": true,
15365
+ "ask.edited": true,
15366
+ "ask.follower_added": true,
15367
+ "ask.follower_removed": true,
15368
+ "ask.handed_back": true,
15369
+ "ask.opened": true,
15370
+ "ask.resolved": true,
15371
+ "block.invalid": true,
15372
+ "block.repaired": true,
15373
+ "child.added": true,
15374
+ "child.removed": true,
15375
+ "child.status": true,
15376
+ "comment.anchor_refreshed": true,
15377
+ "comment.answered": true,
15378
+ "comment.created": true,
15379
+ "comment.delivery": true,
15380
+ "comment.edited": true,
15381
+ "comment.reopened": true,
15382
+ "comment.resolved": true,
15383
+ "decision.kept": true,
15384
+ "handoff.recorded": true,
15385
+ "issue.claimed": true,
15386
+ "issue.closed": true,
15387
+ "issue.created": true,
15388
+ "issue.deployed": true,
15389
+ "issue.pull_request_attribution_changed": true,
15390
+ "issue.released": true,
15391
+ "issue.updated": true,
15392
+ "message.accepted": true,
15393
+ "message.answered": true,
15394
+ "message.created": true,
15395
+ "message.delivery": true,
15396
+ "priority.updated": true,
15397
+ "project.created": true,
15398
+ "project.updated": true,
15399
+ "result.recorded": true,
15400
+ "result.retracted": true,
15401
+ "settings.architecture_source.updated": true,
15402
+ "settings.project_default_assignee.updated": true,
15403
+ "settings.repo_project.updated": true,
15404
+ "subscription.remove_requested": true,
15405
+ "subscription.removed": true,
15406
+ "suggestion.accepted": true,
15407
+ "suggestion.rejected": true,
15408
+ "user_agent_state.updated": true,
15409
+ "user_state.updated": true,
15410
+ "user_thread_state.updated": true
15411
+ };
15412
+ var DISPATCH_EVENT_TYPES = Object.keys(EVENT_TYPE_MEMBERS).sort();
15352
15413
  var DispatchEventSchema = object({
15353
15414
  issue_key: string2().nullable(),
15354
15415
  artifact_id: string2().nullish(),
package/dist/dispatch.js CHANGED
@@ -16003,7 +16003,7 @@ var dispatchToolSpecs = [
16003
16003
  name: "dispatch_artifact",
16004
16004
  example: { issue: "DSP-1", name: "design.md", content: `# Design
16005
16005
  ` },
16006
- description: "Attach a local file or inline text as an issue artifact or project document, or make an empty document from its name alone. Do not use it to edit a live document; use " + "dispatch doc-edit instead. Never upload a document's own name to change it (spec.md replaces the spec whole); edit it with dispatch doc-edit. " + `${ARTIFACT_SOURCE_RULE} ` + `${ARTIFACT_NAME_EXISTS_RULE} A call that stores nothing - no path, and content absent or blank - is refused under a held name even with force and a token, so a title typed twice never empties the document that holds it; that refusal names no token, since no token makes such a call one Dispatch takes. ` + "A markdown document is at most 1 MiB and any other file at most 25 MiB. " + "An upload that replaces a document the owner already holds under that name says which version it replaces: precondition.document takes the document token dispatch doc-read prints as `Document token: sha256:\u2026`, and an upload that names none is refused with 400 PRECONDITION_REQUIRED. A token behind the live document is refused with 409 PRECONDITION_FAILED. The refusal tells you to read the document again with dispatch doc-read, which prints the token the document carries now, and to upload again naming that token. A first upload under a name replaces no version, and a file that is not a document holds no token, so neither names one. " + `${ARTIFACT_CONTENT_NAME_RULE} ${ARTIFACT_STORED_TEXT_RULE} ` + "Markdown is also refused with 413 CAP_EXCEEDED when it makes more than 65,536 elements (a block weighs 3, and an empty list item, quote, footnote definition or typed block 3 more for the empty paragraph it holds; a table cell 4, a hard line break 3, an image 3, a piece of inline HTML 2, an autolink 2, a footnote reference 2; inline syntax, marks, lines of text and backslash escapes or character references 1 each), or when a new version would leave the document's stored markdown (what its text reads back as) longer than 1 MiB or making more than 65,536 elements, and longer or heavier than before; shorten it or split it across documents. " + "In a table row, write every | in a cell as \\|, in code too: a | after two backslashes ends the cell, and a row with more cells than its table is refused. " + "Markdown holding an ask block whose body breaks its content rule (one or more question paragraphs, then at most one bullet list of options, last) is refused with 400 INVALID_ASK_BLOCK; a new version of a document is held to it only for the asks it writes or changes. " + `${CI_CHECK_RULE} ` + `${OWNER_REFERENCE}`,
16006
+ description: "Attach a local file or inline text as an issue artifact or project document, or make an empty document from its name alone. Do not use it to edit a live document; use " + "dispatch doc-edit instead. Never upload a document's own name to change it (spec.md replaces the spec whole); edit it with dispatch doc-edit. " + `${ARTIFACT_SOURCE_RULE} ` + `${ARTIFACT_NAME_EXISTS_RULE} A call that stores nothing - no path, and content absent or blank - is refused under a held name even with force and a token, so a title typed twice never empties the document that holds it; that refusal names no token, since no token makes such a call one Dispatch takes. ` + "A markdown document is at most 1 MiB and any other file at most 25 MiB. " + "An upload that replaces a document the owner already holds under that name says which version it replaces: precondition.document takes the document token dispatch doc-read prints as `Document token: sha256:\u2026`, and Dispatch checks it under the write's own lock. An upload that names none is taken for now without a check, since older dispatch commands cannot name one; name the token wherever the command can, because a later release refuses an upload naming none with 400 PRECONDITION_REQUIRED. A token behind the live document is refused with 409 PRECONDITION_FAILED. The refusal tells you to read the document again with dispatch doc-read, which prints the token the document carries now, and to upload again naming that token. A first upload under a name replaces no version, and a file that is not a document holds no token, so neither names one. " + `${ARTIFACT_CONTENT_NAME_RULE} ${ARTIFACT_STORED_TEXT_RULE} ` + "Markdown is also refused with 413 CAP_EXCEEDED when it makes more than 65,536 elements (a block weighs 3, and an empty list item, quote, footnote definition or typed block 3 more for the empty paragraph it holds; a table cell 4, a hard line break 3, an image 3, a piece of inline HTML 2, an autolink 2, a footnote reference 2; inline syntax, marks, lines of text and backslash escapes or character references 1 each), or when a new version would leave the document's stored markdown (what its text reads back as) longer than 1 MiB or making more than 65,536 elements, and longer or heavier than before; shorten it or split it across documents. " + "In a table row, write every | in a cell as \\|, in code too: a | after two backslashes ends the cell, and a row with more cells than its table is refused. " + "Markdown holding an ask block whose body breaks its content rule (one or more question paragraphs, then at most one bullet list of options, last) is refused with 400 INVALID_ASK_BLOCK; a new version of a document is held to it only for the asks it writes or changes. " + `${CI_CHECK_RULE} ` + `${OWNER_REFERENCE}`,
16007
16007
  arguments: (z) => ({
16008
16008
  issue: z.string().describe(ISSUE_REFERENCE).optional(),
16009
16009
  project: z.string().describe("Project key for an unlinked document.").optional(),
@@ -16646,6 +16646,67 @@ var DispatchServerStartedPayloadSchema = strictObject({
16646
16646
  commit: string2().min(1),
16647
16647
  started_at: exports_iso.datetime()
16648
16648
  });
16649
+ var EVENT_TYPE_MEMBERS = {
16650
+ "architecture.sync_failed": true,
16651
+ "architecture.synced": true,
16652
+ "artifact.approved": true,
16653
+ "artifact.changes_requested": true,
16654
+ "artifact.created": true,
16655
+ "artifact.human_edited": true,
16656
+ "artifact.removed": true,
16657
+ "artifact.renamed": true,
16658
+ "artifact.version": true,
16659
+ "ask.anchor_refreshed": true,
16660
+ "ask.answered": true,
16661
+ "ask.asked_of": true,
16662
+ "ask.edited": true,
16663
+ "ask.follower_added": true,
16664
+ "ask.follower_removed": true,
16665
+ "ask.handed_back": true,
16666
+ "ask.opened": true,
16667
+ "ask.resolved": true,
16668
+ "block.invalid": true,
16669
+ "block.repaired": true,
16670
+ "child.added": true,
16671
+ "child.removed": true,
16672
+ "child.status": true,
16673
+ "comment.anchor_refreshed": true,
16674
+ "comment.answered": true,
16675
+ "comment.created": true,
16676
+ "comment.delivery": true,
16677
+ "comment.edited": true,
16678
+ "comment.reopened": true,
16679
+ "comment.resolved": true,
16680
+ "decision.kept": true,
16681
+ "handoff.recorded": true,
16682
+ "issue.claimed": true,
16683
+ "issue.closed": true,
16684
+ "issue.created": true,
16685
+ "issue.deployed": true,
16686
+ "issue.pull_request_attribution_changed": true,
16687
+ "issue.released": true,
16688
+ "issue.updated": true,
16689
+ "message.accepted": true,
16690
+ "message.answered": true,
16691
+ "message.created": true,
16692
+ "message.delivery": true,
16693
+ "priority.updated": true,
16694
+ "project.created": true,
16695
+ "project.updated": true,
16696
+ "result.recorded": true,
16697
+ "result.retracted": true,
16698
+ "settings.architecture_source.updated": true,
16699
+ "settings.project_default_assignee.updated": true,
16700
+ "settings.repo_project.updated": true,
16701
+ "subscription.remove_requested": true,
16702
+ "subscription.removed": true,
16703
+ "suggestion.accepted": true,
16704
+ "suggestion.rejected": true,
16705
+ "user_agent_state.updated": true,
16706
+ "user_state.updated": true,
16707
+ "user_thread_state.updated": true
16708
+ };
16709
+ var DISPATCH_EVENT_TYPES = Object.keys(EVENT_TYPE_MEMBERS).sort();
16649
16710
  var DispatchEventSchema = object({
16650
16711
  issue_key: string2().nullable(),
16651
16712
  artifact_id: string2().nullish(),
@@ -37506,7 +37506,7 @@ var dispatchToolSpecs = [
37506
37506
  name: "dispatch_artifact",
37507
37507
  example: { issue: "DSP-1", name: "design.md", content: `# Design
37508
37508
  ` },
37509
- description: "Attach a local file or inline text as an issue artifact or project document, or make an empty document from its name alone. Do not use it to edit a live document; use " + "dispatch doc-edit instead. Never upload a document's own name to change it (spec.md replaces the spec whole); edit it with dispatch doc-edit. " + `${ARTIFACT_SOURCE_RULE} ` + `${ARTIFACT_NAME_EXISTS_RULE} A call that stores nothing - no path, and content absent or blank - is refused under a held name even with force and a token, so a title typed twice never empties the document that holds it; that refusal names no token, since no token makes such a call one Dispatch takes. ` + "A markdown document is at most 1 MiB and any other file at most 25 MiB. " + "An upload that replaces a document the owner already holds under that name says which version it replaces: precondition.document takes the document token dispatch doc-read prints as `Document token: sha256:\u2026`, and an upload that names none is refused with 400 PRECONDITION_REQUIRED. A token behind the live document is refused with 409 PRECONDITION_FAILED. The refusal tells you to read the document again with dispatch doc-read, which prints the token the document carries now, and to upload again naming that token. A first upload under a name replaces no version, and a file that is not a document holds no token, so neither names one. " + `${ARTIFACT_CONTENT_NAME_RULE} ${ARTIFACT_STORED_TEXT_RULE} ` + "Markdown is also refused with 413 CAP_EXCEEDED when it makes more than 65,536 elements (a block weighs 3, and an empty list item, quote, footnote definition or typed block 3 more for the empty paragraph it holds; a table cell 4, a hard line break 3, an image 3, a piece of inline HTML 2, an autolink 2, a footnote reference 2; inline syntax, marks, lines of text and backslash escapes or character references 1 each), or when a new version would leave the document's stored markdown (what its text reads back as) longer than 1 MiB or making more than 65,536 elements, and longer or heavier than before; shorten it or split it across documents. " + "In a table row, write every | in a cell as \\|, in code too: a | after two backslashes ends the cell, and a row with more cells than its table is refused. " + "Markdown holding an ask block whose body breaks its content rule (one or more question paragraphs, then at most one bullet list of options, last) is refused with 400 INVALID_ASK_BLOCK; a new version of a document is held to it only for the asks it writes or changes. " + `${CI_CHECK_RULE} ` + `${OWNER_REFERENCE}`,
37509
+ description: "Attach a local file or inline text as an issue artifact or project document, or make an empty document from its name alone. Do not use it to edit a live document; use " + "dispatch doc-edit instead. Never upload a document's own name to change it (spec.md replaces the spec whole); edit it with dispatch doc-edit. " + `${ARTIFACT_SOURCE_RULE} ` + `${ARTIFACT_NAME_EXISTS_RULE} A call that stores nothing - no path, and content absent or blank - is refused under a held name even with force and a token, so a title typed twice never empties the document that holds it; that refusal names no token, since no token makes such a call one Dispatch takes. ` + "A markdown document is at most 1 MiB and any other file at most 25 MiB. " + "An upload that replaces a document the owner already holds under that name says which version it replaces: precondition.document takes the document token dispatch doc-read prints as `Document token: sha256:\u2026`, and Dispatch checks it under the write's own lock. An upload that names none is taken for now without a check, since older dispatch commands cannot name one; name the token wherever the command can, because a later release refuses an upload naming none with 400 PRECONDITION_REQUIRED. A token behind the live document is refused with 409 PRECONDITION_FAILED. The refusal tells you to read the document again with dispatch doc-read, which prints the token the document carries now, and to upload again naming that token. A first upload under a name replaces no version, and a file that is not a document holds no token, so neither names one. " + `${ARTIFACT_CONTENT_NAME_RULE} ${ARTIFACT_STORED_TEXT_RULE} ` + "Markdown is also refused with 413 CAP_EXCEEDED when it makes more than 65,536 elements (a block weighs 3, and an empty list item, quote, footnote definition or typed block 3 more for the empty paragraph it holds; a table cell 4, a hard line break 3, an image 3, a piece of inline HTML 2, an autolink 2, a footnote reference 2; inline syntax, marks, lines of text and backslash escapes or character references 1 each), or when a new version would leave the document's stored markdown (what its text reads back as) longer than 1 MiB or making more than 65,536 elements, and longer or heavier than before; shorten it or split it across documents. " + "In a table row, write every | in a cell as \\|, in code too: a | after two backslashes ends the cell, and a row with more cells than its table is refused. " + "Markdown holding an ask block whose body breaks its content rule (one or more question paragraphs, then at most one bullet list of options, last) is refused with 400 INVALID_ASK_BLOCK; a new version of a document is held to it only for the asks it writes or changes. " + `${CI_CHECK_RULE} ` + `${OWNER_REFERENCE}`,
37510
37510
  arguments: (z) => ({
37511
37511
  issue: z.string().describe(ISSUE_REFERENCE).optional(),
37512
37512
  project: z.string().describe("Project key for an unlinked document.").optional(),
@@ -38149,6 +38149,67 @@ var DispatchServerStartedPayloadSchema = strictObject({
38149
38149
  commit: string2().min(1),
38150
38150
  started_at: exports_iso.datetime()
38151
38151
  });
38152
+ var EVENT_TYPE_MEMBERS = {
38153
+ "architecture.sync_failed": true,
38154
+ "architecture.synced": true,
38155
+ "artifact.approved": true,
38156
+ "artifact.changes_requested": true,
38157
+ "artifact.created": true,
38158
+ "artifact.human_edited": true,
38159
+ "artifact.removed": true,
38160
+ "artifact.renamed": true,
38161
+ "artifact.version": true,
38162
+ "ask.anchor_refreshed": true,
38163
+ "ask.answered": true,
38164
+ "ask.asked_of": true,
38165
+ "ask.edited": true,
38166
+ "ask.follower_added": true,
38167
+ "ask.follower_removed": true,
38168
+ "ask.handed_back": true,
38169
+ "ask.opened": true,
38170
+ "ask.resolved": true,
38171
+ "block.invalid": true,
38172
+ "block.repaired": true,
38173
+ "child.added": true,
38174
+ "child.removed": true,
38175
+ "child.status": true,
38176
+ "comment.anchor_refreshed": true,
38177
+ "comment.answered": true,
38178
+ "comment.created": true,
38179
+ "comment.delivery": true,
38180
+ "comment.edited": true,
38181
+ "comment.reopened": true,
38182
+ "comment.resolved": true,
38183
+ "decision.kept": true,
38184
+ "handoff.recorded": true,
38185
+ "issue.claimed": true,
38186
+ "issue.closed": true,
38187
+ "issue.created": true,
38188
+ "issue.deployed": true,
38189
+ "issue.pull_request_attribution_changed": true,
38190
+ "issue.released": true,
38191
+ "issue.updated": true,
38192
+ "message.accepted": true,
38193
+ "message.answered": true,
38194
+ "message.created": true,
38195
+ "message.delivery": true,
38196
+ "priority.updated": true,
38197
+ "project.created": true,
38198
+ "project.updated": true,
38199
+ "result.recorded": true,
38200
+ "result.retracted": true,
38201
+ "settings.architecture_source.updated": true,
38202
+ "settings.project_default_assignee.updated": true,
38203
+ "settings.repo_project.updated": true,
38204
+ "subscription.remove_requested": true,
38205
+ "subscription.removed": true,
38206
+ "suggestion.accepted": true,
38207
+ "suggestion.rejected": true,
38208
+ "user_agent_state.updated": true,
38209
+ "user_state.updated": true,
38210
+ "user_thread_state.updated": true
38211
+ };
38212
+ var DISPATCH_EVENT_TYPES = Object.keys(EVENT_TYPE_MEMBERS).sort();
38152
38213
  var DispatchEventSchema = object({
38153
38214
  issue_key: string2().nullable(),
38154
38215
  artifact_id: string2().nullish(),
@@ -57964,7 +58025,7 @@ var import_nats5 = __toESM(require_mod4(), 1);
57964
58025
 
57965
58026
  // package.json
57966
58027
  var name2 = "@sjawhar/claude-envoy";
57967
- var version2 = "4.20.1";
58028
+ var version2 = "4.21.1";
57968
58029
  var legion = {
57969
58030
  daemonApiVersion: 202
57970
58031
  };
@@ -14910,7 +14910,7 @@ var dispatchToolSpecs = [
14910
14910
  name: "dispatch_artifact",
14911
14911
  example: { issue: "DSP-1", name: "design.md", content: `# Design
14912
14912
  ` },
14913
- description: "Attach a local file or inline text as an issue artifact or project document, or make an empty document from its name alone. Do not use it to edit a live document; use " + "dispatch doc-edit instead. Never upload a document's own name to change it (spec.md replaces the spec whole); edit it with dispatch doc-edit. " + `${ARTIFACT_SOURCE_RULE} ` + `${ARTIFACT_NAME_EXISTS_RULE} A call that stores nothing - no path, and content absent or blank - is refused under a held name even with force and a token, so a title typed twice never empties the document that holds it; that refusal names no token, since no token makes such a call one Dispatch takes. ` + "A markdown document is at most 1 MiB and any other file at most 25 MiB. " + "An upload that replaces a document the owner already holds under that name says which version it replaces: precondition.document takes the document token dispatch doc-read prints as `Document token: sha256:\u2026`, and an upload that names none is refused with 400 PRECONDITION_REQUIRED. A token behind the live document is refused with 409 PRECONDITION_FAILED. The refusal tells you to read the document again with dispatch doc-read, which prints the token the document carries now, and to upload again naming that token. A first upload under a name replaces no version, and a file that is not a document holds no token, so neither names one. " + `${ARTIFACT_CONTENT_NAME_RULE} ${ARTIFACT_STORED_TEXT_RULE} ` + "Markdown is also refused with 413 CAP_EXCEEDED when it makes more than 65,536 elements (a block weighs 3, and an empty list item, quote, footnote definition or typed block 3 more for the empty paragraph it holds; a table cell 4, a hard line break 3, an image 3, a piece of inline HTML 2, an autolink 2, a footnote reference 2; inline syntax, marks, lines of text and backslash escapes or character references 1 each), or when a new version would leave the document's stored markdown (what its text reads back as) longer than 1 MiB or making more than 65,536 elements, and longer or heavier than before; shorten it or split it across documents. " + "In a table row, write every | in a cell as \\|, in code too: a | after two backslashes ends the cell, and a row with more cells than its table is refused. " + "Markdown holding an ask block whose body breaks its content rule (one or more question paragraphs, then at most one bullet list of options, last) is refused with 400 INVALID_ASK_BLOCK; a new version of a document is held to it only for the asks it writes or changes. " + `${CI_CHECK_RULE} ` + `${OWNER_REFERENCE}`,
14913
+ description: "Attach a local file or inline text as an issue artifact or project document, or make an empty document from its name alone. Do not use it to edit a live document; use " + "dispatch doc-edit instead. Never upload a document's own name to change it (spec.md replaces the spec whole); edit it with dispatch doc-edit. " + `${ARTIFACT_SOURCE_RULE} ` + `${ARTIFACT_NAME_EXISTS_RULE} A call that stores nothing - no path, and content absent or blank - is refused under a held name even with force and a token, so a title typed twice never empties the document that holds it; that refusal names no token, since no token makes such a call one Dispatch takes. ` + "A markdown document is at most 1 MiB and any other file at most 25 MiB. " + "An upload that replaces a document the owner already holds under that name says which version it replaces: precondition.document takes the document token dispatch doc-read prints as `Document token: sha256:\u2026`, and Dispatch checks it under the write's own lock. An upload that names none is taken for now without a check, since older dispatch commands cannot name one; name the token wherever the command can, because a later release refuses an upload naming none with 400 PRECONDITION_REQUIRED. A token behind the live document is refused with 409 PRECONDITION_FAILED. The refusal tells you to read the document again with dispatch doc-read, which prints the token the document carries now, and to upload again naming that token. A first upload under a name replaces no version, and a file that is not a document holds no token, so neither names one. " + `${ARTIFACT_CONTENT_NAME_RULE} ${ARTIFACT_STORED_TEXT_RULE} ` + "Markdown is also refused with 413 CAP_EXCEEDED when it makes more than 65,536 elements (a block weighs 3, and an empty list item, quote, footnote definition or typed block 3 more for the empty paragraph it holds; a table cell 4, a hard line break 3, an image 3, a piece of inline HTML 2, an autolink 2, a footnote reference 2; inline syntax, marks, lines of text and backslash escapes or character references 1 each), or when a new version would leave the document's stored markdown (what its text reads back as) longer than 1 MiB or making more than 65,536 elements, and longer or heavier than before; shorten it or split it across documents. " + "In a table row, write every | in a cell as \\|, in code too: a | after two backslashes ends the cell, and a row with more cells than its table is refused. " + "Markdown holding an ask block whose body breaks its content rule (one or more question paragraphs, then at most one bullet list of options, last) is refused with 400 INVALID_ASK_BLOCK; a new version of a document is held to it only for the asks it writes or changes. " + `${CI_CHECK_RULE} ` + `${OWNER_REFERENCE}`,
14914
14914
  arguments: (z) => ({
14915
14915
  issue: z.string().describe(ISSUE_REFERENCE).optional(),
14916
14916
  project: z.string().describe("Project key for an unlinked document.").optional(),
@@ -15553,6 +15553,67 @@ var DispatchServerStartedPayloadSchema = strictObject({
15553
15553
  commit: string2().min(1),
15554
15554
  started_at: exports_iso.datetime()
15555
15555
  });
15556
+ var EVENT_TYPE_MEMBERS = {
15557
+ "architecture.sync_failed": true,
15558
+ "architecture.synced": true,
15559
+ "artifact.approved": true,
15560
+ "artifact.changes_requested": true,
15561
+ "artifact.created": true,
15562
+ "artifact.human_edited": true,
15563
+ "artifact.removed": true,
15564
+ "artifact.renamed": true,
15565
+ "artifact.version": true,
15566
+ "ask.anchor_refreshed": true,
15567
+ "ask.answered": true,
15568
+ "ask.asked_of": true,
15569
+ "ask.edited": true,
15570
+ "ask.follower_added": true,
15571
+ "ask.follower_removed": true,
15572
+ "ask.handed_back": true,
15573
+ "ask.opened": true,
15574
+ "ask.resolved": true,
15575
+ "block.invalid": true,
15576
+ "block.repaired": true,
15577
+ "child.added": true,
15578
+ "child.removed": true,
15579
+ "child.status": true,
15580
+ "comment.anchor_refreshed": true,
15581
+ "comment.answered": true,
15582
+ "comment.created": true,
15583
+ "comment.delivery": true,
15584
+ "comment.edited": true,
15585
+ "comment.reopened": true,
15586
+ "comment.resolved": true,
15587
+ "decision.kept": true,
15588
+ "handoff.recorded": true,
15589
+ "issue.claimed": true,
15590
+ "issue.closed": true,
15591
+ "issue.created": true,
15592
+ "issue.deployed": true,
15593
+ "issue.pull_request_attribution_changed": true,
15594
+ "issue.released": true,
15595
+ "issue.updated": true,
15596
+ "message.accepted": true,
15597
+ "message.answered": true,
15598
+ "message.created": true,
15599
+ "message.delivery": true,
15600
+ "priority.updated": true,
15601
+ "project.created": true,
15602
+ "project.updated": true,
15603
+ "result.recorded": true,
15604
+ "result.retracted": true,
15605
+ "settings.architecture_source.updated": true,
15606
+ "settings.project_default_assignee.updated": true,
15607
+ "settings.repo_project.updated": true,
15608
+ "subscription.remove_requested": true,
15609
+ "subscription.removed": true,
15610
+ "suggestion.accepted": true,
15611
+ "suggestion.rejected": true,
15612
+ "user_agent_state.updated": true,
15613
+ "user_state.updated": true,
15614
+ "user_thread_state.updated": true
15615
+ };
15616
+ var DISPATCH_EVENT_TYPES = Object.keys(EVENT_TYPE_MEMBERS).sort();
15556
15617
  var DispatchEventSchema = object({
15557
15618
  issue_key: string2().nullable(),
15558
15619
  artifact_id: string2().nullish(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/claude-envoy",
3
- "version": "4.20.1",
3
+ "version": "4.21.1",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Claude Code plugin for Legion's Envoy bus",
6
6
  "type": "module",