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.
Files changed (2) hide show
  1. package/dist/index.js +6 -3
  2. 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 parts = arg.split(/\s+/);
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
- if (authIdx !== -1 && parts[authIdx + 1]) {
34076
- apiKey = parts[authIdx + 1];
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.103.25",
3
+ "version": "0.103.26",
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",