wormclaude 1.0.195 → 1.0.196

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.195';
19
+ export const VERSION = '1.0.196';
package/dist/tui.js CHANGED
@@ -522,14 +522,24 @@ export async function runTui() {
522
522
  printItem({ kind: 'tool', label: toolLabel(c.name, res.args), result, ok: res.ok });
523
523
  },
524
524
  });
525
- for (let i = 0; i < toolCalls.length; i++)
526
- history.push({ role: 'tool', tool_call_id: toolCalls[i].id, content: capToolOut(toolCalls[i].name, results[i].output || '') });
527
525
  // Devre-kesici: olmayan araç/Unix sözdizimini (grep/openssl/hydra) tekrar deneyip
528
526
  // döngüye girmesin. Üst üste hepsi fail (2 tur) VEYA toplam 4 başarısız → dur+özetle.
529
527
  const _failed = results.filter((r) => !r.ok).length;
530
528
  totalFails += _failed;
531
529
  consecFail = (results.length > 0 && _failed === results.length) ? consecFail + 1 : 0;
532
- if (consecFail >= 2 || totalFails >= 4) {
530
+ const _willStop = consecFail >= 2 || totalFails >= 4;
531
+ // REFLECT-AFTER: bir araç başarısızsa (ve henüz sert-dur eşiğine gelmediysek) modele
532
+ // teşhis+adapte dayat — körlemesine tekrar/pes etmesin, benim gibi "neden + başka yol" düşünsün.
533
+ for (let i = 0; i < toolCalls.length; i++) {
534
+ let _content = capToolOut(toolCalls[i].name, results[i].output || '');
535
+ if (!results[i].ok && !_willStop) {
536
+ _content += getLang() === 'en'
537
+ ? '\n\n[REFLECT] This call failed. Before continuing, think briefly: (1) WHY did it fail? (2) Do NOT repeat the same call verbatim — fix the arguments or try a DIFFERENT approach/tool. (3) If it cannot be solved, tell the user plainly. Never give up silently or loop.'
538
+ : '\n\n[DÜŞÜN] Bu çağrı başarısız oldu. Devam etmeden kısaca düşün: (1) NEDEN başarısız oldu? (2) Aynı çağrıyı AYNEN tekrarlama — parametreyi düzelt ya da BAŞKA bir yol/araç dene. (3) Çözülemiyorsa kullanıcıya açıkça söyle. Asla sessizce pes etme, döngüye girme.';
539
+ }
540
+ history.push({ role: 'tool', tool_call_id: toolCalls[i].id, content: _content });
541
+ }
542
+ if (_willStop) {
533
543
  history.push({ role: 'user', content: getLang() === 'en'
534
544
  ? 'Several commands failed — required tools/syntax are not available here (e.g. grep/openssl/hydra on Windows). STOP running commands now and give a SHORT summary of what you found so far. Do NOT call more tools, do NOT use grep/sed/awk.'
535
545
  : 'Komutlar başarısız oldu — bu ortamda gerekli araç/sözdizim yok (Windows\'ta grep/openssl/hydra gibi). Komut çalıştırmayı ŞİMDİ BIRAK, şu ana kadarki bulguları KISA özetle. Başka araç çağırma, grep/sed/awk kullanma.' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wormclaude",
3
- "version": "1.0.195",
3
+ "version": "1.0.196",
4
4
  "description": "WormClaude CLI - uncensored security+code assistant (ink TUI, Claude-style)",
5
5
  "type": "module",
6
6
  "bin": {