wormclaude 1.0.211 → 1.0.212
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/theme.js +1 -1
- package/dist/tui.js +11 -1
- package/package.json +1 -1
package/dist/theme.js
CHANGED
package/dist/tui.js
CHANGED
|
@@ -556,7 +556,17 @@ export async function runTui() {
|
|
|
556
556
|
const _recoveredBlock = typeof c.id === 'string' && c.id.startsWith('fileblock_');
|
|
557
557
|
if (!_recoveredBlock && ((c.name === 'Write' && args?.content != null) || (c.name === 'Edit' && args?.new_string != null))) {
|
|
558
558
|
const _content = String(c.name === 'Write' ? args.content : args.new_string);
|
|
559
|
-
|
|
559
|
+
// DONMA FIX: büyük dosyanın TÜM satırlarını highlight+render etmek event-loop'u kilitliyordu
|
|
560
|
+
// (build 15KB HTML → 400+ satır önizleme = donma). Dosya yine TAM yazılır; sadece EKRAN
|
|
561
|
+
// önizlemesini ilk 40 satıra kısalt (gerisi "… N satır daha").
|
|
562
|
+
const _allLines = _content.split('\n');
|
|
563
|
+
const _PREV = 40;
|
|
564
|
+
const _cut = (_allLines.length > _PREV ? _allLines.slice(0, _PREV) : _allLines)
|
|
565
|
+
.map((l) => (l.length > 400 ? l.slice(0, 400) + ' …' : l)); // uzun satırları da kıs
|
|
566
|
+
const _prevLines = _allLines.length > _PREV
|
|
567
|
+
? [..._cut, `… (+${_allLines.length - _PREV} satır daha, dosyaya tam yazıldı)`]
|
|
568
|
+
: _cut;
|
|
569
|
+
printItem({ kind: 'fileprev', file: relWs(args.file_path), lines: _prevLines });
|
|
560
570
|
}
|
|
561
571
|
perm = { label: toolLabel(c.name, args), name: c.name, resolve };
|
|
562
572
|
refresh();
|