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 CHANGED
@@ -16,4 +16,4 @@ export const theme = {
16
16
  synType: '#a78bfa', // tip/sınıf adları, sabitler
17
17
  synProp: '#e0e0e0', // özellik/anahtar adları
18
18
  };
19
- export const VERSION = '1.0.211';
19
+ export const VERSION = '1.0.212';
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
- printItem({ kind: 'fileprev', file: relWs(args.file_path), lines: _content.split('\n') });
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wormclaude",
3
- "version": "1.0.211",
3
+ "version": "1.0.212",
4
4
  "description": "WormClaude CLI - uncensored security+code assistant (ink TUI, Claude-style)",
5
5
  "type": "module",
6
6
  "bin": {