wormclaude 1.0.31 → 1.0.32
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 +6 -16
- package/package.json +1 -1
package/dist/theme.js
CHANGED
package/dist/tui.js
CHANGED
|
@@ -83,20 +83,10 @@ export async function runTui() {
|
|
|
83
83
|
shown = '…' + shown.slice(-(avail - 1));
|
|
84
84
|
lines.push(prompt + shown + (busy ? '' : paint('▌', theme.greyDim)));
|
|
85
85
|
lines.push(paint('/kopyala panoya · Ctrl+C çıkış', theme.greyDim));
|
|
86
|
-
|
|
87
|
-
//
|
|
88
|
-
//
|
|
89
|
-
|
|
90
|
-
let contentH = 0;
|
|
91
|
-
for (const it of displayItems) {
|
|
92
|
-
for (const ln of itemAnsi(it, W).split('\n'))
|
|
93
|
-
contentH += Math.max(1, Math.ceil((vis(ln) || 1) / W));
|
|
94
|
-
if (contentH >= rows)
|
|
95
|
-
break;
|
|
96
|
-
}
|
|
97
|
-
const pad = rows - contentH - footerLines.length - 1;
|
|
98
|
-
const out = pad > 0 ? [...Array(pad).fill(''), ...footerLines] : footerLines;
|
|
99
|
-
logUpdate(out.join('\n'));
|
|
86
|
+
// Canlı bölge KÜÇÜK tutulur (sadece footer). Büyük pad'li bölge, yukarı kaydırınca
|
|
87
|
+
// log-update'in yanlış yeri silmesine → input'un kaybolmasına yol açıyordu. Input içeriğin
|
|
88
|
+
// hemen altında oturur (üstte 1 boş satır boşluk var).
|
|
89
|
+
logUpdate(lines.map((l) => fit(l, W)).join('\n'));
|
|
100
90
|
}
|
|
101
91
|
// ── Bir sohbet turu (Milestone 1: araç yok, saf metin) ──
|
|
102
92
|
async function runTurn(userText) {
|
|
@@ -165,9 +155,9 @@ export async function runTui() {
|
|
|
165
155
|
if (key && key.ctrl && key.name === 'd') {
|
|
166
156
|
quit();
|
|
167
157
|
}
|
|
168
|
-
if (busy)
|
|
169
|
-
return; // tur sırasında giriş kilitli (M1)
|
|
170
158
|
if (key && key.name === 'return') {
|
|
159
|
+
if (busy)
|
|
160
|
+
return; // tur sürerken Enter işlemez; yazılan metin durur (type-ahead)
|
|
171
161
|
const v = inputBuf.trim();
|
|
172
162
|
inputBuf = '';
|
|
173
163
|
if (!v) {
|