@kaddo/cli 3.28.2 → 3.29.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/README.md +1 -0
- package/dist/index.js +9 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -524,6 +524,7 @@ create --from roadmap → owners → guard → explain`.
|
|
|
524
524
|
| v3.28 | Claude Code adapter: `kaddo adapters install claude` (alias `kaddo export claude`) generates a `CLAUDE.md` projection reusing the shared adapter common core (`--dry-run`/`--force`) |
|
|
525
525
|
| v3.28.1 | Claude adapter safe merge: `--inject` works for `CLAUDE.md` too; adapter markers are now target-neutral (`KADDO ADAPTER`) and legacy Codex markers auto-migrate on update |
|
|
526
526
|
| v3.28.2 | Adapter inject guard: `--inject` on a fully Kaddo-generated AGENTS.md/CLAUDE.md does nothing (suggests `--force`), preventing duplicated Kaddo guidance |
|
|
527
|
+
| v3.29 | OpenCode adapter: `kaddo adapters install opencode` (alias `kaddo export opencode`) generates an `AGENTS.md` projection reusing the shared adapter common core (`--dry-run`/`--force`/`--inject` + inject guard) |
|
|
527
528
|
|
|
528
529
|
**Optional modules (installed with `kaddo add`):**
|
|
529
530
|
|
package/dist/index.js
CHANGED
|
@@ -12404,7 +12404,11 @@ var ROLE_HINTS = {
|
|
|
12404
12404
|
"graph-agent": "use to turn graph hints into front matter.",
|
|
12405
12405
|
"capsule-agent": "use to refine a Knowledge Capsule for sharing."
|
|
12406
12406
|
};
|
|
12407
|
-
var TARGET_FILE = {
|
|
12407
|
+
var TARGET_FILE = {
|
|
12408
|
+
codex: "AGENTS.md",
|
|
12409
|
+
claude: "CLAUDE.md",
|
|
12410
|
+
opencode: "AGENTS.md"
|
|
12411
|
+
};
|
|
12408
12412
|
function renderAdapterMarkdown(ctx, target) {
|
|
12409
12413
|
const file = TARGET_FILE[target];
|
|
12410
12414
|
const L = [];
|
|
@@ -12608,7 +12612,8 @@ ${sep}${block}
|
|
|
12608
12612
|
// src/commands/adapters.ts
|
|
12609
12613
|
var TARGETS2 = {
|
|
12610
12614
|
codex: { target: "codex", file: "AGENTS.md", label: "Codex", supportsInject: true },
|
|
12611
|
-
claude: { target: "claude", file: "CLAUDE.md", label: "Claude Code", supportsInject: true }
|
|
12615
|
+
claude: { target: "claude", file: "CLAUDE.md", label: "Claude Code", supportsInject: true },
|
|
12616
|
+
opencode: { target: "opencode", file: "AGENTS.md", label: "OpenCode", supportsInject: true }
|
|
12612
12617
|
};
|
|
12613
12618
|
function runAdaptersInstall(adapter, opts = {}) {
|
|
12614
12619
|
const dir = cwd();
|
|
@@ -12750,10 +12755,10 @@ var questionsAction = (opts) => runQuestions(opts);
|
|
|
12750
12755
|
program.command("questions").description("Open-questions readiness gate: blocking/important/deferred decisions before the roadmap").option("--json", "Output JSON instead of a summary").option("--output <path>", "Write the report to a file (e.g. .kaddo/reports/questions-report.md)").action(questionsAction);
|
|
12751
12756
|
program.command("readiness").description("Alias for `kaddo questions`").option("--json", "Output JSON instead of a summary").option("--output <path>", "Write the report to a file").action(questionsAction);
|
|
12752
12757
|
var adaptersCmd = program.command("adapters").description("Generate adapters that project Kaddo knowledge for external coding agents");
|
|
12753
|
-
adaptersCmd.command("install <adapter>").description("Generate an adapter file (codex \u2192 AGENTS.md, claude \u2192 CLAUDE.md) from Kaddo knowledge").option("--force", "Overwrite an existing output file").option("--inject", "Add or update only the Kaddo block in an existing file, preserving the rest").option("--dry-run", "Print the content without writing files").action((adapter, opts) => {
|
|
12758
|
+
adaptersCmd.command("install <adapter>").description("Generate an adapter file (codex/opencode \u2192 AGENTS.md, claude \u2192 CLAUDE.md) from Kaddo knowledge").option("--force", "Overwrite an existing output file").option("--inject", "Add or update only the Kaddo block in an existing file, preserving the rest").option("--dry-run", "Print the content without writing files").action((adapter, opts) => {
|
|
12754
12759
|
runAdaptersInstall(adapter, opts);
|
|
12755
12760
|
});
|
|
12756
|
-
program.command("export <adapter>").description("Alias for `kaddo adapters install <adapter>` (codex \u2192 AGENTS.md, claude \u2192 CLAUDE.md)").option("--force", "Overwrite an existing output file").option("--inject", "Add or update only the Kaddo block in an existing file, preserving the rest").option("--dry-run", "Print the content without writing files").action((adapter, opts) => {
|
|
12761
|
+
program.command("export <adapter>").description("Alias for `kaddo adapters install <adapter>` (codex/opencode \u2192 AGENTS.md, claude \u2192 CLAUDE.md)").option("--force", "Overwrite an existing output file").option("--inject", "Add or update only the Kaddo block in an existing file, preserving the rest").option("--dry-run", "Print the content without writing files").action((adapter, opts) => {
|
|
12757
12762
|
runAdaptersInstall(adapter, opts);
|
|
12758
12763
|
});
|
|
12759
12764
|
program.command("guard").description("Check if modified code has related artifacts that were not updated").option("--staged", "Check only staged files").option("--no-interactive", "Disable interactive ignore prompts").option("--ci", "CI mode: output JSON, no prompts, non-blocking").option("--json", "Output JSON (alias for --ci)").option("--workspace", "Also check local mapped module repos from .kaddo/modules.yml (opt-in)").option("--include-archived", "Include archived Work Items in ownership matching (excluded by default)").option("--record", "Record this run to .kaddo/history/ for drift trend reporting").action(async (opts) => {
|