@askalf/dario 3.14.0 → 3.15.0
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/cc-template.js +20 -0
- package/package.json +1 -1
package/dist/cc-template.js
CHANGED
|
@@ -182,6 +182,8 @@ const TOOL_MAP = {
|
|
|
182
182
|
translateArgs: (a) => ({ command: a.command || '' }),
|
|
183
183
|
translateBack: (a) => ({ command: a.command ?? '', is_input: 'false', security_risk: 'LOW' }),
|
|
184
184
|
},
|
|
185
|
+
// Note: Hermes `terminal` tool uses the same {command} shape — covered
|
|
186
|
+
// by the `terminal` entry above.
|
|
185
187
|
process: {
|
|
186
188
|
ccTool: 'Bash',
|
|
187
189
|
translateArgs: (a) => ({ command: a.action || a.cmd || '' }),
|
|
@@ -279,6 +281,12 @@ const TOOL_MAP = {
|
|
|
279
281
|
translateArgs: (a) => ({ file_path: a.path || '', old_string: a.old_str || '', new_string: a.new_str || '' }),
|
|
280
282
|
translateBack: (a) => ({ command: 'str_replace', path: a.file_path ?? '', old_str: a.old_string ?? '', new_str: a.new_string ?? '', security_risk: 'LOW' }),
|
|
281
283
|
},
|
|
284
|
+
// Hermes — `patch` tool in "replace" mode maps to Edit
|
|
285
|
+
patch: {
|
|
286
|
+
ccTool: 'Edit',
|
|
287
|
+
translateArgs: (a) => ({ file_path: a.path || '', old_string: a.old_string || '', new_string: a.new_string || '' }),
|
|
288
|
+
translateBack: (a) => ({ mode: 'replace', path: a.file_path ?? '', old_string: a.old_string ?? '', new_string: a.new_string ?? '', replace_all: false }),
|
|
289
|
+
},
|
|
282
290
|
glob: { ccTool: 'Glob' },
|
|
283
291
|
find_files: {
|
|
284
292
|
ccTool: 'Glob',
|
|
@@ -395,6 +403,12 @@ const TOOL_MAP = {
|
|
|
395
403
|
translateArgs: (a) => ({ url: a.Url || a.url || '' }),
|
|
396
404
|
translateBack: (a) => ({ Url: a.url ?? '', url: a.url ?? '' }),
|
|
397
405
|
},
|
|
406
|
+
// Hermes — web_extract takes {urls: [...]} but we map the first URL
|
|
407
|
+
web_extract: {
|
|
408
|
+
ccTool: 'WebFetch',
|
|
409
|
+
translateArgs: (a) => ({ url: Array.isArray(a.urls) ? String(a.urls[0] || '') : a.url || '' }),
|
|
410
|
+
translateBack: (a) => ({ urls: [a.url ?? ''] }),
|
|
411
|
+
},
|
|
398
412
|
// Copilot
|
|
399
413
|
fetch_webpage: {
|
|
400
414
|
ccTool: 'WebFetch',
|
|
@@ -432,6 +446,12 @@ const TOOL_MAP = {
|
|
|
432
446
|
translateArgs: (a) => ({ question: String(a.question || '') }),
|
|
433
447
|
translateBack: (a) => ({ question: a.question ?? '' }),
|
|
434
448
|
},
|
|
449
|
+
// Hermes
|
|
450
|
+
clarify: {
|
|
451
|
+
ccTool: 'AskUserQuestion',
|
|
452
|
+
translateArgs: (a) => ({ question: String(a.question || '') }),
|
|
453
|
+
translateBack: (a) => ({ question: a.question ?? '' }),
|
|
454
|
+
},
|
|
435
455
|
todo_read: {
|
|
436
456
|
ccTool: 'TodoWrite',
|
|
437
457
|
translateArgs: () => ({ todos: [] }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@askalf/dario",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.0",
|
|
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": {
|