open-agents-ai 0.187.407 → 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
@@ -584813,12 +584813,25 @@ Respond concisely and safely. Remember: you are talking to the general public.`;
584813
584813
  }
584814
584814
  function showPasteIndicator() {
584815
584815
  const count = pasteBuffer.length;
584816
- 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");
584817
584830
  if (isNeovimActive()) {
584818
- writeToNeovimOutput(`${label}\r
584831
+ writeToNeovimOutput(`${fullOutput}\r
584819
584832
  `);
584820
584833
  } else {
584821
- process.stdout.write(`\r\x1B[K${label}`);
584834
+ process.stdout.write(`\r\x1B[K${fullOutput}`);
584822
584835
  }
584823
584836
  pasteIndicatorShown = true;
584824
584837
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.407",
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.407",
9
+ "version": "0.187.408",
10
10
  "hasInstallScript": true,
11
11
  "license": "CC-BY-NC-4.0",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.407",
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",