@usecrow/ui 0.1.38 → 0.1.40

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.d.cts CHANGED
@@ -282,6 +282,7 @@ interface Conversation {
282
282
  interface ToolCall {
283
283
  id: string;
284
284
  name: string;
285
+ displayName?: string;
285
286
  arguments: Record<string, unknown>;
286
287
  result?: unknown;
287
288
  status: "executing" | "complete" | "error";
package/dist/index.d.ts CHANGED
@@ -282,6 +282,7 @@ interface Conversation {
282
282
  interface ToolCall {
283
283
  id: string;
284
284
  name: string;
285
+ displayName?: string;
285
286
  arguments: Record<string, unknown>;
286
287
  result?: unknown;
287
288
  status: "executing" | "complete" | "error";
package/dist/index.js CHANGED
@@ -251,6 +251,7 @@ function useChat({
251
251
  const newToolCall = {
252
252
  id: `tool-${Date.now()}`,
253
253
  name: parsed.tool_name,
254
+ displayName: parsed.display_name || void 0,
254
255
  arguments: parsed.arguments || {},
255
256
  status: "executing",
256
257
  timestamp: /* @__PURE__ */ new Date()
@@ -325,6 +326,7 @@ function useChat({
325
326
  const clientToolCall = {
326
327
  id: `tool-${Date.now()}`,
327
328
  name: parsed.tool_name,
329
+ displayName: parsed.display_name || void 0,
328
330
  arguments: parsed.arguments || {},
329
331
  status: "executing",
330
332
  timestamp: /* @__PURE__ */ new Date()
@@ -640,6 +642,7 @@ function useConversations({ productId, apiUrl = "" }) {
640
642
  toolCalls: msg.tool_calls?.map((tc, i) => ({
641
643
  id: `history-tool-${idx}-${i}`,
642
644
  name: tc.name,
645
+ displayName: tc.display_name || void 0,
643
646
  arguments: tc.arguments || {},
644
647
  status: tc.status,
645
648
  timestamp: /* @__PURE__ */ new Date()
@@ -677,6 +680,7 @@ function useConversations({ productId, apiUrl = "" }) {
677
680
  toolCalls: msg.tool_calls?.map((tc, i) => ({
678
681
  id: `history-tool-${idx}-${i}`,
679
682
  name: tc.name,
683
+ displayName: tc.display_name || void 0,
680
684
  arguments: tc.arguments || {},
681
685
  status: tc.status,
682
686
  timestamp: /* @__PURE__ */ new Date()
@@ -1928,7 +1932,7 @@ function ToolCallBlock({
1928
1932
  isExecuting && /* @__PURE__ */ jsx(Loader2, { className: "crow-w-3 crow-h-3 crow-animate-spin crow-text-blue-500" }),
1929
1933
  isComplete && /* @__PURE__ */ jsx(Check, { className: "crow-w-3 crow-h-3 crow-text-green-500" }),
1930
1934
  isError && /* @__PURE__ */ jsx("span", { className: "crow-w-3 crow-h-3 crow-text-red-500", children: "\u2715" }),
1931
- /* @__PURE__ */ jsx("span", { className: "crow-font-medium", children: toolCall.name }),
1935
+ /* @__PURE__ */ jsx("span", { className: "crow-font-medium", children: toolCall.displayName || toolCall.name }),
1932
1936
  /* @__PURE__ */ jsxs("span", { className: "crow-text-gray-400", children: [
1933
1937
  isExecuting && "running...",
1934
1938
  isComplete && "done",