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 CHANGED
@@ -16,4 +16,4 @@ export const theme = {
16
16
  synType: '#a78bfa', // tip/sınıf adları, sabitler
17
17
  synProp: '#e0e0e0', // özellik/anahtar adları
18
18
  };
19
- export const VERSION = '1.0.31';
19
+ export const VERSION = '1.0.32';
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
- const footerLines = lines.map((l) => fit(l, W)); // genişliğe kırp (sarma olmaz)
87
- // Giriş kutusunu ekranın EN ALTINA sabitle: içerik kısaysa üstüne boş satır doldur.
88
- // (İçerik ekranı doldurunca pad 0 footer doğal olarak içeriğin hemen altında / en altta.)
89
- const rows = process.stdout.rows || 24;
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wormclaude",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "WormClaude CLI - uncensored security+code assistant (ink TUI, Claude-style)",
5
5
  "type": "module",
6
6
  "bin": {