open-agents-ai 0.103.25 → 0.103.26
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 +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34068,12 +34068,15 @@ async function handleEndpoint(arg, ctx, local = false) {
|
|
|
34068
34068
|
}
|
|
34069
34069
|
return;
|
|
34070
34070
|
}
|
|
34071
|
-
const
|
|
34071
|
+
const normalizedArg = arg.replace(/\u2014/g, "--").replace(/\u2013/g, "--");
|
|
34072
|
+
const parts = normalizedArg.split(/\s+/);
|
|
34072
34073
|
const url = parts[0];
|
|
34073
34074
|
let apiKey;
|
|
34074
34075
|
const authIdx = parts.indexOf("--auth");
|
|
34075
|
-
|
|
34076
|
-
|
|
34076
|
+
const authIdx2 = authIdx === -1 ? parts.indexOf("-auth") : authIdx;
|
|
34077
|
+
const effectiveAuthIdx = authIdx !== -1 ? authIdx : authIdx2;
|
|
34078
|
+
if (effectiveAuthIdx !== -1 && parts[effectiveAuthIdx + 1]) {
|
|
34079
|
+
apiKey = parts[effectiveAuthIdx + 1];
|
|
34077
34080
|
}
|
|
34078
34081
|
if (url.startsWith("12D3KooW") && url.length > 40 && !url.includes("://")) {
|
|
34079
34082
|
await handlePeerEndpoint(url, apiKey, ctx, local);
|
package/package.json
CHANGED