buildwithnexus 0.8.3 → 0.8.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/dist/bin.js +6 -25
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -1593,7 +1593,7 @@ init_secrets();
|
|
|
1593
1593
|
init_docker();
|
|
1594
1594
|
|
|
1595
1595
|
// src/core/version.ts
|
|
1596
|
-
var resolvedVersion = true ? "0.8.
|
|
1596
|
+
var resolvedVersion = true ? "0.8.4" : pkg.version;
|
|
1597
1597
|
|
|
1598
1598
|
// src/cli/interactive.ts
|
|
1599
1599
|
var appVersion = resolvedVersion;
|
|
@@ -1653,36 +1653,17 @@ ${urlCheck.error}`));
|
|
|
1653
1653
|
output: process.stdout
|
|
1654
1654
|
});
|
|
1655
1655
|
let modeIndicator = "";
|
|
1656
|
-
let shiftTabPressed = false;
|
|
1657
|
-
let requestedModeSwitch = false;
|
|
1658
|
-
if (process.stdin.isTTY) {
|
|
1659
|
-
process.stdin.setRawMode(true);
|
|
1660
|
-
const originalKD = process.stdin._handle?.onread;
|
|
1661
|
-
process.stdin.on("data", (data) => {
|
|
1662
|
-
if (data.toString() === "\x1B[Z") {
|
|
1663
|
-
shiftTabPressed = true;
|
|
1664
|
-
requestedModeSwitch = true;
|
|
1665
|
-
}
|
|
1666
|
-
});
|
|
1667
|
-
}
|
|
1668
1656
|
const ask = (question, currentMode) => new Promise((resolve) => {
|
|
1669
1657
|
if (currentMode) {
|
|
1670
1658
|
const agentNames = {
|
|
1671
1659
|
PLAN: "\u{1F3AF} Planner",
|
|
1672
1660
|
BUILD: "\u{1F528} Builder",
|
|
1673
|
-
BRAINSTORM: "\u{1F4A1}
|
|
1661
|
+
BRAINSTORM: "\u{1F4A1} Chief of Staff"
|
|
1674
1662
|
};
|
|
1675
1663
|
modeIndicator = `
|
|
1676
1664
|
${chalk3.dim(`\u2192 ${agentNames[currentMode]}`)}`;
|
|
1677
1665
|
}
|
|
1678
|
-
rl.question(question + modeIndicator,
|
|
1679
|
-
if (requestedModeSwitch) {
|
|
1680
|
-
requestedModeSwitch = false;
|
|
1681
|
-
resolve("__SHIFT_TAB__");
|
|
1682
|
-
} else {
|
|
1683
|
-
resolve(answer);
|
|
1684
|
-
}
|
|
1685
|
-
});
|
|
1666
|
+
rl.question(question + modeIndicator, resolve);
|
|
1686
1667
|
});
|
|
1687
1668
|
console.clear();
|
|
1688
1669
|
console.log(chalk3.gray("Welcome! Describe what you want the AI agents to do."));
|
|
@@ -1867,7 +1848,7 @@ async function planModeLoop(task, backendUrl, currentMode, ask) {
|
|
|
1867
1848
|
displayPlanSteps(steps);
|
|
1868
1849
|
continue;
|
|
1869
1850
|
}
|
|
1870
|
-
if (answer === "
|
|
1851
|
+
if (answer === "s" || answer === "switch") {
|
|
1871
1852
|
return "switch";
|
|
1872
1853
|
}
|
|
1873
1854
|
}
|
|
@@ -1970,7 +1951,7 @@ async function buildModeLoop(task, backendUrl, currentMode, ask) {
|
|
|
1970
1951
|
chalk3.gray("Options: ") + chalk3.bold("[Enter]") + chalk3.gray(" Done ") + chalk3.bold("[s]") + chalk3.gray(" Switch mode")
|
|
1971
1952
|
);
|
|
1972
1953
|
const answer = (await ask(chalk3.bold("> "), currentMode)).trim().toLowerCase();
|
|
1973
|
-
if (answer === "
|
|
1954
|
+
if (answer === "s" || answer === "switch") return "switch";
|
|
1974
1955
|
return "done";
|
|
1975
1956
|
}
|
|
1976
1957
|
async function brainstormModeLoop(task, backendUrl, currentMode, ask) {
|
|
@@ -2061,7 +2042,7 @@ async function brainstormModeLoop(task, backendUrl, currentMode, ask) {
|
|
|
2061
2042
|
const followUp = await ask(chalk3.bold.blue("\u{1F4AC} You: "), currentMode);
|
|
2062
2043
|
const lower = followUp.trim().toLowerCase();
|
|
2063
2044
|
if (lower === "done" || lower === "exit") return "done";
|
|
2064
|
-
if (lower === "
|
|
2045
|
+
if (lower === "switch") return "switch";
|
|
2065
2046
|
if (!followUp.trim()) continue;
|
|
2066
2047
|
currentQuestion = followUp.trim();
|
|
2067
2048
|
}
|