@meistrari/chat-nuxt 4.6.0-rc.6 → 4.6.0-rc.7

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
3
  "configKey": "chatNuxt",
4
- "version": "4.6.0-rc.6",
4
+ "version": "4.6.0-rc.7",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -9,6 +9,11 @@ const TOOL_REGISTRY = {
9
9
  widgetId: "generic",
10
10
  labels: { active: "Pesquisando na web", executed: "Pesquisou na web" }
11
11
  },
12
+ "super_search_tool": {
13
+ icon: "i-ph-globe",
14
+ widgetId: "generic",
15
+ labels: { active: "Pesquisando em v\xE1rias fontes", executed: "Pesquisou em v\xE1rias fontes" }
16
+ },
12
17
  "WebFetch": {
13
18
  icon: "i-ph-browser",
14
19
  widgetId: "generic",
@@ -152,6 +157,16 @@ function stringInput(toolUse, ...keys) {
152
157
  }
153
158
  return null;
154
159
  }
160
+ function batchedQueries(toolUse) {
161
+ const queries = toolUse.input?.queries;
162
+ if (!Array.isArray(queries))
163
+ return null;
164
+ const filled = queries.filter((query) => typeof query === "string" && query.trim() !== "");
165
+ if (!filled.length)
166
+ return null;
167
+ const first = filled[0].trim();
168
+ return filled.length > 1 ? `${first} +${filled.length - 1}` : first;
169
+ }
155
170
  function basename(path) {
156
171
  return path.split("/").filter(Boolean).at(-1) ?? path;
157
172
  }
@@ -164,6 +179,8 @@ export function resolveToolMeta(toolUse) {
164
179
  return stringInput(toolUse, "pattern", "query");
165
180
  if (["WebSearch", "WebFetch", "web_search"].includes(toolUse.name))
166
181
  return stringInput(toolUse, "query", "url");
182
+ if (toolUse.name === "super_search_tool")
183
+ return stringInput(toolUse, "query") ?? batchedQueries(toolUse);
167
184
  if (toolUse.name === "Bash" || toolUse.name === "Execute")
168
185
  return stringInput(toolUse, "description", "command");
169
186
  if (toolUse.name === "Skill")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
- "version": "4.6.0-rc.6",
3
+ "version": "4.6.0-rc.7",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {