buildwithnexus 0.6.2 → 0.6.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 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.2" : "0.0.0-unknown";
31
+ return true ? "0.6.4" : "0.0.0-unknown";
32
32
  }
33
33
  }
34
34
  function showBanner() {
@@ -331,7 +331,7 @@ var TUI = class {
331
331
  return chalk.gray(m);
332
332
  });
333
333
  console.log(chalk.gray("MODE: ") + parts.join(chalk.gray(" | ")));
334
- console.log(chalk.gray("Shift+Tab to swap modes"));
334
+ console.log(chalk.gray('Type "switch" or "s" to change modes'));
335
335
  console.log(chalk.gray("\u2500".repeat(60)));
336
336
  }
337
337
  displayModeHeader(mode) {
@@ -438,14 +438,14 @@ async function runCommand(task, options) {
438
438
  const type = data.type;
439
439
  const content = data.data["content"] || "";
440
440
  if (type === "done") {
441
- tui.displayEvent(type, "Task completed successfully");
441
+ tui.displayEvent(type, { content: "Task completed successfully" });
442
442
  tui.displayComplete(tui.getElapsedTime());
443
443
  process.exit(0);
444
444
  } else if (type === "error") {
445
445
  tui.displayError(content);
446
446
  process.exit(1);
447
447
  } else {
448
- tui.displayEvent(type, content);
448
+ tui.displayEvent(type, { content });
449
449
  }
450
450
  } catch {
451
451
  }
@@ -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.2" : "0.0.0-unknown";
3449
+ return true ? "0.6.4" : "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.2" : "0.5.17";
3567
+ var version = true ? "0.6.4" : "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);
@@ -3585,6 +3601,3 @@ if (!process.argv.slice(2).length) {
3585
3601
  } else {
3586
3602
  program.parse();
3587
3603
  }
3588
- if (!process.argv.slice(2).length) {
3589
- program.outputHelp();
3590
- }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buildwithnexus",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "description": "Interactive AI agent orchestrator with intent-based planning, execution, and brainstorming modes",
5
5
  "type": "module",
6
6
  "bin": {