codeep 1.0.107 → 1.0.108
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.
|
@@ -180,7 +180,7 @@ export const LiveCodeStream = memo(({ actions, isRunning, terminalWidth = 80 })
|
|
|
180
180
|
return () => clearTimeout(timer);
|
|
181
181
|
}
|
|
182
182
|
}, [isRunning, currentAction, visibleLineCount]);
|
|
183
|
-
// Only show for write/edit actions with content
|
|
183
|
+
// Only show for write/edit actions with content
|
|
184
184
|
if (!isRunning || !currentAction)
|
|
185
185
|
return null;
|
|
186
186
|
if (currentAction.type !== 'write' && currentAction.type !== 'edit')
|
|
@@ -194,6 +194,18 @@ export const LiveCodeStream = memo(({ actions, isRunning, terminalWidth = 80 })
|
|
|
194
194
|
const langLabel = getLanguageLabel(ext);
|
|
195
195
|
const allLines = code.split('\n');
|
|
196
196
|
const totalLines = allLines.length;
|
|
197
|
+
// When action completes, show compact summary with blank lines to overwrite ghost
|
|
198
|
+
const isCompleted = currentAction.result === 'success' || currentAction.result === 'error';
|
|
199
|
+
if (isCompleted) {
|
|
200
|
+
const statusIcon = currentAction.result === 'success' ? '✓' : '✗';
|
|
201
|
+
const statusColor = currentAction.result === 'success' ? 'green' : 'red';
|
|
202
|
+
const actionVerb = currentAction.type === 'write' ? 'Created' : 'Edited';
|
|
203
|
+
// Calculate how many blank lines we need to overwrite the previous code display
|
|
204
|
+
// Header (2) + code lines shown + footer (1) + loading indicator (1)
|
|
205
|
+
const previousHeight = Math.min(visibleLineCount, totalLines) + 4;
|
|
206
|
+
const blankLines = Math.max(0, previousHeight - 1); // -1 for our summary line
|
|
207
|
+
return (_jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsxs(Text, { color: statusColor, children: [statusIcon, " ", actionVerb, " ", filename, " (", totalLines, " lines)"] }), Array.from({ length: blankLines }).map((_, i) => (_jsx(Text, { children: " " }, i)))] }));
|
|
208
|
+
}
|
|
197
209
|
const actionLabel = currentAction.type === 'write' ? '✨ Creating' : '✏️ Editing';
|
|
198
210
|
const actionColor = currentAction.type === 'write' ? 'green' : 'yellow';
|
|
199
211
|
// Show lines up to visibleLineCount
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeep",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.108",
|
|
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",
|