@sjawhar/pi-legion-envoy 1.4.2 → 1.4.3
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 +9 -1
- package/dist/legion.js +9 -1
- package/dist/skills/dispatch/SKILL.md +5 -3
- package/package.json +1 -1
package/dist/envoy.js
CHANGED
|
@@ -29649,6 +29649,9 @@ function date4(params) {
|
|
|
29649
29649
|
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
29650
29650
|
config(en_default());
|
|
29651
29651
|
// ../contracts/src/dispatch-api.ts
|
|
29652
|
+
function searchOwnerOf(result) {
|
|
29653
|
+
return result.owner ?? { kind: "issue", key: result.issue.key };
|
|
29654
|
+
}
|
|
29652
29655
|
var DispatchEventSchema = object({
|
|
29653
29656
|
issue_key: string2().nullable(),
|
|
29654
29657
|
artifact_id: string2().nullish(),
|
|
@@ -31776,9 +31779,14 @@ function duplicateCandidates(error) {
|
|
|
31776
31779
|
return error.candidates;
|
|
31777
31780
|
}
|
|
31778
31781
|
function searchResultLine(result, baseUrl) {
|
|
31782
|
+
const href = new URL(result.href, baseUrl).toString();
|
|
31783
|
+
const owner = searchOwnerOf(result);
|
|
31784
|
+
if (owner.kind === "document") {
|
|
31785
|
+
const reference = `dispatch://${owner.project}/artifact/${owner.slug}`;
|
|
31786
|
+
return `${reference} [document] ${owner.name} - ${result.kind}: ${snippetText(result.snippet)} -> ${href}`;
|
|
31787
|
+
}
|
|
31779
31788
|
const artifactName = result.artifact ? ` ${result.artifact.name}` : "";
|
|
31780
31789
|
const label = `${result.issue.key} [${result.issue.status}] ${result.issue.title} - ${result.kind}${artifactName}`;
|
|
31781
|
-
const href = new URL(result.href, baseUrl).toString();
|
|
31782
31790
|
return `${label}: ${snippetText(result.snippet)} -> ${href}`;
|
|
31783
31791
|
}
|
|
31784
31792
|
function askUrgency(args) {
|
package/dist/legion.js
CHANGED
|
@@ -29648,6 +29648,9 @@ function date4(params) {
|
|
|
29648
29648
|
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
29649
29649
|
config(en_default());
|
|
29650
29650
|
// ../contracts/src/dispatch-api.ts
|
|
29651
|
+
function searchOwnerOf(result) {
|
|
29652
|
+
return result.owner ?? { kind: "issue", key: result.issue.key };
|
|
29653
|
+
}
|
|
29651
29654
|
var DispatchEventSchema = object({
|
|
29652
29655
|
issue_key: string2().nullable(),
|
|
29653
29656
|
artifact_id: string2().nullish(),
|
|
@@ -32202,9 +32205,14 @@ function duplicateCandidates(error) {
|
|
|
32202
32205
|
return error.candidates;
|
|
32203
32206
|
}
|
|
32204
32207
|
function searchResultLine(result, baseUrl) {
|
|
32208
|
+
const href = new URL(result.href, baseUrl).toString();
|
|
32209
|
+
const owner = searchOwnerOf(result);
|
|
32210
|
+
if (owner.kind === "document") {
|
|
32211
|
+
const reference = `dispatch://${owner.project}/artifact/${owner.slug}`;
|
|
32212
|
+
return `${reference} [document] ${owner.name} - ${result.kind}: ${snippetText(result.snippet)} -> ${href}`;
|
|
32213
|
+
}
|
|
32205
32214
|
const artifactName = result.artifact ? ` ${result.artifact.name}` : "";
|
|
32206
32215
|
const label = `${result.issue.key} [${result.issue.status}] ${result.issue.title} - ${result.kind}${artifactName}`;
|
|
32207
|
-
const href = new URL(result.href, baseUrl).toString();
|
|
32208
32216
|
return `${label}: ${snippetText(result.snippet)} -> ${href}`;
|
|
32209
32217
|
}
|
|
32210
32218
|
function askUrgency(args) {
|
|
@@ -78,9 +78,11 @@ Before you create an issue or start a design document, search:
|
|
|
78
78
|
```ts
|
|
79
79
|
dispatch_search({ query, project?, limit? })
|
|
80
80
|
```
|
|
81
|
-
It returns every issue, document, comment, ask, and message that contains the words
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
It returns every issue, document, comment, ask, and message that contains the words. Issue-owned hit lines
|
|
82
|
+
start with the issue key; standalone project-document hit lines start with
|
|
83
|
+
`dispatch://PROJECT/artifact/<slug>`, followed by the absolute link. Cite the hit you build on
|
|
84
|
+
(`dispatch://KEY` or the document reference), or state "no prior issue" in the spec. Websearch syntax applies:
|
|
85
|
+
`"merge queue"`, `-daemon`, `OR`.
|
|
84
86
|
|
|
85
87
|
`dispatch_issue` refuses a title that near-duplicates an issue in the same project and returns the candidates (`POSSIBLE_DUPLICATE`).
|
|
86
88
|
Read them; reference the existing issue, or repeat the call with `force: true` when it is genuinely new work.
|