@kaddo/mcp 3.38.0 → 3.39.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 +10 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1502,6 +1502,9 @@ 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;
|
|
1505
1508
|
return false;
|
|
1506
1509
|
}
|
|
1507
1510
|
function isStructuralLine(line, inFrontMatter) {
|
|
@@ -2290,10 +2293,11 @@ function resolveNextStep(dir, now = /* @__PURE__ */ new Date()) {
|
|
|
2290
2293
|
if (!exists(join(dir, ".kaddo", "understand.md"))) {
|
|
2291
2294
|
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
2295
|
}
|
|
2293
|
-
const
|
|
2296
|
+
const discovery = state === "pre-ai" || state === "legacy";
|
|
2297
|
+
const refine = (id, agent, target, quality, verb = "complete") => ({
|
|
2294
2298
|
id,
|
|
2295
2299
|
phase: "Knowledge Refinement",
|
|
2296
|
-
label: `Use ${agent} to
|
|
2300
|
+
label: `Use ${agent} to ${verb} \`${target}\`.`,
|
|
2297
2301
|
agent,
|
|
2298
2302
|
target,
|
|
2299
2303
|
reason: `${target} is ${quality === "missing" ? "missing" : "still a bootstrap placeholder or too thin"}.`,
|
|
@@ -2305,8 +2309,10 @@ function resolveNextStep(dir, now = /* @__PURE__ */ new Date()) {
|
|
|
2305
2309
|
});
|
|
2306
2310
|
if (qBusiness !== "useful") return refine("refine-business", "business-agent", B, qBusiness);
|
|
2307
2311
|
if (qProduct !== "useful" || qCap !== "useful") {
|
|
2308
|
-
|
|
2309
|
-
|
|
2312
|
+
if (qCap !== "useful") {
|
|
2313
|
+
return refine("refine-product", "capability-agent", CAP, qCap, discovery ? "discover and document existing system capabilities in" : "complete");
|
|
2314
|
+
}
|
|
2315
|
+
return refine("refine-product", "capability-agent", P, qProduct);
|
|
2310
2316
|
}
|
|
2311
2317
|
if (qCurrentState !== "useful") return refine("refine-current-state", "architecture-agent", CS, qCurrentState);
|
|
2312
2318
|
if (qCodebase !== "useful") {
|
package/package.json
CHANGED