buildwithnexus 0.6.17 → 0.6.18
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 +13 -19
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -45,7 +45,7 @@ import * as readline from "readline";
|
|
|
45
45
|
async function deepAgentsInitCommand() {
|
|
46
46
|
console.log(`
|
|
47
47
|
\u2554\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\u2557
|
|
48
|
-
\u2551
|
|
48
|
+
\u2551 Nexus - Configuration \u2551
|
|
49
49
|
\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
|
|
50
50
|
`);
|
|
51
51
|
const envPath = path2.join(os2.homedir(), ".env.local");
|
|
@@ -67,7 +67,7 @@ async function deepAgentsInitCommand() {
|
|
|
67
67
|
}
|
|
68
68
|
const backendUrl = await askQuestion("Backend URL (http://localhost:4200): ") || "http://localhost:4200";
|
|
69
69
|
const dashboardPort = await askQuestion("Dashboard port (4201): ") || "4201";
|
|
70
|
-
const envContent = `#
|
|
70
|
+
const envContent = `# Nexus Configuration
|
|
71
71
|
# Generated by buildwithnexus init
|
|
72
72
|
|
|
73
73
|
# LLM API Keys
|
|
@@ -161,7 +161,7 @@ function getVersion() {
|
|
|
161
161
|
const packageJson = JSON.parse(readFileSync(packagePath, "utf-8"));
|
|
162
162
|
return packageJson.version;
|
|
163
163
|
} catch {
|
|
164
|
-
return true ? "0.6.
|
|
164
|
+
return true ? "0.6.18" : "0.0.0-unknown";
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
function showBanner() {
|
|
@@ -249,7 +249,7 @@ var TUI = class {
|
|
|
249
249
|
chalk.cyan("\u2554\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\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557")
|
|
250
250
|
);
|
|
251
251
|
console.log(
|
|
252
|
-
chalk.cyan("\u2551") + chalk.bold.white(" \u{1F680}
|
|
252
|
+
chalk.cyan("\u2551") + chalk.bold.white(" \u{1F680} Nexus - Autonomous Agent Orchestration ") + chalk.cyan("\u2551")
|
|
253
253
|
);
|
|
254
254
|
console.log(
|
|
255
255
|
chalk.cyan("\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\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D")
|
|
@@ -531,7 +531,7 @@ import path3 from "path";
|
|
|
531
531
|
var __dirname = path3.dirname(fileURLToPath(import.meta.url));
|
|
532
532
|
async function dashboardCommand(options) {
|
|
533
533
|
const port = options.port || "4201";
|
|
534
|
-
console.log(`Starting
|
|
534
|
+
console.log(`Starting Nexus Dashboard on http://localhost:${port}
|
|
535
535
|
`);
|
|
536
536
|
const dashboardPath = path3.join(__dirname, "../deep-agents/dashboard/server.js");
|
|
537
537
|
const dashboard = spawn("node", [dashboardPath], {
|
|
@@ -664,12 +664,6 @@ async function interactiveMode() {
|
|
|
664
664
|
});
|
|
665
665
|
const ask = (question) => new Promise((resolve) => rl.question(question, resolve));
|
|
666
666
|
console.clear();
|
|
667
|
-
console.log(chalk2.cyan("\u2554\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\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557"));
|
|
668
|
-
console.log(
|
|
669
|
-
chalk2.cyan("\u2551") + chalk2.bold.white(" \u{1F680} DEEP AGENTS - Autonomous Execution Engine ") + chalk2.cyan("\u2551")
|
|
670
|
-
);
|
|
671
|
-
console.log(chalk2.cyan("\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\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D"));
|
|
672
|
-
console.log("");
|
|
673
667
|
console.log(chalk2.gray("Welcome! Describe what you want the AI agents to do."));
|
|
674
668
|
console.log(chalk2.gray('Type "exit" to quit.\n'));
|
|
675
669
|
while (true) {
|
|
@@ -747,7 +741,7 @@ async function runModeLoop(mode, task, backendUrl, rl, ask) {
|
|
|
747
741
|
function printAppHeader() {
|
|
748
742
|
console.log(chalk2.cyan("\u2554\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\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557"));
|
|
749
743
|
console.log(
|
|
750
|
-
chalk2.cyan("\u2551") + chalk2.bold.white(" \u{1F680}
|
|
744
|
+
chalk2.cyan("\u2551") + chalk2.bold.white(" \u{1F680} Nexus - Autonomous Agent Orchestration ") + chalk2.cyan("\u2551")
|
|
751
745
|
);
|
|
752
746
|
console.log(chalk2.cyan("\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\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D"));
|
|
753
747
|
console.log("");
|
|
@@ -3526,7 +3520,7 @@ function getVersionStatic() {
|
|
|
3526
3520
|
const packageJson = JSON.parse(readFileSync2(packagePath, "utf-8"));
|
|
3527
3521
|
return packageJson.version;
|
|
3528
3522
|
} catch {
|
|
3529
|
-
return true ? "0.6.
|
|
3523
|
+
return true ? "0.6.18" : "0.0.0-unknown";
|
|
3530
3524
|
}
|
|
3531
3525
|
}
|
|
3532
3526
|
var cli = new Command15().name("buildwithnexus").description("Auto-scaffold and launch a fully autonomous NEXUS runtime").version(getVersionStatic());
|
|
@@ -3647,13 +3641,13 @@ import os5 from "os";
|
|
|
3647
3641
|
import path11 from "path";
|
|
3648
3642
|
var homeEnvPath = path11.join(os5.homedir(), ".env.local");
|
|
3649
3643
|
dotenv2.config({ path: homeEnvPath });
|
|
3650
|
-
var version = true ? "0.6.
|
|
3644
|
+
var version = true ? "0.6.18" : "0.5.17";
|
|
3651
3645
|
checkForUpdates(version);
|
|
3652
|
-
program.name("buildwithnexus").description("
|
|
3653
|
-
program.command("da-init").description("Initialize
|
|
3654
|
-
program.command("run <task>").description("Run a task with
|
|
3655
|
-
program.command("dashboard").description("Start the
|
|
3656
|
-
program.command("da-status").description("Check
|
|
3646
|
+
program.name("buildwithnexus").description("Nexus - AI-Powered Task Execution").version(version);
|
|
3647
|
+
program.command("da-init").description("Initialize Nexus (set up API keys and .env.local)").action(deepAgentsInitCommand);
|
|
3648
|
+
program.command("run <task>").description("Run a task with Nexus").option("-a, --agent <name>", "Agent role (engineer, researcher, etc)", "engineer").option("-g, --goal <goal>", "Agent goal").option("-m, --model <model>", "LLM model", "claude-sonnet-4-20250514").action(runCommand);
|
|
3649
|
+
program.command("dashboard").description("Start the Nexus dashboard server").option("-p, --port <port>", "Dashboard port", "4201").action(dashboardCommand);
|
|
3650
|
+
program.command("da-status").description("Check Nexus backend status").action(async () => {
|
|
3657
3651
|
const backendUrl = process.env.BACKEND_URL || "http://localhost:4200";
|
|
3658
3652
|
try {
|
|
3659
3653
|
const response = await fetch(`${backendUrl}/health`);
|