spacecode 2.4.2 → 2.5.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.
- package/dist/index.js +4 -4
- package/dist/index.js.map +2 -2
- package/dist/repl.mjs +19 -20
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8752,7 +8752,7 @@ Agent error: ${message}
|
|
|
8752
8752
|
fileSync.start();
|
|
8753
8753
|
}
|
|
8754
8754
|
const ttyHost = new URL(wsUrl.replace("wss://", "https://").replace("ws://", "http://")).host;
|
|
8755
|
-
const version = "2.
|
|
8755
|
+
const version = "2.5.1";
|
|
8756
8756
|
if (isResume) {
|
|
8757
8757
|
let turnCount = 0;
|
|
8758
8758
|
try {
|
|
@@ -24199,7 +24199,7 @@ var init_index = __esm({
|
|
|
24199
24199
|
init_analytics();
|
|
24200
24200
|
initPostHog();
|
|
24201
24201
|
program = new import_commander.Command();
|
|
24202
|
-
program.name("spacecode").description("SpaceCode - launch cloud dev environments with AI coding agents").version("2.
|
|
24202
|
+
program.name("spacecode").description("SpaceCode - launch cloud dev environments with AI coding agents").version("2.5.1").enablePositionalOptions();
|
|
24203
24203
|
program.command("launch").description("Launch a new cloud session").option("-R, --repo <repo>", "Clone a GitHub repository into workspace (URL or owner/repo)").option("-n, --new [name]", "Start a new project (optionally specify name, or will prompt)").option("--name <name>", "Name this session for easy reconnection").option("--destroy", "Destroy the session on exit (default: session stays alive)").option("-t, --idle-timeout <minutes>", "Auto-shutdown timeout in minutes (default: 15)", "15").option("--proxy-mode <mode>", 'API proxy mode: "legacy" (round-robin GLM) or "pipeline" (multi-model router)', "pipeline").option("--own-key", "Bring your own API key (no proxy)").option("--api-key <key>", "Use a specific API key (bypasses proxy)").action(async (options) => {
|
|
24204
24204
|
await launchWithOptions(options);
|
|
24205
24205
|
});
|
|
@@ -24320,10 +24320,10 @@ Batch ${result.groupId}: ${result.dispatched}/${result.total} dispatched`));
|
|
|
24320
24320
|
program.command("login").description("Sign in with a SpaceCode API key").option("--api-key <key>", "SpaceCode API key (sk_...) from your dashboard").action(async (opts) => {
|
|
24321
24321
|
await login({ apiKey: opts.apiKey });
|
|
24322
24322
|
});
|
|
24323
|
-
program.command("import-claude").description("Import your Claude Code CLAUDE.md and this project's memory into your SpaceCode profile").option("--dry-run", "Show what would be imported without writing anything").option("--overwrite", "Replace profile items that differ from your Claude Code files").option("--adapt", "
|
|
24323
|
+
program.command("import-claude").description("Import your Claude Code CLAUDE.md and this project's memory into your SpaceCode profile").option("--dry-run", "Show what would be imported without writing anything").option("--overwrite", "Replace profile items that differ from your Claude Code files").option("--no-adapt", "Import CLAUDE.md as is instead of adapting it (default: a short always-on core plus on-demand sections, confirmed before storing)").option("--yes", "Store the adapted result without asking").option("--restore-original", "Put the unadapted CLAUDE.md back as your loaded instructions").action(async (opts) => {
|
|
24324
24324
|
const { startLocalRepl: startLocalRepl2 } = await Promise.resolve().then(() => (init_repl(), repl_exports));
|
|
24325
24325
|
const code = await startLocalRepl2({
|
|
24326
|
-
args: ["import-claude", ...opts.dryRun ? ["--dry-run"] : [], ...opts.overwrite ? ["--overwrite"] : [], ...opts.adapt ? ["--adapt"] : [], ...opts.yes ? ["--yes"] : [], ...opts.restoreOriginal ? ["--restore-original"] : []]
|
|
24326
|
+
args: ["import-claude", ...opts.dryRun ? ["--dry-run"] : [], ...opts.overwrite ? ["--overwrite"] : [], ...opts.adapt === false ? ["--no-adapt"] : [], ...opts.yes ? ["--yes"] : [], ...opts.restoreOriginal ? ["--restore-original"] : []]
|
|
24327
24327
|
});
|
|
24328
24328
|
process.exit(code);
|
|
24329
24329
|
});
|