open-agents-ai 0.187.385 → 0.187.387
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/index.js +25 -32
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5684,6 +5684,23 @@ import { resolve as resolve13, join as join15 } from "node:path";
|
|
|
5684
5684
|
import { randomBytes as randomBytes5, createCipheriv as createCipheriv2, createDecipheriv as createDecipheriv2, scryptSync, createHash as createHash2 } from "node:crypto";
|
|
5685
5685
|
import { execSync as execSync8, spawn as spawn2 } from "node:child_process";
|
|
5686
5686
|
import { hostname, userInfo, homedir as homedir4 } from "node:os";
|
|
5687
|
+
function readBundledDependencySpec(packageName, fallback) {
|
|
5688
|
+
const candidates = [
|
|
5689
|
+
new URL("../package.json", import.meta.url),
|
|
5690
|
+
new URL("../../package.json", import.meta.url),
|
|
5691
|
+
new URL("../../../package.json", import.meta.url)
|
|
5692
|
+
];
|
|
5693
|
+
for (const candidate of candidates) {
|
|
5694
|
+
try {
|
|
5695
|
+
const pkg = JSON.parse(readFileSync9(candidate, "utf8"));
|
|
5696
|
+
const spec = pkg?.dependencies?.[packageName] ?? pkg?.optionalDependencies?.[packageName];
|
|
5697
|
+
if (typeof spec === "string" && spec.trim())
|
|
5698
|
+
return spec.trim();
|
|
5699
|
+
} catch {
|
|
5700
|
+
}
|
|
5701
|
+
}
|
|
5702
|
+
return fallback;
|
|
5703
|
+
}
|
|
5687
5704
|
function containsKeyMaterial(input) {
|
|
5688
5705
|
for (const pattern of KEY_PATTERNS) {
|
|
5689
5706
|
if (pattern.test(input))
|
|
@@ -5691,11 +5708,13 @@ function containsKeyMaterial(input) {
|
|
|
5691
5708
|
}
|
|
5692
5709
|
return false;
|
|
5693
5710
|
}
|
|
5694
|
-
var DAEMON_SCRIPT, KEY_PATTERNS, NexusTool;
|
|
5711
|
+
var OPEN_AGENTS_NEXUS_FALLBACK_SPEC, OPEN_AGENTS_NEXUS_BUNDLED_SPEC, DAEMON_SCRIPT, KEY_PATTERNS, NexusTool;
|
|
5695
5712
|
var init_nexus = __esm({
|
|
5696
5713
|
"packages/execution/dist/tools/nexus.js"() {
|
|
5697
5714
|
"use strict";
|
|
5698
5715
|
init_jibberlink();
|
|
5716
|
+
OPEN_AGENTS_NEXUS_FALLBACK_SPEC = "1.17.3";
|
|
5717
|
+
OPEN_AGENTS_NEXUS_BUNDLED_SPEC = readBundledDependencySpec("open-agents-nexus", OPEN_AGENTS_NEXUS_FALLBACK_SPEC);
|
|
5699
5718
|
DAEMON_SCRIPT = `#!/usr/bin/env node
|
|
5700
5719
|
/**
|
|
5701
5720
|
* nexus-daemon.mjs — Standalone nexus process with real TCP/UDP sockets.
|
|
@@ -10846,7 +10865,6 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
|
|
|
10846
10865
|
}
|
|
10847
10866
|
const nodeModulesDir = resolve13(this.repoRoot, "node_modules");
|
|
10848
10867
|
let nexusResolved = false;
|
|
10849
|
-
let installedVersion = "";
|
|
10850
10868
|
const execAsync3 = (cmd, opts = {}) => new Promise((res, rej) => {
|
|
10851
10869
|
const { exec: ex } = __require("node:child_process");
|
|
10852
10870
|
ex(cmd, { encoding: "utf8", timeout: opts.timeout ?? 3e4, cwd: opts.cwd, maxBuffer: 10 * 1024 * 1024 }, (err, stdout) => {
|
|
@@ -10860,55 +10878,30 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
|
|
|
10860
10878
|
const nexusPkg = join15(nodeModulesDir, "open-agents-nexus", "package.json");
|
|
10861
10879
|
if (existsSync11(nexusPkg)) {
|
|
10862
10880
|
nexusResolved = true;
|
|
10863
|
-
try {
|
|
10864
|
-
const pkg = JSON.parse(readFileSync9(nexusPkg, "utf8"));
|
|
10865
|
-
installedVersion = pkg.version || "";
|
|
10866
|
-
} catch {
|
|
10867
|
-
}
|
|
10868
10881
|
} else {
|
|
10869
10882
|
try {
|
|
10870
10883
|
const globalDir2 = await execAsync3("npm root -g", { timeout: 5e3 });
|
|
10871
10884
|
const globalPkg = join15(globalDir2, "open-agents-nexus", "package.json");
|
|
10872
10885
|
if (existsSync11(globalPkg)) {
|
|
10873
10886
|
nexusResolved = true;
|
|
10874
|
-
try {
|
|
10875
|
-
const pkg = JSON.parse(readFileSync9(globalPkg, "utf8"));
|
|
10876
|
-
installedVersion = pkg.version || "";
|
|
10877
|
-
} catch {
|
|
10878
|
-
}
|
|
10879
10887
|
}
|
|
10880
10888
|
} catch {
|
|
10881
10889
|
}
|
|
10882
10890
|
}
|
|
10883
10891
|
} catch {
|
|
10884
10892
|
}
|
|
10885
|
-
if (nexusResolved && installedVersion) {
|
|
10886
|
-
try {
|
|
10887
|
-
const latestRaw = await execAsync3("npm view open-agents-nexus version 2>/dev/null", { timeout: 8e3 });
|
|
10888
|
-
if (latestRaw && latestRaw !== installedVersion) {
|
|
10889
|
-
try {
|
|
10890
|
-
await execAsync3(`npm install open-agents-nexus@${latestRaw} --save 2>&1`, {
|
|
10891
|
-
cwd: this.repoRoot,
|
|
10892
|
-
timeout: 6e4
|
|
10893
|
-
});
|
|
10894
|
-
installedVersion = latestRaw;
|
|
10895
|
-
} catch {
|
|
10896
|
-
}
|
|
10897
|
-
}
|
|
10898
|
-
} catch {
|
|
10899
|
-
}
|
|
10900
|
-
}
|
|
10901
10893
|
if (!nexusResolved) {
|
|
10894
|
+
const installSpec = `open-agents-nexus@${OPEN_AGENTS_NEXUS_BUNDLED_SPEC}`;
|
|
10902
10895
|
try {
|
|
10903
|
-
await execAsync3(
|
|
10896
|
+
await execAsync3(`npm install ${installSpec} 2>&1`, {
|
|
10904
10897
|
cwd: this.repoRoot,
|
|
10905
10898
|
timeout: 12e4
|
|
10906
10899
|
});
|
|
10907
10900
|
} catch {
|
|
10908
10901
|
try {
|
|
10909
|
-
await execAsync3(
|
|
10902
|
+
await execAsync3(`npm install -g ${installSpec} 2>&1`, { timeout: 12e4 });
|
|
10910
10903
|
} catch {
|
|
10911
|
-
throw new Error(
|
|
10904
|
+
throw new Error(`Failed to install ${installSpec}. Run: npm install ${installSpec}`);
|
|
10912
10905
|
}
|
|
10913
10906
|
}
|
|
10914
10907
|
}
|
|
@@ -533692,7 +533685,7 @@ var init_status_bar = __esm({
|
|
|
533692
533685
|
}
|
|
533693
533686
|
const boxInnerP = w - 2;
|
|
533694
533687
|
buf += `\x1B[${pos.bufferRow};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_BL}${BOX_H.repeat(Math.max(0, boxInnerP))}${BOX_BR}${RESET2}`;
|
|
533695
|
-
buf += `\x1B[${pos.metricsRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildMetricsLine()}${RESET2}\x1B[?7h\x1B[${pos.
|
|
533688
|
+
buf += `\x1B[${pos.metricsRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildMetricsLine()}${RESET2}\x1B[?7h\x1B[${pos.inputStartRow};1H`;
|
|
533696
533689
|
this.termWrite(buf);
|
|
533697
533690
|
if (this._bannerRefresh) this._bannerRefresh();
|
|
533698
533691
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-agents-ai",
|
|
3
|
-
"version": "0.187.
|
|
3
|
+
"version": "0.187.387",
|
|
4
4
|
"description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"glob": "^11.0.0",
|
|
83
83
|
"ignore": "^6.0.2",
|
|
84
84
|
"nats.ws": "^1.30.3",
|
|
85
|
-
"open-agents-nexus": "
|
|
85
|
+
"open-agents-nexus": "1.17.3",
|
|
86
86
|
"transcribe-cli": "^2.0.1",
|
|
87
87
|
"ws": "^8.20.0",
|
|
88
88
|
"zod": "^3.24.1"
|