open-agents-ai 0.187.406 → 0.187.408

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 CHANGED
@@ -549893,7 +549893,7 @@ async function handleEndpoint(arg, ctx3, local = false) {
549893
549893
  await handleSponsoredEndpoint(ctx3, local);
549894
549894
  return;
549895
549895
  }
549896
- if (result.confirmed && result.key) {
549896
+ if (result.confirmed && result.key && !result.key.startsWith("__")) {
549897
549897
  const selectedRecord = history.find((h) => h.value === result.key);
549898
549898
  const savedAuth = selectedRecord?.meta?.authKey;
549899
549899
  const endpointArg = savedAuth ? `${result.key} --auth ${savedAuth}` : result.key;
@@ -549949,6 +549949,8 @@ async function handleEndpoint(arg, ctx3, local = false) {
549949
549949
  await handleEndpoint(addedUrl, ctx3, local);
549950
549950
  } else if (noHistResult.confirmed && noHistResult.key === "__sponsor__") {
549951
549951
  await handleSponsoredEndpoint(ctx3, local);
549952
+ } else if (noHistResult.confirmed && noHistResult.key && !noHistResult.key.startsWith("__")) {
549953
+ await handleEndpoint(noHistResult.key, ctx3, local);
549952
549954
  } else if (!noHistResult.confirmed) {
549953
549955
  renderInfo2("Endpoint selection cancelled.");
549954
549956
  }
@@ -584811,12 +584813,25 @@ Respond concisely and safely. Remember: you are talking to the general public.`;
584811
584813
  }
584812
584814
  function showPasteIndicator() {
584813
584815
  const count = pasteBuffer.length;
584814
- const label = ` ${c3.dim("[")}${c3.bold(c3.cyan(String(count)))}${c3.dim(" pasted line" + (count !== 1 ? "s" : "") + " — press Enter to submit]")}`;
584816
+ const termWidth = process.stdout.columns ?? 80;
584817
+ const maxPreviewLines = 3;
584818
+ const maxPreviewWidth = Math.min(termWidth - 6, 120);
584819
+ const previewLines = [];
584820
+ for (let i2 = 0; i2 < Math.min(count, maxPreviewLines); i2++) {
584821
+ const line = pasteBuffer[i2] ?? "";
584822
+ const truncated = line.length > maxPreviewWidth ? line.slice(0, maxPreviewWidth - 1) + "…" : line;
584823
+ previewLines.push(c3.dim(" ") + truncated);
584824
+ }
584825
+ if (count > maxPreviewLines) {
584826
+ previewLines.push(c3.dim(` … +${count - maxPreviewLines} more lines`));
584827
+ }
584828
+ const header = ` ${c3.dim("[")}${c3.bold(c3.cyan(String(count)))}${c3.dim(" pasted line" + (count !== 1 ? "s" : "") + " — Enter to submit]")}`;
584829
+ const fullOutput = header + "\n" + previewLines.join("\n");
584815
584830
  if (isNeovimActive()) {
584816
- writeToNeovimOutput(`${label}\r
584831
+ writeToNeovimOutput(`${fullOutput}\r
584817
584832
  `);
584818
584833
  } else {
584819
- process.stdout.write(`\r\x1B[K${label}`);
584834
+ process.stdout.write(`\r\x1B[K${fullOutput}`);
584820
584835
  }
584821
584836
  pasteIndicatorShown = true;
584822
584837
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.406",
3
+ "version": "0.187.408",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "open-agents-ai",
9
- "version": "0.187.406",
9
+ "version": "0.187.408",
10
10
  "hasInstallScript": true,
11
11
  "license": "CC-BY-NC-4.0",
12
12
  "dependencies": {
@@ -2773,9 +2773,9 @@
2773
2773
  "license": "MIT"
2774
2774
  },
2775
2775
  "node_modules/axios": {
2776
- "version": "1.15.0",
2777
- "resolved": "https://registry.npmjs.org/axios/-/axios-1.15.0.tgz",
2778
- "integrity": "sha512-wWyJDlAatxk30ZJer+GeCWS209sA42X+N5jU2jy6oHTp7ufw8uzUTVFBX9+wTfAlhiJXGS0Bq7X6efruWjuK9Q==",
2776
+ "version": "1.15.1",
2777
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.15.1.tgz",
2778
+ "integrity": "sha512-WOG+Jj8ZOvR0a3rAn+Tuf1UQJRxw5venr6DgdbJzngJE3qG7X0kL83CZGpdHMxEm+ZK3seAbvFsw4FfOfP9vxg==",
2779
2779
  "license": "MIT",
2780
2780
  "dependencies": {
2781
2781
  "follow-redirects": "^1.15.11",
@@ -4146,9 +4146,9 @@
4146
4146
  }
4147
4147
  },
4148
4148
  "node_modules/eventsource-parser": {
4149
- "version": "3.0.7",
4150
- "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.7.tgz",
4151
- "integrity": "sha512-zwxwiQqexizSXFZV13zMiEtW1E3lv7RlUv+1f5FBiR4x7wFhEjm3aFTyYkZQWzyN08WnPdox015GoRH5D/E5YA==",
4149
+ "version": "3.0.8",
4150
+ "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.8.tgz",
4151
+ "integrity": "sha512-70QWGkr4snxr0OXLRWsFLeRBIRPuQOvt4s8QYjmUlmlkyTZkRqS7EDVRZtzU3TiyDbXSzaOeF0XUKy8PchzukQ==",
4152
4152
  "license": "MIT",
4153
4153
  "engines": {
4154
4154
  "node": ">=18.0.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.406",
3
+ "version": "0.187.408",
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",