buildwithnexus 0.6.9 → 0.6.10

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
@@ -16,6 +16,7 @@ __export(init_command_exports, {
16
16
  });
17
17
  import fs from "fs";
18
18
  import path from "path";
19
+ import os from "os";
19
20
  import { input, confirm, password } from "@inquirer/prompts";
20
21
  async function deepAgentsInitCommand() {
21
22
  console.log(`
@@ -23,7 +24,7 @@ async function deepAgentsInitCommand() {
23
24
  \u2551 Deep Agents -- First Time Setup \u2551
24
25
  \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D
25
26
  `);
26
- const envPath = path.join(process.cwd(), ".env.local");
27
+ const envPath = path.join(os.homedir(), ".env.local");
27
28
  const hasEnv = fs.existsSync(envPath);
28
29
  if (hasEnv) {
29
30
  const shouldReset = await confirm({
@@ -115,7 +116,7 @@ function getVersion() {
115
116
  const packageJson = JSON.parse(readFileSync(packagePath, "utf-8"));
116
117
  return packageJson.version;
117
118
  } catch {
118
- return true ? "0.6.9" : "0.0.0-unknown";
119
+ return true ? "0.6.10" : "0.0.0-unknown";
119
120
  }
120
121
  }
121
122
  function showBanner() {
@@ -1023,10 +1024,10 @@ var log = {
1023
1024
  };
1024
1025
 
1025
1026
  // src/core/platform.ts
1026
- import os from "os";
1027
+ import os2 from "os";
1027
1028
  function detectPlatform() {
1028
- const platform = os.platform();
1029
- const arch = os.arch();
1029
+ const platform = os2.platform();
1030
+ const arch = os2.arch();
1030
1031
  if (platform === "darwin") {
1031
1032
  return {
1032
1033
  os: "mac",
@@ -3027,8 +3028,8 @@ var EventStream = class {
3027
3028
  };
3028
3029
 
3029
3030
  // src/commands/shell.ts
3030
- async function httpPost(httpPort, path10, body) {
3031
- const res = await fetch(`http://localhost:${httpPort}${path10}`, {
3031
+ async function httpPost(httpPort, path11, body) {
3032
+ const res = await fetch(`http://localhost:${httpPort}${path11}`, {
3032
3033
  method: "POST",
3033
3034
  headers: { "Content-Type": "application/json" },
3034
3035
  body: JSON.stringify(body),
@@ -3043,9 +3044,9 @@ async function httpPost(httpPort, path10, body) {
3043
3044
  return text;
3044
3045
  }
3045
3046
  }
3046
- async function httpGet(httpPort, path10) {
3047
+ async function httpGet(httpPort, path11) {
3047
3048
  try {
3048
- const res = await fetch(`http://localhost:${httpPort}${path10}`, {
3049
+ const res = await fetch(`http://localhost:${httpPort}${path11}`, {
3049
3050
  signal: AbortSignal.timeout(1e4)
3050
3051
  });
3051
3052
  const text = await res.text();
@@ -3470,7 +3471,7 @@ function getVersionStatic() {
3470
3471
  const packageJson = JSON.parse(readFileSync2(packagePath, "utf-8"));
3471
3472
  return packageJson.version;
3472
3473
  } catch {
3473
- return true ? "0.6.9" : "0.0.0-unknown";
3474
+ return true ? "0.6.10" : "0.0.0-unknown";
3474
3475
  }
3475
3476
  }
3476
3477
  var cli = new Command15().name("buildwithnexus").description("Auto-scaffold and launch a fully autonomous NEXUS runtime").version(getVersionStatic());
@@ -3495,12 +3496,12 @@ cli.action(() => {
3495
3496
  // src/core/update-notifier.ts
3496
3497
  import fs8 from "fs";
3497
3498
  import path9 from "path";
3498
- import os2 from "os";
3499
+ import os3 from "os";
3499
3500
  import https from "https";
3500
3501
  import chalk17 from "chalk";
3501
3502
  var PACKAGE_NAME = "buildwithnexus";
3502
3503
  var CHECK_INTERVAL_MS = 4 * 60 * 60 * 1e3;
3503
- var STATE_DIR = path9.join(os2.homedir(), ".buildwithnexus");
3504
+ var STATE_DIR = path9.join(os3.homedir(), ".buildwithnexus");
3504
3505
  var STATE_FILE = path9.join(STATE_DIR, ".update-check.json");
3505
3506
  function readState() {
3506
3507
  try {
@@ -3587,8 +3588,11 @@ function printUpdateBanner(current, latest) {
3587
3588
 
3588
3589
  // src/bin.ts
3589
3590
  import dotenv from "dotenv";
3590
- dotenv.config({ path: ".env.local" });
3591
- var version = true ? "0.6.9" : "0.5.17";
3591
+ import os4 from "os";
3592
+ import path10 from "path";
3593
+ var homeEnvPath = path10.join(os4.homedir(), ".env.local");
3594
+ dotenv.config({ path: homeEnvPath });
3595
+ var version = true ? "0.6.10" : "0.5.17";
3592
3596
  checkForUpdates(version);
3593
3597
  program.name("buildwithnexus").description("Deep Agents - AI-Powered Task Execution").version(version);
3594
3598
  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.9",
3
+ "version": "0.6.10",
4
4
  "description": "Interactive AI agent orchestrator with intent-based planning, execution, and brainstorming modes",
5
5
  "type": "module",
6
6
  "bin": {