winter-super-cli 2026.5.16 → 2026.5.17
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/package.json +1 -1
- package/src/tools/executor.js +26 -0
- package/src/tools/executor.test.js +5 -0
package/package.json
CHANGED
package/src/tools/executor.js
CHANGED
|
@@ -244,26 +244,52 @@ export class ToolExecutor {
|
|
|
244
244
|
const aliases = {
|
|
245
245
|
read: 'Read',
|
|
246
246
|
readfile: 'Read',
|
|
247
|
+
openfile: 'Read',
|
|
248
|
+
viewfile: 'Read',
|
|
249
|
+
cat: 'Read',
|
|
247
250
|
write: 'Write',
|
|
248
251
|
writefile: 'Write',
|
|
252
|
+
writetofile: 'Write',
|
|
253
|
+
createfile: 'Write',
|
|
254
|
+
savefile: 'Write',
|
|
249
255
|
edit: 'Edit',
|
|
250
256
|
editfile: 'Edit',
|
|
257
|
+
replaceinfile: 'Edit',
|
|
258
|
+
strreplace: 'Edit',
|
|
259
|
+
strreplaceeditor: 'Edit',
|
|
260
|
+
applydiff: 'Edit',
|
|
261
|
+
patch: 'Edit',
|
|
251
262
|
bash: 'Bash',
|
|
252
263
|
shell: 'Bash',
|
|
253
264
|
command: 'Bash',
|
|
265
|
+
executecommand: 'Bash',
|
|
266
|
+
runcommand: 'Bash',
|
|
267
|
+
terminal: 'Bash',
|
|
268
|
+
powershell: 'Bash',
|
|
254
269
|
glob: 'Glob',
|
|
270
|
+
listfiles: 'Glob',
|
|
271
|
+
ls: 'Glob',
|
|
272
|
+
findfiles: 'Glob',
|
|
255
273
|
grep: 'Grep',
|
|
256
274
|
search: 'Grep',
|
|
275
|
+
searchfiles: 'Grep',
|
|
276
|
+
searchtext: 'Grep',
|
|
277
|
+
rg: 'Grep',
|
|
257
278
|
lsp: 'LSP',
|
|
279
|
+
listcodedefinitionnames: 'LSP',
|
|
258
280
|
taskcreate: 'TaskCreate',
|
|
259
281
|
createtask: 'TaskCreate',
|
|
282
|
+
newtask: 'TaskCreate',
|
|
260
283
|
taskupdate: 'TaskUpdate',
|
|
261
284
|
updatetask: 'TaskUpdate',
|
|
262
285
|
tasklist: 'TaskList',
|
|
263
286
|
listtasks: 'TaskList',
|
|
287
|
+
plan: 'TaskList',
|
|
264
288
|
webfetch: 'WebFetch',
|
|
265
289
|
fetch: 'WebFetch',
|
|
290
|
+
fetchurl: 'WebFetch',
|
|
266
291
|
websearch: 'WebSearch',
|
|
292
|
+
searchweb: 'WebSearch',
|
|
267
293
|
browserdebug: 'BrowserDebug',
|
|
268
294
|
browser: 'BrowserDebug',
|
|
269
295
|
};
|
|
@@ -18,6 +18,11 @@ test('tool names accept common model aliases', () => {
|
|
|
18
18
|
const tools = new ToolExecutor({ projectPath: process.cwd() });
|
|
19
19
|
|
|
20
20
|
assert.equal(tools.normalizeToolName('read_file'), 'Read');
|
|
21
|
+
assert.equal(tools.normalizeToolName('write_to_file'), 'Write');
|
|
22
|
+
assert.equal(tools.normalizeToolName('replace_in_file'), 'Edit');
|
|
23
|
+
assert.equal(tools.normalizeToolName('execute_command'), 'Bash');
|
|
24
|
+
assert.equal(tools.normalizeToolName('list_files'), 'Glob');
|
|
25
|
+
assert.equal(tools.normalizeToolName('search_files'), 'Grep');
|
|
21
26
|
assert.equal(tools.normalizeToolName('shell'), 'Bash');
|
|
22
27
|
assert.equal(tools.normalizeToolName('web-search'), 'WebSearch');
|
|
23
28
|
});
|