@sjawhar/opencode-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/src/server.js +7 -15
- package/package.json +1 -1
- package/skills/dispatch/SKILL.md +2 -2
package/dist/src/server.js
CHANGED
|
@@ -13572,6 +13572,7 @@ var ArtifactVersionEventPayloadSchema = object({
|
|
|
13572
13572
|
diff: string2().optional()
|
|
13573
13573
|
});
|
|
13574
13574
|
var AskEventPayloadSchema = object({
|
|
13575
|
+
opened_event_id: number2().int().positive(),
|
|
13575
13576
|
question: string2().optional(),
|
|
13576
13577
|
options: array(object({ label: string2().optional() })).nullish(),
|
|
13577
13578
|
answer: object({ selected: array(string2()).nullish(), text: string2().nullish() }).nullish(),
|
|
@@ -15054,10 +15055,7 @@ async function executeDispatchTool(input) {
|
|
|
15054
15055
|
text: marks.length === 0 ? document.markdown : `${document.markdown}
|
|
15055
15056
|
|
|
15056
15057
|
Open anchored asks/comments: ${marks.join(", ")}`,
|
|
15057
|
-
details: {
|
|
15058
|
-
issue: resolved.issue.key,
|
|
15059
|
-
topic: dispatchIssueSubject(resolved.issue.key, ">")
|
|
15060
|
-
}
|
|
15058
|
+
details: { issue: resolved.issue.key }
|
|
15061
15059
|
};
|
|
15062
15060
|
}
|
|
15063
15061
|
case "dispatch_artifact": {
|
|
@@ -15090,38 +15088,32 @@ Open anchored asks/comments: ${marks.join(", ")}`,
|
|
|
15090
15088
|
const askRead = await client.getAsk(issueArguments.ref.id);
|
|
15091
15089
|
return {
|
|
15092
15090
|
text: askSummary(askRead),
|
|
15093
|
-
details: {
|
|
15094
|
-
issue: askRead.ask.issue_key,
|
|
15095
|
-
topic: dispatchIssueSubject(askRead.ask.issue_key, ">")
|
|
15096
|
-
}
|
|
15091
|
+
details: { issue: askRead.ask.issue_key }
|
|
15097
15092
|
};
|
|
15098
15093
|
}
|
|
15099
15094
|
if (issueArguments.ref?.kind === "comment") {
|
|
15100
15095
|
const comment = await client.getComment(issueArguments.ref.id);
|
|
15101
15096
|
return {
|
|
15102
15097
|
text: commentSummary(comment),
|
|
15103
|
-
details: {
|
|
15104
|
-
issue: comment.comment.issue_key,
|
|
15105
|
-
topic: dispatchIssueSubject(comment.comment.issue_key, ">")
|
|
15106
|
-
}
|
|
15098
|
+
details: { issue: comment.comment.issue_key }
|
|
15107
15099
|
};
|
|
15108
15100
|
}
|
|
15109
15101
|
const read = await client.read(issue());
|
|
15110
15102
|
if (issueArguments.ref?.kind === "log") {
|
|
15111
15103
|
return {
|
|
15112
15104
|
text: logSummary(read.issue, read.events),
|
|
15113
|
-
details: { issue: read.issue.key
|
|
15105
|
+
details: { issue: read.issue.key }
|
|
15114
15106
|
};
|
|
15115
15107
|
}
|
|
15116
15108
|
if (issueArguments.ref?.kind === "children") {
|
|
15117
15109
|
return {
|
|
15118
15110
|
text: childrenSummary(read.issue),
|
|
15119
|
-
details: { issue: read.issue.key
|
|
15111
|
+
details: { issue: read.issue.key }
|
|
15120
15112
|
};
|
|
15121
15113
|
}
|
|
15122
15114
|
return {
|
|
15123
15115
|
text: issueSummary(read.issue, read.events),
|
|
15124
|
-
details: { issue: read.issue.key
|
|
15116
|
+
details: { issue: read.issue.key }
|
|
15125
15117
|
};
|
|
15126
15118
|
}
|
|
15127
15119
|
default:
|
package/package.json
CHANGED
package/skills/dispatch/SKILL.md
CHANGED
|
@@ -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
|