@kaddo/cli 3.58.0 → 3.59.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/index.js +7 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8916,6 +8916,7 @@ function buildDeliveryState(dir) {
8916
8916
  phase: "",
8917
8917
  draft_work_items: byState("draft"),
8918
8918
  refined_draft_work_items: wis.filter((w) => w.lifecycle === "draft" && w.rawFrontmatter.refined_by).length,
8919
+ refined_draft_ids: wis.filter((w) => w.lifecycle === "draft" && w.rawFrontmatter.refined_by).map((w) => w.id),
8919
8920
  ready_work_items: byState("ready"),
8920
8921
  in_progress_work_items: byState("in-progress"),
8921
8922
  blocked_work_items: byState("blocked"),
@@ -9044,13 +9045,16 @@ function resolveNextStep(dir, now = /* @__PURE__ */ new Date()) {
9044
9045
  const roadmap = roadmapSignal(dir);
9045
9046
  if (roadmap !== "has-candidates" && st.draft_work_items > 0) {
9046
9047
  if (st.refined_draft_work_items > 0) {
9048
+ const ids = st.refined_draft_ids;
9049
+ const single = ids.length === 1;
9047
9050
  return {
9048
9051
  id: "review-work-item",
9049
9052
  phase: "Active Delivery",
9050
- label: "Review the refined draft Work Item and mark it ready with `kaddo ready`.",
9051
- command: "kaddo ready",
9053
+ label: single ? `Review ${ids[0]} and mark it ready for implementation.` : "Review refined draft Work Items and mark one ready for implementation.",
9054
+ command: single ? `kaddo ready ${ids[0]}` : "kaddo ready <WI-ID>",
9052
9055
  mcpAction: "kaddo_mark_work_item_ready",
9053
- reason: `There ${st.refined_draft_work_items === 1 ? "is" : "are"} ${st.refined_draft_work_items} refined draft Work Item${st.refined_draft_work_items === 1 ? "" : "s"} awaiting human review.`,
9056
+ ...single ? { target: ids[0], mcpArgs: { id: ids[0] } } : { targets: ids },
9057
+ reason: single ? `${ids[0]} is a refined draft Work Item awaiting human review.` : `There are ${ids.length} refined draft Work Items awaiting human review.`,
9054
9058
  ...secondary.length ? { secondary } : {}
9055
9059
  };
9056
9060
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaddo/cli",
3
- "version": "3.58.0",
3
+ "version": "3.59.0",
4
4
  "description": "Knowledge Driven Development toolkit",
5
5
  "license": "MIT",
6
6
  "repository": {