@kaddo/mcp 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.
- package/dist/index.js +7 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2450,6 +2450,7 @@ function buildDeliveryState(dir) {
|
|
|
2450
2450
|
phase: "",
|
|
2451
2451
|
draft_work_items: byState("draft"),
|
|
2452
2452
|
refined_draft_work_items: wis.filter((w) => w.lifecycle === "draft" && w.rawFrontmatter.refined_by).length,
|
|
2453
|
+
refined_draft_ids: wis.filter((w) => w.lifecycle === "draft" && w.rawFrontmatter.refined_by).map((w) => w.id),
|
|
2453
2454
|
ready_work_items: byState("ready"),
|
|
2454
2455
|
in_progress_work_items: byState("in-progress"),
|
|
2455
2456
|
blocked_work_items: byState("blocked"),
|
|
@@ -2578,13 +2579,16 @@ function resolveNextStep(dir, now = /* @__PURE__ */ new Date()) {
|
|
|
2578
2579
|
const roadmap = roadmapSignal(dir);
|
|
2579
2580
|
if (roadmap !== "has-candidates" && st.draft_work_items > 0) {
|
|
2580
2581
|
if (st.refined_draft_work_items > 0) {
|
|
2582
|
+
const ids = st.refined_draft_ids;
|
|
2583
|
+
const single = ids.length === 1;
|
|
2581
2584
|
return {
|
|
2582
2585
|
id: "review-work-item",
|
|
2583
2586
|
phase: "Active Delivery",
|
|
2584
|
-
label: "Review
|
|
2585
|
-
command: "kaddo ready",
|
|
2587
|
+
label: single ? `Review ${ids[0]} and mark it ready for implementation.` : "Review refined draft Work Items and mark one ready for implementation.",
|
|
2588
|
+
command: single ? `kaddo ready ${ids[0]}` : "kaddo ready <WI-ID>",
|
|
2586
2589
|
mcpAction: "kaddo_mark_work_item_ready",
|
|
2587
|
-
|
|
2590
|
+
...single ? { target: ids[0], mcpArgs: { id: ids[0] } } : { targets: ids },
|
|
2591
|
+
reason: single ? `${ids[0]} is a refined draft Work Item awaiting human review.` : `There are ${ids.length} refined draft Work Items awaiting human review.`,
|
|
2588
2592
|
...secondary.length ? { secondary } : {}
|
|
2589
2593
|
};
|
|
2590
2594
|
}
|
package/package.json
CHANGED