@sjawhar/opencode-legion-envoy 3.14.0 → 3.15.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.
@@ -13958,6 +13958,8 @@ var SPEC_SECTIONS = [
13958
13958
  var SPEC_WRITING_GUIDANCE = `When writing a spec, use these sections in order: ${SPEC_SECTIONS.join(", ")}. ` + "Write for a reader who has not seen the code: plain sentences, every identifier expanded on " + "first use, no coined shorthand; see skills/dispatch Writing for the human and Writing a spec.";
13959
13959
  var ASK_URGENCIES = ["low", "med", "high", "blocking"];
13960
13960
  var ASK_QUESTION_MAX = 800;
13961
+ var SEARCH_QUERY_MAX = 1000;
13962
+ var SEARCH_QUERY_HINT = "search with a short phrase of a few words, not a passage";
13961
13963
  var ISSUE_STATUSES = [
13962
13964
  "triage",
13963
13965
  "icebox",
@@ -14270,7 +14272,11 @@ var dispatchToolSpecs = [
14270
14272
  example: { query: "astrolabe" },
14271
14273
  description: "Search every issue, document, comment, ask, and message for a keyword or phrase and get deep links. " + "Use it before creating an issue or a design document, and to find where a word was written. " + 'Websearch syntax: "quoted phrase", -excluded, OR.',
14272
14274
  arguments: (z2) => ({
14273
- query: z2.string({ min: 2 }).describe("Keyword, phrase, or websearch expression; at least 2 characters."),
14275
+ query: z2.string({
14276
+ min: 2,
14277
+ max: SEARCH_QUERY_MAX,
14278
+ maxHint: SEARCH_QUERY_HINT
14279
+ }).describe(`Keyword, phrase, or websearch expression; 2 to ${SEARCH_QUERY_MAX} characters.`),
14274
14280
  project: z2.string().describe("Optional project key to search within.").optional(),
14275
14281
  limit: z2.number({ int: true, min: 1, max: 50 }).describe("Maximum results, 1-50; default 20.").optional()
14276
14282
  })
@@ -14762,8 +14768,9 @@ function zodSchemaApi(zod) {
14762
14768
  schema = schema.min(opts.min);
14763
14769
  if (opts.max !== undefined) {
14764
14770
  const max = opts.max;
14771
+ const hint = opts.maxHint === undefined ? "" : `; ${opts.maxHint}`;
14765
14772
  schema = schema.max(max, {
14766
- error: (issue2) => overCapMessage(typeof issue2.input === "string" ? issue2.input.length : max + 1, max)
14773
+ error: (issue2) => overCapMessage(typeof issue2.input === "string" ? issue2.input.length : max + 1, max) + hint
14767
14774
  });
14768
14775
  }
14769
14776
  return schema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/opencode-legion-envoy",
3
- "version": "3.14.0",
3
+ "version": "3.15.1",
4
4
  "type": "module",
5
5
  "main": "dist/src/server.js",
6
6
  "exports": {
@@ -165,10 +165,12 @@ do with each hit. What it leaves out:
165
165
  dispatch_search({ query, project?, limit? })
166
166
  ```
167
167
  Websearch syntax applies: `"merge queue"`, `-daemon`, `OR`. It returns the best `limit` hits (20
168
- by default, 50 at most) across issues, documents, comments, asks, and messages. Issue-owned hit
169
- lines start with the issue key; standalone project-document hit lines start with
170
- `dispatch://PROJECT/artifact/<slug>`, followed by the absolute link. Cite the hit you build on
171
- (`dispatch://KEY` or the document reference), or state "no prior issue" in the spec.
168
+ by default, 50 at most) across issues, documents, comments, asks, and messages. A query over
169
+ 1,000 characters is refused before it is sent: search with the few words `skill://dispatch-first`
170
+ describes, never a pasted passage. Issue-owned hit lines start with the issue key; standalone
171
+ project-document hit lines start with `dispatch://PROJECT/artifact/<slug>`, followed by the
172
+ absolute link. Cite the hit you build on (`dispatch://KEY` or the document reference), or state
173
+ "no prior issue" in the spec.
172
174
 
173
175
  `dispatch_issue` refuses a title that near-duplicates an issue in the same project and returns the candidates (`POSSIBLE_DUPLICATE`).
174
176
  Read them; reference the existing issue, or repeat the call with `force: true` when it is genuinely new work.