open-agents-ai 0.103.32 → 0.103.33
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 +11 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44970,7 +44970,17 @@ function startTask(task, config, repoRoot, voice, stream, taskStores, bruteForce
|
|
|
44970
44970
|
let backend;
|
|
44971
44971
|
if (config.backendType === "nexus") {
|
|
44972
44972
|
const nexusTool = new NexusTool(repoRoot);
|
|
44973
|
-
const
|
|
44973
|
+
const connectPromise = nexusTool.execute({ action: "connect" }).catch(() => {
|
|
44974
|
+
});
|
|
44975
|
+
const baseSendFn = nexusTool.sendCommand.bind(nexusTool);
|
|
44976
|
+
let connected = false;
|
|
44977
|
+
const sendFn = async (cmd, args, timeout) => {
|
|
44978
|
+
if (!connected) {
|
|
44979
|
+
await connectPromise;
|
|
44980
|
+
connected = true;
|
|
44981
|
+
}
|
|
44982
|
+
return baseSendFn(cmd, args, timeout);
|
|
44983
|
+
};
|
|
44974
44984
|
const targetPeer = config.backendUrl.startsWith("peer://") ? config.backendUrl.slice(7) : void 0;
|
|
44975
44985
|
backend = new NexusAgenticBackend(sendFn, config.model, targetPeer, config.apiKey);
|
|
44976
44986
|
} else {
|
package/package.json
CHANGED