codeep 1.0.122 → 1.0.123

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.
@@ -145,11 +145,13 @@ const isSectionBreak = (line, prevLine) => {
145
145
  }
146
146
  return false;
147
147
  };
148
- const MAX_PREVIEW_LINES = 8; // Code preview lines (total box will be ~10 with header/footer)
148
+ const MAX_PREVIEW_LINES = 12; // Code preview lines for live streaming
149
149
  export const LiveCodeStream = memo(({ actions, isRunning, terminalWidth = 80 }) => {
150
- // Find the current write/edit action for live preview
150
+ // Find the current write/edit action for live preview (skip read actions)
151
151
  const currentAction = actions.length > 0 ? actions[actions.length - 1] : null;
152
152
  const isCodeAction = currentAction && (currentAction.type === 'write' || currentAction.type === 'edit');
153
+ // Skip rendering for read actions - no preview needed
154
+ const isReadAction = currentAction && currentAction.type === 'read';
153
155
  // ALL HOOKS MUST BE CALLED BEFORE ANY EARLY RETURNS (Rules of Hooks)
154
156
  // Calculate statistics from all actions
155
157
  const stats = useMemo(() => {
@@ -205,12 +207,17 @@ export const LiveCodeStream = memo(({ actions, isRunning, terminalWidth = 80 })
205
207
  ? line.slice(0, boxWidth - 13) + '...'
206
208
  : line;
207
209
  return (_jsxs(Text, { children: [_jsxs(Text, { color: "gray", dimColor: true, children: [String(lineNum).padStart(3), " "] }), _jsx(Text, { color: getCodeColor(line, ext), children: displayLine || ' ' })] }, i));
208
- }), Array.from({ length: MAX_PREVIEW_LINES - visibleLines.length }).map((_, i) => (_jsx(Text, { color: "gray", dimColor: true, children: ' ' }, `pad-${i}`)))] })] }));
210
+ })] })] }));
209
211
  }
210
- // RUNNING STATE but not a code action: show simple status
211
- if (isRunning && currentAction) {
212
+ // RUNNING STATE but not a code action (and not read): show simple status
213
+ // Skip showing box for read actions - they don't need preview
214
+ if (isRunning && currentAction && !isReadAction) {
212
215
  const boxWidth = Math.min(terminalWidth - 4, 76);
213
- return (_jsxs(Box, { flexDirection: "column", borderStyle: "round", borderColor: "cyan", marginBottom: 1, width: boxWidth, children: [_jsxs(Box, { paddingX: 1, children: [_jsx(Text, { color: "cyan", bold: true, children: "\u25E6 " }), _jsxs(Text, { color: getActionColor(currentAction.type), children: [getActionLabel(currentAction.type), " "] }), _jsx(Text, { color: "white", children: formatTarget(currentAction.target) })] }), Array.from({ length: MAX_PREVIEW_LINES }).map((_, i) => (_jsx(Text, { color: "gray", dimColor: true, children: " " }, `pad-${i}`)))] }));
216
+ return (_jsx(Box, { flexDirection: "column", borderStyle: "round", borderColor: "cyan", marginBottom: 1, width: boxWidth, children: _jsxs(Box, { paddingX: 1, children: [_jsx(Text, { color: "cyan", bold: true, children: "\u25E6 " }), _jsxs(Text, { color: getActionColor(currentAction.type), children: [getActionLabel(currentAction.type), " "] }), _jsx(Text, { color: "white", children: formatTarget(currentAction.target) })] }) }));
217
+ }
218
+ // For read actions while running, don't show anything
219
+ if (isRunning && isReadAction) {
220
+ return null;
214
221
  }
215
222
  // FINISHED STATE: Show summary statistics (same height as live preview)
216
223
  const boxWidth = Math.min(terminalWidth - 4, 76);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeep",
3
- "version": "1.0.122",
3
+ "version": "1.0.123",
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",