@usecrow/ui 0.1.38 → 0.1.39
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 +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -277,6 +277,7 @@ function useChat({
|
|
|
277
277
|
const newToolCall = {
|
|
278
278
|
id: `tool-${Date.now()}`,
|
|
279
279
|
name: parsed.tool_name,
|
|
280
|
+
displayName: parsed.display_name || void 0,
|
|
280
281
|
arguments: parsed.arguments || {},
|
|
281
282
|
status: "executing",
|
|
282
283
|
timestamp: /* @__PURE__ */ new Date()
|
|
@@ -351,6 +352,7 @@ function useChat({
|
|
|
351
352
|
const clientToolCall = {
|
|
352
353
|
id: `tool-${Date.now()}`,
|
|
353
354
|
name: parsed.tool_name,
|
|
355
|
+
displayName: parsed.display_name || void 0,
|
|
354
356
|
arguments: parsed.arguments || {},
|
|
355
357
|
status: "executing",
|
|
356
358
|
timestamp: /* @__PURE__ */ new Date()
|
|
@@ -666,6 +668,7 @@ function useConversations({ productId, apiUrl = "" }) {
|
|
|
666
668
|
toolCalls: msg.tool_calls?.map((tc, i) => ({
|
|
667
669
|
id: `history-tool-${idx}-${i}`,
|
|
668
670
|
name: tc.name,
|
|
671
|
+
displayName: tc.display_name || void 0,
|
|
669
672
|
arguments: tc.arguments || {},
|
|
670
673
|
status: tc.status,
|
|
671
674
|
timestamp: /* @__PURE__ */ new Date()
|
|
@@ -703,6 +706,7 @@ function useConversations({ productId, apiUrl = "" }) {
|
|
|
703
706
|
toolCalls: msg.tool_calls?.map((tc, i) => ({
|
|
704
707
|
id: `history-tool-${idx}-${i}`,
|
|
705
708
|
name: tc.name,
|
|
709
|
+
displayName: tc.display_name || void 0,
|
|
706
710
|
arguments: tc.arguments || {},
|
|
707
711
|
status: tc.status,
|
|
708
712
|
timestamp: /* @__PURE__ */ new Date()
|
|
@@ -1954,7 +1958,7 @@ function ToolCallBlock({
|
|
|
1954
1958
|
isExecuting && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "crow-w-3 crow-h-3 crow-animate-spin crow-text-blue-500" }),
|
|
1955
1959
|
isComplete && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "crow-w-3 crow-h-3 crow-text-green-500" }),
|
|
1956
1960
|
isError && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "crow-w-3 crow-h-3 crow-text-red-500", children: "\u2715" }),
|
|
1957
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "crow-font-medium", children: toolCall.name }),
|
|
1961
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "crow-font-medium", children: toolCall.displayName || toolCall.name }),
|
|
1958
1962
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "crow-text-gray-400", children: [
|
|
1959
1963
|
isExecuting && "running...",
|
|
1960
1964
|
isComplete && "done",
|