codeep 1.0.83 → 1.0.84
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 +12 -10
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -163,20 +163,22 @@ export const App = () => {
|
|
|
163
163
|
return () => clearTimeout(timer);
|
|
164
164
|
}
|
|
165
165
|
}, [notification, notificationDuration]);
|
|
166
|
-
//
|
|
167
|
-
|
|
166
|
+
// Track previous screen to detect transitions
|
|
167
|
+
const [prevScreen, setPrevScreen] = useState(screen);
|
|
168
|
+
// Clear terminal when opening modals OR when closing them back to chat
|
|
168
169
|
useEffect(() => {
|
|
169
170
|
const commandModals = ['help', 'status', 'sessions', 'sessions-delete', 'model', 'protocol', 'language', 'settings', 'provider', 'search', 'export', 'logout'];
|
|
171
|
+
// Clear when opening a modal
|
|
170
172
|
if (commandModals.includes(screen)) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
setClearInputTrigger(prev => prev + 1); // Clear input to remove command text and suggestions
|
|
173
|
+
stdout?.write('\x1b[2J\x1b[3J\x1b[H');
|
|
174
|
+
setClearInputTrigger(prev => prev + 1);
|
|
175
|
+
}
|
|
176
|
+
// Clear when returning to chat from a modal
|
|
177
|
+
if (screen === 'chat' && commandModals.includes(prevScreen)) {
|
|
178
|
+
stdout?.write('\x1b[2J\x1b[3J\x1b[H');
|
|
178
179
|
}
|
|
179
|
-
|
|
180
|
+
setPrevScreen(screen);
|
|
181
|
+
}, [screen, stdout, prevScreen]);
|
|
180
182
|
// Handle keyboard shortcuts
|
|
181
183
|
useInput((input, key) => {
|
|
182
184
|
// ? to open help (only from chat screen)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeep",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.84",
|
|
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",
|