@kaddo/cli 3.10.1 → 3.11.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 +44 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -603,6 +603,46 @@ function describeProject(config) {
|
|
|
603
603
|
return `${stateLabel4} ${config.project.structure}`;
|
|
604
604
|
}
|
|
605
605
|
|
|
606
|
+
// src/core/command-help.ts
|
|
607
|
+
var COMMAND_HELP = {
|
|
608
|
+
init: { question: "How do I start a Kaddo project?", next: "kaddo bootstrap" },
|
|
609
|
+
bootstrap: {
|
|
610
|
+
question: "What minimum knowledge should exist?",
|
|
611
|
+
next: "kaddo add agents, then kaddo context"
|
|
612
|
+
},
|
|
613
|
+
scan: {
|
|
614
|
+
question: "What technical signals exist in the repository?",
|
|
615
|
+
next: "kaddo explain (inspect) or kaddo context (package for an LLM)"
|
|
616
|
+
},
|
|
617
|
+
context: {
|
|
618
|
+
question: "What should I give to an LLM?",
|
|
619
|
+
next: "Use the recommended agent \u2014 run kaddo understand to pick it"
|
|
620
|
+
},
|
|
621
|
+
understand: {
|
|
622
|
+
question: "What should I do now?",
|
|
623
|
+
next: "Execute the recommended action shown above"
|
|
624
|
+
},
|
|
625
|
+
explain: { question: "What does Kaddo know?", next: "kaddo understand" },
|
|
626
|
+
create: {
|
|
627
|
+
question: "How do roadmap candidates become Work Items?",
|
|
628
|
+
next: "Refine it with the work-item-agent"
|
|
629
|
+
},
|
|
630
|
+
"owners suggest": { question: "Who owns this code?", next: "kaddo guard" },
|
|
631
|
+
guard: {
|
|
632
|
+
question: "Is knowledge drifting from code?",
|
|
633
|
+
next: "Update the affected knowledge, then commit"
|
|
634
|
+
},
|
|
635
|
+
"add agents": { question: "Which agents are available?", next: "kaddo understand" }
|
|
636
|
+
};
|
|
637
|
+
function commandFooterLines(name) {
|
|
638
|
+
const help = COMMAND_HELP[name];
|
|
639
|
+
if (!help) return [];
|
|
640
|
+
return ["", `Question answered: ${help.question}`, `Suggested next: ${help.next}`];
|
|
641
|
+
}
|
|
642
|
+
function printCommandFooter(name) {
|
|
643
|
+
for (const line of commandFooterLines(name)) console.log(line);
|
|
644
|
+
}
|
|
645
|
+
|
|
606
646
|
// src/commands/scan.ts
|
|
607
647
|
function printResult(result) {
|
|
608
648
|
console.log("");
|
|
@@ -721,6 +761,7 @@ async function runScan() {
|
|
|
721
761
|
log2.warn("No .kaddo/config.yml found. Run `kaddo init` first to record project context.");
|
|
722
762
|
}
|
|
723
763
|
printStateAwareNextStep(dir);
|
|
764
|
+
printCommandFooter("scan");
|
|
724
765
|
outro2("Scan complete.");
|
|
725
766
|
}
|
|
726
767
|
|
|
@@ -5554,6 +5595,7 @@ function runExplain(opts) {
|
|
|
5554
5595
|
explainForAgent(dir, artifacts, opts);
|
|
5555
5596
|
} else {
|
|
5556
5597
|
explainForHuman(dir, artifacts, opts);
|
|
5598
|
+
printCommandFooter("explain");
|
|
5557
5599
|
}
|
|
5558
5600
|
}
|
|
5559
5601
|
|
|
@@ -5944,6 +5986,7 @@ function runContext(opts = {}) {
|
|
|
5944
5986
|
log2.warn(`Some context is missing (${pack.missing.length} item(s)) \u2014 see the pack's "Missing Context" section.`);
|
|
5945
5987
|
}
|
|
5946
5988
|
log2.info("Paste .kaddo/context-pack.md into your LLM chat alongside a Kaddo agent prompt.");
|
|
5989
|
+
printCommandFooter("context");
|
|
5947
5990
|
outro2("Context pack ready.");
|
|
5948
5991
|
}
|
|
5949
5992
|
|
|
@@ -6217,6 +6260,7 @@ function runUnderstand() {
|
|
|
6217
6260
|
}
|
|
6218
6261
|
writeFile(join(dir, ".kaddo", "understand.md"), renderUnderstand(plan));
|
|
6219
6262
|
log2.success("Wrote .kaddo/understand.md");
|
|
6263
|
+
printCommandFooter("understand");
|
|
6220
6264
|
outro2("Handoff ready. CLI prepares context \u2014 your LLM creates the understanding.");
|
|
6221
6265
|
}
|
|
6222
6266
|
|