@kaddo/mcp 3.38.0 → 3.39.1
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 +13 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1502,6 +1502,12 @@ function isPlaceholderLine(line) {
|
|
|
1502
1502
|
if (/^[-*]\s+(\[[^\]]+\]\s*)?_.+_$/.test(t)) return true;
|
|
1503
1503
|
if (/^[-*]\s+\[[^\]]+\]\s*$/.test(t)) return true;
|
|
1504
1504
|
if (/^_(?:Describe|List|Document|What|Which|Who|Use|To be defined|No production code)\b/i.test(t)) return true;
|
|
1505
|
+
if (/<[^>]+>/.test(t)) return true;
|
|
1506
|
+
if (/^[-*]\s+[^:]+:\s*$/.test(t)) return true;
|
|
1507
|
+
if (/^[-*]\s+[^:]+:\s*\S.*\s\|\s/.test(t)) return true;
|
|
1508
|
+
if (/^\*\*[^*]+:\*\*\s*$/.test(t)) return true;
|
|
1509
|
+
if (/^\*\*[^*]+:\*\*\s*_.*_$/.test(t)) return true;
|
|
1510
|
+
if (/^\*\*[^*]+:\*\*\s*\S.*\s\|\s/.test(t)) return true;
|
|
1505
1511
|
return false;
|
|
1506
1512
|
}
|
|
1507
1513
|
function isStructuralLine(line, inFrontMatter) {
|
|
@@ -2290,10 +2296,11 @@ function resolveNextStep(dir, now = /* @__PURE__ */ new Date()) {
|
|
|
2290
2296
|
if (!exists(join(dir, ".kaddo", "understand.md"))) {
|
|
2291
2297
|
return { id: "understand", phase: "Discovery", label: "Run `kaddo understand` to summarize the project context.", command: "kaddo understand", reason: "No understand handoff has been generated yet." };
|
|
2292
2298
|
}
|
|
2293
|
-
const
|
|
2299
|
+
const discovery = state === "pre-ai" || state === "legacy";
|
|
2300
|
+
const refine = (id, agent, target, quality, verb = "complete") => ({
|
|
2294
2301
|
id,
|
|
2295
2302
|
phase: "Knowledge Refinement",
|
|
2296
|
-
label: `Use ${agent} to
|
|
2303
|
+
label: `Use ${agent} to ${verb} \`${target}\`.`,
|
|
2297
2304
|
agent,
|
|
2298
2305
|
target,
|
|
2299
2306
|
reason: `${target} is ${quality === "missing" ? "missing" : "still a bootstrap placeholder or too thin"}.`,
|
|
@@ -2305,8 +2312,10 @@ function resolveNextStep(dir, now = /* @__PURE__ */ new Date()) {
|
|
|
2305
2312
|
});
|
|
2306
2313
|
if (qBusiness !== "useful") return refine("refine-business", "business-agent", B, qBusiness);
|
|
2307
2314
|
if (qProduct !== "useful" || qCap !== "useful") {
|
|
2308
|
-
|
|
2309
|
-
|
|
2315
|
+
if (qCap !== "useful") {
|
|
2316
|
+
return refine("refine-product", "capability-agent", CAP, qCap, discovery ? "discover and document existing system capabilities grouped by functional domains in" : "complete");
|
|
2317
|
+
}
|
|
2318
|
+
return refine("refine-product", "capability-agent", P, qProduct);
|
|
2310
2319
|
}
|
|
2311
2320
|
if (qCurrentState !== "useful") return refine("refine-current-state", "architecture-agent", CS, qCurrentState);
|
|
2312
2321
|
if (qCodebase !== "useful") {
|
package/package.json
CHANGED