linecraft 0.2.4 → 0.2.6

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.
Files changed (79) hide show
  1. package/LICENSE +59 -21
  2. package/README.md +51 -8
  3. package/lib/components/code-debug.d.ts +2 -0
  4. package/lib/components/code-debug.d.ts.map +1 -1
  5. package/lib/components/code-debug.js +205 -266
  6. package/lib/components/code-debug.js.map +1 -1
  7. package/lib/components/code-debug.test.d.ts +2 -0
  8. package/lib/components/code-debug.test.d.ts.map +1 -0
  9. package/lib/components/code-debug.test.js +245 -0
  10. package/lib/components/code-debug.test.js.map +1 -0
  11. package/lib/components/fill.d.ts +2 -1
  12. package/lib/components/fill.d.ts.map +1 -1
  13. package/lib/components/fill.js.map +1 -1
  14. package/lib/components/progress-bar-grid.d.ts.map +1 -1
  15. package/lib/components/progress-bar-grid.js +5 -3
  16. package/lib/components/progress-bar-grid.js.map +1 -1
  17. package/lib/components/prompt.js +1 -1
  18. package/lib/components/prompt.js.map +1 -1
  19. package/lib/components/section.js +1 -1
  20. package/lib/components/section.js.map +1 -1
  21. package/lib/components/segments.js +4 -4
  22. package/lib/components/segments.js.map +1 -1
  23. package/lib/components/spinner.d.ts +2 -1
  24. package/lib/components/spinner.d.ts.map +1 -1
  25. package/lib/components/spinner.js +1 -1
  26. package/lib/components/spinner.js.map +1 -1
  27. package/lib/components/styled.d.ts +4 -2
  28. package/lib/components/styled.d.ts.map +1 -1
  29. package/lib/components/styled.js +37 -8
  30. package/lib/components/styled.js.map +1 -1
  31. package/lib/index.d.ts +2 -0
  32. package/lib/index.d.ts.map +1 -1
  33. package/lib/index.js +1 -0
  34. package/lib/index.js.map +1 -1
  35. package/lib/layout/grid.d.ts +3 -2
  36. package/lib/layout/grid.d.ts.map +1 -1
  37. package/lib/layout/grid.js +94 -47
  38. package/lib/layout/grid.js.map +1 -1
  39. package/lib/layout/grid.test.js +67 -0
  40. package/lib/layout/grid.test.js.map +1 -1
  41. package/lib/native/diff.test.js.map +1 -1
  42. package/lib/native/region-renderer.d.ts +1 -0
  43. package/lib/native/region-renderer.d.ts.map +1 -1
  44. package/lib/native/region-renderer.js +31 -1
  45. package/lib/native/region-renderer.js.map +1 -1
  46. package/lib/native/region.test.js +1 -1
  47. package/lib/native/region.test.js.map +1 -1
  48. package/lib/region-resize.test.js +3 -3
  49. package/lib/region-resize.test.js.map +1 -1
  50. package/lib/region.d.ts.map +1 -1
  51. package/lib/region.js +0 -46
  52. package/lib/region.js.map +1 -1
  53. package/lib/types.d.ts +6 -5
  54. package/lib/types.d.ts.map +1 -1
  55. package/lib/utils/colors.d.ts.map +1 -1
  56. package/lib/utils/colors.js +50 -8
  57. package/lib/utils/colors.js.map +1 -1
  58. package/lib/utils/colors.test.js.map +1 -1
  59. package/lib/utils/cursor-position.d.ts.map +1 -1
  60. package/lib/utils/cursor-position.js +4 -13
  61. package/lib/utils/cursor-position.js.map +1 -1
  62. package/lib/utils/debug-log.js +1 -1
  63. package/lib/utils/debug-log.js.map +1 -1
  64. package/lib/utils/terminal-theme.d.ts +17 -28
  65. package/lib/utils/terminal-theme.d.ts.map +1 -1
  66. package/lib/utils/terminal-theme.js +66 -38
  67. package/lib/utils/terminal-theme.js.map +1 -1
  68. package/lib/utils/text.d.ts +64 -2
  69. package/lib/utils/text.d.ts.map +1 -1
  70. package/lib/utils/text.js +619 -103
  71. package/lib/utils/text.js.map +1 -1
  72. package/lib/utils/text.test.d.ts +2 -0
  73. package/lib/utils/text.test.d.ts.map +1 -0
  74. package/lib/utils/text.test.js +237 -0
  75. package/lib/utils/text.test.js.map +1 -0
  76. package/lib/utils/wait-for-spacebar.d.ts.map +1 -1
  77. package/lib/utils/wait-for-spacebar.js +1 -8
  78. package/lib/utils/wait-for-spacebar.js.map +1 -1
  79. package/package.json +8 -2
@@ -1,116 +1,27 @@
1
1
  // Code debug component for displaying code errors/warnings with context
