wormclaude 1.0.222 → 1.0.223

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.222';
19
+ export const VERSION = '1.0.223';
package/dist/tui.js CHANGED
@@ -506,8 +506,18 @@ export async function runTui() {
506
506
  }
507
507
  }
508
508
  flushStream(true); // kalan yarım satırı bas
509
- if (turnAbort?.signal.aborted)
510
- break; // ESC araçları çalıştırma, dur
509
+ if (turnAbort?.signal.aborted) {
510
+ // Blackbox gibi: iptal edilince modelin ürettiği KISMİ yanıtı transcript'e koru.
511
+ // (Ekranda akmıştı ama history/displayItems'a girmemişti → resize/redraw'da kaybolur
512
+ // ve sonraki tur model bu bağlamı göremez.) Araçları çalıştırma, turu bitir.
513
+ const partial = stripEchoBlocks(stripInlineToolCalls(cleanModelText(answer))).trim();
514
+ if (partial) {
515
+ history.push({ role: 'assistant', content: partial });
516
+ displayItems.push({ kind: 'assistant', text: partial });
517
+ lastAnswer = partial;
518
+ }
519
+ break;
520
+ }
511
521
  // Reactive compact: bağlam taştıysa bir kez özetle ve turu tekrarla → "token bitti, yazılmıyor" olmaz.
512
522
  if (gotCtxErr && !reactiveRetried) {
513
523
  reactiveRetried = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wormclaude",
3
- "version": "1.0.222",
3
+ "version": "1.0.223",
4
4
  "description": "WormClaude CLI - uncensored security+code assistant (ink TUI, Claude-style)",
5
5
  "type": "module",
6
6
  "bin": {