codeep 1.0.78 → 1.0.80
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/app.js +2 -1
- package/dist/components/Input.js +3 -0
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -163,11 +163,12 @@ export const App = () => {
|
|
|
163
163
|
return () => clearTimeout(timer);
|
|
164
164
|
}
|
|
165
165
|
}, [notification, notificationDuration]);
|
|
166
|
-
// Clear terminal when opening command-triggered modals (not session-picker or permission)
|
|
166
|
+
// Clear terminal and input when opening command-triggered modals (not session-picker or permission)
|
|
167
167
|
useEffect(() => {
|
|
168
168
|
const commandModals = ['help', 'status', 'sessions', 'sessions-delete', 'model', 'protocol', 'language', 'settings', 'provider', 'search', 'export', 'logout'];
|
|
169
169
|
if (commandModals.includes(screen)) {
|
|
170
170
|
stdout?.write('\x1b[2J\x1b[H');
|
|
171
|
+
setClearInputTrigger(prev => prev + 1); // Clear input to remove command text and suggestions
|
|
171
172
|
}
|
|
172
173
|
}, [screen, stdout]);
|
|
173
174
|
// Handle keyboard shortcuts
|
package/dist/components/Input.js
CHANGED
|
@@ -55,6 +55,9 @@ export const ChatInput = ({ onSubmit, disabled, history = [], clearTrigger = 0 }
|
|
|
55
55
|
}, [clearTrigger]);
|
|
56
56
|
// Filter commands based on input
|
|
57
57
|
const suggestions = useMemo(() => {
|
|
58
|
+
// No suggestions for empty input
|
|
59
|
+
if (!value || value.length === 0)
|
|
60
|
+
return [];
|
|
58
61
|
// Show all commands when user types just '/'
|
|
59
62
|
if (value === '/')
|
|
60
63
|
return COMMANDS;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeep",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.80",
|
|
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",
|