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 +1 -1
- package/dist/tools.js +3 -3
- package/package.json +1 -1
package/dist/theme.js
CHANGED
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
|
|
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 :
|
|
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 :
|
|
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`);
|