codeep 1.0.98 → 1.0.99
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 +13 -1
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useEffect, useCallback } from 'react';
|
|
2
|
+
import React, { useState, useEffect, useCallback } from 'react';
|
|
3
3
|
import { Box, Text, useApp, useInput, useStdout } from 'ink';
|
|
4
4
|
import clipboardy from 'clipboardy';
|
|
5
5
|
import { logger } from './utils/logger.js';
|
|
@@ -179,6 +179,18 @@ export const App = () => {
|
|
|
179
179
|
setClearInputTrigger(prev => prev + 1);
|
|
180
180
|
}
|
|
181
181
|
}, [modalScreen]);
|
|
182
|
+
// Clear LiveCodeStream ghost content when agent finishes
|
|
183
|
+
const prevAgentRunning = React.useRef(isAgentRunning);
|
|
184
|
+
useEffect(() => {
|
|
185
|
+
// Detect transition from running to stopped
|
|
186
|
+
if (prevAgentRunning.current === true && isAgentRunning === false) {
|
|
187
|
+
// Agent just stopped - clear terminal to remove LiveCodeStream ghost
|
|
188
|
+
setTimeout(() => {
|
|
189
|
+
stdout?.write('\x1b[2J\x1b[3J\x1b[H');
|
|
190
|
+
}, 100);
|
|
191
|
+
}
|
|
192
|
+
prevAgentRunning.current = isAgentRunning;
|
|
193
|
+
}, [isAgentRunning, stdout]);
|
|
182
194
|
// Handle keyboard shortcuts
|
|
183
195
|
useInput((input, key) => {
|
|
184
196
|
// Ctrl+L to clear chat (F5 doesn't work reliably in all terminals)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeep",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.99",
|
|
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",
|