2
2
  import { callComponent } from '../component.js';
3
3
  import { applyStyle } from '../utils/colors.js';
4
- import { wrapText, stripAnsi, truncateToWidth } from '../utils/text.js';
4
+ import { stripAnsi, truncateToWidth, truncateFocusRange, mapColumnToDisplay, countVisibleChars, splitAtVisiblePos } from '../utils/text.js';
5
+ import { fileLink } from '../utils/file-link.js';
6
+ import { Styled } from './styled.js';
5
7
  import { grid as Grid } from '../layout/grid.js';
6
- import { getLineNumberColor, isDarkTerminal } from '../utils/terminal-theme.js';
7
- function calculateVisibleRange(code, availableWidth, targetStartCol, targetEndCol, maxColumn) {
8
- const plainCode = stripAnsi(code);
9
- const codeLength = plainCode.length;
10
- // If code fits, show everything
11
- if (codeLength <= availableWidth) {
12
- return {
13
- startCol: 1,
14
- endCol: codeLength,
15
- hasEllipsisStart: false,
16
- hasEllipsisEnd: false,
17
- };
18
- }
19
- // If maxColumn is set, we need to ensure we don't show beyond it
20
- const effectiveMaxCol = maxColumn ? Math.min(maxColumn, codeLength) : codeLength;
21
- // Calculate how much space we need for the target columns
22
- const targetWidth = targetEndCol
23
- ? targetEndCol - targetStartCol + 1
24
- : 1; // Just the arrow
25
- // If target doesn't fit, we'll need to truncate
26
- if (targetWidth > availableWidth - 6) { // -6 for ellipsis on both sides if needed
27
- // Target is too wide, just show middle with ellipsis
28
- const midPoint = Math.floor((availableWidth - 6) / 2);
29
- const startCol = Math.max(1, targetStartCol - midPoint);
30
- const endCol = Math.min(effectiveMaxCol, startCol + availableWidth - 6);
31
- return {
32
- startCol,
33
- endCol,
34
- hasEllipsisStart: startCol > 1,
35
- hasEllipsisEnd: endCol < codeLength,
36
- };
37
- }
38
- // Try to center the target in the available space
39
- const padding = Math.floor((availableWidth - targetWidth) / 2);
40
- let startCol = Math.max(1, targetStartCol - padding);
41
- let endCol = Math.min(effectiveMaxCol, startCol + availableWidth - 1);
42
- // Adjust if we hit boundaries
43
- if (endCol - startCol + 1 > availableWidth) {
44
- endCol = startCol + availableWidth - 1;
45
- }
46
- if (endCol > effectiveMaxCol) {
47
- endCol = effectiveMaxCol;
48
- startCol = Math.max(1, endCol - availableWidth + 1);
49
- }
50
- if (startCol < 1) {
51
- startCol = 1;
52
- endCol = Math.min(effectiveMaxCol, availableWidth);
53
- }
54
- // Check if we need ellipsis
55
- const hasEllipsisStart = startCol > 1;
56
- const hasEllipsisEnd = endCol < codeLength;
57
- return {
58
- startCol,
59
- endCol,
60
- hasEllipsisStart,
61
- hasEllipsisEnd,
62
- };
63
- }
64
- /**
65
- * Truncate code line to show specific column range with ellipsis
66
- */
67
- function truncateCodeLine(code, visibleRange, availableWidth) {
68
- const { startCol, endCol, hasEllipsisStart, hasEllipsisEnd } = visibleRange;
69
- const plainCode = stripAnsi(code);
70
- if (!hasEllipsisStart && !hasEllipsisEnd) {
71
- // No truncation needed, but ensure it fits
72
- return truncateToWidth(code, availableWidth);
73
- }
74
- // Extract the visible portion (1-based columns in plain text)
75
- const visiblePlain = plainCode.substring(startCol - 1, endCol);
76
- // Calculate available width for code (minus ellipsis)
77
- const ellipsisWidth = (hasEllipsisStart ? 3 : 0) + (hasEllipsisEnd ? 3 : 0);
78
- const codeWidth = availableWidth - ellipsisWidth;
79
- // Truncate the visible portion if it's still too wide
80
- let truncatedPlain = visiblePlain;
81
- if (stripAnsi(visiblePlain).length > codeWidth) {
82
- truncatedPlain = truncateToWidth(visiblePlain, codeWidth);
83
- }
84
- if (hasEllipsisStart && hasEllipsisEnd) {
85
- // Truncate both ends - show middle portion
86
- const midPoint = Math.floor(codeWidth / 2);
87
- const startPart = truncateToWidth(truncatedPlain, midPoint);
88
- const endPart = truncateToWidth(truncatedPlain.substring(stripAnsi(truncatedPlain).length - (codeWidth - midPoint)), codeWidth - midPoint);
89
- return `...${startPart}...${endPart}...`;
90
- }
91
- else if (hasEllipsisStart) {
92
- return `...${truncatedPlain}`;
93
- }
94
- else {
95
- return `${truncatedPlain}...`;
96
- }
97
- }
8
+ import { autoColor } from '../utils/terminal-theme.js';
98
9
  /**
99
10
  * CodeDebug component - displays code errors/warnings with context
100
11
  */
