buildwithnexus 0.6.3 → 0.6.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.
package/dist/bin.js CHANGED
@@ -28,7 +28,7 @@ function getVersion() {
28
28
  const packageJson = JSON.parse(readFileSync(packagePath, "utf-8"));
29
29
  return packageJson.version;
30
30
  } catch {
31
- return true ? "0.6.3" : "0.0.0-unknown";
31
+ return true ? "0.6.5" : "0.0.0-unknown";
32
32
  }
33
33
  }
34
34
  function showBanner() {
@@ -624,7 +624,7 @@ async function selectMode(suggested, ask) {
624
624
  };
625
625
  console.log("");
626
626
  console.log(
627
- chalk2.gray("Press ") + chalk2.bold("Enter") + chalk2.gray(" to use ") + modeColor[suggested](suggested) + chalk2.gray(" or type ") + chalk2.bold("p") + chalk2.gray("/") + chalk2.bold("b") + chalk2.gray("/") + chalk2.bold("br") + chalk2.gray(" to switch: ")
627
+ chalk2.gray("Press ") + chalk2.bold("Enter") + chalk2.gray(" to use ") + modeColor[suggested](suggested) + chalk2.gray(" or type ") + chalk2.bold("plan") + chalk2.gray("/") + chalk2.bold("build") + chalk2.gray("/") + chalk2.bold("brainstorm") + chalk2.gray(" to switch: ")
628
628
  );
629
629
  const answer = await ask(chalk2.gray("> "));
630
630
  const lower = answer.trim().toLowerCase();
@@ -894,12 +894,28 @@ async function brainstormModeLoop(task, backendUrl, rl, ask) {
894
894
  if (!line.startsWith("data: ")) continue;
895
895
  try {
896
896
  const parsed = JSON.parse(line.slice(6));
897
- if (parsed.type === "done" || parsed.type === "execution_complete") {
898
- const summary = parsed.data["summary"] || "";
897
+ const type = parsed.type;
898
+ const data = parsed.data;
899
+ if (type === "done" || type === "execution_complete") {
900
+ const summary = data["summary"] || "";
899
901
  if (summary) responseText = summary;
900
902
  break outer;
901
- } else if (parsed.type === "thought" || parsed.type === "observation") {
902
- const content = parsed.data["content"] || "";
903
+ } else if (type === "error") {
904
+ const errorMsg = data["error"] || data["content"] || "Unknown error";
905
+ responseText += errorMsg + "\n";
906
+ break outer;
907
+ } else if (type === "thought" || type === "observation") {
908
+ const content = data["content"] || "";
909
+ if (content) responseText += content + "\n";
910
+ } else if (type === "agent_response" || type === "agent_result") {
911
+ const content = data["content"] || data["result"] || "";
912
+ if (content) responseText += content + "\n";
913
+ } else if (type === "action") {
914
+ const content = data["content"] || "";
915
+ if (content) responseText += content + "\n";
916
+ } else if (type === "agent_working") {
917
+ } else if (type !== "plan") {
918
+ const content = data["content"] || data["response"] || "";
903
919
  if (content) responseText += content + "\n";
904
920
  }
905
921
  } catch {
@@ -3430,7 +3446,7 @@ function getVersionStatic() {
3430
3446
  const packageJson = JSON.parse(readFileSync2(packagePath, "utf-8"));
3431
3447
  return packageJson.version;
3432
3448
  } catch {
3433
- return true ? "0.6.3" : "0.0.0-unknown";
3449
+ return true ? "0.6.5" : "0.0.0-unknown";
3434
3450
  }
3435
3451
  }
3436
3452
  var cli = new Command15().name("buildwithnexus").description("Auto-scaffold and launch a fully autonomous NEXUS runtime").version(getVersionStatic());
@@ -3548,7 +3564,7 @@ function printUpdateBanner(current, latest) {
3548
3564
  // src/bin.ts
3549
3565
  import dotenv from "dotenv";
3550
3566
  dotenv.config({ path: ".env.local" });
3551
- var version = true ? "0.6.3" : "0.5.17";
3567
+ var version = true ? "0.6.5" : "0.5.17";
3552
3568
  checkForUpdates(version);
3553
3569
  program.name("buildwithnexus").description("Deep Agents - AI-Powered Task Execution").version(version);
3554
3570
  program.command("da-init").description("Initialize Deep Agents (set up API keys and .env.local)").action(deepAgentsInitCommand);
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buildwithnexus",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
4
4
  "description": "Interactive AI agent orchestrator with intent-based planning, execution, and brainstorming modes",
5
5
  "type": "module",
6
6
  "bin": {
@@ -48,6 +48,7 @@
48
48
  "homepage": "https://buildwithnexus.dev",
49
49
  "dependencies": {
50
50
  "@inquirer/prompts": "^8.2.1",
51
+ "buildwithnexus": "^0.6.4",
51
52
  "chalk": "^5.3.0",
52
53
  "commander": "^12.1.0",
53
54
  "dotenv": "^17.3.1",