@sjawhar/pi-legion 9.1.2 → 9.2.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.
Files changed (2) hide show
  1. package/dist/legion.js +7 -4
  2. package/package.json +1 -1
package/dist/legion.js CHANGED
@@ -13704,6 +13704,7 @@ function activeDispatchConfig(env, options = {}) {
13704
13704
  }
13705
13705
 
13706
13706
  // ../contracts/src/dispatch-api.ts
13707
+ var MAX_ISSUE_BLOCKERS = 20;
13707
13708
  var ISSUE_TITLE_MAX = 1000;
13708
13709
  var MAX_ISSUE_PAGE_LIMIT = 250;
13709
13710
  var DEFAULT_ISSUE_PAGE_LIMIT = 50;
@@ -14032,6 +14033,7 @@ var dispatchToolSpecs = [
14032
14033
  project: z2.string().describe("Project key for the new issue."),
14033
14034
  title: z2.string({ max: ISSUE_TITLE_MAX }).describe("Concise issue title, at most 1,000 characters."),
14034
14035
  parent: z2.string().describe("Optional parent issue.").optional(),
14036
+ blocked_by: z2.array(z2.string({ min: 1 }), { max: MAX_ISSUE_BLOCKERS }).describe("Issue keys in the same project this issue waits on. Dispatch refuses a dependency cycle.").optional(),
14035
14037
  external: z2.string().describe("Optional external issue reference.").optional(),
14036
14038
  force: z2.boolean().describe("Create even though POSSIBLE_DUPLICATE listed similar issues; pass it only after reading them.").optional(),
14037
14039
  spec: z2.string().describe(`Optional initial primary-document markdown. ${SPEC_WRITING_POINTER}`).optional(),
@@ -14048,7 +14050,7 @@ var dispatchToolSpecs = [
14048
14050
  status: "done",
14049
14051
  reason: "Shipped in owner/repo#7; verified on the production dashboard."
14050
14052
  },
14051
- 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, or attach it to architecture components. Status is one of " + `${ISSUE_STATUSES.join(", ")}; outside Legion, move it yourself as the work advances; inside ` + "Legion the daemon moves it. external_links are " + "merged into the issue's existing links by URL, so linking the pull request you just opened " + "keeps every earlier link. 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, " + "and a reopening status (any status but done); 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}`,
14053
+ 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, or attach it to " + "architecture components. Status is one of " + `${ISSUE_STATUSES.join(", ")}; outside Legion, move it yourself as the work advances; inside ` + "Legion the daemon moves it. external_links are " + "merged into the issue's existing links by URL, so linking the pull request you just opened " + "keeps every earlier link. 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, " + "and a reopening status (any status but done); 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}`,
14052
14054
  arguments: (z2) => ({
14053
14055
  issue: z2.string().describe(ISSUE_REFERENCE),
14054
14056
  status: z2.enum(ISSUE_STATUSES).describe("New lifecycle status.").optional(),
@@ -14059,15 +14061,16 @@ var dispatchToolSpecs = [
14059
14061
  external_links: z2.array(z2.string({ min: 1 })).describe("URLs to link; merged into the issue's existing external links by URL.").optional(),
14060
14062
  route: z2.string().describe("Route the issue to role:<name> or session:<id>; an empty string clears it.").optional(),
14061
14063
  parent: z2.string().describe("Parent issue key in the same project; an empty string clears the parent.").optional(),
14064
+ 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(),
14062
14065
  components: componentsArgument(z2).optional()
14063
14066
  }),
14064
14067
  validation: {
14065
14068
  check: (value) => {
14066
14069
  const input = value;
14067
14070
  const reasonFits = input.status === "done" ? typeof input.reason === "string" && input.reason.trim() !== "" : input.reason === undefined;
14068
- 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" || typeof input.components === "object" && input.components !== null);
14071
+ 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);
14069
14072
  },
14070
- message: "Issue update requires at least one field besides issue: status, title, labels, priority, external_links, route, parent, or components. " + "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."
14073
+ message: "Issue update requires at least one field besides issue: status, title, labels, priority, external_links, route, parent, blocked_by, or components. " + "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."
14071
14074
  },
14072
14075
  strict: true
14073
14076
  },
@@ -15700,7 +15703,7 @@ function onEnvoyRoleRegained(listener) {
15700
15703
  // package.json
15701
15704
  var package_default = {
15702
15705
  name: "@sjawhar/pi-legion",
15703
- version: "9.1.2",
15706
+ version: "9.2.0",
15704
15707
  license: "Apache-2.0",
15705
15708
  type: "module",
15706
15709
  omp: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/pi-legion",
3
- "version": "9.1.2",
3
+ "version": "9.2.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "omp": {