@sjawhar/opencode-legion-envoy 3.19.6 → 3.19.8
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/src/server.js +7 -1
- package/package.json +1 -1
- package/skills/dispatch/SKILL.md +3 -3
package/dist/src/server.js
CHANGED
|
@@ -13807,6 +13807,9 @@ function claimHolds(claim, titles) {
|
|
|
13807
13807
|
return titles.has(claim.actor.id) ? "holds" : "lapsed";
|
|
13808
13808
|
}
|
|
13809
13809
|
// ../contracts/src/dispatch-href.ts
|
|
13810
|
+
function hasControlCharacter(value) {
|
|
13811
|
+
return /\p{Cc}/u.test(value);
|
|
13812
|
+
}
|
|
13810
13813
|
function itemFromSearch(search) {
|
|
13811
13814
|
const params = new URLSearchParams(search);
|
|
13812
13815
|
const ask = params.get("ask");
|
|
@@ -13827,6 +13830,9 @@ function itemFromSearch(search) {
|
|
|
13827
13830
|
} catch {
|
|
13828
13831
|
return null;
|
|
13829
13832
|
}
|
|
13833
|
+
if (hasControlCharacter(id)) {
|
|
13834
|
+
return null;
|
|
13835
|
+
}
|
|
13830
13836
|
return ask === null ? { id, kind: "comment" } : { id, kind: "ask" };
|
|
13831
13837
|
}
|
|
13832
13838
|
// ../contracts/src/dispatch-snippet.ts
|
|
@@ -14232,7 +14238,7 @@ var dispatchToolSpecs = [
|
|
|
14232
14238
|
name: "dispatch_artifact",
|
|
14233
14239
|
example: { issue: "DSP-1", name: "design.md", content: `# Design
|
|
14234
14240
|
` },
|
|
14235
|
-
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;
|
|
14241
|
+
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}`,
|
|
14236
14242
|
arguments: (z2) => ({
|
|
14237
14243
|
issue: z2.string().describe(ISSUE_REFERENCE).optional(),
|
|
14238
14244
|
project: z2.string().describe("Project key for an unlinked document.").optional(),
|
package/package.json
CHANGED
package/skills/dispatch/SKILL.md
CHANGED
|
@@ -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;
|
|
14
|
-
the 800-character limit (850/800)`); it never truncates it. A tool call with several problems is
|
|
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
|