@sjawhar/pi-envoy 8.14.1 → 8.14.2
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/dispatch.js +3 -6
- package/dist/envoy.js +2 -2
- package/dist/skills/dispatch/SKILL.md +4 -0
- package/package.json +1 -1
package/dist/dispatch.js
CHANGED
|
@@ -14015,7 +14015,7 @@ var dispatchToolSpecs = [
|
|
|
14015
14015
|
{
|
|
14016
14016
|
name: "dispatch_issue",
|
|
14017
14017
|
example: { project: "DSP", title: "Native workspace" },
|
|
14018
|
-
description: "Create a native Dispatch issue for newly tracked work. Search first with dispatch search; if potentially duplicate issues exist, this returns 409 POSSIBLE_DUPLICATE unless --force is set after reading them. " + "A spec 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. " + `Do not use it when an existing issue already covers the work; read or update that issue instead. ${ISSUE_REFERENCE}`,
|
|
14018
|
+
description: "Create a native Dispatch issue for newly tracked work. Search first with dispatch search; if potentially duplicate issues exist, this returns 409 POSSIBLE_DUPLICATE unless --force is set after reading them. " + "When passing a spec, before calling, have a fresh read-only reader check it against the code and the human's words, then resolve every finding; a Legion architect uses `plan-gap-analyst`. " + "A spec 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. " + `Do not use it when an existing issue already covers the work; read or update that issue instead. ${ISSUE_REFERENCE}`,
|
|
14019
14019
|
arguments: (z2) => ({
|
|
14020
14020
|
project: z2.string().describe("Project key for the new issue."),
|
|
14021
14021
|
title: z2.string({ max: ISSUE_TITLE_MAX }).describe("Concise issue title, at most 1,000 characters."),
|
|
@@ -14281,7 +14281,7 @@ var dispatchToolSpecs = [
|
|
|
14281
14281
|
{
|
|
14282
14282
|
name: "dispatch_request_approval",
|
|
14283
14283
|
example: { issue: "DSP-1", summary: "A live sync replaces the nightly export." },
|
|
14284
|
-
description: "Ask a human to approve a document at its current version. Opens an approval ask (Approve / " + "Request changes) in the human's Inbox whose question names the document and version, " + "followed by the summary; the answer pins a review to that version and arrives as " + "artifact.approved or artifact.changes_requested. An open request follows the document: a " + "later version moves it to that version and leaves it waiting on you, as a human's reply in " + "its thread does. Only the first move since the request was opened or handed back sends an " + "event, and never to the session whose version made it; dispatch doc-read shows whom it " + "waits on. Once the revision is complete and " + HUMAN_AGREED_TO_DOCUMENT + ", call this again to hand that same Inbox row back. The request carries nothing new. A " + "call while it already waits on the human hands nothing back: the same summary changes " + "nothing, and a different one is refused, since it would rewrite the card the human is " + "reading. Approve and Request changes each close the request, so the next call opens a new " + "one. Call it once per revision, when the revision is complete, never after each edit. An " + "approval goes stale when the document changes after it: request approval again once that " + "revision is complete and " + HUMAN_AGREED_TO_DOCUMENT + ". A new version of a Legion root spec closes its armed design gate until a human approves " + "it. " + "Refused, with nothing sent, while the document holds an open decision block, even when a " + "human asked for approval: the refusal names each block; ask the human to answer or waive " + "it first. " + OWNER_REFERENCE,
|
|
14284
|
+
description: "Ask a human to approve a document at its current version. Before calling, have a fresh read-only reader check the spec against the code and the human's words, then resolve every finding; a Legion architect uses `plan-gap-analyst`. Opens an approval ask (Approve / " + "Request changes) in the human's Inbox whose question names the document and version, " + "followed by the summary; the answer pins a review to that version and arrives as " + "artifact.approved or artifact.changes_requested. An open request follows the document: a " + "later version moves it to that version and leaves it waiting on you, as a human's reply in " + "its thread does. Only the first move since the request was opened or handed back sends an " + "event, and never to the session whose version made it; dispatch doc-read shows whom it " + "waits on. Once the revision is complete and " + HUMAN_AGREED_TO_DOCUMENT + ", call this again to hand that same Inbox row back. The request carries nothing new. A " + "call while it already waits on the human hands nothing back: the same summary changes " + "nothing, and a different one is refused, since it would rewrite the card the human is " + "reading. Approve and Request changes each close the request, so the next call opens a new " + "one. Call it once per revision, when the revision is complete, never after each edit. An " + "approval goes stale when the document changes after it: request approval again once that " + "revision is complete and " + HUMAN_AGREED_TO_DOCUMENT + ". A new version of a Legion root spec closes its armed design gate until a human approves " + "it. " + "Refused, with nothing sent, while the document holds an open decision block, even when a " + "human asked for approval: the refusal names each block; ask the human to answer or waive " + "it first. " + OWNER_REFERENCE,
|
|
14285
14285
|
arguments: (z2) => ({
|
|
14286
14286
|
issue: z2.string().describe(ISSUE_REFERENCE).optional(),
|
|
14287
14287
|
project: z2.string().describe("Project key owning the document.").optional(),
|
|
@@ -16255,7 +16255,6 @@ var triageAdviceShown = new Set;
|
|
|
16255
16255
|
function adviceMemory() {
|
|
16256
16256
|
return triageAdviceShown;
|
|
16257
16257
|
}
|
|
16258
|
-
var SPEC_CHECK_REMINDER = 'Has a fresh reader checked this spec? Each claim about how a system works today should trace to code read or a command run, and each requirement to the human\'s words or a cited fact. If not, have a fresh read-only subagent check it now and fix what it finds: on Oh My Pi, `task(agent="scout")`, or whatever read-only agent your host bundles; a Legion architect\'s own spec uses the Legion plugin\'s `plan-gap-analyst` agent instead, which only a Legion session has. See the `dispatch-first` skill, "Design in the spec".';
|
|
16259
16258
|
function renderAdvice(tool, key, advice, opts) {
|
|
16260
16259
|
if (advice === undefined)
|
|
16261
16260
|
return [];
|
|
@@ -17513,7 +17512,6 @@ async function executeDispatchTool(input) {
|
|
|
17513
17512
|
return {
|
|
17514
17513
|
text: [
|
|
17515
17514
|
`Created ${created.key}: ${created.title} ${notSubscribed(issueTopic(created.key))}`,
|
|
17516
|
-
...spec === undefined ? [] : [SPEC_CHECK_REMINDER],
|
|
17517
17515
|
...adviceLines
|
|
17518
17516
|
].join(`
|
|
17519
17517
|
`),
|
|
@@ -18078,8 +18076,7 @@ ${trailer.join(`
|
|
|
18078
18076
|
const details = await followedAskDetails(client, result.ask, resolved.artifact);
|
|
18079
18077
|
const outcome = result.recorded ? `Approval requested for ${resolved.artifact.name} (document id ${resolved.artifact.id}) at version ${result.version} (ask ${result.ask.id}).` : `The approval request for ${resolved.artifact.name} (document id ${resolved.artifact.id}) at version ${result.version} (ask ${result.ask.id}) already waits on the human, so this call changed nothing: nothing since it last reached the human (a newer version, a human's reply in its thread, or your progress note) left it waiting on you.`;
|
|
18080
18078
|
return {
|
|
18081
|
-
text: `${outcome} The human's Inbox asks: ${JSON.stringify(result.ask.question)}. The answer arrives as artifact.approved or artifact.changes_requested. An edit before the answer moves this request to the new version and leaves it waiting on you, and an edit after approval makes the approval stale: either way, request again for the new version once the human has agreed to every point in it, which hands this request back or opens a new one
|
|
18082
|
-
${SPEC_CHECK_REMINDER}` : ""}`,
|
|
18079
|
+
text: `${outcome} The human's Inbox asks: ${JSON.stringify(result.ask.question)}. The answer arrives as artifact.approved or artifact.changes_requested. An edit before the answer moves this request to the new version and leaves it waiting on you, and an edit after approval makes the approval stale: either way, request again for the new version once the human has agreed to every point in it, which hands this request back or opens a new one.`,
|
|
18083
18080
|
details: { ...details, artifact: resolved.artifact.id, version: result.version }
|
|
18084
18081
|
};
|
|
18085
18082
|
}
|
package/dist/envoy.js
CHANGED
|
@@ -29998,7 +29998,7 @@ var dispatchToolSpecs = [
|
|
|
29998
29998
|
{
|
|
29999
29999
|
name: "dispatch_issue",
|
|
30000
30000
|
example: { project: "DSP", title: "Native workspace" },
|
|
30001
|
-
description: "Create a native Dispatch issue for newly tracked work. Search first with dispatch search; if potentially duplicate issues exist, this returns 409 POSSIBLE_DUPLICATE unless --force is set after reading them. " + "A spec 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. " + `Do not use it when an existing issue already covers the work; read or update that issue instead. ${ISSUE_REFERENCE}`,
|
|
30001
|
+
description: "Create a native Dispatch issue for newly tracked work. Search first with dispatch search; if potentially duplicate issues exist, this returns 409 POSSIBLE_DUPLICATE unless --force is set after reading them. " + "When passing a spec, before calling, have a fresh read-only reader check it against the code and the human's words, then resolve every finding; a Legion architect uses `plan-gap-analyst`. " + "A spec 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. " + `Do not use it when an existing issue already covers the work; read or update that issue instead. ${ISSUE_REFERENCE}`,
|
|
30002
30002
|
arguments: (z2) => ({
|
|
30003
30003
|
project: z2.string().describe("Project key for the new issue."),
|
|
30004
30004
|
title: z2.string({ max: ISSUE_TITLE_MAX }).describe("Concise issue title, at most 1,000 characters."),
|
|
@@ -30264,7 +30264,7 @@ var dispatchToolSpecs = [
|
|
|
30264
30264
|
{
|
|
30265
30265
|
name: "dispatch_request_approval",
|
|
30266
30266
|
example: { issue: "DSP-1", summary: "A live sync replaces the nightly export." },
|
|
30267
|
-
description: "Ask a human to approve a document at its current version. Opens an approval ask (Approve / " + "Request changes) in the human's Inbox whose question names the document and version, " + "followed by the summary; the answer pins a review to that version and arrives as " + "artifact.approved or artifact.changes_requested. An open request follows the document: a " + "later version moves it to that version and leaves it waiting on you, as a human's reply in " + "its thread does. Only the first move since the request was opened or handed back sends an " + "event, and never to the session whose version made it; dispatch doc-read shows whom it " + "waits on. Once the revision is complete and " + HUMAN_AGREED_TO_DOCUMENT + ", call this again to hand that same Inbox row back. The request carries nothing new. A " + "call while it already waits on the human hands nothing back: the same summary changes " + "nothing, and a different one is refused, since it would rewrite the card the human is " + "reading. Approve and Request changes each close the request, so the next call opens a new " + "one. Call it once per revision, when the revision is complete, never after each edit. An " + "approval goes stale when the document changes after it: request approval again once that " + "revision is complete and " + HUMAN_AGREED_TO_DOCUMENT + ". A new version of a Legion root spec closes its armed design gate until a human approves " + "it. " + "Refused, with nothing sent, while the document holds an open decision block, even when a " + "human asked for approval: the refusal names each block; ask the human to answer or waive " + "it first. " + OWNER_REFERENCE,
|
|
30267
|
+
description: "Ask a human to approve a document at its current version. Before calling, have a fresh read-only reader check the spec against the code and the human's words, then resolve every finding; a Legion architect uses `plan-gap-analyst`. Opens an approval ask (Approve / " + "Request changes) in the human's Inbox whose question names the document and version, " + "followed by the summary; the answer pins a review to that version and arrives as " + "artifact.approved or artifact.changes_requested. An open request follows the document: a " + "later version moves it to that version and leaves it waiting on you, as a human's reply in " + "its thread does. Only the first move since the request was opened or handed back sends an " + "event, and never to the session whose version made it; dispatch doc-read shows whom it " + "waits on. Once the revision is complete and " + HUMAN_AGREED_TO_DOCUMENT + ", call this again to hand that same Inbox row back. The request carries nothing new. A " + "call while it already waits on the human hands nothing back: the same summary changes " + "nothing, and a different one is refused, since it would rewrite the card the human is " + "reading. Approve and Request changes each close the request, so the next call opens a new " + "one. Call it once per revision, when the revision is complete, never after each edit. An " + "approval goes stale when the document changes after it: request approval again once that " + "revision is complete and " + HUMAN_AGREED_TO_DOCUMENT + ". A new version of a Legion root spec closes its armed design gate until a human approves " + "it. " + "Refused, with nothing sent, while the document holds an open decision block, even when a " + "human asked for approval: the refusal names each block; ask the human to answer or waive " + "it first. " + OWNER_REFERENCE,
|
|
30268
30268
|
arguments: (z2) => ({
|
|
30269
30269
|
issue: z2.string().describe(ISSUE_REFERENCE).optional(),
|
|
30270
30270
|
project: z2.string().describe("Project key owning the document.").optional(),
|
|
@@ -372,6 +372,10 @@ says; the human has agreed to every point in the spec; and the current version h
|
|
|
372
372
|
approved. A Legion root spec under an armed design gate always goes to approval once all three
|
|
373
373
|
hold (`skill://legion-architect`).
|
|
374
374
|
|
|
375
|
+
Before calling `dispatch request-approval`, have a fresh read-only reader check the current spec
|
|
376
|
+
against the code and the human's words, then resolve every finding. A Legion architect uses its
|
|
377
|
+
`plan-gap-analyst`; another session uses the read-only reader its host supplies.
|
|
378
|
+
|
|
375
379
|
When all three hold, request it in the pass that finishes the spec: a design waiting with nothing in
|
|
376
380
|
the human's Inbox waits on nobody. When a human asks for approval while a block is open, do not
|
|
377
381
|
request it and do not hold it silently: name each open block and ask them to answer it or waive
|