@askalf/dario 3.13.2 → 3.13.3

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.
@@ -192,13 +192,13 @@ const TOOL_MAP = {
192
192
  grep: { ccTool: 'Grep' },
193
193
  search: {
194
194
  ccTool: 'Grep',
195
- translateArgs: (a) => ({ pattern: a.query || a.pattern || '' }),
196
- translateBack: (a) => ({ query: a.pattern ?? '' }),
195
+ translateArgs: (a) => ({ pattern: a.query || a.pattern || '', ...(a.path ? { path: a.path } : {}) }),
196
+ translateBack: (a) => ({ query: a.pattern ?? '', pattern: a.pattern ?? '', path: a.path ?? '.' }),
197
197
  },
198
198
  search_files: {
199
199
  ccTool: 'Grep',
200
- translateArgs: (a) => ({ pattern: a.query || a.pattern || '' }),
201
- translateBack: (a) => ({ query: a.pattern ?? '' }),
200
+ translateArgs: (a) => ({ pattern: a.query || a.pattern || a.regex || '', ...(a.path ? { path: a.path } : {}), ...(a.filePattern ? { glob: a.filePattern } : {}) }),
201
+ translateBack: (a) => ({ query: a.pattern ?? '', pattern: a.pattern ?? '', regex: a.pattern ?? '', path: a.path ?? '.', filePattern: a.glob ?? '' }),
202
202
  },
203
203
  web_search: {
204
204
  ccTool: 'WebSearch',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askalf/dario",
3
- "version": "3.13.2",
3
+ "version": "3.13.3",
4
4
  "description": "A local LLM router. One endpoint, every provider — Claude subscriptions, OpenAI, OpenRouter, Groq, local LiteLLM, any OpenAI-compat endpoint — your tools don't need to change.",
5
5
  "type": "module",
6
6
  "bin": {