@locusai/cli 0.20.3 → 0.20.5

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.
Files changed (2) hide show
  1. package/bin/locus.js +4 -28
  2. package/package.json +1 -1
package/bin/locus.js CHANGED
@@ -11793,8 +11793,7 @@ var exports_sandbox2 = {};
11793
11793
  __export(exports_sandbox2, {
11794
11794
  sandboxCommand: () => sandboxCommand,
11795
11795
  parseSandboxLogsArgs: () => parseSandboxLogsArgs,
11796
- parseSandboxInstallArgs: () => parseSandboxInstallArgs,
11797
- parseSandboxExecArgs: () => parseSandboxExecArgs
11796
+ parseSandboxInstallArgs: () => parseSandboxInstallArgs
11798
11797
  });
11799
11798
  import { execSync as execSync17, spawn as spawn6 } from "node:child_process";
11800
11799
  import { createHash } from "node:crypto";
@@ -11871,20 +11870,22 @@ ${bold("Select a provider to create a sandbox for:")}
11871
11870
  });
11872
11871
  return new Promise((resolve2) => {
11873
11872
  rl.question("Enter choice (1-2): ", (answer) => {
11874
- rl.close();
11875
11873
  const trimmed = answer.trim().toLowerCase();
11876
11874
  if (trimmed === "claude" || trimmed === "codex") {
11877
11875
  resolve2(trimmed);
11876
+ rl.close();
11878
11877
  return;
11879
11878
  }
11880
11879
  const num = Number.parseInt(trimmed, 10);
11881
11880
  if (num >= 1 && num <= PROVIDERS.length) {
11882
11881
  resolve2(PROVIDERS[num - 1]);
11882
+ rl.close();
11883
11883
  return;
11884
11884
  }
11885
11885
  process.stderr.write(`${red("✗")} Invalid selection.
11886
11886
  `);
11887
11887
  resolve2(null);
11888
+ rl.close();
11888
11889
  });
11889
11890
  rl.on("close", () => resolve2(null));
11890
11891
  });
@@ -12151,31 +12152,6 @@ async function handleInstall(projectRoot, args) {
12151
12152
  `);
12152
12153
  }
12153
12154
  }
12154
- function parseSandboxExecArgs(args) {
12155
- if (args.length === 0) {
12156
- return {
12157
- command: [],
12158
- error: "Usage: locus sandbox exec <provider> -- <command...>"
12159
- };
12160
- }
12161
- const provider = args[0];
12162
- if (provider !== "claude" && provider !== "codex") {
12163
- return {
12164
- command: [],
12165
- error: `Invalid provider "${provider}". Expected claude or codex.`
12166
- };
12167
- }
12168
- const separatorIndex = args.indexOf("--");
12169
- const command = separatorIndex >= 0 ? args.slice(separatorIndex + 1) : args.slice(1);
12170
- if (command.length === 0) {
12171
- return {
12172
- provider,
12173
- command: [],
12174
- error: "Missing command. Example: locus sandbox exec codex -- bun --version"
12175
- };
12176
- }
12177
- return { provider, command };
12178
- }
12179
12155
  async function handleShell(projectRoot, args) {
12180
12156
  const provider = args[0];
12181
12157
  if (provider !== "claude" && provider !== "codex") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locusai/cli",
3
- "version": "0.20.3",
3
+ "version": "0.20.5",
4
4
  "description": "GitHub-native AI engineering assistant",
5
5
  "type": "module",
6
6
  "bin": {