crewswarm-cli 0.2.0 → 0.2.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/crew.mjs +7 -3
- package/dist/crew.mjs.map +2 -2
- package/package.json +1 -1
package/dist/crew.mjs
CHANGED
|
@@ -16887,7 +16887,9 @@ async function startRepl(options) {
|
|
|
16887
16887
|
let selectedMode = options.initialMode || repoConfig?.repl?.mode || "manual";
|
|
16888
16888
|
if (!options.initialMode && !repoConfig?.repl?.mode && process.stdin.isTTY) {
|
|
16889
16889
|
try {
|
|
16890
|
-
|
|
16890
|
+
console.log("");
|
|
16891
|
+
const inquirer = await getInquirer();
|
|
16892
|
+
const modeAnswer = await inquirer.prompt([
|
|
16891
16893
|
{
|
|
16892
16894
|
type: "list",
|
|
16893
16895
|
name: "mode",
|
|
@@ -16914,7 +16916,8 @@ async function startRepl(options) {
|
|
|
16914
16916
|
}
|
|
16915
16917
|
]);
|
|
16916
16918
|
selectedMode = modeAnswer.mode;
|
|
16917
|
-
} catch {
|
|
16919
|
+
} catch (err) {
|
|
16920
|
+
console.error("[repl] Mode picker failed, using manual:", err.message);
|
|
16918
16921
|
selectedMode = "manual";
|
|
16919
16922
|
}
|
|
16920
16923
|
}
|
|
@@ -16923,7 +16926,8 @@ async function startRepl(options) {
|
|
|
16923
16926
|
let selectedInterfaceMode = options.initialInterfaceMode || (envInterfaceMode === "connected" ? "connected" : envInterfaceMode === "standalone" ? "standalone" : repoDefaultInterface);
|
|
16924
16927
|
if (options.promptInterfaceMode && process.stdin.isTTY) {
|
|
16925
16928
|
try {
|
|
16926
|
-
const
|
|
16929
|
+
const inquirer2 = await getInquirer();
|
|
16930
|
+
const ifaceAnswer = await inquirer2.prompt([
|
|
16927
16931
|
{
|
|
16928
16932
|
type: "list",
|
|
16929
16933
|
name: "interfaceMode",
|