spacecode 2.0.1 → 2.0.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/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.0.1";
8755
+ const version = "2.0.2";
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"] : []];
23916
+ const args = [bin, ...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.0.1").enablePositionalOptions();
24202
+ program.name("spacecode").description("SpaceCode - launch cloud dev environments with AI coding agents").version("2.0.2").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
  });
@@ -24438,12 +24438,12 @@ Batch ${result.groupId}: ${result.dispatched}/${result.total} dispatched`));
24438
24438
  showConfigPaths();
24439
24439
  }
24440
24440
  });
24441
- program.argument("[target]", "Repo (owner/repo) to launch, or session name/ID to attach").option("-p, --prompt [prompt]", "Run headless (non-interactive)").option("--output-format <format>", "Output format for -p: text (default) or json", "text").option("-v, --verbose", "Show detailed progress (phases, stderr)").option("-R, --repo <repo>", "Clone a GitHub repository into workspace").option("-n, --new [name]", "Start a new project").option("--name <name>", "Name this session for easy reconnection").option("--destroy", "Destroy the session on exit").option("-b, --branch <branch>", "Branch name for the task").option("--no-commit", "Skip auto-commit and PR creation").option("-t, --idle-timeout <minutes>", "Auto-shutdown timeout (default: 15)", "15").option("--proxy-mode <mode>", "API proxy mode", "pipeline").option("--own-key", "Bring your own API key").option("--api-key <key>", "Use a specific API key").option("--session <id>", "Resume an existing agent session").option("--cloud", "With no target: start a cloud agent session instead of the local REPL").option("--yolo", "Local REPL: skip confirmation prompts (policy denies still apply)").action(async (target, options) => {
24441
+ program.argument("[target]", "Repo (owner/repo) to launch, or session name/ID to attach").option("-p, --prompt [prompt]", "Run headless (non-interactive)").option("--output-format <format>", "Output format for -p: text (default) or json", "text").option("-v, --verbose", "Show detailed progress (phases, stderr)").option("-R, --repo <repo>", "Clone a GitHub repository into workspace").option("-n, --new [name]", "Start a new project").option("--name <name>", "Name this session for easy reconnection").option("--destroy", "Destroy the session on exit").option("-b, --branch <branch>", "Branch name for the task").option("--no-commit", "Skip auto-commit and PR creation").option("-t, --idle-timeout <minutes>", "Auto-shutdown timeout (default: 15)", "15").option("--proxy-mode <mode>", "API proxy mode", "pipeline").option("--own-key", "Bring your own API key").option("--api-key <key>", "Use a specific API key").option("--session <id>", "Resume an existing agent session").option("--cloud", "With no target: start a cloud agent session instead of the local REPL").option("--yolo", "Local REPL: skip confirmation prompts (policy denies still apply)").option("--continue", "Local REPL: resume the newest saved conversation for this project").action(async (target, options) => {
24442
24442
  try {
24443
24443
  applyApiKeyFlag(options.apiKey);
24444
24444
  if (!target && !options.session && options.prompt === void 0 && !options.cloud && !options.repo && !options.new) {
24445
24445
  const { startLocalRepl: startLocalRepl2 } = await Promise.resolve().then(() => (init_repl(), repl_exports));
24446
- process.exit(await startLocalRepl2({ yolo: options.yolo }));
24446
+ process.exit(await startLocalRepl2({ yolo: options.yolo, resume: options.continue }));
24447
24447
  }
24448
24448
  if (options.session) {
24449
24449
  let sessionId = options.session;