wormclaude 1.0.126 → 1.0.127
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 +19 -20
- package/package.json +1 -1
package/dist/theme.js
CHANGED
package/dist/tui.js
CHANGED
|
@@ -83,7 +83,6 @@ export async function runTui() {
|
|
|
83
83
|
const displayItems = [{ kind: 'banner' }];
|
|
84
84
|
let inputBuf = '', inputCur = 0, busy = false, streamChars = 0, spin = 0;
|
|
85
85
|
let taskStart = 0; // görev başlangıç zamanı (spinner'da geçen süre için)
|
|
86
|
-
let awaitingWorkspace = true; // açılışta çalışma klasörü sorulur (ilk submit = klasör)
|
|
87
86
|
// Canlı akış artık FOOTER'da DEĞİL — içerik akışına (mesajın altından aşağı) satır-satır basılır.
|
|
88
87
|
const SPIN = ['·', '✢', '✳', '✶', '✻', '✽', '✶', '✳', '✢'];
|
|
89
88
|
// Canlı bağlam ölçer: son isteğin prompt_tokens'ı = o anki kullanılan bağlam (footer'da gösterilir).
|
|
@@ -449,10 +448,25 @@ export async function runTui() {
|
|
|
449
448
|
catch { }
|
|
450
449
|
process.stdout.write('\x1b[?25l'); // gerçek imleci gizle (kendi ▌ bloğumuzu çiziyoruz)
|
|
451
450
|
redrawAll();
|
|
452
|
-
// Açılış: Claude tarzı GÜVEN
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
451
|
+
// Açılış: Claude tarzı GÜVEN ekranı — trust metni (içerik) + ok-tuşlu Evet/Hayır seçici (ask modal).
|
|
452
|
+
{
|
|
453
|
+
const _en = getLang() === 'en';
|
|
454
|
+
printItem({ kind: 'note', text: (_en ? 'Accessing workspace:' : 'Çalışma alanına erişiliyor:') + '\n\n' +
|
|
455
|
+
process.cwd() + '\n\n' +
|
|
456
|
+
t('trust.check') + '\n\n' +
|
|
457
|
+
t('trust.canDo') });
|
|
458
|
+
const _noLabel = _en ? 'No, exit' : 'Hayır, çık';
|
|
459
|
+
ask = {
|
|
460
|
+
question: _en ? 'Trust this folder?' : 'Bu klasöre güveniyor musun?',
|
|
461
|
+
options: [{ label: _en ? 'Yes, I trust this folder' : 'Evet, bu klasöre güveniyorum' }, { label: _noLabel }],
|
|
462
|
+
sel: 0,
|
|
463
|
+
resolve: (v) => { if (v === _noLabel)
|
|
464
|
+
quit();
|
|
465
|
+
else
|
|
466
|
+
refresh(); },
|
|
467
|
+
};
|
|
468
|
+
refresh();
|
|
469
|
+
}
|
|
456
470
|
fetchAccount(config).then((a) => { if (a) {
|
|
457
471
|
account = a;
|
|
458
472
|
redrawAll();
|
|
@@ -621,21 +635,6 @@ export async function runTui() {
|
|
|
621
635
|
inputBuf = '';
|
|
622
636
|
inputCur = 0;
|
|
623
637
|
histIdx = -1;
|
|
624
|
-
// Açılış GÜVEN onayı (Claude tarzı): Enter = onayla, "hayır"/"no" = çık. Yol yazdırma YOK.
|
|
625
|
-
if (awaitingWorkspace) {
|
|
626
|
-
awaitingWorkspace = false;
|
|
627
|
-
const _low = v.toLowerCase();
|
|
628
|
-
if (['hayır', 'hayir', 'no', 'n', 'q', 'exit', 'quit', 'çık', 'cik'].includes(_low)) {
|
|
629
|
-
quit();
|
|
630
|
-
return;
|
|
631
|
-
}
|
|
632
|
-
printItem({ kind: 'note', text: '✓ ' + (getLang() === 'en' ? 'Workspace trusted: ' : 'Klasöre güvenildi: ') + process.cwd() });
|
|
633
|
-
if (!v) {
|
|
634
|
-
refresh();
|
|
635
|
-
return;
|
|
636
|
-
} // sadece Enter → onayla, görev bekle
|
|
637
|
-
// görev yazıldıysa → onayla + aşağı düşüp çalıştır
|
|
638
|
-
}
|
|
639
638
|
if (!v) {
|
|
640
639
|
refresh();
|
|
641
640
|
return;
|