101
12
  export function CodeDebug(options) {
102
13
  return (ctx) => {
103
- const { startLine, startColumn, endLine, endColumn, lineBefore, errorLine, lineAfter, message, errorCode, shortMessage, filePath, fullPath, baseDir, type = 'error', maxColumn, } = options;
104
- const availableWidth = ctx.availableWidth;
14
+ const { startLine, startColumn, endColumn, lineBefore, errorLine, lineAfter, message, errorCode, shortMessage, shortMessagePlacement = 'auto', filePath, fullPath, baseDir, type = 'error', maxColumn, } = options;
15
+ // If availableWidth is Infinity (during Grid measurement), use a reasonable default
16
+ // Otherwise use the actual available width
17
+ const availableWidth = Number.isFinite(ctx.availableWidth) ? ctx.availableWidth : 80;
105
18
  // Color scheme based on type
106
- const colors = {
107
- error: { primary: 'red', secondary: 'brightRed', message: 'brightRed' },
108
- warning: { primary: 'yellow', secondary: 'brightYellow', message: 'brightYellow' },
109
- info: { primary: 'cyan', secondary: 'brightCyan', message: 'brightCyan' },
19
+ const colorScheme = {
20
+ primary: type,
21
+ message: type,
110
22
  };
111
- const colorScheme = colors[type];
112
23
  // Get appropriate line number color based on terminal theme (muted color)
113
- const lineNumberColor = getLineNumberColor(); // For line numbers (muted)
24
+ const lineNumColor = 'muted';
114
25
  // Calculate available width for code (reserve space for line numbers, separator, and spaces)
115
26
  // Calculate the maximum width needed for any line number that will be displayed
116
27
  const lineNumbersToCheck = [startLine];
@@ -122,230 +33,258 @@ export function CodeDebug(options) {
122
33
  }
123
34
  const lineNumWidth = Math.max(...lineNumbersToCheck.map(n => String(n).length));
124
35
  const codeAreaWidth = availableWidth - lineNumWidth - 3; // -3 for " │ " (space, pipe, space)
125
- // Calculate visible range for error line
36
+ // Use truncateFocusRange to show the target range with proper truncation
126
37
  const targetEndCol = endColumn ?? startColumn;
127
- const plainErrorLine = stripAnsi(errorLine);
128
- const effectiveMaxCol = maxColumn ? Math.min(maxColumn, plainErrorLine.length) : plainErrorLine.length;
129
- const visibleRange = calculateVisibleRange(errorLine, codeAreaWidth, startColumn, targetEndCol, effectiveMaxCol);
130
- // Truncate error line
131
- const truncatedErrorLine = truncateCodeLine(errorLine, visibleRange, codeAreaWidth);
132
- // Calculate arrow/underline position relative to the truncated error line display
133
- // Map original column positions to display positions
134
- const truncatedPlain = stripAnsi(truncatedErrorLine);
135
- // Helper to map original column to display position
136
- const mapColumnToDisplay = (originalCol) => {
137
- if (visibleRange.hasEllipsisStart && visibleRange.hasEllipsisEnd) {
138
- // Format: "...start...end..."
139
- // Visible range is in the middle
140
- if (originalCol < visibleRange.startCol) {
141
- return 1; // Before visible, point to start
142
- }
143
- else if (originalCol > visibleRange.endCol) {
144
- return truncatedPlain.length; // After visible, point to end
145
- }
146
- else {
147
- // In visible range: position = 4 (for "...") + (col - startCol + 1)
148
- return 4 + (originalCol - visibleRange.startCol);
149
- }
150
- }
151
- else if (visibleRange.hasEllipsisStart) {
152
- // Format: "...code"
153
- if (originalCol < visibleRange.startCol) {
154
- return 1;
155
- }
156
- else {
157
- return 4 + (originalCol - visibleRange.startCol);
158
- }
159
- }
160
- else if (visibleRange.hasEllipsisEnd) {
161
- // Format: "code..."
162
- if (originalCol > visibleRange.endCol) {
163
- return truncatedPlain.length;
164
- }
165
- else {
166
- return originalCol;
167
- }
168
- }
169
- else {
170
- // No ellipsis, direct mapping
171
- return originalCol;
172
- }
38
+ const defaultCodeColor = autoColor('base');
39
+ const styledErrorLine = applyStyle(errorLine, { color: defaultCodeColor });
40
+ const truncateResult = truncateFocusRange(styledErrorLine, codeAreaWidth, startColumn, targetEndCol, maxColumn);
41
+ const truncatedErrorLine = truncateResult.text;
42
+ const visibleStartCol = truncateResult.visibleStartCol;
43
+ const visibleEndCol = truncateResult.visibleEndCol;
44
+ const rangeStartCol = truncateResult.rangeStartCol;
45
+ const rangeEndCol = truncateResult.rangeEndCol;
46
+ // Helper to map original column to display position using the actual visible range
47
+ const mapColumnToDisplayLocal = (originalCol) => {
48
+ const result = mapColumnToDisplay(errorLine, truncatedErrorLine, visibleStartCol, visibleEndCol, originalCol, rangeStartCol, rangeEndCol);
49
+ return result;
173
50
  };
174
51
  // Build the code block lines
175
52
  const codeLines = [];
176
53
  // Icon and message at the top (Oxlint style)
54
+ // Use grid to handle wrapping automatically
177
55
  const icon = type === 'error' ? '✖' : type === 'warning' ? '⚠' : 'ℹ';
178
- const iconStyled = applyStyle(icon, { color: colorScheme.message });
179
- // Build the message text with optional error code
180
- let messageText = message;
56
+ const iconStyled = applyStyle(icon, { color: colorScheme.primary });
57
+ // Build the combined message text: errorCode (if present) + message
58
+ // The errorCode should be underlined and bold, followed by ": ", then the message
59
+ // All parts should have the message color
60
+ let messageText;
181
61
  if (errorCode) {
182
- // Error code with underline - only underline the code, not the colon and space
183
62
  const errorCodeStyled = applyStyle(errorCode, {
184
- color: colorScheme.message,
63
+ color: colorScheme.primary,
185
64
  underline: true,
186
65
  bold: true
187
66
  });
188
- messageText = errorCodeStyled + ': ' + applyStyle(message, { color: colorScheme.message, bold: true });
67
+ // Apply message color to ": " and message parts so they maintain color after errorCode's reset
68
+ const colonAndMessage = applyStyle(': ' + message, { color: colorScheme.message });
69
+ messageText = errorCodeStyled + colonAndMessage;
189
70
  }
190
71
  else {
191
- messageText = applyStyle(message, { color: colorScheme.message, bold: true });
72
+ messageText = message;
192
73
  }
193
- // Use grid to layout: [icon (1 char)] [message (flex)]
194
- // This ensures the message doesn't overflow under the icon
195
- // Calculate available width for message (icon + gap + message column)
196
- const iconWidth = 1; // Icon is 1 character
197
- const gapWidth = 1; // columnGap is 1
198
- const messageAvailableWidth = ctx.availableWidth - iconWidth - gapWidth;
199
- // Wrap the message text to fit in the available width
200
- // First, get the plain text to calculate wrapping
201
- const plainMessageText = stripAnsi(messageText);
202
- const wrappedPlainLines = wrapText(plainMessageText, messageAvailableWidth);
203
- // Now we need to preserve ANSI codes in the wrapped lines
204
- // For simplicity, if the message wraps, we'll create a component that returns multiple lines
205
- const messageComponent = (msgCtx) => {
206
- // Recalculate available width for this context
207
- const msgWidth = msgCtx.availableWidth - iconWidth - gapWidth;
208
- const wrapped = wrapText(plainMessageText, msgWidth);
209
- // For each wrapped line, we need to preserve the ANSI styling
210
- // Since the message text has ANSI codes, we need to split it while preserving codes
211
- if (wrapped.length === 1) {
212
- // Single line - return as is
213
- return messageText;
214
- }
215
- // Multiple lines - we need to split the styled text
216
- // This is complex because we need to preserve ANSI codes across splits
217
- // For now, let's use a simpler approach: wrap the plain text and re-apply styling
218
- const wrappedStyled = [];
219
- let currentPos = 0;
220
- for (const wrappedLine of wrapped) {
221
- // Find the corresponding portion in the original styled text
222
- // We'll use a simple approach: measure visible characters
223
- const lineLength = wrappedLine.length;
224
- let styledPortion = '';
225
- let visibleCount = 0;
226
- let idx = currentPos;
227
- while (idx < messageText.length && visibleCount < lineLength) {
228
- if (messageText[idx] === '\x1b') {
229
- // ANSI code - include it
230
- let end = idx + 1;
231
- while (end < messageText.length && messageText[end] !== 'm') {
232
- end++;
233
- }
234
- if (end < messageText.length) {
235
- end++;
236
- }
237
- styledPortion += messageText.substring(idx, end);
238
- idx = end;
239
- }
240
- else {
241
- styledPortion += messageText[idx];
242
- idx++;
243
- visibleCount++;
244
- }
245
- }
246
- wrappedStyled.push(styledPortion);
247
- currentPos = idx;
248
- }
249
- return wrappedStyled;
250
- };
74
+ // Use Styled component to handle wrapping - it uses wrapText which prevents mid-word breaks
75
+ // Note: messageText may already have ANSI codes, so Styled will preserve them
76
+ const messageComponent = Styled({ color: colorScheme.message, overflow: 'wrap' }, messageText);
77
+ // Use 2-column grid: [icon, message (with optional errorCode)]
251
78
  const messageGrid = Grid({ template: [1, '1*'], columnGap: 1 }, iconStyled, messageComponent);
252
79
  const messageResult = callComponent(messageGrid, ctx);
80
+ const messageLines = [];
253
81
  if (messageResult && typeof messageResult === 'string') {
254
- codeLines.push(messageResult);
82
+ messageLines.push(messageResult);
255
83
  }
256
84
  else if (Array.isArray(messageResult)) {
257
- codeLines.push(...messageResult);
85
+ messageLines.push(...messageResult);
258
86
  }
259
87
  else {
260
- // Fallback if grid returns null - just concatenate with space
261
- codeLines.push(iconStyled + ' ' + messageText);
88
+ messageLines.push(iconStyled + ' ' + message);
262
89
  }
90
+ codeLines.push(...messageLines);
263
91
  // Add blank line after message before code block
264
92
  codeLines.push('');
265
93
  // Filename in brackets with line:column, connected with curved border (Oxlint style)
266
- // The curve should align with the line number column (accounting for line number width)
267
94
  const pathText = baseDir && filePath.startsWith(baseDir)
268
95
  ? filePath.substring(baseDir.length + 1)
269
96
  : filePath;
270
- // Only make the filename blue/bold, not the brackets, colons, or line/column numbers
271
- const locationText = '[' +
272
- applyStyle(pathText, { color: 'blue', bold: true }) +
273
- ':' +
274
- String(startLine) +
275
- ':' +
276
- String(startColumn) +
277
- ']';
278
- // Align curve with line numbers: lineNumWidth spaces + 1 space (for the space after line number)
97
+ // Build location line parts
279
98
  const curveIndent = ' '.repeat(lineNumWidth + 1);
280
- const locationLine = curveIndent + applyStyle('╭─', { color: 'brightBlack' }) + locationText;
281
- codeLines.push(locationLine);
99
+ const curve = applyStyle('╭─', { color: 'muted' });
100
+ const bracketOpen = '[';
101
+ const colon1 = ':';
102
+ // Use location color (magenta) for line/column numbers
103
+ const locationNumColor = 'location';
104
+ const lineNum = applyStyle(String(startLine), { color: locationNumColor });
105
+ const colon2 = ':';
106
+ const colNum = applyStyle(String(startColumn), { color: locationNumColor });
107
+ const bracketClose = ']';
108
+ // Calculate max width for path: available width minus fixed parts
109
+ // Fixed parts: curveIndent + ╭─ + [ + : + lineNum + : + colNum + ]
110
+ // Note: lineNum and colNum are now styled, so we need to use plain strings for width calculation
111
+ const lineNumPlain = String(startLine);
112
+ const colNumPlain = String(startColumn);
113
+ const fixedParts = curveIndent + '╭─[' + lineNumPlain + ':' + colNumPlain + ']';
114
+ const fixedPartsWidth = countVisibleChars(fixedParts);
115
+ // Ensure pathMaxWidth is finite and reasonable (cap at 40 to prevent extremely long paths)
116
+ const pathMaxWidth = Math.max(10, Math.min(40, availableWidth - fixedPartsWidth));
117
+ // Create clickable file link with styling and max width constraint
118
+ const pathWithLink = fileLink(fullPath, pathText);
119
+ const pathStyled = Styled({ color: 'accent', overflow: 'ellipsis-start', max: pathMaxWidth }, pathWithLink);
120
+ // Use Grid with auto columns (content-based width, no padding)
121
+ // Template: [curveIndent (auto)][╭─ (auto)][[ (auto)][path (auto)][: (auto)][line (auto)][: (auto)][column (auto)][] (auto)]
122
+ const locationGrid = Grid({
123
+ template: ['auto', 'auto', 'auto', 'auto', 'auto', 'auto', 'auto', 'auto', 'auto'],
124
+ columnGap: 0
125
+ }, curveIndent, curve, bracketOpen, pathStyled, colon1, lineNum, colon2, colNum, bracketClose);
126
+ const locationResult = callComponent(locationGrid, ctx);
127
+ if (locationResult && typeof locationResult === 'string') {
128
+ codeLines.push(locationResult);
129
+ }
130
+ else if (Array.isArray(locationResult)) {
131
+ codeLines.push(...locationResult);
132
+ }
133
+ else {
134
+ // Fallback
135
+ const locationLine = curveIndent + curve + bracketOpen + pathText + colon1 + lineNum + colon2 + colNum + bracketClose;
136
+ codeLines.push(locationLine);
137
+ }
282
138
  // Line before (if exists)
283
139
  if (lineBefore !== null && lineBefore !== undefined) {
284
140
  const beforeLineNum = String(startLine - 1);
285
141
  const beforeLineNumPadded = beforeLineNum.padStart(lineNumWidth);
286
142
  const truncatedBefore = truncateToWidth(lineBefore, codeAreaWidth);
287
- codeLines.push(applyStyle(`${beforeLineNumPadded} `, { color: lineNumberColor, dim: isDarkTerminal() }) +
288
- applyStyle('│ ', { color: 'brightBlack' }) + truncatedBefore);
143
+ // Make non-error lines slightly dimmer
144
+ const dimmedBefore = applyStyle(truncatedBefore, { color: 'muted' });
145
+ codeLines.push(applyStyle(`${beforeLineNumPadded} `, { color: lineNumColor }) +
146
+ applyStyle('│ ', { color: 'muted' }) + dimmedBefore);
289
147
  }
290
148
  // Error line (with space before code)
149
+ // truncatedErrorLine already has the default color applied
150
+ let highlightedErrorLine = truncatedErrorLine;
151
+ // Highlight the error range if endColumn is specified
152
+ if (endColumn && endColumn > startColumn) {
153
+ // Map columns to display positions in the truncated (and styled) text
154
+ const highlightStart = mapColumnToDisplayLocal(startColumn); // 1-based display position
155
+ const highlightEnd = mapColumnToDisplayLocal(endColumn); // 1-based display position
156
+ // Split at highlight start and end positions (splitAtVisiblePos uses 0-based)
157
+ const { before: beforeHighlight, after: remainingAfterStart } = splitAtVisiblePos(highlightedErrorLine, highlightStart - 1);
158
+ const highlightLength = highlightEnd - highlightStart + 1;
159
+ const { before: highlightRange, after: afterHighlight } = splitAtVisiblePos(remainingAfterStart, highlightLength);
160
+ // Strip existing ANSI codes from highlight range and apply new highlight color
161
+ // This ensures the highlight color properly overrides the default code color
162
+ const highlightPlain = stripAnsi(highlightRange);
163
+ const highlightedRangeStyled = applyStyle(highlightPlain, { color: 'highlight' });
164
+ highlightedErrorLine = beforeHighlight + highlightedRangeStyled + afterHighlight;
165
+ }
291
166
  const errorLineNum = String(startLine);
292
167
  const errorLineNumPadded = errorLineNum.padStart(lineNumWidth);
293
- let errorLineDisplay = applyStyle(`${errorLineNumPadded} `, { color: lineNumberColor, dim: isDarkTerminal() }) +
294
- applyStyle('│ ', { color: 'brightBlack' }) + truncatedErrorLine;
168
+ let errorLineDisplay = applyStyle(`${errorLineNumPadded} `, { color: lineNumColor }) +
169
+ applyStyle('│ ', { color: 'muted' }) + highlightedErrorLine;
295
170
  codeLines.push(errorLineDisplay);
296
171
  // Underline line (Oxlint style)
297
172
  // Format: "[lineNumWidth spaces][1 space][│][1 space][dots][underline]"
298
173
  // Calculate positions relative to the code (after "│ ")
299
- const underlineStartInCode = mapColumnToDisplay(startColumn);
300
- const underlineEndInCode = endColumn ? mapColumnToDisplay(endColumn) : underlineStartInCode;
174
+ const underlineStartInCode = mapColumnToDisplayLocal(startColumn);
175
+ const underlineEndInCode = endColumn ? mapColumnToDisplayLocal(endColumn) : underlineStartInCode;
301
176
  const underlineLength = underlineEndInCode - underlineStartInCode + 1;
302
- // Spaces to align with the start of the underline (position in code, 1-based, minus 1 for 0-based)
177
+ // Spaces to align with the start of the underline
178
+ // underlineStartInCode is position in truncated text (which is what's displayed after │ )
179
+ // The ellipsis is PART of the displayed text, so we use the position directly
180
+ // Position is 1-based, so spacesBefore = underlineStartInCode - 1
303
181
  const spacesBefore = Math.max(0, underlineStartInCode - 1);
304
182
  // Underline line: line number width + space + │ + space + spaces + underline
305
- let underlineLine = ' '.repeat(lineNumWidth) + ' ' + applyStyle('│', { color: 'brightBlack' }) + ' ';
306
- if (shortMessage && underlineLength > 1) {
307
- // Multi-character underline with T-bar in the middle for short message
308
- const connectPosInUnderline = Math.floor(underlineLength / 2);
309
- const leftPart = '─'.repeat(connectPosInUnderline);
310
- const rightPart = '─'.repeat(underlineLength - connectPosInUnderline - 1);
311
- underlineLine += ' '.repeat(spacesBefore) +
312
- applyStyle(leftPart + '┬' + rightPart, { color: colorScheme.primary });
313
- }
314
- else if (shortMessage) {
315
- // Single character with T-bar for short message
316
- underlineLine += ' '.repeat(spacesBefore) +
317
- applyStyle('┬', { color: colorScheme.primary });
183
+ let indicatorLine = ' '.repeat(lineNumWidth) + ' ' + applyStyle('│', { color: 'muted' }) + ' ' +
184
+ ' '.repeat(spacesBefore);
185
+ // Calculate connectCol for short message (if present)
186
+ // This is the position where the T-bar (┬) will be, which is the middle of the underline
187
+ // Use positions in the truncated text (which is what's displayed)
188
+ const connectCol = shortMessage && underlineLength > 1
189
+ ? underlineStartInCode + Math.floor(underlineLength / 2)
190
+ : underlineStartInCode;
191
+ // Calculate the position of the T-bar within the indicator line (after │ and space)
192
+ // Prefix length: lineNumWidth + 3
193
+ // spacesBefore: number of spaces after prefix
194
+ // Underline starts at: lineNumWidth + 3 + spacesBefore + 1
195
+ // T-bar is at: (start of underline) + (connectCol - underlineStartInCode)
196
+ const connectPosInIndicator = (lineNumWidth + 3) + spacesBefore + (connectCol - underlineStartInCode) + 1;
197
+ const underlineStartCol = underlineStartInCode;
198
+ const underlineEndCol = underlineEndInCode;
199
+ if (endColumn && underlineEndCol > underlineStartCol) {
200
+ // Underline with curved edges facing up
201
+ // Use underlineLength which was already calculated correctly (end - start + 1)
202
+ const underlineLen = underlineLength;
203
+ if (shortMessage) {
204
+ // With short message: T-bar in the middle
205
+ const connectPosInUnderline = connectCol - underlineStartInCode; // Position within the underline
206
+ if (underlineLen >= 3) {
207
+ // Build underline with T-bar: left curve, dashes, T-bar, dashes, right curve
208
+ // Total length = 1 (┖) + left dashes + 1 (┬) + right dashes + 1 (┚) = underlineLen
209
+ // So: left dashes + right dashes = underlineLen - 3
210
+ // T-bar is at position connectPosInUnderline (0-indexed from start), so:
211
+ // - left dashes = connectPosInUnderline - 1 (before T-bar, after ┖)
212
+ // - right dashes = underlineLen - 3 - (connectPosInUnderline - 1) = underlineLen - connectPosInUnderline - 2
213
+ const leftPart = '─'.repeat(Math.max(0, connectPosInUnderline - 1));
214
+ const rightPart = '─'.repeat(Math.max(0, underlineLen - connectPosInUnderline - 2));
215
+ indicatorLine += applyStyle('┖' + leftPart + '┬' + rightPart + '┚', { color: colorScheme.primary });
216
+ }
217
+ else if (underlineLen === 2) {
218
+ // Exactly 2 characters: just the brackets, no T-bar
219
+ indicatorLine += applyStyle('┖┚', { color: colorScheme.primary });
220
+ }
221
+ else {
222
+ // Single character, just use T
223
+ indicatorLine += applyStyle('╿', { color: colorScheme.primary });
224
+ }
225
+ }
226
+ else {
227
+ // No short message: flat underline with curved ends (no T-bar)
228
+ // For underlineLen=2: ┖┚ (no dashes), for underlineLen=3: ┖─┚ (1 dash), etc.
229
+ const dashes = '─'.repeat(Math.max(0, underlineLen - 2));
230
+ indicatorLine += applyStyle('┖' + dashes + '┚', { color: colorScheme.primary });
231
+ }
318
232
  }
319
233
  else {
320
- // No short message, just underline the code
321
- const underlineChars = ''.repeat(underlineLength);
322
- underlineLine += ' '.repeat(spacesBefore) +
323
- applyStyle(underlineChars, { color: colorScheme.primary });
234
+ // Single point - use ┬ (T pointing up) which has horizontal bar pointing to code, vertical line going down
235
+ indicatorLine += applyStyle('', { color: colorScheme.primary });
324
236
  }
325
- codeLines.push(underlineLine);
237
+ codeLines.push(indicatorLine);
326
238
  // Short message connected to underline (if provided)
327
239
  if (shortMessage) {
328
- const connectCol = underlineLength > 1
329
- ? underlineStartInCode + Math.floor(underlineLength / 2)
330
- : underlineStartInCode;
331
- // Short message line: line number width + space + + space + spaces + connector + message
332
- const shortMessageLine = ' '.repeat(lineNumWidth) + ' ' + applyStyle('│', { color: 'brightBlack' }) + ' ' +
333
- ' '.repeat(Math.max(0, connectCol - 1)) +
334
- applyStyle('╰── ', { color: colorScheme.primary }) +
335
- applyStyle(shortMessage, { color: colorScheme.message });
336
- codeLines.push(shortMessageLine);
240
+ // Determine placement: 'auto' means calculate which side has more available space
241
+ let placement = shortMessagePlacement === 'auto'
242
+ ? (() => {
243
+ // Available space on left: from start of code area to connectCol
244
+ const availableLeft = connectCol - 1;
245
+ // Available space on right: from connectCol to end of code area
246
+ const availableRight = codeAreaWidth - connectCol;
247
+ // Place on left if left has more space, otherwise right
248
+ return availableLeft >= availableRight ? 'left' : 'right';
249
+ })()
250
+ : shortMessagePlacement;
251
+ if (placement === 'left') {
252
+ // Short message on left: message + connector pointing right (curved up)
253
+ // The ╯ should be at connectPosInIndicator
254
+ const messageWidth = countVisibleChars(shortMessage);
255
+ const linePrefixWidth = lineNumWidth + 3; // lineNumWidth + space + │ + space
256
+ const spacesBeforeMessage = Math.max(0, connectPosInIndicator - linePrefixWidth - messageWidth - 4);
257
+ const shortMessageLine = ' '.repeat(lineNumWidth) + ' ' + applyStyle('│', { color: 'muted' }) + ' ' +
258
+ ' '.repeat(spacesBeforeMessage) +
259
+ applyStyle(shortMessage, { color: colorScheme.message }) +
260
+ applyStyle(' ──╯', { color: colorScheme.primary });
261
+ codeLines.push(shortMessageLine);
262
+ }
263
+ else {
264
+ // Short message on right: connector pointing left (curved up) + message
265
+ // The ╰ should be at connectPosInIndicator
266
+ const linePrefixWidth = lineNumWidth + 3; // lineNumWidth + space + │ + space
267
+ const spacesBeforeConnector = Math.max(0, connectPosInIndicator - linePrefixWidth - 1);
268
+ const shortMessageLine = ' '.repeat(lineNumWidth) + ' ' + applyStyle('│', { color: 'muted' }) + ' ' +
269
+ ' '.repeat(spacesBeforeConnector) +
270
+ applyStyle('╰── ', { color: colorScheme.primary }) +
271
+ applyStyle(shortMessage, { color: colorScheme.message });
272
+ codeLines.push(shortMessageLine);
273
+ }
337
274
  }
338
275
  // Line after (if exists)
339
276
  if (lineAfter !== null && lineAfter !== undefined) {
340
277
  const afterLineNum = String(startLine + 1);
341
278
  const afterLineNumPadded = afterLineNum.padStart(lineNumWidth);
342
279
  const truncatedAfter = truncateToWidth(lineAfter, codeAreaWidth);
343
- codeLines.push(applyStyle(`${afterLineNumPadded} `, { color: lineNumberColor, dim: isDarkTerminal() }) +
344
- applyStyle('│ ', { color: 'brightBlack' }) + truncatedAfter);
280
+ // Make non-error lines slightly dimmer
281
+ const dimmedAfter = applyStyle(truncatedAfter, { color: 'muted' });
282
+ codeLines.push(applyStyle(`${afterLineNumPadded} `, { color: lineNumColor }) +
283
+ applyStyle('│ ', { color: 'muted' }) + dimmedAfter);
345
284
  }
346
285
  // Bottom curve to close the box (Oxlint style)
347
286
  const bottomCurveIndent = ' '.repeat(lineNumWidth + 1);
348
- const bottomCurve = bottomCurveIndent + applyStyle('╰─', { color: 'brightBlack' });
287
+ const bottomCurve = bottomCurveIndent + applyStyle('╰─', { color: 'muted' });
349
288
  codeLines.push(bottomCurve);
350
289
  // Return lines directly (no Section wrapper for Oxlint style)
351
290
  return codeLines;
@@ -1 +1 @@
1
- {"version":3,"file":"code-debug.js","sourceRoot":"","sources":["../../src/components/code-debug.ts"],"names":[],"mappings":"AAAA,wEAAwE;AAGxE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAqB,MAAM,kBAAkB,CAAC;AAI3F,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,MAAM,m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C/D,MAAM,cAAc,GAAG,eAAe,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;YACjE,uCAAuC;YACvC,MAAM,WAAW,GAAG,UAAU,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;YACnE,SAAS,CAAC,IAAI,CACZ,UAAU,CAAC,GAAG,kBAAkB,GAAG,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;gBAC7D,UAAU,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,GAAG,WAAW,CACnD,CAAC;QACJ,CAAC;QAED,+CAA+C;QAC/C,MAAM,iBAAiB,GAAG,GAAG,CAAC,MAAM,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC;QACvD,MAAM,WAAW,GAAG,iBAAiB,GAAG,UAAU,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;QAC7E,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAE5B,8DAA8D;QAC9D,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=code-debug.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-debug.test.d.ts","sourceRoot":"","sources":["../../src/components/code-debug.test.ts"],"names":[],"mappings":""}