@sjawhar/pi-legion 10.5.1 → 10.6.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/legion.js +8 -6
- package/package.json +1 -1
package/dist/legion.js
CHANGED
|
@@ -14452,7 +14452,8 @@ var dispatchToolSpecs = [
|
|
|
14452
14452
|
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(),
|
|
14453
14453
|
priority: z2.number({ int: true, min: 0, max: 3 }).describe("Optional coarse priority: P0 is highest and P3 is lowest.").optional(),
|
|
14454
14454
|
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(),
|
|
14455
|
-
components: componentsArgument(z2).optional()
|
|
14455
|
+
components: componentsArgument(z2).optional(),
|
|
14456
|
+
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()
|
|
14456
14457
|
})
|
|
14457
14458
|
},
|
|
14458
14459
|
{
|
|
@@ -14462,7 +14463,7 @@ var dispatchToolSpecs = [
|
|
|
14462
14463
|
status: "done",
|
|
14463
14464
|
reason: "Shipped in owner/repo#7; verified on the production dashboard."
|
|
14464
14465
|
},
|
|
14465
|
-
description: "Update an existing issue: move its lifecycle status, retitle it, replace its labels, set " + "its priority, link a URL (the pull request that delivers it, a run, a document), set its " + "route, set or clear its parent, replace the issues it is blocked by,
|
|
14466
|
+
description: "Update an existing issue: move its lifecycle status, retitle it, replace its labels, set " + "its priority, link a URL (the pull request that delivers it, a run, a document), set its " + "route, set or clear its parent, replace the issues it is blocked by, attach it to " + "architecture components, or set the repository it targets. Status is one of " + `${ISSUE_STATUSES.join(", ")}; outside Legion, move it yourself as the work advances; inside ` + "Legion the daemon moves it. A non-empty external_links is " + "merged into the issue's existing links by URL, so linking the pull request you just opened " + "keeps every earlier link; an empty external_links removes every link instead. components " + "replaces the issue's own attachment. Closing an issue " + "(status done) requires reason, the note that says why: it is posted on the issue as a " + "message, then the issue closes, because a closed issue refuses messages, comments, and " + "artifacts; reason goes only with status done. A closed issue takes only rank, components, " + "a reopening status (any status but done), and an external_links write that adds no new " + "link (so a link can move to the issue that replaced it); everything else, priority " + "included, waits for the reopen. " + "priority is yours to set and a human overrides it; rank, the board's own order, is not " + "settable here. At least one " + `field besides issue is required. ${ISSUE_REFERENCE}`,
|
|
14466
14467
|
arguments: (z2) => ({
|
|
14467
14468
|
issue: z2.string().describe(ISSUE_REFERENCE),
|
|
14468
14469
|
status: z2.enum(ISSUE_STATUSES).describe("New lifecycle status.").optional(),
|
|
@@ -14474,15 +14475,16 @@ var dispatchToolSpecs = [
|
|
|
14474
14475
|
route: z2.string().describe("Route the issue to role:<name> or session:<id>; an empty string clears it.").optional(),
|
|
14475
14476
|
parent: z2.string().describe("Parent issue key in the same project; an empty string clears the parent.").optional(),
|
|
14476
14477
|
blocked_by: z2.array(z2.string({ min: 1 }), { max: MAX_ISSUE_BLOCKERS }).describe("Replacement list of issue keys in the same project this issue waits on; [] clears it. Dispatch refuses a dependency cycle.").optional(),
|
|
14477
|
-
components: componentsArgument(z2).optional()
|
|
14478
|
+
components: componentsArgument(z2).optional(),
|
|
14479
|
+
repo: z2.string().describe("The repository the issue targets, owner/name, mapped to the issue's project in Settings; an empty string clears it, so the issue inherits its parent's or the project's default again.").optional()
|
|
14478
14480
|
}),
|
|
14479
14481
|
validation: {
|
|
14480
14482
|
check: (value) => {
|
|
14481
14483
|
const input = value;
|
|
14482
14484
|
const reasonFits = input.status === "done" ? typeof input.reason === "string" && input.reason.trim() !== "" : input.reason === undefined;
|
|
14483
|
-
return reasonFits && (typeof input.status === "string" || typeof input.title === "string" || Array.isArray(input.labels) || typeof input.priority === "number" || input.priority === null || Array.isArray(input.external_links) || typeof input.route === "string" || typeof input.parent === "string" || Array.isArray(input.blocked_by) || typeof input.components === "object" && input.components !== null);
|
|
14485
|
+
return reasonFits && (typeof input.status === "string" || typeof input.title === "string" || Array.isArray(input.labels) || typeof input.priority === "number" || input.priority === null || Array.isArray(input.external_links) || typeof input.route === "string" || typeof input.parent === "string" || Array.isArray(input.blocked_by) || typeof input.components === "object" && input.components !== null || typeof input.repo === "string");
|
|
14484
14486
|
},
|
|
14485
|
-
message: "Issue update requires at least one field besides issue: status, title, labels, priority, external_links, route, parent, blocked_by, or
|
|
14487
|
+
message: "Issue update requires at least one field besides issue: status, title, labels, priority, external_links, route, parent, blocked_by, components, or repo. " + "status done requires reason, a non-empty note saying why the issue is closing, posted on the issue before it closes because a closed issue refuses messages, comments, and artifacts; reason goes only with status done."
|
|
14486
14488
|
},
|
|
14487
14489
|
strict: true
|
|
14488
14490
|
},
|
|
@@ -16169,7 +16171,7 @@ function ompCapabilityHost() {
|
|
|
16169
16171
|
// package.json
|
|
16170
16172
|
var package_default = {
|
|
16171
16173
|
name: "@sjawhar/pi-legion",
|
|
16172
|
-
version: "10.
|
|
16174
|
+
version: "10.6.0",
|
|
16173
16175
|
license: "Apache-2.0",
|
|
16174
16176
|
type: "module",
|
|
16175
16177
|
omp: {
|