codeep 1.0.38 → 1.0.39

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.
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useState, useMemo, useEffect, useRef } from 'react';
3
3
  import { Text, Box, useInput } from 'ink';
4
+ import clipboardy from 'clipboardy';
4
5
  const COMMANDS = [
5
6
  { cmd: '/help', desc: 'Show help' },
6
7
  { cmd: '/status', desc: 'Show status' },
@@ -227,6 +228,20 @@ export const ChatInput = ({ onSubmit, disabled, history = [], clearTrigger = 0 }
227
228
  setCursorPos(newBefore.length);
228
229
  return;
229
230
  }
231
+ // Handle Ctrl+V - paste from clipboard
232
+ // Terminal sends ASCII 22 (\x16) for Ctrl+V
233
+ if (input === '\x16' || (key.ctrl && input === 'v')) {
234
+ try {
235
+ const clipboardText = clipboardy.readSync();
236
+ if (clipboardText) {
237
+ handlePastedText(clipboardText, true);
238
+ }
239
+ }
240
+ catch {
241
+ // Clipboard read failed, ignore
242
+ }
243
+ return;
244
+ }
230
245
  // Regular character input
231
246
  if (input && !key.ctrl && !key.meta) {
232
247
  // If we have paste info and user types new char, clear paste
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeep",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "description": "AI-powered coding assistant built for the terminal. Multiple LLM providers, project-aware context, and a seamless development workflow.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",