buildwithnexus 0.6.1 → 0.6.3
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 +10 -11
- package/dist/nexus-release.tar.gz +0 -0
- package/package.json +1 -1
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.
|
|
31
|
+
return true ? "0.6.3" : "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("
|
|
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
|
}
|
|
@@ -728,7 +728,8 @@ async function planModeLoop(task, backendUrl, rl, ask) {
|
|
|
728
728
|
planReceived = true;
|
|
729
729
|
break outer;
|
|
730
730
|
} else if (parsed.type === "error") {
|
|
731
|
-
|
|
731
|
+
const errorMsg = parsed.data["error"] || parsed.data["content"] || "Unknown error";
|
|
732
|
+
tui.displayError(errorMsg);
|
|
732
733
|
return "cancel";
|
|
733
734
|
}
|
|
734
735
|
} catch {
|
|
@@ -837,7 +838,8 @@ async function buildModeLoop(task, backendUrl, rl, ask) {
|
|
|
837
838
|
tui.displayComplete(tui.getElapsedTime());
|
|
838
839
|
break;
|
|
839
840
|
} else if (type === "error") {
|
|
840
|
-
|
|
841
|
+
const errorMsg = parsed.data["error"] || parsed.data["content"] || "Unknown error";
|
|
842
|
+
tui.displayError(errorMsg);
|
|
841
843
|
break;
|
|
842
844
|
} else if (type !== "plan") {
|
|
843
845
|
tui.displayEvent(type, parsed.data);
|
|
@@ -3428,7 +3430,7 @@ function getVersionStatic() {
|
|
|
3428
3430
|
const packageJson = JSON.parse(readFileSync2(packagePath, "utf-8"));
|
|
3429
3431
|
return packageJson.version;
|
|
3430
3432
|
} catch {
|
|
3431
|
-
return true ? "0.6.
|
|
3433
|
+
return true ? "0.6.3" : "0.0.0-unknown";
|
|
3432
3434
|
}
|
|
3433
3435
|
}
|
|
3434
3436
|
var cli = new Command15().name("buildwithnexus").description("Auto-scaffold and launch a fully autonomous NEXUS runtime").version(getVersionStatic());
|
|
@@ -3546,7 +3548,7 @@ function printUpdateBanner(current, latest) {
|
|
|
3546
3548
|
// src/bin.ts
|
|
3547
3549
|
import dotenv from "dotenv";
|
|
3548
3550
|
dotenv.config({ path: ".env.local" });
|
|
3549
|
-
var version = true ? "0.6.
|
|
3551
|
+
var version = true ? "0.6.3" : "0.5.17";
|
|
3550
3552
|
checkForUpdates(version);
|
|
3551
3553
|
program.name("buildwithnexus").description("Deep Agents - AI-Powered Task Execution").version(version);
|
|
3552
3554
|
program.command("da-init").description("Initialize Deep Agents (set up API keys and .env.local)").action(deepAgentsInitCommand);
|
|
@@ -3583,6 +3585,3 @@ if (!process.argv.slice(2).length) {
|
|
|
3583
3585
|
} else {
|
|
3584
3586
|
program.parse();
|
|
3585
3587
|
}
|
|
3586
|
-
if (!process.argv.slice(2).length) {
|
|
3587
|
-
program.outputHelp();
|
|
3588
|
-
}
|
|
Binary file
|