codeep 1.0.42 → 1.0.43

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/README.md CHANGED
@@ -53,6 +53,13 @@ When started in a project directory, Codeep automatically:
53
53
  - Copy code blocks to clipboard with `/copy [n]`
54
54
  - Code blocks are numbered for easy reference
55
55
 
56
+ ### Clipboard Paste
57
+ - **`/paste` command** - Paste content from clipboard into chat
58
+ - Type `/paste` and press Enter to read clipboard content
59
+ - Shows preview with character/line count before sending
60
+ - Press Enter to send, Escape to cancel
61
+ - Works reliably in all terminals (no Ctrl+V issues)
62
+
56
63
  ### Autonomous Agent Mode
57
64
 
58
65
  Codeep works as a **full AI coding agent** that autonomously:
@@ -22,6 +22,7 @@ const COMMANDS = [
22
22
  { cmd: '/commit', desc: 'Generate commit message' },
23
23
  { cmd: '/apply', desc: 'Apply file changes' },
24
24
  { cmd: '/copy', desc: 'Copy code block' },
25
+ { cmd: '/paste', desc: 'Paste from clipboard' },
25
26
  { cmd: '/clear', desc: 'Clear chat' },
26
27
  { cmd: '/login', desc: 'Change API key' },
27
28
  { cmd: '/logout', desc: 'Logout' },
@@ -113,9 +114,23 @@ export const ChatInput = ({ onSubmit, disabled, history = [], clearTrigger = 0 }
113
114
  return;
114
115
  // Handle Enter - submit
115
116
  if (key.return) {
116
- if (value.trim()) {
117
+ const trimmedValue = value.trim();
118
+ // Handle /paste command - read from clipboard
119
+ if (trimmedValue === '/paste') {
120
+ try {
121
+ const clipboardText = clipboardy.readSync();
122
+ if (clipboardText && clipboardText.trim()) {
123
+ handlePastedText(clipboardText.trim(), true);
124
+ }
125
+ }
126
+ catch {
127
+ // Clipboard read failed
128
+ }
129
+ return;
130
+ }
131
+ if (trimmedValue) {
117
132
  // If we have paste info, submit the full pasted text
118
- const submitValue = pasteInfo ? pasteInfo.fullText : value.trim();
133
+ const submitValue = pasteInfo ? pasteInfo.fullText : trimmedValue;
119
134
  onSubmit(submitValue);
120
135
  setValue('');
121
136
  setCursorPos(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeep",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
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",