buildwithnexus 0.8.4 → 0.8.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/dist/bin.js +12 -22
  2. 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.4" : pkg.version;
1596
+ var resolvedVersion = true ? "0.8.5" : pkg.version;
1597
1597
 
1598
1598
  // src/cli/interactive.ts
1599
1599
  var appVersion = resolvedVersion;
@@ -1652,18 +1652,8 @@ ${urlCheck.error}`));
1652
1652
  input: process.stdin,
1653
1653
  output: process.stdout
1654
1654
  });
1655
- let modeIndicator = "";
1656
- const ask = (question, currentMode) => new Promise((resolve) => {
1657
- if (currentMode) {
1658
- const agentNames = {
1659
- PLAN: "\u{1F3AF} Planner",
1660
- BUILD: "\u{1F528} Builder",
1661
- BRAINSTORM: "\u{1F4A1} Chief of Staff"
1662
- };
1663
- modeIndicator = `
1664
- ${chalk3.dim(`\u2192 ${agentNames[currentMode]}`)}`;
1665
- }
1666
- rl.question(question + modeIndicator, resolve);
1655
+ const ask = (question) => new Promise((resolve) => {
1656
+ rl.question(question, resolve);
1667
1657
  });
1668
1658
  console.clear();
1669
1659
  console.log(chalk3.gray("Welcome! Describe what you want the AI agents to do."));
@@ -1697,7 +1687,7 @@ async function selectMode(suggested, ask) {
1697
1687
  chalk3.gray("Press ") + chalk3.bold("Enter") + chalk3.gray(" to use ") + modeColor[suggested](suggested) + chalk3.gray(" or choose a mode:")
1698
1688
  );
1699
1689
  console.log(
1700
- chalk3.gray(" ") + chalk3.cyan.bold("[1] PLAN") + chalk3.gray(" (p) design & break down steps") + chalk3.gray("\n ") + chalk3.green.bold("[2] BUILD") + chalk3.gray(" (b) execute with live streaming") + chalk3.gray("\n ") + chalk3.blue.bold("[3] BRAINSTORM") + chalk3.gray(" (bs) free-form explore & Q&A")
1690
+ chalk3.gray(" ") + chalk3.cyan.bold("[1] PLAN") + chalk3.gray(" design & break down steps") + chalk3.gray("\n ") + chalk3.green.bold("[2] BUILD") + chalk3.gray(" execute with live streaming") + chalk3.gray("\n ") + chalk3.blue.bold("[3] BRAINSTORM") + chalk3.gray(" free-form explore & Q&A")
1701
1691
  );
1702
1692
  const answer = await ask(chalk3.gray("> "));
1703
1693
  const lower = answer.trim().toLowerCase();
@@ -1834,8 +1824,8 @@ async function planModeLoop(task, backendUrl, currentMode, ask) {
1834
1824
  }
1835
1825
  displayPlanSteps(steps);
1836
1826
  while (true) {
1837
- console.log(chalk3.gray("Options: ") + chalk3.bold("[Y]") + chalk3.gray(" Execute ") + chalk3.bold("[e]") + chalk3.gray(" Edit step ") + chalk3.bold("[s]") + chalk3.gray(" Switch mode ") + chalk3.bold("[Esc/n]") + chalk3.gray(" Cancel"));
1838
- const answer = (await ask(tui.displayPermissionPrompt("Execute this plan?"), currentMode)).trim().toLowerCase();
1827
+ console.log(chalk3.gray("Options: ") + chalk3.bold("[Y]") + chalk3.gray(" Execute ") + chalk3.bold("[e]") + chalk3.gray(" Edit step ") + chalk3.bold("[n]") + chalk3.gray(" Cancel"));
1828
+ const answer = (await ask(tui.displayPermissionPrompt("Execute this plan?"))).trim().toLowerCase();
1839
1829
  if (answer === "" || answer === "y") {
1840
1830
  return "BUILD";
1841
1831
  }
@@ -1871,11 +1861,11 @@ function displayPlanSteps(steps) {
1871
1861
  }
1872
1862
  async function editPlanSteps(steps, currentMode, ask) {
1873
1863
  console.log(chalk3.gray("Enter step number to edit, or press Enter to finish editing:"));
1874
- const numStr = await ask(chalk3.bold("Step #: "), currentMode);
1864
+ const numStr = await ask(chalk3.bold("Step #: "));
1875
1865
  const n = parseInt(numStr.trim(), 10);
1876
1866
  if (!isNaN(n) && n >= 1 && n <= steps.length) {
1877
1867
  console.log(chalk3.gray(`Current: ${steps[n - 1]}`));
1878
- const updated = await ask(chalk3.bold("New text: "), currentMode);
1868
+ const updated = await ask(chalk3.bold("New text: "));
1879
1869
  if (updated.trim()) steps[n - 1] = updated.trim();
1880
1870
  }
1881
1871
  return steps;
@@ -1948,10 +1938,10 @@ async function buildModeLoop(task, backendUrl, currentMode, ask) {
1948
1938
  }
1949
1939
  console.log("");
1950
1940
  console.log(
1951
- chalk3.gray("Options: ") + chalk3.bold("[Enter]") + chalk3.gray(" Done ") + chalk3.bold("[s]") + chalk3.gray(" Switch mode")
1941
+ chalk3.gray("Options: ") + chalk3.bold("[Enter]") + chalk3.gray(" Done")
1952
1942
  );
1953
- const answer = (await ask(chalk3.bold("> "), currentMode)).trim().toLowerCase();
1954
- if (answer === "s" || answer === "switch") return "switch";
1943
+ const answer = (await ask(chalk3.bold("> "))).trim().toLowerCase();
1944
+ if (answer === "/switch" || answer === "/mode") return "switch";
1955
1945
  return "done";
1956
1946
  }
1957
1947
  async function brainstormModeLoop(task, backendUrl, currentMode, ask) {
@@ -2039,7 +2029,7 @@ async function brainstormModeLoop(task, backendUrl, currentMode, ask) {
2039
2029
  const msg = err instanceof Error ? err.message : String(err);
2040
2030
  console.error(chalk3.red("Error: " + msg));
2041
2031
  }
2042
- const followUp = await ask(chalk3.bold.blue("\u{1F4AC} You: "), currentMode);
2032
+ const followUp = await ask(chalk3.bold.blue("\u{1F4AC} You: "));
2043
2033
  const lower = followUp.trim().toLowerCase();
2044
2034
  if (lower === "done" || lower === "exit") return "done";
2045
2035
  if (lower === "switch") return "switch";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buildwithnexus",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
4
4
  "description": "Interactive AI agent orchestrator with intent-based planning, execution, and brainstorming modes",
5
5
  "type": "module",
6
6
  "bin": {