spacecode 2.2.2 → 2.4.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 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.2.2";
8755
+ const version = "2.4.0";
8756
8756
  if (isResume) {
8757
8757
  let turnCount = 0;
8758
8758
  try {
@@ -23913,7 +23913,7 @@ async function startLocalRepl(opts = {}) {
23913
23913
  "Local REPL not built. Run `pnpm --filter @spacecode/agent-ui build` (or set SPACECODE_REPL_BIN), or use `spacecode --cloud` for a cloud session."
23914
23914
  );
23915
23915
  }
23916
- const args = [bin, ...opts.yolo ? ["--yolo"] : [], ...opts.resume ? ["--continue"] : []];
23916
+ const args = [bin, ...opts.args ?? [], ...opts.yolo ? ["--yolo"] : [], ...opts.resume ? ["--continue"] : []];
23917
23917
  return new Promise((resolve2, reject) => {
23918
23918
  const child = (0, import_node_child_process3.spawn)(process.execPath, args, { stdio: "inherit" });
23919
23919
  child.on("error", reject);
@@ -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.2.2").enablePositionalOptions();
24202
+ program.name("spacecode").description("SpaceCode - launch cloud dev environments with AI coding agents").version("2.4.0").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,6 +24320,13 @@ 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", "Adapt CLAUDE.md for SpaceCode: short always-on core plus on-demand sections (asks before storing)").option("--yes", "With --adapt: store the adapted result without asking").option("--restore-original", "Put the unadapted CLAUDE.md back as your loaded instructions").action(async (opts) => {
24324
+ const { startLocalRepl: startLocalRepl2 } = await Promise.resolve().then(() => (init_repl(), repl_exports));
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"] : []]
24327
+ });
24328
+ process.exit(code);
24329
+ });
24323
24330
  program.command("logout").description("Clear authentication credentials").action(async () => {
24324
24331
  await logout();
24325
24332
  });