wormclaude 1.0.139 → 1.0.140

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/ansi.js CHANGED
@@ -198,9 +198,10 @@ export function itemAnsi(it, cols) {
198
198
  const word = t('tui.linesWord') || 'satır';
199
199
  const lines = it.lines || [];
200
200
  const head = paint(' ┌ ', theme.greyDim) + paint((t('tui.createFile') || 'Oluşturulacak dosya') + ': ', theme.redBright, true) + paint(`${it.file} (${lines.length} ${word})`, theme.white);
201
- const PREV = 14;
201
+ // Onaylamadan ÖNCE tüm kodu göster (Claude gibi) — fazlası scrollback'e gider. 300 satır güvenlik sınırı.
202
+ const PREV = 300;
202
203
  const body = lines.slice(0, PREV).map((ln, i) => paint(` │ ${String(i + 1).padStart(3, ' ')} `, theme.greyDim) + paint(ln.replace(/\t/g, ' ').slice(0, Math.max(8, W - 10)), theme.grey));
203
- const more = lines.length > PREV ? '\n' + paint(` │ … +${lines.length - PREV} ${word}`, theme.greyDim) : '';
204
+ const more = lines.length > PREV ? '\n' + paint(` │ … +${lines.length - PREV} ${word} (çok büyük dosya)`, theme.greyDim) : '';
204
205
  return '\n' + head + (body.length ? '\n' + body.join('\n') : '') + more;
205
206
  }
206
207
  if (it.kind === 'note')
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.139';
19
+ export const VERSION = '1.0.140';
package/dist/tui.js CHANGED
@@ -495,19 +495,27 @@ export async function runTui() {
495
495
  // Açılış: Claude tarzı GÜVEN ekranı — trust metni (içerik) + ok-tuşlu Evet/Hayır seçici (ask modal).
496
496
  {
497
497
  const _en = getLang() === 'en';
498
- printItem({ kind: 'note', text: (_en ? 'Accessing workspace:' : 'Çalışma alanına erişiliyor:') + '\n\n' +
498
+ const _trustNote = { kind: 'note', text: (_en ? 'Accessing workspace:' : 'Çalışma alanına erişiliyor:') + '\n\n' +
499
499
  process.cwd() + '\n\n' +
500
500
  t('trust.check') + '\n\n' +
501
- t('trust.canDo') });
501
+ t('trust.canDo') };
502
+ printItem(_trustNote);
502
503
  const _noLabel = _en ? 'No, exit' : 'Hayır, çık';
503
504
  ask = {
504
505
  question: _en ? 'Trust this folder?' : 'Bu klasöre güveniyor musun?',
505
506
  options: [{ label: _en ? 'Yes, I trust this folder' : 'Evet, bu klasöre güveniyorum' }, { label: _noLabel }],
506
507
  sel: 0,
507
- resolve: (v) => { if (v === _noLabel)
508
- quit();
509
- else
510
- refresh(); },
508
+ // Onay sonrası trust/workspace yazısını KALDIR (Claude gibi) → ekran temizlenir.
509
+ resolve: (v) => {
510
+ if (v === _noLabel) {
511
+ quit();
512
+ return;
513
+ }
514
+ const _i = displayItems.indexOf(_trustNote);
515
+ if (_i >= 0)
516
+ displayItems.splice(_i, 1);
517
+ redrawAll();
518
+ },
511
519
  };
512
520
  refresh();
513
521
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wormclaude",
3
- "version": "1.0.139",
3
+ "version": "1.0.140",
4
4
  "description": "WormClaude CLI - uncensored security+code assistant (ink TUI, Claude-style)",
5
5
  "type": "module",
6
6
  "bin": {