@invergent/agent-chat-react 2.16.1 → 2.16.2
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/index.cjs +12 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1588,7 +1588,9 @@ var SIMPLE_MODE_HIDDEN_TOOLS = /* @__PURE__ */ new Set([
|
|
|
1588
1588
|
// agent accomplished, not *how*. Expert mode still has the full
|
|
1589
1589
|
// command + output block.
|
|
1590
1590
|
"terminal",
|
|
1591
|
-
"execute_code"
|
|
1591
|
+
"execute_code",
|
|
1592
|
+
// Procedure step markers are bookkeeping for the Studio canvas, not conversation.
|
|
1593
|
+
"skill_step"
|
|
1592
1594
|
]);
|
|
1593
1595
|
function isHiddenSimpleTool(tc) {
|
|
1594
1596
|
if (SIMPLE_MODE_HIDDEN_TOOLS.has(tc.toolName)) return true;
|
|
@@ -5259,7 +5261,8 @@ function cancelledToolLabel(toolName) {
|
|
|
5259
5261
|
kb_search_pages: "Knowledge base search",
|
|
5260
5262
|
kb_list_pages: "Knowledge base index",
|
|
5261
5263
|
kb_read_page: "Knowledge base page",
|
|
5262
|
-
vision_analyze: "Image analysis"
|
|
5264
|
+
vision_analyze: "Image analysis",
|
|
5265
|
+
skill_step: "Procedure step"
|
|
5263
5266
|
};
|
|
5264
5267
|
if (map[toolName]) return map[toolName];
|
|
5265
5268
|
if (toolName.startsWith("mcp__")) return formatMcpToolLabel(toolName);
|
|
@@ -5344,6 +5347,11 @@ function extractToolDetail(tc) {
|
|
|
5344
5347
|
const image = stringArg("image");
|
|
5345
5348
|
return image && !image.startsWith("data:") ? lastPathSegment(image) : null;
|
|
5346
5349
|
}
|
|
5350
|
+
case "skill_step": {
|
|
5351
|
+
const step = stringArg("step");
|
|
5352
|
+
const status = stringArg("status");
|
|
5353
|
+
return step && status ? `${step} ${status}` : null;
|
|
5354
|
+
}
|
|
5347
5355
|
case "skill_view":
|
|
5348
5356
|
case "skill_manage":
|
|
5349
5357
|
return stringArg("name") ?? stringArg("skill");
|
|
@@ -5495,6 +5503,8 @@ function toolRowLabel(tc) {
|
|
|
5495
5503
|
return detail ? `Memory ${detail}` : "Updated memory";
|
|
5496
5504
|
case "todo":
|
|
5497
5505
|
return detail ? `Todo ${detail}` : "Updated todo list";
|
|
5506
|
+
case "skill_step":
|
|
5507
|
+
return detail ? `Step ${detail}` : "Recorded a procedure step";
|
|
5498
5508
|
case "run_coding_agent":
|
|
5499
5509
|
case "code_run": {
|
|
5500
5510
|
const a = parseArgs(tc.args);
|