@tangle-network/agent-app 0.63.58 → 0.63.59
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/assistant/index.js +7 -4
- package/dist/assistant/index.js.map +1 -1
- package/dist/{chunk-H7CSSEP7.js → chunk-LAZCUQFZ.js} +14 -6
- package/dist/{chunk-H7CSSEP7.js.map → chunk-LAZCUQFZ.js.map} +1 -1
- package/dist/platform/delegated-keys.d.ts +5 -5
- package/dist/platform/index.js +10 -11
- package/dist/platform/index.js.map +1 -1
- package/dist/theme/tokens.css +12 -7
- package/dist/web-react/chat-message-types.d.ts +12 -4
- package/dist/web-react/chat-tool-call.d.ts +4 -1
- package/dist/web-react/index.d.ts +1 -1
- package/dist/web-react/index.js +3 -1
- package/package.json +3 -3
package/dist/assistant/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ReasoningRow,
|
|
3
|
-
chatToolCallPart
|
|
4
|
-
|
|
3
|
+
chatToolCallPart,
|
|
4
|
+
resolveToolPresentation
|
|
5
|
+
} from "../chunk-LAZCUQFZ.js";
|
|
5
6
|
import "../chunk-UHSUY6H6.js";
|
|
6
7
|
import "../chunk-3HUFJ5LO.js";
|
|
7
8
|
import "../chunk-7PULOECS.js";
|
|
@@ -2687,6 +2688,7 @@ function buildAssistantTimeline(view, options = {}) {
|
|
|
2687
2688
|
if (!call) return;
|
|
2688
2689
|
const renderer = options.toolRenderers?.[call.name];
|
|
2689
2690
|
const host = { id: message.id, role: "assistant", content: "" };
|
|
2691
|
+
const custom = renderer ? resolveToolPresentation(renderer(call, host)) : void 0;
|
|
2690
2692
|
items.push({
|
|
2691
2693
|
id: message.id,
|
|
2692
2694
|
kind: "custom",
|
|
@@ -2694,8 +2696,9 @@ function buildAssistantTimeline(view, options = {}) {
|
|
|
2694
2696
|
InlineToolItem,
|
|
2695
2697
|
{
|
|
2696
2698
|
part: chatToolCallPart(call),
|
|
2697
|
-
title: toolTitle(call.name),
|
|
2698
|
-
|
|
2699
|
+
title: custom?.title ?? toolTitle(call.name),
|
|
2700
|
+
description: custom?.description,
|
|
2701
|
+
renderToolDetail: renderer ? () => custom?.detail : void 0
|
|
2699
2702
|
}
|
|
2700
2703
|
)
|
|
2701
2704
|
});
|