open-agents-ai 0.120.0 → 0.122.0
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 +29 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16332,6 +16332,26 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
|
|
|
16332
16332
|
await unlink(p).catch(() => {
|
|
16333
16333
|
});
|
|
16334
16334
|
}
|
|
16335
|
+
try {
|
|
16336
|
+
const { execSync: es } = __require("node:child_process");
|
|
16337
|
+
const psOut = es("ps aux 2>/dev/null", { encoding: "utf8", timeout: 5e3 }).trim();
|
|
16338
|
+
const nexusDirEscaped = this.nexusDir.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
16339
|
+
for (const line of psOut.split("\n")) {
|
|
16340
|
+
if (line.includes("nexus-daemon") && line.includes(this.nexusDir)) {
|
|
16341
|
+
const pidMatch = line.match(/^\S+\s+(\d+)/);
|
|
16342
|
+
if (pidMatch) {
|
|
16343
|
+
const orphanPid = parseInt(pidMatch[1], 10);
|
|
16344
|
+
if (orphanPid !== process.pid) {
|
|
16345
|
+
try {
|
|
16346
|
+
process.kill(orphanPid, "SIGTERM");
|
|
16347
|
+
} catch {
|
|
16348
|
+
}
|
|
16349
|
+
}
|
|
16350
|
+
}
|
|
16351
|
+
}
|
|
16352
|
+
}
|
|
16353
|
+
} catch {
|
|
16354
|
+
}
|
|
16335
16355
|
const nodeModulesDir = resolve26(this.repoRoot, "node_modules");
|
|
16336
16356
|
let nexusResolved = false;
|
|
16337
16357
|
let installedVersion = "";
|
|
@@ -52710,6 +52730,7 @@ async function startInteractive(config, repoPath) {
|
|
|
52710
52730
|
let currentStyle = PRESET_NAMES.includes(savedSettings.style) ? savedSettings.style : "balanced";
|
|
52711
52731
|
let deepContextEnabled = savedSettings.deepContext ?? false;
|
|
52712
52732
|
let flowEnabled = savedSettings.flow === true;
|
|
52733
|
+
let cohereEnabled = false;
|
|
52713
52734
|
let commandsMode = savedSettings.commandsMode ?? "manual";
|
|
52714
52735
|
if (savedSettings.emojis !== void 0)
|
|
52715
52736
|
setEmojisEnabled(savedSettings.emojis);
|
|
@@ -53589,6 +53610,14 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
53589
53610
|
flowEnabled = !flowEnabled;
|
|
53590
53611
|
return flowEnabled;
|
|
53591
53612
|
},
|
|
53613
|
+
cohereToggle() {
|
|
53614
|
+
cohereEnabled = !cohereEnabled;
|
|
53615
|
+
statusBar.setCohereActive(cohereEnabled);
|
|
53616
|
+
return cohereEnabled;
|
|
53617
|
+
},
|
|
53618
|
+
isCohere() {
|
|
53619
|
+
return cohereEnabled;
|
|
53620
|
+
},
|
|
53592
53621
|
getCommandsMode() {
|
|
53593
53622
|
return commandsMode;
|
|
53594
53623
|
},
|
package/package.json
CHANGED