@locusai/cli 0.20.3 → 0.20.4
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/bin/locus.js +3 -1
- package/package.json +1 -1
package/bin/locus.js
CHANGED
|
@@ -11871,20 +11871,22 @@ ${bold("Select a provider to create a sandbox for:")}
|
|
|
11871
11871
|
});
|
|
11872
11872
|
return new Promise((resolve2) => {
|
|
11873
11873
|
rl.question("Enter choice (1-2): ", (answer) => {
|
|
11874
|
-
rl.close();
|
|
11875
11874
|
const trimmed = answer.trim().toLowerCase();
|
|
11876
11875
|
if (trimmed === "claude" || trimmed === "codex") {
|
|
11877
11876
|
resolve2(trimmed);
|
|
11877
|
+
rl.close();
|
|
11878
11878
|
return;
|
|
11879
11879
|
}
|
|
11880
11880
|
const num = Number.parseInt(trimmed, 10);
|
|
11881
11881
|
if (num >= 1 && num <= PROVIDERS.length) {
|
|
11882
11882
|
resolve2(PROVIDERS[num - 1]);
|
|
11883
|
+
rl.close();
|
|
11883
11884
|
return;
|
|
11884
11885
|
}
|
|
11885
11886
|
process.stderr.write(`${red("✗")} Invalid selection.
|
|
11886
11887
|
`);
|
|
11887
11888
|
resolve2(null);
|
|
11889
|
+
rl.close();
|
|
11888
11890
|
});
|
|
11889
11891
|
rl.on("close", () => resolve2(null));
|
|
11890
11892
|
});
|