wormclaude 1.0.70 → 1.0.72

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.70';
19
+ export const VERSION = '1.0.72';
package/dist/tools.js CHANGED
@@ -1221,7 +1221,36 @@ export async function executeTool(name, args) {
1221
1221
  const snippet = snips[i] ? clean(snips[i][1]) : '';
1222
1222
  out.push(`${out.length + 1}. ${title}\n ${url}${snippet ? '\n ' + snippet : ''}`);
1223
1223
  }
1224
- return { ok: true, output: out.length ? out.join('\n\n') : '(sonuç yok)' };
1224
+ let output = out.length ? out.join('\n\n') : '(sonuç yok)';
1225
+ // OTOMATIK FETCH: en alakali ilk 3 sonucun gercek icerigini PARALEL cek (model coklu kaynaktan dogrulayip coklu kaynak gostersin, Claude gibi)
1226
+ const topUrls = titles.slice(0, 3).map((tt) => {
1227
+ let u = tt[1];
1228
+ const ud0 = u.match(/uddg=([^&]+)/);
1229
+ if (ud0)
1230
+ u = decodeURIComponent(ud0[1]);
1231
+ if (u.startsWith('http://'))
1232
+ u = 'https://' + u.slice(7);
1233
+ return u;
1234
+ });
1235
+ const fetched = await Promise.all(topUrls.map(async (u) => {
1236
+ try {
1237
+ const fres = await fetch(u, { signal: AbortSignal.timeout(12000), headers: { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0 Safari/537.36' } });
1238
+ let ftxt = (await fres.text()).replace(/<script[\s\S]*?<\/script>/gi, '').replace(/<style[\s\S]*?<\/style>/gi, '').replace(/<[^>]+>/g, ' ').replace(/&nbsp;/g, ' ').replace(/\s+/g, ' ').trim();
1239
+ if (!ftxt)
1240
+ return '';
1241
+ let host = u;
1242
+ try {
1243
+ host = new URL(u).hostname;
1244
+ }
1245
+ catch { }
1246
+ return '\n\n--- ' + host + ' (' + u + ') ---\n' + ftxt.slice(0, 2800);
1247
+ }
1248
+ catch {
1249
+ return '';
1250
+ }
1251
+ }));
1252
+ output += fetched.join('');
1253
+ return { ok: true, output };
1225
1254
  }
1226
1255
  if (name === 'TodoWrite') {
1227
1256
  todosStore = Array.isArray(args.todos) ? args.todos : [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wormclaude",
3
- "version": "1.0.70",
3
+ "version": "1.0.72",
4
4
  "description": "WormClaude CLI - uncensored security+code assistant (ink TUI, Claude-style)",
5
5
  "type": "module",
6
6
  "bin": {