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 +3 -2
- package/dist/theme.js +1 -1
- package/dist/tui.js +14 -6
- package/package.json +1 -1
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
|
-
|
|
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
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
|
-
|
|
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
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
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
|
}
|