buildwithnexus 0.6.8 → 0.6.9
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 +14 -16
- package/dist/nexus-release.tar.gz +0 -0
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -16,7 +16,7 @@ __export(init_command_exports, {
|
|
|
16
16
|
});
|
|
17
17
|
import fs from "fs";
|
|
18
18
|
import path from "path";
|
|
19
|
-
import { input, confirm } from "@inquirer/prompts";
|
|
19
|
+
import { input, confirm, password } from "@inquirer/prompts";
|
|
20
20
|
async function deepAgentsInitCommand() {
|
|
21
21
|
console.log(`
|
|
22
22
|
\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
|
|
@@ -38,19 +38,17 @@ async function deepAgentsInitCommand() {
|
|
|
38
38
|
console.log(
|
|
39
39
|
"Please provide your LLM API keys:\n(You can set these later by editing .env.local)\n"
|
|
40
40
|
);
|
|
41
|
-
const anthropicKey = await
|
|
41
|
+
const anthropicKey = await password({
|
|
42
42
|
message: "ANTHROPIC_API_KEY (Claude)",
|
|
43
|
-
default: "",
|
|
44
43
|
validate: (val) => {
|
|
45
44
|
if (!val) {
|
|
46
|
-
return "
|
|
45
|
+
return "API key is required";
|
|
47
46
|
}
|
|
48
47
|
return true;
|
|
49
48
|
}
|
|
50
49
|
});
|
|
51
|
-
const openaiKey = await
|
|
52
|
-
message: "OPENAI_API_KEY (GPT - optional)"
|
|
53
|
-
default: ""
|
|
50
|
+
const openaiKey = await password({
|
|
51
|
+
message: "OPENAI_API_KEY (GPT - optional, press Enter to skip)"
|
|
54
52
|
});
|
|
55
53
|
const backendUrl = await input({
|
|
56
54
|
message: "Backend URL",
|
|
@@ -117,7 +115,7 @@ function getVersion() {
|
|
|
117
115
|
const packageJson = JSON.parse(readFileSync(packagePath, "utf-8"));
|
|
118
116
|
return packageJson.version;
|
|
119
117
|
} catch {
|
|
120
|
-
return true ? "0.6.
|
|
118
|
+
return true ? "0.6.9" : "0.0.0-unknown";
|
|
121
119
|
}
|
|
122
120
|
}
|
|
123
121
|
function showBanner() {
|
|
@@ -1483,7 +1481,7 @@ import { Command as Command2 } from "commander";
|
|
|
1483
1481
|
import chalk7 from "chalk";
|
|
1484
1482
|
|
|
1485
1483
|
// src/ui/prompts.ts
|
|
1486
|
-
import { confirm as confirm2, password } from "@inquirer/prompts";
|
|
1484
|
+
import { confirm as confirm2, password as password2 } from "@inquirer/prompts";
|
|
1487
1485
|
import chalk6 from "chalk";
|
|
1488
1486
|
|
|
1489
1487
|
// src/core/dlp.ts
|
|
@@ -1629,7 +1627,7 @@ function audit(event, detail = "") {
|
|
|
1629
1627
|
// src/ui/prompts.ts
|
|
1630
1628
|
async function promptInitConfig() {
|
|
1631
1629
|
console.log(chalk6.bold("\n API Keys\n"));
|
|
1632
|
-
const anthropicKey = await
|
|
1630
|
+
const anthropicKey = await password2({
|
|
1633
1631
|
message: "Anthropic API key (required):",
|
|
1634
1632
|
mask: "*",
|
|
1635
1633
|
validate: (val) => {
|
|
@@ -1643,7 +1641,7 @@ async function promptInitConfig() {
|
|
|
1643
1641
|
return true;
|
|
1644
1642
|
}
|
|
1645
1643
|
});
|
|
1646
|
-
const openaiKey = await
|
|
1644
|
+
const openaiKey = await password2({
|
|
1647
1645
|
message: "OpenAI API key (optional, press Enter to skip):",
|
|
1648
1646
|
mask: "*",
|
|
1649
1647
|
validate: (val) => {
|
|
@@ -1656,7 +1654,7 @@ async function promptInitConfig() {
|
|
|
1656
1654
|
return true;
|
|
1657
1655
|
}
|
|
1658
1656
|
});
|
|
1659
|
-
const googleKey = await
|
|
1657
|
+
const googleKey = await password2({
|
|
1660
1658
|
message: "Google AI API key (optional, press Enter to skip):",
|
|
1661
1659
|
mask: "*",
|
|
1662
1660
|
validate: (val) => {
|
|
@@ -2404,7 +2402,7 @@ var destroyCommand = new Command9("destroy").description("Remove NEXUS VM and al
|
|
|
2404
2402
|
|
|
2405
2403
|
// src/commands/keys.ts
|
|
2406
2404
|
import { Command as Command10 } from "commander";
|
|
2407
|
-
import { password as
|
|
2405
|
+
import { password as password3 } from "@inquirer/prompts";
|
|
2408
2406
|
import chalk11 from "chalk";
|
|
2409
2407
|
var keysCommand = new Command10("keys").description("Manage API keys");
|
|
2410
2408
|
keysCommand.command("list").description("Show configured API keys (masked)").action(() => {
|
|
@@ -2439,7 +2437,7 @@ keysCommand.command("set <key>").description("Set or update an API key (e.g. ANT
|
|
|
2439
2437
|
log.dim(`Valid keys: ${validKeys.join(", ")}`);
|
|
2440
2438
|
process.exit(1);
|
|
2441
2439
|
}
|
|
2442
|
-
const value = await
|
|
2440
|
+
const value = await password3({ message: `Enter value for ${upper}:`, mask: "*" });
|
|
2443
2441
|
if (!value) {
|
|
2444
2442
|
log.warn("Empty value \u2014 key not changed");
|
|
2445
2443
|
return;
|
|
@@ -3472,7 +3470,7 @@ function getVersionStatic() {
|
|
|
3472
3470
|
const packageJson = JSON.parse(readFileSync2(packagePath, "utf-8"));
|
|
3473
3471
|
return packageJson.version;
|
|
3474
3472
|
} catch {
|
|
3475
|
-
return true ? "0.6.
|
|
3473
|
+
return true ? "0.6.9" : "0.0.0-unknown";
|
|
3476
3474
|
}
|
|
3477
3475
|
}
|
|
3478
3476
|
var cli = new Command15().name("buildwithnexus").description("Auto-scaffold and launch a fully autonomous NEXUS runtime").version(getVersionStatic());
|
|
@@ -3590,7 +3588,7 @@ function printUpdateBanner(current, latest) {
|
|
|
3590
3588
|
// src/bin.ts
|
|
3591
3589
|
import dotenv from "dotenv";
|
|
3592
3590
|
dotenv.config({ path: ".env.local" });
|
|
3593
|
-
var version = true ? "0.6.
|
|
3591
|
+
var version = true ? "0.6.9" : "0.5.17";
|
|
3594
3592
|
checkForUpdates(version);
|
|
3595
3593
|
program.name("buildwithnexus").description("Deep Agents - AI-Powered Task Execution").version(version);
|
|
3596
3594
|
program.command("da-init").description("Initialize Deep Agents (set up API keys and .env.local)").action(deepAgentsInitCommand);
|
|
Binary file
|