wormclaude 1.0.37 → 1.0.38
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 +5 -3
- package/package.json +1 -1
package/dist/theme.js
CHANGED
package/dist/tui.js
CHANGED
|
@@ -43,7 +43,7 @@ export async function runTui() {
|
|
|
43
43
|
const displayItems = [{ kind: 'banner' }];
|
|
44
44
|
let inputBuf = '', busy = false, streamChars = 0, spin = 0;
|
|
45
45
|
const SPIN = ['·', '✢', '✳', '✶', '✻', '✽', '✶', '✳', '✢'];
|
|
46
|
-
const FOOTER_H =
|
|
46
|
+
const FOOTER_H = 4; // kutu (üst çizgi + giriş + alt çizgi) + ipucu satırı
|
|
47
47
|
// ── Claude tarzı başlık (model/plan/mail/cwd) — responsive ──
|
|
48
48
|
function headerLines(W) {
|
|
49
49
|
const a = paint(' WormClaude ', theme.greyDim) + paint('v' + VERSION, theme.red, true)
|
|
@@ -65,12 +65,14 @@ export async function runTui() {
|
|
|
65
65
|
const avail = W - 3;
|
|
66
66
|
if (vis(shown) > avail)
|
|
67
67
|
shown = '…' + shown.slice(-(avail - 1));
|
|
68
|
-
|
|
68
|
+
// İki uzun KIRMIZI çizgi arasında giriş (köşesiz → resize'da bozulmaz). Altında ipucu.
|
|
69
|
+
const line = paint('─'.repeat(W), theme.red);
|
|
70
|
+
const inputLine = paint('❯ ', theme.redBright, true) + paint(shown, theme.white) + paint('▌', theme.greyDim);
|
|
69
71
|
const hint = busy
|
|
70
72
|
? paint(`${SPIN[spin % SPIN.length]} yanıt geliyor… ${streamChars} karakter`, theme.grey)
|
|
71
73
|
: paint(' /kopyala panoya · /help komutlar · Ctrl+C çıkış', theme.greyDim);
|
|
72
74
|
let out = '\x1b7'; // imleci kaydet
|
|
73
|
-
[fit(inputLine, W), fit(hint, W)].forEach((l, i) => { out += `\x1b[${start + i};1H\x1b[2K` + l; });
|
|
75
|
+
[fit(line, W), fit(inputLine, W), fit(line, W), fit(hint, W)].forEach((l, i) => { out += `\x1b[${start + i};1H\x1b[2K` + l; });
|
|
74
76
|
out += '\x1b8'; // imleci geri yükle (içerik alanı)
|
|
75
77
|
process.stdout.write(out);
|
|
76
78
|
}
|