@sjawhar/pi-legion-envoy 0.36.1 → 0.37.0
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 +7 -15
- package/dist/legion.js +7 -15
- package/dist/skills/dispatch/SKILL.md +2 -2
- package/package.json +1 -1
package/dist/envoy.js
CHANGED
|
@@ -29669,6 +29669,7 @@ var ArtifactVersionEventPayloadSchema = object({
|
|
|
29669
29669
|
diff: string2().optional()
|
|
29670
29670
|
});
|
|
29671
29671
|
var AskEventPayloadSchema = object({
|
|
29672
|
+
opened_event_id: number2().int().positive(),
|
|
29672
29673
|
question: string2().optional(),
|
|
29673
29674
|
options: array(object({ label: string2().optional() })).nullish(),
|
|
29674
29675
|
answer: object({ selected: array(string2()).nullish(), text: string2().nullish() }).nullish(),
|
|
@@ -31892,10 +31893,7 @@ async function executeDispatchTool(input) {
|
|
|
31892
31893
|
text: marks.length === 0 ? document.markdown : `${document.markdown}
|
|
31893
31894
|
|
|
31894
31895
|
Open anchored asks/comments: ${marks.join(", ")}`,
|
|
31895
|
-
details: {
|
|
31896
|
-
issue: resolved.issue.key,
|
|
31897
|
-
topic: dispatchIssueSubject(resolved.issue.key, ">")
|
|
31898
|
-
}
|
|
31896
|
+
details: { issue: resolved.issue.key }
|
|
31899
31897
|
};
|
|
31900
31898
|
}
|
|
31901
31899
|
case "dispatch_artifact": {
|
|
@@ -31928,38 +31926,32 @@ Open anchored asks/comments: ${marks.join(", ")}`,
|
|
|
31928
31926
|
const askRead = await client.getAsk(issueArguments.ref.id);
|
|
31929
31927
|
return {
|
|
31930
31928
|
text: askSummary(askRead),
|
|
31931
|
-
details: {
|
|
31932
|
-
issue: askRead.ask.issue_key,
|
|
31933
|
-
topic: dispatchIssueSubject(askRead.ask.issue_key, ">")
|
|
31934
|
-
}
|
|
31929
|
+
details: { issue: askRead.ask.issue_key }
|
|
31935
31930
|
};
|
|
31936
31931
|
}
|
|
31937
31932
|
if (issueArguments.ref?.kind === "comment") {
|
|
31938
31933
|
const comment = await client.getComment(issueArguments.ref.id);
|
|
31939
31934
|
return {
|
|
31940
31935
|
text: commentSummary(comment),
|
|
31941
|
-
details: {
|
|
31942
|
-
issue: comment.comment.issue_key,
|
|
31943
|
-
topic: dispatchIssueSubject(comment.comment.issue_key, ">")
|
|
31944
|
-
}
|
|
31936
|
+
details: { issue: comment.comment.issue_key }
|
|
31945
31937
|
};
|
|
31946
31938
|
}
|
|
31947
31939
|
const read = await client.read(issue());
|
|
31948
31940
|
if (issueArguments.ref?.kind === "log") {
|
|
31949
31941
|
return {
|
|
31950
31942
|
text: logSummary(read.issue, read.events),
|
|
31951
|
-
details: { issue: read.issue.key
|
|
31943
|
+
details: { issue: read.issue.key }
|
|
31952
31944
|
};
|
|
31953
31945
|
}
|
|
31954
31946
|
if (issueArguments.ref?.kind === "children") {
|
|
31955
31947
|
return {
|
|
31956
31948
|
text: childrenSummary(read.issue),
|
|
31957
|
-
details: { issue: read.issue.key
|
|
31949
|
+
details: { issue: read.issue.key }
|
|
31958
31950
|
};
|
|
31959
31951
|
}
|
|
31960
31952
|
return {
|
|
31961
31953
|
text: issueSummary(read.issue, read.events),
|
|
31962
|
-
details: { issue: read.issue.key
|
|
31954
|
+
details: { issue: read.issue.key }
|
|
31963
31955
|
};
|
|
31964
31956
|
}
|
|
31965
31957
|
default:
|
package/dist/legion.js
CHANGED
|
@@ -29667,6 +29667,7 @@ var ArtifactVersionEventPayloadSchema = object({
|
|
|
29667
29667
|
diff: string2().optional()
|
|
29668
29668
|
});
|
|
29669
29669
|
var AskEventPayloadSchema = object({
|
|
29670
|
+
opened_event_id: number2().int().positive(),
|
|
29670
29671
|
question: string2().optional(),
|
|
29671
29672
|
options: array(object({ label: string2().optional() })).nullish(),
|
|
29672
29673
|
answer: object({ selected: array(string2()).nullish(), text: string2().nullish() }).nullish(),
|
|
@@ -32331,10 +32332,7 @@ async function executeDispatchTool(input) {
|
|
|
32331
32332
|
text: marks.length === 0 ? document.markdown : `${document.markdown}
|
|
32332
32333
|
|
|
32333
32334
|
Open anchored asks/comments: ${marks.join(", ")}`,
|
|
32334
|
-
details: {
|
|
32335
|
-
issue: resolved.issue.key,
|
|
32336
|
-
topic: dispatchIssueSubject(resolved.issue.key, ">")
|
|
32337
|
-
}
|
|
32335
|
+
details: { issue: resolved.issue.key }
|
|
32338
32336
|
};
|
|
32339
32337
|
}
|
|
32340
32338
|
case "dispatch_artifact": {
|
|
@@ -32367,38 +32365,32 @@ Open anchored asks/comments: ${marks.join(", ")}`,
|
|
|
32367
32365
|
const askRead = await client.getAsk(issueArguments.ref.id);
|
|
32368
32366
|
return {
|
|
32369
32367
|
text: askSummary(askRead),
|
|
32370
|
-
details: {
|
|
32371
|
-
issue: askRead.ask.issue_key,
|
|
32372
|
-
topic: dispatchIssueSubject(askRead.ask.issue_key, ">")
|
|
32373
|
-
}
|
|
32368
|
+
details: { issue: askRead.ask.issue_key }
|
|
32374
32369
|
};
|
|
32375
32370
|
}
|
|
32376
32371
|
if (issueArguments.ref?.kind === "comment") {
|
|
32377
32372
|
const comment = await client.getComment(issueArguments.ref.id);
|
|
32378
32373
|
return {
|
|
32379
32374
|
text: commentSummary(comment),
|
|
32380
|
-
details: {
|
|
32381
|
-
issue: comment.comment.issue_key,
|
|
32382
|
-
topic: dispatchIssueSubject(comment.comment.issue_key, ">")
|
|
32383
|
-
}
|
|
32375
|
+
details: { issue: comment.comment.issue_key }
|
|
32384
32376
|
};
|
|
32385
32377
|
}
|
|
32386
32378
|
const read = await client.read(issue());
|
|
32387
32379
|
if (issueArguments.ref?.kind === "log") {
|
|
32388
32380
|
return {
|
|
32389
32381
|
text: logSummary(read.issue, read.events),
|
|
32390
|
-
details: { issue: read.issue.key
|
|
32382
|
+
details: { issue: read.issue.key }
|
|
32391
32383
|
};
|
|
32392
32384
|
}
|
|
32393
32385
|
if (issueArguments.ref?.kind === "children") {
|
|
32394
32386
|
return {
|
|
32395
32387
|
text: childrenSummary(read.issue),
|
|
32396
|
-
details: { issue: read.issue.key
|
|
32388
|
+
details: { issue: read.issue.key }
|
|
32397
32389
|
};
|
|
32398
32390
|
}
|
|
32399
32391
|
return {
|
|
32400
32392
|
text: issueSummary(read.issue, read.events),
|
|
32401
|
-
details: { issue: read.issue.key
|
|
32393
|
+
details: { issue: read.issue.key }
|
|
32402
32394
|
};
|
|
32403
32395
|
}
|
|
32404
32396
|
default:
|
|
@@ -104,8 +104,8 @@ dispatch_resolve_ask({
|
|
|
104
104
|
})
|
|
105
105
|
```
|
|
106
106
|
Use `retracted` when the question is obsolete and `resolved` when you found the answer. Include the
|
|
107
|
-
reason because the question remains in its
|
|
108
|
-
it never records a human decision, and an answered ask cannot be resolved.
|
|
107
|
+
reason because the question remains in its Conversation card and reply thread. Resolution is not an
|
|
108
|
+
answer: it never records a human decision, and an answered ask cannot be resolved.
|
|
109
109
|
|
|
110
110
|
An ask is a thread, not a dead end: a human can reply to it before or after answering, and you
|
|
111
111
|
(the asker) can reply too — e.g. acknowledging a clarifying question, or following up after the
|