open-agents-ai 0.141.5 → 0.141.6
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 +38 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43417,11 +43417,13 @@ async function handleSlashCommand(input, ctx) {
|
|
|
43417
43417
|
if (ctx.cohereToggle) {
|
|
43418
43418
|
const active = ctx.cohereToggle();
|
|
43419
43419
|
if (active) {
|
|
43420
|
-
renderInfo("COHERE enabled \u2014
|
|
43421
|
-
renderInfo(
|
|
43422
|
-
renderInfo("
|
|
43420
|
+
renderInfo("COHERE enabled \u2014 joining distributed cognitive commons");
|
|
43421
|
+
renderInfo(`Forwarding inference: ${ctx.config.backendUrl} (${ctx.config.model})`);
|
|
43422
|
+
renderInfo("Auto-connecting to nexus mesh + exposing local inference...");
|
|
43423
|
+
renderInfo("Use /cohere stats for network info, /cohere again to disconnect");
|
|
43423
43424
|
} else {
|
|
43424
43425
|
renderInfo("COHERE disabled \u2014 disconnected from cognitive commons");
|
|
43426
|
+
renderInfo("Local inference no longer forwarded to mesh");
|
|
43425
43427
|
}
|
|
43426
43428
|
} else {
|
|
43427
43429
|
renderWarning("COHERE not available \u2014 requires nexus connection (/expose or /p2p)");
|
|
@@ -58475,12 +58477,39 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
58475
58477
|
statusBar.setCohereActive(cohereEnabled);
|
|
58476
58478
|
saveProjectSettings(repoRoot, { cohere: cohereEnabled });
|
|
58477
58479
|
saveGlobalSettings({ cohere: cohereEnabled });
|
|
58478
|
-
|
|
58479
|
-
|
|
58480
|
-
|
|
58481
|
-
|
|
58482
|
-
|
|
58483
|
-
|
|
58480
|
+
if (cohereEnabled) {
|
|
58481
|
+
(async () => {
|
|
58482
|
+
try {
|
|
58483
|
+
const { NexusTool: NexusTool2 } = __require("@open-agents/execution");
|
|
58484
|
+
const nexusTool = new NexusTool2(repoRoot);
|
|
58485
|
+
try {
|
|
58486
|
+
const st = await nexusTool.execute({ action: "status" });
|
|
58487
|
+
if (!st.success || !st.output.includes("connected")) {
|
|
58488
|
+
await nexusTool.execute({ action: "connect" });
|
|
58489
|
+
await new Promise((r) => setTimeout(r, 1500));
|
|
58490
|
+
}
|
|
58491
|
+
} catch {
|
|
58492
|
+
}
|
|
58493
|
+
await nexusTool.execute({ action: "cohere_enable" }).catch(() => {
|
|
58494
|
+
});
|
|
58495
|
+
} catch {
|
|
58496
|
+
}
|
|
58497
|
+
try {
|
|
58498
|
+
if (!commandCtx.isExposeActive?.()) {
|
|
58499
|
+
writeContent(() => renderInfo("COHERE: exposing local inference to mesh..."));
|
|
58500
|
+
await commandCtx.exposeStart?.("passthrough");
|
|
58501
|
+
}
|
|
58502
|
+
} catch {
|
|
58503
|
+
}
|
|
58504
|
+
})();
|
|
58505
|
+
} else {
|
|
58506
|
+
try {
|
|
58507
|
+
const { NexusTool: NexusTool2 } = __require("@open-agents/execution");
|
|
58508
|
+
const nexusTool = new NexusTool2(repoRoot);
|
|
58509
|
+
nexusTool.execute({ action: "cohere_disable" }).catch(() => {
|
|
58510
|
+
});
|
|
58511
|
+
} catch {
|
|
58512
|
+
}
|
|
58484
58513
|
}
|
|
58485
58514
|
return cohereEnabled;
|
|
58486
58515
|
},
|
package/package.json
CHANGED