wormclaude 1.0.134 → 1.0.135
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 +0 -13
- package/package.json +1 -1
package/dist/theme.js
CHANGED
package/dist/tui.js
CHANGED
|
@@ -484,11 +484,7 @@ export async function runTui() {
|
|
|
484
484
|
}
|
|
485
485
|
catch { } });
|
|
486
486
|
let ctrlcAt = 0;
|
|
487
|
-
let lastKeyTs = 0; // yapıştırma tespiti: ardışık keypress'ler aynı anda (<8ms) gelir = paste
|
|
488
487
|
process.stdin.on('keypress', (str, key) => {
|
|
489
|
-
const _kt = Date.now();
|
|
490
|
-
const _burst = _kt - lastKeyTs < 8;
|
|
491
|
-
lastKeyTs = _kt;
|
|
492
488
|
// Soru dialogu (AskUserQuestion) aktifse: ↑↓ / 1-9 seç, Enter onayla, Esc/Ctrl+C ilk seçenek
|
|
493
489
|
if (ask) {
|
|
494
490
|
const n = ask.options.length;
|
|
@@ -638,15 +634,6 @@ export async function runTui() {
|
|
|
638
634
|
return;
|
|
639
635
|
}
|
|
640
636
|
if (key && key.name === 'return') {
|
|
641
|
-
// YAPIŞTIRMA: newline bir burst (paste) içinde geldiyse submit DEĞİL, satır sonu olarak ekle.
|
|
642
|
-
// Böylece çok-satırlı metni tek seferde yapıştırıp tamamını input'ta tutabiliriz.
|
|
643
|
-
if (_burst && inputBuf) {
|
|
644
|
-
inputBuf = inputBuf.slice(0, inputCur) + '\n' + inputBuf.slice(inputCur);
|
|
645
|
-
inputCur++;
|
|
646
|
-
cmdSel = 0;
|
|
647
|
-
scheduleFooter();
|
|
648
|
-
return;
|
|
649
|
-
}
|
|
650
637
|
if (busy)
|
|
651
638
|
return; // tur sürerken Enter beklemede; yazılan metin durur (type-ahead)
|
|
652
639
|
let v = inputBuf.trim();
|