@kaddo/cli 3.10.1 → 3.11.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.
Files changed (2) hide show
  1. package/dist/index.js +48 -1
  2. 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
 
@@ -2760,7 +2801,7 @@ Conventional Commit message \u2014 as suggestions, never executed.
2760
2801
 
2761
2802
  1. **Suggest a branch first** (do not run it). Follow the Git strategy
2762
2803
  (\`.kaddo/git.yml\` \u2192 \`branchNaming.pattern\`, default \`feature/<work-item-id>-<slug>\`;
2763
- also \`bugfix/\`, \`hotfix/\`, \`spike/\`). If no strategy exists, suggest the default and say so.
2804
+ also \`bugfix/\`, \`hotfix/\`, \`spike/\`, \`chore/\`). If no strategy exists, suggest the default and say so.
2764
2805
  2. Implement the change with tests.
2765
2806
  3. Suggest running \`kaddo scan\` after adding modules, migrations, contracts or significant
2766
2807
  structure.
@@ -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
 
@@ -6123,6 +6166,8 @@ function branchPrefix(type) {
6123
6166
  return "hotfix";
6124
6167
  case "spike":
6125
6168
  return "spike";
6169
+ case "chore":
6170
+ return "chore";
6126
6171
  default:
6127
6172
  return "feature";
6128
6173
  }
@@ -6133,6 +6178,7 @@ function commitPrefix(type) {
6133
6178
  case "hotfix":
6134
6179
  return "fix";
6135
6180
  case "spike":
6181
+ case "chore":
6136
6182
  return "chore";
6137
6183
  default:
6138
6184
  return "feat";
@@ -6217,6 +6263,7 @@ function runUnderstand() {
6217
6263
  }
6218
6264
  writeFile(join(dir, ".kaddo", "understand.md"), renderUnderstand(plan));
6219
6265
  log2.success("Wrote .kaddo/understand.md");
6266
+ printCommandFooter("understand");
6220
6267
  outro2("Handoff ready. CLI prepares context \u2014 your LLM creates the understanding.");
6221
6268
  }
6222
6269
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaddo/cli",
3
- "version": "3.10.1",
3
+ "version": "3.11.1",
4
4
  "description": "Knowledge Driven Development toolkit",
5
5
  "license": "MIT",
6
6
  "repository": {