@sjawhar/pi-envoy 10.17.2 → 10.17.4
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 +7 -7
- package/dist/envoy.js +1 -1
- package/package.json +1 -1
package/dist/dispatch.js
CHANGED
|
@@ -14041,7 +14041,7 @@ var dispatchToolSpecs = [
|
|
|
14041
14041
|
force: z2.boolean().describe("Create even though POSSIBLE_DUPLICATE listed similar issues; pass it only after reading them.").optional(),
|
|
14042
14042
|
spec: z2.string().describe(`Optional initial primary-document markdown. ${SPEC_WRITING_POINTER}`).optional(),
|
|
14043
14043
|
labels: z2.array(z2.string({ min: 1, max: 40 }), { max: 20 }).describe("Optional initial labels, at most 20 labels of up to 40 characters.").optional(),
|
|
14044
|
-
priority: z2.number({ int: true, min: 0, max: 3 }).describe("Optional coarse priority:
|
|
14044
|
+
priority: z2.number({ int: true, min: 0, max: 3 }).describe("Optional coarse priority, a number from 0 to 3: 0 is highest and 3 is lowest.").optional(),
|
|
14045
14045
|
assignee: z2.string().describe("Email of the person who answers this issue's asks (someone who has signed in to Dispatch); defaults to your owner when you act for a person, else the parent's assignee, else unassigned.").optional(),
|
|
14046
14046
|
components: componentsArgument(z2).optional(),
|
|
14047
14047
|
repo: z2.string().describe("The repository the issue targets, owner/name, mapped to the issue's project in Settings; a child inherits its parent's when unset, and an issue with none on its parent chain takes the project's default.").optional()
|
|
@@ -16222,10 +16222,6 @@ function renderAdvice(tool, key, advice, opts) {
|
|
|
16222
16222
|
if (advice.decision_blocks === 0 && opts.isPrimarySpec === true && (tool === "dispatch_issue" || tool === "dispatch_artifact")) {
|
|
16223
16223
|
lines.push('This spec holds no ask blocks, so nothing here reaches a human\'s inbox. Want human feedback? See the `dispatch` skill, "Decision blocks".');
|
|
16224
16224
|
}
|
|
16225
|
-
if (hasIssueAdvice && writesSinceHuman !== undefined && writesSinceHuman >= 3 && (tool === "dispatch_message" || tool === "dispatch_ask" || tool === "dispatch_comment" && opts.isAskReply !== true)) {
|
|
16226
|
-
const middle = writesSinceHuman >= 6 ? "Stop posting here until a human replies." : "Progress ledger or scratchpad? If so, stop.";
|
|
16227
|
-
lines.push(`You've sent ${writesSinceHuman} messages on ${key} with no human response. ${middle} See the \`dispatch\` skill, "Structure over stream".`);
|
|
16228
|
-
}
|
|
16229
16225
|
if (advice.issue_status === "triage" && tool !== "dispatch_issue" && !(tool === "dispatch_issue_update" && opts.setsStatus === true) && !triageAdviceShown.has(key)) {
|
|
16230
16226
|
triageAdviceShown.add(key);
|
|
16231
16227
|
lines.push(`${key} is still in triage \u2014 nobody can see its development status. See the \`dispatch\` skill, "Issue status is yours to move".`);
|
|
@@ -16239,6 +16235,10 @@ function renderAdvice(tool, key, advice, opts) {
|
|
|
16239
16235
|
lines.push(`You still have an open ask on ${key}: "${ask.question.slice(0, 80)}" (${ask.id}). Still needed? See the \`dispatch\` skill, "Close what you opened".`);
|
|
16240
16236
|
}
|
|
16241
16237
|
}
|
|
16238
|
+
if (hasIssueAdvice && writesSinceHuman !== undefined && writesSinceHuman >= 3 && (tool === "dispatch_message" || tool === "dispatch_ask" || tool === "dispatch_comment" && opts.isAskReply !== true)) {
|
|
16239
|
+
const middle = writesSinceHuman >= 6 ? "Stop posting here until a human replies." : "Progress ledger or scratchpad? If so, stop.";
|
|
16240
|
+
lines.push(`Posted. You've sent ${writesSinceHuman} messages on ${key} with no human response. ${middle} See the \`dispatch\` skill, "Structure over stream".`);
|
|
16241
|
+
}
|
|
16242
16242
|
return lines;
|
|
16243
16243
|
}
|
|
16244
16244
|
function renderSuggestions(suggestions, configUrl) {
|
|
@@ -18033,8 +18033,8 @@ async function executeDispatchTool(input) {
|
|
|
18033
18033
|
const ask = resolved?.owner.kind === "project" ? await client.artifactAsk(resolved.artifact.id, askInput) : await client.ask(issue2(), askInput);
|
|
18034
18034
|
const askOwner = ask.issue_key !== null ? issueTopic(ask.issue_key) : resolved === undefined ? issueTopic(issue2()) : documentTopic(resolved.artifact);
|
|
18035
18035
|
const adviceLines = [
|
|
18036
|
-
...
|
|
18037
|
-
...
|
|
18036
|
+
...renderSuggestions(ask.advice?.suggestions, linkBase),
|
|
18037
|
+
...renderAdvice(input.tool, askOwner.label, ask.advice, {})
|
|
18038
18038
|
];
|
|
18039
18039
|
return {
|
|
18040
18040
|
text: [
|
package/dist/envoy.js
CHANGED
|
@@ -30028,7 +30028,7 @@ var dispatchToolSpecs = [
|
|
|
30028
30028
|
force: z2.boolean().describe("Create even though POSSIBLE_DUPLICATE listed similar issues; pass it only after reading them.").optional(),
|
|
30029
30029
|
spec: z2.string().describe(`Optional initial primary-document markdown. ${SPEC_WRITING_POINTER}`).optional(),
|
|
30030
30030
|
labels: z2.array(z2.string({ min: 1, max: 40 }), { max: 20 }).describe("Optional initial labels, at most 20 labels of up to 40 characters.").optional(),
|
|
30031
|
-
priority: z2.number({ int: true, min: 0, max: 3 }).describe("Optional coarse priority:
|
|
30031
|
+
priority: z2.number({ int: true, min: 0, max: 3 }).describe("Optional coarse priority, a number from 0 to 3: 0 is highest and 3 is lowest.").optional(),
|
|
30032
30032
|
assignee: z2.string().describe("Email of the person who answers this issue's asks (someone who has signed in to Dispatch); defaults to your owner when you act for a person, else the parent's assignee, else unassigned.").optional(),
|
|
30033
30033
|
components: componentsArgument(z2).optional(),
|
|
30034
30034
|
repo: z2.string().describe("The repository the issue targets, owner/name, mapped to the issue's project in Settings; a child inherits its parent's when unset, and an issue with none on its parent chain takes the project's default.").optional()
|