open-agents-ai 0.187.410 → 0.187.411

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
@@ -531165,6 +531165,7 @@ __export(text_selection_exports, {
531165
531165
  computeHeaderButtons: () => computeHeaderButtons,
531166
531166
  copyText: () => copyText,
531167
531167
  hitTestHeaderButton: () => hitTestHeaderButton,
531168
+ pasteText: () => pasteText,
531168
531169
  renderHeaderButtons: () => renderHeaderButtons,
531169
531170
  setHoveredButton: () => setHoveredButton,
531170
531171
  setPressedButton: () => setPressedButton,
@@ -531221,6 +531222,31 @@ function copyText(text) {
531221
531222
  }
531222
531223
  return false;
531223
531224
  }
531225
+ function pasteText() {
531226
+ try {
531227
+ const platform5 = process.platform;
531228
+ if (platform5 === "darwin") {
531229
+ return execSync45("pbpaste", { timeout: 3e3, encoding: "utf8" }).trimEnd();
531230
+ }
531231
+ if (platform5 === "win32") {
531232
+ return execSync45("powershell -command Get-Clipboard", { timeout: 3e3, encoding: "utf8" }).trimEnd();
531233
+ }
531234
+ for (const tool of [
531235
+ { cmd: "xclip", args: ["-selection", "clipboard", "-o"] },
531236
+ { cmd: "xsel", args: ["--clipboard", "--output"] },
531237
+ { cmd: "wl-paste", args: [] }
531238
+ ]) {
531239
+ try {
531240
+ const result = execSync45(`${tool.cmd} ${tool.args.join(" ")}`, { timeout: 3e3, encoding: "utf8" });
531241
+ return result.trimEnd();
531242
+ } catch {
531243
+ continue;
531244
+ }
531245
+ }
531246
+ } catch {
531247
+ }
531248
+ return null;
531249
+ }
531224
531250
  function computeHeaderButtons(_termWidth) {
531225
531251
  return [];
531226
531252
  }
@@ -535180,6 +535206,16 @@ ${CONTENT_BG_SEQ}`);
535180
535206
  di.on("ctrl-backslash", () => self2.cycleFocus());
535181
535207
  di.on("ctrl-shift-c", () => self2.copySelection());
535182
535208
  di.on("ctrl-shift-b", () => self2.armBlockSelection());
535209
+ di.on("ctrl-shift-v", () => {
535210
+ const text = pasteText();
535211
+ if (text) {
535212
+ const before = di.line.slice(0, di.cursor);
535213
+ const after = di.line.slice(di.cursor);
535214
+ const newCursor = di.cursor + text.length;
535215
+ di.setLine(before + text + after, newCursor);
535216
+ self2.renderFooterAndPositionInput();
535217
+ }
535218
+ });
535183
535219
  di.on("up", () => {
535184
535220
  if (self2._suggestions.length > 0) {
535185
535221
  if (self2.suggestUp()) return;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.410",
3
+ "version": "0.187.411",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "open-agents-ai",
9
- "version": "0.187.410",
9
+ "version": "0.187.411",
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.410",
3
+ "version": "0.187.411",
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",