buildwithnexus 0.6.3 → 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 +23 -7
- 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.4" : "0.0.0-unknown";
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
function showBanner() {
|
|
@@ -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
|
-
|
|
898
|
-
|
|
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 (
|
|
902
|
-
const
|
|
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.
|
|
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.
|
|
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);
|
|
Binary file
|