@sjawhar/pi-legion-envoy 5.30.8 → 5.30.10

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.
package/dist/envoy.js CHANGED
@@ -29918,6 +29918,9 @@ function claimHolds(claim, titles) {
29918
29918
  return titles.has(claim.actor.id) ? "holds" : "lapsed";
29919
29919
  }
29920
29920
  // ../contracts/src/dispatch-href.ts
29921
+ function hasControlCharacter(value) {
29922
+ return /\p{Cc}/u.test(value);
29923
+ }
29921
29924
  function itemFromSearch(search) {
29922
29925
  const params = new URLSearchParams(search);
29923
29926
  const ask = params.get("ask");
@@ -29938,6 +29941,9 @@ function itemFromSearch(search) {
29938
29941
  } catch {
29939
29942
  return null;
29940
29943
  }
29944
+ if (hasControlCharacter(id)) {
29945
+ return null;
29946
+ }
29941
29947
  return ask === null ? { id, kind: "comment" } : { id, kind: "ask" };
29942
29948
  }
29943
29949
  // ../contracts/src/dispatch-snippet.ts
@@ -30346,7 +30352,7 @@ var dispatchToolSpecs = [
30346
30352
  name: "dispatch_artifact",
30347
30353
  example: { issue: "DSP-1", name: "design.md", content: `# Design
30348
30354
  ` },
30349
- description: "Attach a local file or inline text as an issue artifact or project document. Do not use it to edit a live document; use " + "dispatch_doc_edit instead. Exactly one of path or content is required; artifacts are limited to 25 MiB. " + "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. " + `${OWNER_REFERENCE}`,
30355
+ description: "Attach a local file or inline text as an issue artifact or project document. Do not use it to edit a live document; use " + "dispatch_doc_edit instead. Exactly one of path or content is required; a markdown document is at most 1 MiB and any other file at most 25 MiB. " + "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. " + `${OWNER_REFERENCE}`,
30350
30356
  arguments: (z2) => ({
30351
30357
  issue: z2.string().describe(ISSUE_REFERENCE).optional(),
30352
30358
  project: z2.string().describe("Project key for an unlinked document.").optional(),
package/dist/legion.js CHANGED
@@ -30087,6 +30087,9 @@ function claimHolds(claim, titles) {
30087
30087
  return titles.has(claim.actor.id) ? "holds" : "lapsed";
30088
30088
  }
30089
30089
  // ../contracts/src/dispatch-href.ts
30090
+ function hasControlCharacter(value) {
30091
+ return /\p{Cc}/u.test(value);
30092
+ }
30090
30093
  function itemFromSearch(search) {
30091
30094
  const params = new URLSearchParams(search);
30092
30095
  const ask = params.get("ask");
@@ -30107,6 +30110,9 @@ function itemFromSearch(search) {
30107
30110
  } catch {
30108
30111
  return null;
30109
30112
  }
30113
+ if (hasControlCharacter(id)) {
30114
+ return null;
30115
+ }
30110
30116
  return ask === null ? { id, kind: "comment" } : { id, kind: "ask" };
30111
30117
  }
30112
30118
  // ../contracts/src/dispatch-snippet.ts
@@ -30515,7 +30521,7 @@ var dispatchToolSpecs = [
30515
30521
  name: "dispatch_artifact",
30516
30522
  example: { issue: "DSP-1", name: "design.md", content: `# Design
30517
30523
  ` },
30518
- description: "Attach a local file or inline text as an issue artifact or project document. Do not use it to edit a live document; use " + "dispatch_doc_edit instead. Exactly one of path or content is required; artifacts are limited to 25 MiB. " + "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. " + `${OWNER_REFERENCE}`,
30524
+ description: "Attach a local file or inline text as an issue artifact or project document. Do not use it to edit a live document; use " + "dispatch_doc_edit instead. Exactly one of path or content is required; a markdown document is at most 1 MiB and any other file at most 25 MiB. " + "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. " + `${OWNER_REFERENCE}`,
30519
30525
  arguments: (z2) => ({
30520
30526
  issue: z2.string().describe(ISSUE_REFERENCE).optional(),
30521
30527
  project: z2.string().describe("Project key for an unlinked document.").optional(),
@@ -33828,7 +33834,7 @@ import { logger } from "@oh-my-pi/pi-utils";
33828
33834
  // package.json
33829
33835
  var package_default = {
33830
33836
  name: "@sjawhar/pi-legion-envoy",
33831
- version: "5.30.8",
33837
+ version: "5.30.10",
33832
33838
  type: "module",
33833
33839
  omp: {
33834
33840
  extensions: [
@@ -10,9 +10,9 @@ decide, never a log of your work. The transcript is your scratch pad; progress a
10
10
  goes through a `dispatch_*` tool.
11
11
 
12
12
  The server enforces high signal: an ask question is at most 800 characters with at most eight options; comment and message bodies are at
13
- most 2,000 characters; an artifact is at most 25 MiB. It refuses over-limit input with the number to trim (`question is 50 characters over
14
- the 800-character limit (850/800)`); it never truncates it. A tool call with several problems is refused once, every problem listed
15
- (`<tool> was not called: N problems`), so one corrected call lands. GitHub threads and markers no
13
+ most 2,000 characters; a markdown document is at most 1 MiB and any other file at most 25 MiB. It refuses over-limit input with the number
14
+ to trim (`question is 50 characters over the 800-character limit (850/800)`); it never truncates it. A tool call with several problems is
15
+ refused once, every problem listed (`<tool> was not called: N problems`), so one corrected call lands. GitHub threads and markers no
16
16
  longer exist.
17
17
 
18
18
  ## Where the detail lives
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/pi-legion-envoy",
3
- "version": "5.30.8",
3
+ "version": "5.30.10",
4
4
  "type": "module",
5
5
  "omp": {
6
6
  "extensions": [