open-agents-ai 0.187.340 → 0.187.341
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 +56 -53
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -278214,63 +278214,39 @@ var init_listen = __esm({
|
|
|
278214
278214
|
return this._ready;
|
|
278215
278215
|
}
|
|
278216
278216
|
async start() {
|
|
278217
|
+
let pyPath = "python3";
|
|
278218
|
+
try {
|
|
278219
|
+
const mod2 = await Promise.resolve().then(() => (init_py_embed(), py_embed_exports));
|
|
278220
|
+
const ensure = mod2.ensureEmbedDeps;
|
|
278221
|
+
const getPy = mod2.getVenvPython;
|
|
278222
|
+
if (typeof ensure === "function") {
|
|
278223
|
+
try {
|
|
278224
|
+
const res = ensure();
|
|
278225
|
+
if (res?.log) this.emit("status", res.log.slice(-500));
|
|
278226
|
+
} catch {
|
|
278227
|
+
}
|
|
278228
|
+
}
|
|
278229
|
+
if (typeof getPy === "function") {
|
|
278230
|
+
pyPath = getPy();
|
|
278231
|
+
}
|
|
278232
|
+
} catch {
|
|
278233
|
+
}
|
|
278234
|
+
this.process = spawn18(pyPath, [
|
|
278235
|
+
this.scriptPath,
|
|
278236
|
+
"--model",
|
|
278237
|
+
this.model,
|
|
278238
|
+
"--chunk-seconds",
|
|
278239
|
+
"3",
|
|
278240
|
+
"--window-seconds",
|
|
278241
|
+
"10"
|
|
278242
|
+
], {
|
|
278243
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
278244
|
+
env: { ...process.env }
|
|
278245
|
+
});
|
|
278217
278246
|
return new Promise((resolve40, reject) => {
|
|
278218
278247
|
const timeout2 = setTimeout(() => {
|
|
278219
278248
|
reject(new Error("Whisper fallback: model load timeout (5 min). First run downloads the model."));
|
|
278220
278249
|
}, 3e5);
|
|
278221
|
-
(async () => {
|
|
278222
|
-
try {
|
|
278223
|
-
const mod2 = await Promise.resolve().then(() => (init_py_embed(), py_embed_exports));
|
|
278224
|
-
const ensure = mod2.ensureEmbedDeps;
|
|
278225
|
-
const getPy = mod2.getVenvPython;
|
|
278226
|
-
if (typeof ensure === "function" && typeof getPy === "function") {
|
|
278227
|
-
try {
|
|
278228
|
-
const res = ensure();
|
|
278229
|
-
if (res?.log) this.emit("status", res.log.slice(-500));
|
|
278230
|
-
} catch {
|
|
278231
|
-
}
|
|
278232
|
-
const pyPath = getPy();
|
|
278233
|
-
this.process = spawn18(pyPath, [
|
|
278234
|
-
this.scriptPath,
|
|
278235
|
-
"--model",
|
|
278236
|
-
this.model,
|
|
278237
|
-
"--chunk-seconds",
|
|
278238
|
-
"3",
|
|
278239
|
-
"--window-seconds",
|
|
278240
|
-
"10"
|
|
278241
|
-
], {
|
|
278242
|
-
stdio: ["pipe", "pipe", "pipe"],
|
|
278243
|
-
env: { ...process.env }
|
|
278244
|
-
});
|
|
278245
|
-
} else {
|
|
278246
|
-
this.process = spawn18("python3", [
|
|
278247
|
-
this.scriptPath,
|
|
278248
|
-
"--model",
|
|
278249
|
-
this.model,
|
|
278250
|
-
"--chunk-seconds",
|
|
278251
|
-
"3",
|
|
278252
|
-
"--window-seconds",
|
|
278253
|
-
"10"
|
|
278254
|
-
], {
|
|
278255
|
-
stdio: ["pipe", "pipe", "pipe"],
|
|
278256
|
-
env: { ...process.env }
|
|
278257
|
-
});
|
|
278258
|
-
}
|
|
278259
|
-
} catch {
|
|
278260
|
-
this.process = spawn18("python3", [
|
|
278261
|
-
this.scriptPath,
|
|
278262
|
-
"--model",
|
|
278263
|
-
this.model,
|
|
278264
|
-
"--chunk-seconds",
|
|
278265
|
-
"3",
|
|
278266
|
-
"--window-seconds",
|
|
278267
|
-
"10"
|
|
278268
|
-
], {
|
|
278269
|
-
stdio: ["pipe", "pipe", "pipe"],
|
|
278270
|
-
env: { ...process.env }
|
|
278271
|
-
});
|
|
278272
|
-
}
|
|
278273
|
-
})();
|
|
278274
278250
|
const rl = createInterface2({ input: this.process.stdout });
|
|
278275
278251
|
rl.on("line", (line) => {
|
|
278276
278252
|
try {
|
|
@@ -278464,6 +278440,33 @@ var init_listen = __esm({
|
|
|
278464
278440
|
if (tc) {
|
|
278465
278441
|
const TranscribeLive = tc.TranscribeLive;
|
|
278466
278442
|
if (TranscribeLive) {
|
|
278443
|
+
let tcUpToDate = false;
|
|
278444
|
+
try {
|
|
278445
|
+
const tcPkgPath = join69(dirname18(__require.resolve?.("transcribe-cli/package.json") || ""), "package.json");
|
|
278446
|
+
if (existsSync53(tcPkgPath)) {
|
|
278447
|
+
const tcPkg = JSON.parse(__require("fs").readFileSync(tcPkgPath, "utf8"));
|
|
278448
|
+
tcUpToDate = tcPkg.version && tcPkg.version >= "2.0.1";
|
|
278449
|
+
}
|
|
278450
|
+
} catch {
|
|
278451
|
+
try {
|
|
278452
|
+
const out = execSync44("npm list -g transcribe-cli --depth=0 --json", { encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"], timeout: 1e4 });
|
|
278453
|
+
const parsed = JSON.parse(out);
|
|
278454
|
+
const ver = parsed?.dependencies?.["transcribe-cli"]?.version || "";
|
|
278455
|
+
tcUpToDate = ver >= "2.0.1";
|
|
278456
|
+
} catch {
|
|
278457
|
+
}
|
|
278458
|
+
}
|
|
278459
|
+
if (!tcUpToDate) {
|
|
278460
|
+
try {
|
|
278461
|
+
execSync44("npm i -g transcribe-cli@latest", { stdio: "pipe", timeout: 12e4 });
|
|
278462
|
+
this.transcribeCliAvailable = null;
|
|
278463
|
+
const reloaded = await this.loadTranscribeCli();
|
|
278464
|
+
if (reloaded?.TranscribeLive) {
|
|
278465
|
+
tc = reloaded;
|
|
278466
|
+
}
|
|
278467
|
+
} catch {
|
|
278468
|
+
}
|
|
278469
|
+
}
|
|
278467
278470
|
const venvReady = ensureVenvForTranscribeCli();
|
|
278468
278471
|
if (!venvReady) {
|
|
278469
278472
|
transcribeCliError = "venv Python missing numpy (required by transcribe-cli) — using whisper fallback";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-agents-ai",
|
|
3
|
-
"version": "0.187.
|
|
3
|
+
"version": "0.187.341",
|
|
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",
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"ignore": "^6.0.2",
|
|
84
84
|
"nats.ws": "^1.30.3",
|
|
85
85
|
"open-agents-nexus": "^1.17.3",
|
|
86
|
+
"transcribe-cli": "^2.0.1",
|
|
86
87
|
"ws": "^8.20.0",
|
|
87
88
|
"zod": "^3.24.1"
|
|
88
89
|
},
|