wormclaude 1.0.132 → 1.0.133

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.132';
19
+ export const VERSION = '1.0.133';
package/dist/tools.js CHANGED
@@ -1121,9 +1121,11 @@ export async function executeTool(name, args) {
1121
1121
  }
1122
1122
  if (name === 'Write') {
1123
1123
  const fp = resolveWs(args.file_path);
1124
- if (fs.existsSync(fp) && !readFiles.has(norm(fp)))
1125
- return { ok: false, output: 'Error: existing file must be read first. Use the Read tool before overwriting.' };
1126
- fs.mkdirSync(path.dirname(path.resolve(fp)), { recursive: true });
1124
+ const _existed = fs.existsSync(fp);
1125
+ // ESKİDEN: var olan dosya Read edilmemişse HARD-BLOCK ediliyordu. Zayıf 32B güvenilir Read
1126
+ // yapmadığı için bu, build'leri öldürüyordu (create-react-app dosyayı oluşturur → model
1127
+ // Read etmeden Write eder → bloklanır → proje yarıda kalır). ÇÖZÜM: bloklama; eski içeriği
1128
+ // OKU (diffStat'te ne değiştiği görünür, veri sessizce kaybolmaz), readFiles'a ekle, yaz.
1127
1129
  const _wnew = args.content ?? '';
1128
1130
  const _wold = (() => { try {
1129
1131
  return fs.readFileSync(fp, 'utf8');
@@ -1131,9 +1133,11 @@ export async function executeTool(name, args) {
1131
1133
  catch {
1132
1134
  return '';
1133
1135
  } })();
1136
+ fs.mkdirSync(path.dirname(path.resolve(fp)), { recursive: true });
1134
1137
  fs.writeFileSync(fp, _wnew);
1135
1138
  readFiles.add(norm(fp));
1136
- return { ok: true, output: `Wrote ${fp} (${_wnew.length} chars)${diffStat(_wold, _wnew)}` };
1139
+ const _ovr = (_existed && _wold !== _wnew) ? ' (uzerine yazildi)' : '';
1140
+ return { ok: true, output: `Wrote ${fp} (${_wnew.length} chars)${_ovr}${diffStat(_wold, _wnew)}` };
1137
1141
  }
1138
1142
  if (name === 'Edit') {
1139
1143
  const fp = resolveWs(args.file_path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wormclaude",
3
- "version": "1.0.132",
3
+ "version": "1.0.133",
4
4
  "description": "WormClaude CLI - uncensored security+code assistant (ink TUI, Claude-style)",
5
5
  "type": "module",
6
6
  "bin": {