spacecode 2.4.2 → 2.5.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 +4 -4
- package/dist/index.js.map +2 -2
- package/dist/repl.mjs +4 -4
- package/package.json +1 -1
package/dist/repl.mjs
CHANGED
|
@@ -5663,7 +5663,7 @@ __export(import_claude_exports, {
|
|
|
5663
5663
|
});
|
|
5664
5664
|
async function runImportClaude(deps) {
|
|
5665
5665
|
const flags = deps.argv.filter((a) => a !== "import-claude");
|
|
5666
|
-
const unknown = flags.filter((f) => !["--dry-run", "--overwrite", "--adapt", "--yes", "--restore-original"].includes(f));
|
|
5666
|
+
const unknown = flags.filter((f) => !["--dry-run", "--overwrite", "--adapt", "--no-adapt", "--yes", "--restore-original"].includes(f));
|
|
5667
5667
|
if (unknown.length > 0) {
|
|
5668
5668
|
deps.log(`Unknown option: ${unknown.join(" ")}
|
|
5669
5669
|
${USAGE}`);
|
|
@@ -5671,9 +5671,9 @@ ${USAGE}`);
|
|
|
5671
5671
|
}
|
|
5672
5672
|
const dryRun = flags.includes("--dry-run");
|
|
5673
5673
|
const overwrite = flags.includes("--overwrite");
|
|
5674
|
-
const adapt = flags.includes("--adapt");
|
|
5674
|
+
const adapt = !flags.includes("--no-adapt");
|
|
5675
5675
|
const restore = flags.includes("--restore-original");
|
|
5676
|
-
if (restore && (adapt || dryRun)) {
|
|
5676
|
+
if (restore && (flags.includes("--adapt") || dryRun)) {
|
|
5677
5677
|
deps.log(`--restore-original cannot be combined with --adapt or --dry-run
|
|
5678
5678
|
${USAGE}`);
|
|
5679
5679
|
return 2;
|
|
@@ -5759,7 +5759,7 @@ var init_import_claude = __esm({
|
|
|
5759
5759
|
init_api_key();
|
|
5760
5760
|
init_profile_runtime();
|
|
5761
5761
|
init_import_adapt();
|
|
5762
|
-
USAGE = "Usage: spacecode import-claude [--dry-run] [--overwrite] [--adapt [--yes]
|
|
5762
|
+
USAGE = "Usage: spacecode import-claude [--dry-run] [--overwrite] [--no-adapt] [--yes] [--restore-original]";
|
|
5763
5763
|
}
|
|
5764
5764
|
});
|
|
5765
5765
|
|