wormclaude 1.0.102 → 1.0.103

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.102';
19
+ export const VERSION = '1.0.103';
package/dist/tools.js CHANGED
@@ -1077,7 +1077,7 @@ export async function executeTool(name, args) {
1077
1077
  return { ok: true, output: `Edited ${fp}${args.replace_all ? ` (${count} occurrences)` : ''}${diffStat(_ebefore, c)}` };
1078
1078
  }
1079
1079
  if (name === 'Glob') {
1080
- const base = args.path || process.cwd();
1080
+ const base = args.path ? resolveWs(args.path) : getBashCwd();
1081
1081
  const all = [];
1082
1082
  walk(base, all);
1083
1083
  const rx = globToRegex(args.pattern);
@@ -1097,7 +1097,7 @@ export async function executeTool(name, args) {
1097
1097
  return { ok: true, output: shown.join('\n') + (truncated ? '\n(results truncated to 100 files)' : '') };
1098
1098
  }
1099
1099
  if (name === 'Grep') {
1100
- const base = args.path && fs.existsSync(args.path) ? args.path : process.cwd();
1100
+ const base = args.path && fs.existsSync(resolveWs(args.path)) ? resolveWs(args.path) : getBashCwd();
1101
1101
  const mode = args.output_mode || 'files_with_matches';
1102
1102
  const flags = (args['-i'] ? 'i' : '') + (args.multiline ? 's' : '');
1103
1103
  let rx;
@@ -1352,7 +1352,7 @@ export async function executeTool(name, args) {
1352
1352
  }
1353
1353
  }
1354
1354
  if (name === 'LSP') {
1355
- const base = args.path && fs.existsSync(args.path) ? args.path : process.cwd();
1355
+ const base = args.path && fs.existsSync(resolveWs(args.path)) ? resolveWs(args.path) : getBashCwd();
1356
1356
  const sym = String(args.symbol);
1357
1357
  const esc = sym.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
1358
1358
  const defRe = new RegExp(`\\b(function|class|def|const|let|var|interface|type|enum|struct|fn|func)\\s+${esc}\\b`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wormclaude",
3
- "version": "1.0.102",
3
+ "version": "1.0.103",
4
4
  "description": "WormClaude CLI - uncensored security+code assistant (ink TUI, Claude-style)",
5
5
  "type": "module",
6
6
  "bin": {