@kaddo/cli 3.28.1 → 3.28.2
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 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -523,6 +523,7 @@ create --from roadmap → owners → guard → explain`.
|
|
|
523
523
|
| v3.27.3 | Codex adapter reference stabilization: package-manager-aware command fallbacks (lockfile detection) + Adapter Contract & Custom Adapters docs (reference for future adapters) |
|
|
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
|
+
| v3.28.2 | Adapter inject guard: `--inject` on a fully Kaddo-generated AGENTS.md/CLAUDE.md does nothing (suggests `--force`), preventing duplicated Kaddo guidance |
|
|
526
527
|
|
|
527
528
|
**Optional modules (installed with `kaddo add`):**
|
|
528
529
|
|
package/dist/index.js
CHANGED
|
@@ -12634,6 +12634,15 @@ function runAdaptersInstall(adapter, opts = {}) {
|
|
|
12634
12634
|
process.exit(1);
|
|
12635
12635
|
return;
|
|
12636
12636
|
}
|
|
12637
|
+
if (state === "generated_by_kaddo") {
|
|
12638
|
+
intro2(`${cmd} --inject`);
|
|
12639
|
+
log2.warn(`${rel} is already fully generated by Kaddo.`);
|
|
12640
|
+
log2.info("Nothing injected to avoid duplicated Kaddo guidance.");
|
|
12641
|
+
log2.info(`Use \`${cmd} --force\` to regenerate the full file.`);
|
|
12642
|
+
log2.info(`\`--inject\` is for team-owned files: keep your own ${rel} and run \`${cmd} --inject\` to add the Kaddo block.`);
|
|
12643
|
+
outro2("Nothing changed.");
|
|
12644
|
+
return;
|
|
12645
|
+
}
|
|
12637
12646
|
if (existing === null) {
|
|
12638
12647
|
const content2 = renderAdapterMarkdown(ctx, spec.target);
|
|
12639
12648
|
if (opts.dryRun) {
|