@mcp-b/react-components 0.57.1 → 0.58.1

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.
Files changed (176) hide show
  1. package/dist/Card-BPkXIkBz.d.ts +46 -0
  2. package/dist/{CodeBlock-Bl-q7wMc.js → CodeBlock-Bs_Z03eC.js} +2 -1
  3. package/dist/{CodeBlock-CPotpyyM.d.ts → CodeBlock-DYp5V_4O.d.ts} +1 -1
  4. package/dist/{EmployeeChrome-CN99SVfF.d.ts → EmployeeChrome-DsdIek0l.d.ts} +2 -10
  5. package/dist/ExecutionBoard-DHfMvKlB.d.ts +64 -0
  6. package/dist/ExecutionResult-BSZsUbrL.js +279 -0
  7. package/dist/{FileTree-CfOhUyp3.js → FileTree-DyLBn7O_.js} +1 -1
  8. package/dist/{ManagerOffice-CMJ7laGe.js → ManagerOffice-C8AQcaXs.js} +5 -20
  9. package/dist/{McpConnectorForm-BPWCo9bU.d.ts → McpConnectorForm-D4bY-lm_.d.ts} +1 -1
  10. package/dist/{McpPluginCatalog-uSh0gGeY.d.ts → McpPluginCatalog-2FZDLCeK.d.ts} +2 -2
  11. package/dist/{SetupChecklist-BiWQkKEq.js → SetupChecklist-CKQ-mKYt.js} +2 -2
  12. package/dist/{ThinkRoutine-DGlKJbIy.d.ts → ThinkRoutine-DoZjbzyn.d.ts} +15 -3
  13. package/dist/{Workspace-Cr-aGDfx.d.ts → Workspace-iCkXvQRJ.d.ts} +1 -1
  14. package/dist/WorkspaceConcept-ByaG-kBq.d.ts +38 -0
  15. package/dist/WorkspaceExecutionTable-DNhj6YDX.d.ts +239 -0
  16. package/dist/{WorkspaceFile-DiwiJEwO.d.ts → WorkspaceFile-DkIZKoK6.d.ts} +1 -1
  17. package/dist/{WorkspaceFileView-CCe_o79q.js → WorkspaceFileView-M2jC2P4p.js} +217 -139
  18. package/dist/components/agents-sdk/AgentActivity.js +1 -1
  19. package/dist/components/agents-sdk/AgentChat.js +10 -10
  20. package/dist/components/agents-sdk/BrowserLiveScreen.js +1 -1
  21. package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
  22. package/dist/components/agents-sdk/BrowserReplay.js +1 -1
  23. package/dist/components/agents-sdk/BrowserRunPanel.js +1 -1
  24. package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
  25. package/dist/components/agents-sdk/EmployeeApp.js +3 -7
  26. package/dist/components/agents-sdk/EmployeeChat.js +4 -4
  27. package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
  28. package/dist/components/agents-sdk/EmployeeChrome.js +78 -63
  29. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +6 -3
  30. package/dist/components/agents-sdk/EmployeeSchedules.js +12 -10
  31. package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
  32. package/dist/components/agents-sdk/EmployeeStartScreen.js +3 -3
  33. package/dist/components/agents-sdk/ExecutionBoard.d.ts +2 -0
  34. package/dist/components/agents-sdk/ExecutionBoard.js +648 -0
  35. package/dist/components/agents-sdk/ManagerAccountActions.js +2 -2
  36. package/dist/components/agents-sdk/ManagerOffice.d.ts +1 -1
  37. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  38. package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
  39. package/dist/components/agents-sdk/ManagerOfficeScreens.js +4 -3
  40. package/dist/components/agents-sdk/McpConnectionRequest.d.ts +1 -1
  41. package/dist/components/agents-sdk/McpConnectionRequest.js +2 -2
  42. package/dist/components/agents-sdk/McpConnectorForm.d.ts +1 -1
  43. package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
  44. package/dist/components/agents-sdk/McpPluginCatalog.d.ts +1 -1
  45. package/dist/components/agents-sdk/McpPluginCatalog.js +17 -8
  46. package/dist/components/agents-sdk/McpServerIcon.d.ts +1 -1
  47. package/dist/components/agents-sdk/McpServerPicker.d.ts +2 -2
  48. package/dist/components/agents-sdk/McpServerPicker.js +2 -2
  49. package/dist/components/agents-sdk/ModelEndpointDialog.js +1 -1
  50. package/dist/components/agents-sdk/ModelSelector.js +4 -4
  51. package/dist/components/agents-sdk/PromptInputApproval.js +1 -1
  52. package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
  53. package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
  54. package/dist/components/agents-sdk/SubagentRunPanel.js +2 -2
  55. package/dist/components/agents-sdk/SubagentRunSelector.js +1 -1
  56. package/dist/components/agents-sdk/ThinkChatActivity.js +2 -2
  57. package/dist/components/agents-sdk/ThinkChatToolPanels.js +238 -209
  58. package/dist/components/agents-sdk/ThinkExecutionDetail.js +14 -35
  59. package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
  60. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +3 -3
  61. package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
  62. package/dist/components/agents-sdk/ThinkRoutine.d.ts +2 -2
  63. package/dist/components/agents-sdk/ThinkRoutineActions.d.ts +2 -2
  64. package/dist/components/agents-sdk/ThinkRoutineActions.js +25 -15
  65. package/dist/components/agents-sdk/ThinkRoutineBrowser.d.ts +1 -1
  66. package/dist/components/agents-sdk/ThinkRoutineBrowser.js +2 -2
  67. package/dist/components/agents-sdk/ThinkRoutineDetail.d.ts +5 -2
  68. package/dist/components/agents-sdk/ThinkRoutineDetail.js +13 -7
  69. package/dist/components/agents-sdk/ThinkRoutineForm.d.ts +23 -6
  70. package/dist/components/agents-sdk/ThinkRoutineForm.js +521 -214
  71. package/dist/components/agents-sdk/ThinkRoutineRuns.js +1 -1
  72. package/dist/components/agents-sdk/ThinkThreadPicker.js +2 -2
  73. package/dist/components/agents-sdk/TypeSafeConnectionDialog.d.ts +10 -0
  74. package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +34 -0
  75. package/dist/components/agents-sdk/WorkbenchBack.js +1 -1
  76. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  77. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
  78. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  79. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +2 -37
  80. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +2 -2
  81. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +7 -6
  82. package/dist/components/agents-sdk/WorkspaceExecution.d.ts +2 -92
  83. package/dist/components/agents-sdk/WorkspaceExecution.js +650 -133
  84. package/dist/components/agents-sdk/WorkspaceExecutionTable.d.ts +2 -0
  85. package/dist/components/agents-sdk/WorkspaceExecutionTable.js +824 -0
  86. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +3 -1
  87. package/dist/components/agents-sdk/WorkspaceExplorer.js +4 -3
  88. package/dist/components/agents-sdk/WorkspaceFile.d.ts +1 -1
  89. package/dist/components/agents-sdk/WorkspaceFileView.d.ts +4 -2
  90. package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
  91. package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
  92. package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
  93. package/dist/components/agents-sdk/WorkspaceMountManager.js +1 -1
  94. package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
  95. package/dist/components/agents-sdk/WorkspaceProject.js +6 -5
  96. package/dist/components/agents-sdk/WorkspaceUserScript.d.ts +1 -1
  97. package/dist/components/agents-sdk/WorkspaceUserScript.js +5 -4
  98. package/dist/components/ai-sdk/Activity.js +1 -1
  99. package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
  100. package/dist/components/ai-sdk/Approval.js +2 -2
  101. package/dist/components/ai-sdk/Artifact.js +1 -1
  102. package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
  103. package/dist/components/ai-sdk/ChainOfThought.js +1 -1
  104. package/dist/components/ai-sdk/Checkpoint.js +1 -1
  105. package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
  106. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  107. package/dist/components/ai-sdk/ComposerLink.js +1 -1
  108. package/dist/components/ai-sdk/ConnectedAppCards.d.ts +1 -1
  109. package/dist/components/ai-sdk/ConnectedAppCards.js +3 -3
  110. package/dist/components/ai-sdk/Context.js +1 -1
  111. package/dist/components/ai-sdk/Conversation.js +1 -1
  112. package/dist/components/ai-sdk/Goal.js +1 -1
  113. package/dist/components/ai-sdk/MediaPreviewCard.d.ts +1 -1
  114. package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
  115. package/dist/components/ai-sdk/Message.js +2 -2
  116. package/dist/components/ai-sdk/MessageScroller.js +1 -1
  117. package/dist/components/ai-sdk/MessageScrollerVirtual.js +1 -1
  118. package/dist/components/ai-sdk/Plan.js +1 -1
  119. package/dist/components/ai-sdk/PromptInput.js +6 -6
  120. package/dist/components/ai-sdk/Queue.js +1 -1
  121. package/dist/components/ai-sdk/Reasoning.js +1 -1
  122. package/dist/components/ai-sdk/Sources.js +1 -1
  123. package/dist/components/ai-sdk/Task.js +1 -1
  124. package/dist/components/extension/ChatGptSignInScreen.js +2 -2
  125. package/dist/components/extension/CodexModelSelector.js +2 -2
  126. package/dist/components/extension/ConversationTabPicker.js +2 -2
  127. package/dist/components/foundations/Card.d.ts +2 -45
  128. package/dist/components/foundations/Checkbox.js +1 -1
  129. package/dist/components/foundations/Collapsible.js +1 -1
  130. package/dist/components/foundations/ContextMenu.js +1 -1
  131. package/dist/components/foundations/Menubar.js +1 -1
  132. package/dist/components/foundations/SearchField.js +1 -1
  133. package/dist/components/foundations/Select.js +1 -1
  134. package/dist/components/foundations/Stepper.js +1 -1
  135. package/dist/components/foundations/Toast.js +1 -1
  136. package/dist/components/foundations/icons.d.ts +2 -2
  137. package/dist/components/foundations/icons.js +2 -2
  138. package/dist/components/general-purpose/AccountSignInDialog.js +1 -1
  139. package/dist/components/general-purpose/Commit.js +2 -2
  140. package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
  141. package/dist/components/general-purpose/FileTree.js +1 -1
  142. package/dist/components/general-purpose/PricingPlanCard.js +2 -2
  143. package/dist/components/general-purpose/PricingUsageCalculator.js +2 -2
  144. package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
  145. package/dist/components/general-purpose/SettingsFormDialog.js +2 -2
  146. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  147. package/dist/components/general-purpose/Terminal.js +2 -2
  148. package/dist/components/general-purpose/TestResults.js +1 -1
  149. package/dist/components/general-purpose/ThemeModeControl.js +1 -1
  150. package/dist/components/general-purpose/WebPreview.js +2 -2
  151. package/dist/components/nanites/AgentConnection.js +2 -2
  152. package/dist/components/nanites/AgentToolDetail.js +1 -1
  153. package/dist/{copy-button-CSDuDfdP.js → copy-button-M4sAp9xS.js} +1 -1
  154. package/dist/execution-result-DWVmm-bL.js +80 -0
  155. package/dist/{icons-CUuD7iEh.d.ts → icons-Dj6id76o.d.ts} +2 -1
  156. package/dist/{icons-cuEtsgj9.js → icons-DvlrWt54.js} +4 -3
  157. package/dist/{mcp-server-catalog-DgA9BnL0.d.ts → mcp-server-catalog-kaMWaSAL.d.ts} +3 -1
  158. package/dist/styles/app-top-bar.css +2 -1
  159. package/dist/styles/base.css +1 -0
  160. package/dist/styles/chatgpt-sign-in-screen.css +8 -14
  161. package/dist/styles/description-list.css +12 -9
  162. package/dist/styles/execution-board.css +383 -0
  163. package/dist/styles/index.css +3 -0
  164. package/dist/styles/mcp-plugin-catalog.css +8 -7
  165. package/dist/styles/message-scroller.css +8 -0
  166. package/dist/styles/think-chat-tool-panels.css +1 -2
  167. package/dist/styles/think-execution-workbench.css +1 -12
  168. package/dist/styles/think-routine.css +39 -41
  169. package/dist/styles/workspace-concepts.css +441 -17
  170. package/dist/styles/workspace-explorer.css +18 -4
  171. package/dist/utils/mcp-server-catalog.d.ts +2 -2
  172. package/dist/utils/mcp-server-catalog.js +18 -1
  173. package/dist/utils/structured-code.d.ts +1 -1
  174. package/dist/{workspace-assets-Bg7XhPsk.js → workspace-assets-DVn0d-fN.js} +24 -81
  175. package/dist/workspace-delete-DfloiBWp.js +80 -0
  176. package/package.json +3 -2
@@ -1,10 +1,11 @@
1
1
  import { ActivityOutput, ActivityPanel } from "../ai-sdk/Activity.js";
2
- import { o as formatUnknownValue } from "../../format-CWaZEp5o.js";
3
2
  import { Tabs } from "../foundations/Tabs.js";
3
+ import { i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "../../CodeBlock-Bs_Z03eC.js";
4
4
  import { BrowserLiveView } from "./BrowserLiveView.js";
5
- import { i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "../../CodeBlock-Bl-q7wMc.js";
6
5
  import { inferWorkspaceLanguage } from "./WorkspaceFile.js";
7
6
  import { displayUrl, isSessionContextToolFailure } from "./ThinkChatToolParts.js";
7
+ import { t as executionErrorSummary } from "../../execution-result-DWVmm-bL.js";
8
+ import { t as ExecutionResult } from "../../ExecutionResult-BSZsUbrL.js";
8
9
  import * as React from "react";
9
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
11
  import { getToolName } from "ai";
@@ -28,109 +29,118 @@ function ThinkChatWorkspacePanel({ part }) {
28
29
  if (part.type === "tool-bash") return /* @__PURE__ */ jsx(ThinkChatShellPanel, { part });
29
30
  if (part.state === "output-error") return /* @__PURE__ */ jsx(ActivityPanel, {
30
31
  label: getToolName(part),
31
- text: part.errorText,
32
+ text: executionErrorSummary(part.errorText),
32
33
  status: "error",
33
34
  error: true
34
35
  });
35
36
  if (part.state === "output-denied") return renderDeniedPanel(getToolName(part), part.approval.reason);
36
37
  switch (part.type) {
37
- case "tool-read": {
38
- const label = part.input?.path ?? "file";
39
- const output = part.state === "output-available" ? part.output : void 0;
40
- if (output && "error" in output) return /* @__PURE__ */ jsx(ActivityPanel, {
41
- label,
42
- text: output.error,
43
- status: "error",
44
- error: true
45
- });
46
- if (output && "content" in output) return /* @__PURE__ */ jsx(ActivityPanel, {
47
- label,
48
- text: output.content,
49
- status: `${output.totalLines} lines`
50
- });
51
- if (output) return /* @__PURE__ */ jsx(ActivityPanel, {
52
- label,
53
- text: `${output.name} · ${output.mediaType} · ${output.sizeBytes} bytes`
54
- });
55
- return /* @__PURE__ */ jsx(ActivityPanel, { label });
56
- }
57
- case "tool-write": {
58
- const path = part.input?.path ?? "file";
59
- const content = part.input?.content;
60
- const output = part.state === "output-available" ? part.output : void 0;
61
- return /* @__PURE__ */ jsx(ActivityPanel, {
62
- label: path,
63
- status: output ? `${output.lines} lines written` : void 0,
64
- children: content !== void 0 ? /* @__PURE__ */ jsx(CodeBlock, {
65
- surface: "plain",
66
- wrap: true,
67
- className: "think-chat-tool-panels__code-block",
68
- code: content,
69
- isStreaming: part.state === "input-streaming",
70
- language: inferWorkspaceLanguage(path),
71
- showLineNumbers: true,
72
- children: /* @__PURE__ */ jsx(CodeBlockContainer, { children: /* @__PURE__ */ jsx(CodeBlockContent, {}) })
73
- }) : null
74
- });
75
- }
76
- case "tool-edit": {
77
- const input = part.input;
78
- const output = part.state === "output-available" ? part.output : void 0;
79
- const status = !output ? void 0 : output.error ? output.error : output.created ? "created" : output.fuzzyMatch ? "replaced (fuzzy match)" : "replaced";
80
- return /* @__PURE__ */ jsx(ActivityPanel, {
81
- label: input?.path ?? "file",
82
- status,
83
- error: Boolean(output?.error),
84
- children: input?.old_string !== void 0 && input.new_string !== void 0 ? /* @__PURE__ */ jsxs(ActivityOutput, { children: [
85
- /* @__PURE__ */ jsx("span", {
86
- className: "think-chat-tool-panels__diff-del",
87
- children: prefixLines(input.old_string, "- ")
88
- }),
89
- "\n",
90
- /* @__PURE__ */ jsx("span", {
91
- className: "think-chat-tool-panels__diff-add",
92
- children: prefixLines(input.new_string, "+ ")
93
- })
94
- ] }) : null
95
- });
96
- }
97
- case "tool-list": {
98
- const output = part.state === "output-available" ? part.output : void 0;
99
- return /* @__PURE__ */ jsx(ActivityPanel, {
100
- label: part.input?.path ?? "/",
101
- text: output?.entries.join("\n"),
102
- status: output ? `${output.count} entries` : void 0
103
- });
104
- }
105
- case "tool-find": {
106
- const output = part.state === "output-available" ? part.output : void 0;
107
- const files = Array.isArray(output?.files) ? output.files.map(String) : [];
108
- const count = typeof output?.count === "number" ? output.count : files.length;
109
- return /* @__PURE__ */ jsx(ActivityPanel, {
110
- label: part.input?.pattern ?? "files",
111
- text: files.join("\n"),
112
- status: output ? `${count} files${output.truncated ? " (truncated)" : ""}` : void 0
113
- });
114
- }
115
- case "tool-grep": {
116
- const output = part.state === "output-available" ? part.output : void 0;
117
- const matches = Array.isArray(output?.matches) ? output.matches.map((match) => typeof match === "string" ? match : match.context ?? JSON.stringify(match)) : [];
118
- const status = output && typeof output.totalMatches === "number" ? `${output.totalMatches} matches in ${String(output.filesWithMatches)} files` : void 0;
119
- return /* @__PURE__ */ jsx(ActivityPanel, {
120
- label: part.input?.query ?? "search",
121
- text: matches.join("\n"),
122
- status
123
- });
124
- }
38
+ case "tool-read": return /* @__PURE__ */ jsx(WorkspaceReadPanel, { part });
39
+ case "tool-write": return /* @__PURE__ */ jsx(WorkspaceWritePanel, { part });
40
+ case "tool-edit": return /* @__PURE__ */ jsx(WorkspaceEditPanel, { part });
41
+ case "tool-list": return /* @__PURE__ */ jsx(WorkspaceListPanel, { part });
42
+ case "tool-find": return /* @__PURE__ */ jsx(WorkspaceFindPanel, { part });
43
+ case "tool-grep": return /* @__PURE__ */ jsx(WorkspaceGrepPanel, { part });
125
44
  default: return null;
126
45
  }
127
46
  }
47
+ function WorkspaceReadPanel({ part }) {
48
+ const label = part.input?.path ?? "file";
49
+ const output = part.state === "output-available" ? part.output : void 0;
50
+ if (output && "error" in output) return /* @__PURE__ */ jsx(ActivityPanel, {
51
+ label,
52
+ text: executionErrorSummary(output.error),
53
+ status: "error",
54
+ error: true
55
+ });
56
+ if (output && "content" in output) return /* @__PURE__ */ jsx(ActivityPanel, {
57
+ label,
58
+ text: output.content,
59
+ status: `${output.totalLines} lines`
60
+ });
61
+ if (output) return /* @__PURE__ */ jsx(ActivityPanel, {
62
+ label,
63
+ text: `${output.name} · ${output.mediaType} · ${output.sizeBytes} bytes`
64
+ });
65
+ return /* @__PURE__ */ jsx(ActivityPanel, { label });
66
+ }
67
+ function WorkspaceWritePanel({ part }) {
68
+ const path = part.input?.path ?? "file";
69
+ const content = part.input?.content;
70
+ const output = part.state === "output-available" ? part.output : void 0;
71
+ return /* @__PURE__ */ jsx(ActivityPanel, {
72
+ label: path,
73
+ status: output ? `${output.lines} lines written` : void 0,
74
+ children: content !== void 0 ? /* @__PURE__ */ jsx(CodeBlock, {
75
+ surface: "plain",
76
+ wrap: true,
77
+ className: "think-chat-tool-panels__code-block",
78
+ code: content,
79
+ isStreaming: part.state === "input-streaming",
80
+ language: inferWorkspaceLanguage(path),
81
+ showLineNumbers: true,
82
+ children: /* @__PURE__ */ jsx(CodeBlockContainer, { children: /* @__PURE__ */ jsx(CodeBlockContent, {}) })
83
+ }) : null
84
+ });
85
+ }
86
+ function WorkspaceEditPanel({ part }) {
87
+ const input = part.input;
88
+ const output = part.state === "output-available" ? part.output : void 0;
89
+ const status = !output ? void 0 : output.error ? output.error : output.created ? "created" : output.fuzzyMatch ? "replaced (fuzzy match)" : "replaced";
90
+ return /* @__PURE__ */ jsx(ActivityPanel, {
91
+ label: input?.path ?? "file",
92
+ status,
93
+ error: Boolean(output?.error),
94
+ children: input?.old_string !== void 0 && input.new_string !== void 0 ? /* @__PURE__ */ jsxs(ActivityOutput, { children: [
95
+ /* @__PURE__ */ jsx("span", {
96
+ className: "think-chat-tool-panels__diff-del",
97
+ children: prefixLines(input.old_string, "- ")
98
+ }),
99
+ "\n",
100
+ /* @__PURE__ */ jsx("span", {
101
+ className: "think-chat-tool-panels__diff-add",
102
+ children: prefixLines(input.new_string, "+ ")
103
+ })
104
+ ] }) : null
105
+ });
106
+ }
107
+ function WorkspaceListPanel({ part }) {
108
+ const output = part.state === "output-available" ? part.output : void 0;
109
+ return /* @__PURE__ */ jsx(ActivityPanel, {
110
+ label: part.input?.path ?? "/",
111
+ text: output?.entries.join("\n"),
112
+ status: output ? `${output.count} entries` : void 0
113
+ });
114
+ }
115
+ function WorkspaceFindPanel({ part }) {
116
+ const output = part.state === "output-available" ? part.output : void 0;
117
+ const files = Array.isArray(output?.files) ? output.files.map(String) : [];
118
+ const count = typeof output?.count === "number" ? output.count : files.length;
119
+ return /* @__PURE__ */ jsx(ActivityPanel, {
120
+ label: part.input?.pattern ?? "files",
121
+ text: files.join("\n"),
122
+ status: output ? `${count} files${output.truncated ? " (truncated)" : ""}` : void 0
123
+ });
124
+ }
125
+ function WorkspaceGrepPanel({ part }) {
126
+ const output = part.state === "output-available" ? part.output : void 0;
127
+ const matches = Array.isArray(output?.matches) ? output.matches.map((match) => match != null && typeof match === "object" && "context" in match ? match.context : match) : [];
128
+ const status = output && typeof output.totalMatches === "number" ? `${output.totalMatches} matches in ${String(output.filesWithMatches)} files` : void 0;
129
+ return /* @__PURE__ */ jsx(ActivityPanel, {
130
+ label: part.input?.query ?? "search",
131
+ status,
132
+ children: matches.length ? /* @__PURE__ */ jsx(ExecutionResult, {
133
+ result: matches,
134
+ showSummary: false
135
+ }) : null
136
+ });
137
+ }
128
138
  /** Skill panels show what the model actually received: the activated skill's
129
139
  body, the resource text, or the script result. */
130
140
  function ThinkChatSkillPanel({ part }) {
131
141
  if (part.state === "output-error") return /* @__PURE__ */ jsx(ActivityPanel, {
132
142
  label: getToolName(part),
133
- text: part.errorText,
143
+ text: executionErrorSummary(part.errorText),
134
144
  status: "error",
135
145
  error: true
136
146
  });
@@ -152,10 +162,12 @@ function ThinkChatSkillPanel({ part }) {
152
162
  }
153
163
  case "tool-run_skill_script": {
154
164
  const output = part.state === "output-available" ? part.output : void 0;
155
- const text = output === void 0 ? void 0 : typeof output === "string" ? output : JSON.stringify(output, null, 2);
156
165
  return /* @__PURE__ */ jsx(ActivityPanel, {
157
166
  label: part.input?.path ?? "script",
158
- text
167
+ children: output !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
168
+ result: output,
169
+ showSummary: false
170
+ }) : null
159
171
  });
160
172
  }
161
173
  }
@@ -166,11 +178,14 @@ rendering, not a client-side mirror of context state. */
166
178
  function ThinkChatSessionContextPanel({ part }) {
167
179
  if (part.state === "output-error") return /* @__PURE__ */ jsx(ActivityPanel, {
168
180
  label: getToolName(part),
169
- text: part.errorText,
181
+ text: executionErrorSummary(part.errorText),
170
182
  status: "error",
171
183
  error: true
172
184
  });
173
185
  if (part.state === "output-denied") return renderDeniedPanel(getToolName(part), part.approval.reason);
186
+ return /* @__PURE__ */ jsx(SessionContextResultPanel, { part });
187
+ }
188
+ function SessionContextResultPanel({ part }) {
174
189
  const output = part.state === "output-available" ? part.output : void 0;
175
190
  const outputIsError = isSessionContextToolFailure(part);
176
191
  switch (part.type) {
@@ -187,29 +202,37 @@ function ThinkChatSessionContextPanel({ part }) {
187
202
  case "tool-load_context":
188
203
  case "tool-unload_context": return /* @__PURE__ */ jsx(ActivityPanel, {
189
204
  label: `${part.input?.label ?? "context"} / ${part.input?.key ?? "entry"}`,
190
- text: output,
191
205
  status: outputIsError ? "error" : void 0,
192
- error: outputIsError
206
+ error: outputIsError,
207
+ children: output !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
208
+ result: output,
209
+ showSummary: false
210
+ }) : null
193
211
  });
194
- case "tool-search_context": return /* @__PURE__ */ jsx(ActivityPanel, {
195
- label: part.input?.query ?? "Context search",
196
- text: output,
197
- status: outputIsError ? "error" : part.input?.label,
198
- error: outputIsError
199
- });
200
- case "tool-session_search": return /* @__PURE__ */ jsx(ActivityPanel, {
201
- label: part.input?.query ?? "Conversation search",
202
- text: output,
203
- status: outputIsError ? "error" : void 0,
212
+ case "tool-search_context":
213
+ case "tool-session_search": return /* @__PURE__ */ jsx(SessionContextSearchPanel, {
214
+ part,
215
+ output,
204
216
  error: outputIsError
205
217
  });
206
218
  }
207
219
  }
220
+ function SessionContextSearchPanel({ part, output, error }) {
221
+ return /* @__PURE__ */ jsx(ActivityPanel, {
222
+ label: part.input?.query ?? (part.type === "tool-search_context" ? "Context search" : "Conversation search"),
223
+ status: error ? "error" : part.type === "tool-search_context" ? part.input?.label : void 0,
224
+ error,
225
+ children: output !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
226
+ result: output,
227
+ showSummary: false
228
+ }) : null
229
+ });
230
+ }
208
231
  function ThinkChatFetchPanel({ part }) {
209
232
  const label = part.input?.url ?? part.input?.path ?? "fetch";
210
233
  if (part.state === "output-error") return /* @__PURE__ */ jsx(ActivityPanel, {
211
234
  label,
212
- text: part.errorText,
235
+ text: executionErrorSummary(part.errorText),
213
236
  status: "error",
214
237
  error: true
215
238
  });
@@ -218,15 +241,18 @@ function ThinkChatFetchPanel({ part }) {
218
241
  if (!output) return /* @__PURE__ */ jsx(ActivityPanel, { label });
219
242
  if (!output.ok) return /* @__PURE__ */ jsx(ActivityPanel, {
220
243
  label: output.finalUrl ?? label,
221
- text: output.message,
244
+ text: executionErrorSummary(output.message),
222
245
  status: output.code,
223
246
  error: true
224
247
  });
225
- const body = output.body ?? (output.json !== void 0 ? JSON.stringify(output.json, null, 2) : output.path ? `saved to ${output.path}` : "");
248
+ const body = output.json ?? output.body ?? (output.path ? { savedTo: output.path } : void 0);
226
249
  return /* @__PURE__ */ jsx(ActivityPanel, {
227
250
  label: output.finalUrl,
228
- text: body || void 0,
229
- status: `${output.status} · ${output.bytes} bytes${output.truncated ? " (truncated)" : ""}`
251
+ status: `${output.status} · ${output.bytes} bytes${output.truncated ? " (truncated)" : ""}`,
252
+ children: body !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
253
+ result: body,
254
+ showSummary: false
255
+ }) : null
230
256
  });
231
257
  }
232
258
  function isBrowserLiveViewUrl(value) {
@@ -265,12 +291,6 @@ function findBrowserResultMedia(value, depth = 0) {
265
291
  }
266
292
  function ExecuteCodeView({ code, output, hideResult, isStreaming }) {
267
293
  const calls = output && "calls" in output ? output.calls : void 0;
268
- const sections = [
269
- output && "logs" in output && output.logs?.length ? output.logs.join("\n") : "",
270
- output?.status === "error" ? output.error : "",
271
- output?.status === "paused" && !calls?.length ? formatPendingActions(output.pending) : "",
272
- output?.status === "completed" && output.result !== void 0 && !hideResult ? typeof output.result === "string" ? output.result : JSON.stringify(output.result, null, 2) : ""
273
- ].filter(Boolean);
274
294
  return /* @__PURE__ */ jsxs(Fragment, { children: [
275
295
  code ? /* @__PURE__ */ jsx(CodeBlock, {
276
296
  surface: "plain",
@@ -282,7 +302,22 @@ function ExecuteCodeView({ code, output, hideResult, isStreaming }) {
282
302
  children: /* @__PURE__ */ jsx(CodeBlockContainer, { children: /* @__PURE__ */ jsx(CodeBlockContent, {}) })
283
303
  }) : null,
284
304
  calls?.length ? /* @__PURE__ */ jsx(ToolCallAudit, { calls }) : null,
285
- sections.length ? /* @__PURE__ */ jsx(ActivityOutput, { children: sections.join("\n\n") }) : null
305
+ output && "logs" in output && output.logs?.length ? /* @__PURE__ */ jsx(ExecutionResult, {
306
+ result: output.logs,
307
+ showSummary: false
308
+ }) : null,
309
+ output?.status === "error" ? /* @__PURE__ */ jsx(ActivityOutput, { children: executionErrorSummary(output.error) }) : null,
310
+ output?.status === "paused" && !calls?.length ? /* @__PURE__ */ jsx("ol", {
311
+ className: "think-chat-tool-panels__call-audit-list",
312
+ children: output.pending.map((action) => /* @__PURE__ */ jsxs("li", { children: [/* @__PURE__ */ jsx("span", { children: pendingActionLabel(action) }), action.args !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
313
+ result: action.args,
314
+ showSummary: false
315
+ }) : null] }, action.seq))
316
+ }) : null,
317
+ output?.status === "completed" && output.result !== void 0 && !hideResult ? /* @__PURE__ */ jsx(ExecutionResult, {
318
+ result: output.result,
319
+ showSummary: false
320
+ }) : null
286
321
  ] });
287
322
  }
288
323
  /** Durable connector calls emitted by Codemode 0.4.3. The ordered list keeps
@@ -300,36 +335,27 @@ function ToolCallAudit({ calls }) {
300
335
  className: "think-chat-tool-panels__call-audit-item",
301
336
  "data-state": call.state,
302
337
  children: [
303
- /* @__PURE__ */ jsx("code", {
338
+ /* @__PURE__ */ jsx("span", {
304
339
  className: "think-chat-tool-panels__call-audit-code",
305
- children: formatToolCall(call)
340
+ children: call.connector === "__step" ? call.method : `${call.connector}.${call.method}`
306
341
  }),
307
342
  /* @__PURE__ */ jsx("span", {
308
343
  className: "think-chat-tool-panels__call-audit-state",
309
344
  children: toolCallStateLabel(call)
310
345
  }),
311
- call.result !== void 0 ? /* @__PURE__ */ jsxs("code", {
312
- className: "think-chat-tool-panels__call-audit-result",
313
- children: [
314
- " ",
315
- "→ ",
316
- formatAuditValue(call.result)
317
- ]
346
+ call.args !== void 0 && call.args !== null ? /* @__PURE__ */ jsxs("details", { children: [/* @__PURE__ */ jsx("summary", { children: "Inputs" }), /* @__PURE__ */ jsx(ExecutionResult, {
347
+ result: call.args,
348
+ showSummary: false
349
+ })] }) : null,
350
+ call.result !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
351
+ result: call.result,
352
+ showSummary: false
318
353
  }) : null
319
354
  ]
320
355
  }, call.seq))
321
356
  })]
322
357
  });
323
358
  }
324
- function formatToolCall(call) {
325
- const target = call.connector === "__step" ? `codemode.step(${JSON.stringify(call.method)})` : `${call.connector}.${call.method}`;
326
- if (call.connector === "__step") return target;
327
- return `${target}(${call.args === void 0 ? "…" : formatAuditValue(call.args)})`;
328
- }
329
- function formatAuditValue(value) {
330
- const formatted = formatUnknownValue(value);
331
- return formatted.length > 240 ? `${formatted.slice(0, 239)}…` : formatted;
332
- }
333
359
  function isHumanWait(action) {
334
360
  return action.connector === "human" && action.method === "waitFor";
335
361
  }
@@ -339,11 +365,8 @@ function toolCallStateLabel(call) {
339
365
  const qualifiers = [call.requiresApproval && call.state !== "pending" && !humanWait ? "approval required" : "", call.ephemeral ? "re-executes on replay" : ""].filter(Boolean);
340
366
  return qualifiers.length ? `${state} · ${qualifiers.join(" · ")}` : state;
341
367
  }
342
- function formatPendingActions(pending) {
343
- return pending.map((action) => {
344
- const args = action.args === void 0 ? "" : JSON.stringify(action.args);
345
- return `${isHumanWait(action) ? "waiting for a human step" : "awaiting approval"}: ${action.connector}.${action.method}(${args})`;
346
- }).join("\n");
368
+ function pendingActionLabel(action) {
369
+ return `${isHumanWait(action) ? "waiting for a human step" : "awaiting approval"}: ${action.connector}.${action.method}`;
347
370
  }
348
371
  function executeStatusText(output) {
349
372
  if (!output) return void 0;
@@ -355,7 +378,7 @@ plus logs, result, and the paused pending-approval list. */
355
378
  function ThinkChatExecutePanel({ part }) {
356
379
  if (part.state === "output-error") return /* @__PURE__ */ jsx(ActivityPanel, {
357
380
  label: "Code",
358
- text: part.errorText,
381
+ text: executionErrorSummary(part.errorText),
359
382
  status: "error",
360
383
  error: true
361
384
  });
@@ -376,81 +399,87 @@ function ThinkChatBrowserPanel({ part }) {
376
399
  const [seenAt] = React.useState(() => Date.now());
377
400
  if (part.state === "output-error") return /* @__PURE__ */ jsx(ActivityPanel, {
378
401
  label: "Browser",
379
- text: part.errorText,
402
+ text: executionErrorSummary(part.errorText),
380
403
  status: "error",
381
404
  error: true
382
405
  });
383
406
  if (part.state === "output-denied") return renderDeniedPanel("Browser", part.approval.reason);
384
- if (part.type === "tool-browser_execute") {
385
- const output = part.state === "output-available" ? part.output : void 0;
386
- const code = part.input?.code ?? "";
387
- const media = output?.status === "completed" ? findBrowserResultMedia(output.result) : {};
388
- const hasMedia = Boolean(media.liveView || media.screenshot);
389
- const browserView = media.liveView ? /* @__PURE__ */ jsx(BrowserLiveView, {
390
- source: media.liveView,
391
- receivedAt: seenAt,
392
- fallback: media.screenshot ? /* @__PURE__ */ jsx("img", {
393
- src: media.screenshot,
394
- alt: "Last browser state",
395
- width: 16,
396
- height: 10
397
- }) : void 0
398
- }) : media.screenshot ? /* @__PURE__ */ jsx("img", {
399
- className: "think-chat-tool-panels__browser-screenshot",
400
- src: media.screenshot,
401
- alt: "Browser screenshot",
402
- width: 16,
403
- height: 10
404
- }) : null;
405
- const codeView = /* @__PURE__ */ jsx(ExecuteCodeView, {
406
- code,
407
- output,
408
- hideResult: hasMedia,
409
- isStreaming: part.state === "input-streaming"
410
- });
411
- return /* @__PURE__ */ jsx(ActivityPanel, {
412
- label: "Browser",
413
- status: executeStatusText(output),
414
- error: output?.status === "error",
415
- children: browserView && code ? /* @__PURE__ */ jsxs(Tabs.Root, {
416
- defaultValue: "browser",
417
- children: [
418
- /* @__PURE__ */ jsxs(Tabs.List, {
419
- variant: "line",
420
- children: [
421
- /* @__PURE__ */ jsx(Tabs.Tab, {
422
- value: "browser",
423
- children: "Preview"
424
- }),
425
- /* @__PURE__ */ jsx(Tabs.Tab, {
426
- value: "code",
427
- children: "Code"
428
- }),
429
- /* @__PURE__ */ jsx(Tabs.Indicator, {})
430
- ]
431
- }),
432
- /* @__PURE__ */ jsx(Tabs.Panel, {
433
- className: "think-chat-tool-panels__browser-panel",
434
- value: "browser",
435
- children: browserView
436
- }),
437
- /* @__PURE__ */ jsx(Tabs.Panel, {
438
- className: "think-chat-tool-panels__browser-panel",
439
- value: "code",
440
- children: codeView
441
- })
442
- ]
443
- }) : /* @__PURE__ */ jsxs(Fragment, { children: [browserView, codeView] })
444
- });
445
- }
407
+ if (part.type === "tool-browser_execute") return /* @__PURE__ */ jsx(ThinkChatBrowserExecutePanel, {
408
+ part,
409
+ seenAt
410
+ });
446
411
  const output = part.state === "output-available" ? part.output : void 0;
447
412
  const label = displayUrl(part.input?.url) || "page";
448
- const text = output === void 0 ? void 0 : typeof output === "string" ? output : Array.isArray(output) ? output.map((item) => typeof item === "string" ? item : JSON.stringify(item)).join("\n") : JSON.stringify(output, null, 2);
449
413
  const status = part.type === "tool-browser_links" && Array.isArray(output) ? `${output.length} links` : void 0;
450
414
  return /* @__PURE__ */ jsx(ActivityPanel, {
451
415
  label,
452
- text,
453
- status
416
+ status,
417
+ children: output !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
418
+ result: output,
419
+ showSummary: false
420
+ }) : null
421
+ });
422
+ }
423
+ function ThinkChatBrowserExecutePanel({ part, seenAt }) {
424
+ const output = part.state === "output-available" ? part.output : void 0;
425
+ const code = part.input?.code ?? "";
426
+ const media = output?.status === "completed" ? findBrowserResultMedia(output.result) : {};
427
+ const hasMedia = Boolean(media.liveView || media.screenshot);
428
+ const browserView = media.liveView ? /* @__PURE__ */ jsx(BrowserLiveView, {
429
+ source: media.liveView,
430
+ receivedAt: seenAt,
431
+ fallback: media.screenshot ? /* @__PURE__ */ jsx("img", {
432
+ src: media.screenshot,
433
+ alt: "Last browser state",
434
+ width: 16,
435
+ height: 10
436
+ }) : void 0
437
+ }) : media.screenshot ? /* @__PURE__ */ jsx("img", {
438
+ className: "think-chat-tool-panels__browser-screenshot",
439
+ src: media.screenshot,
440
+ alt: "Browser screenshot",
441
+ width: 16,
442
+ height: 10
443
+ }) : null;
444
+ const codeView = /* @__PURE__ */ jsx(ExecuteCodeView, {
445
+ code,
446
+ output,
447
+ hideResult: hasMedia,
448
+ isStreaming: part.state === "input-streaming"
449
+ });
450
+ return /* @__PURE__ */ jsx(ActivityPanel, {
451
+ label: "Browser",
452
+ status: executeStatusText(output),
453
+ error: output?.status === "error",
454
+ children: browserView && code ? /* @__PURE__ */ jsxs(Tabs.Root, {
455
+ defaultValue: "browser",
456
+ children: [
457
+ /* @__PURE__ */ jsxs(Tabs.List, {
458
+ variant: "line",
459
+ children: [
460
+ /* @__PURE__ */ jsx(Tabs.Tab, {
461
+ value: "browser",
462
+ children: "Preview"
463
+ }),
464
+ /* @__PURE__ */ jsx(Tabs.Tab, {
465
+ value: "code",
466
+ children: "Code"
467
+ }),
468
+ /* @__PURE__ */ jsx(Tabs.Indicator, {})
469
+ ]
470
+ }),
471
+ /* @__PURE__ */ jsx(Tabs.Panel, {
472
+ className: "think-chat-tool-panels__browser-panel",
473
+ value: "browser",
474
+ children: browserView
475
+ }),
476
+ /* @__PURE__ */ jsx(Tabs.Panel, {
477
+ className: "think-chat-tool-panels__browser-panel",
478
+ value: "code",
479
+ children: codeView
480
+ })
481
+ ]
482
+ }) : /* @__PURE__ */ jsxs(Fragment, { children: [browserView, codeView] })
454
483
  });
455
484
  }
456
485
  function ThinkChatShellPanel({ part }) {
@@ -1,17 +1,12 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { S as FileIcon, T as InfoIcon } from "../../icons-cuEtsgj9.js";
3
- import { Activity, ActivityContent, ActivityItemGroup, ActivityOutput, ActivityTrigger } from "../ai-sdk/Activity.js";
4
- import { o as formatUnknownValue } from "../../format-CWaZEp5o.js";
5
- import { EmptyState } from "../foundations/EmptyState.js";
6
2
  import { DescriptionList } from "../foundations/DescriptionList.js";
7
- import { formatThinkExecutionTimestamp, getThinkExecutionRunError, getThinkExecutionRunId, getThinkExecutionRunKindLabel, getThinkExecutionRunProgressedAt, getThinkExecutionRunProgressedLabel, getThinkExecutionRunTitle, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
3
+ import { EmptyState } from "../foundations/EmptyState.js";
4
+ import { t as ExecutionResult } from "../../ExecutionResult-BSZsUbrL.js";
5
+ import { formatThinkExecutionTimestamp, getThinkExecutionRunError, getThinkExecutionRunKindLabel, getThinkExecutionRunProgressedAt, getThinkExecutionRunProgressedLabel, getThinkExecutionRunTitle } from "./ThinkExecutionRun.js";
8
6
  import { ThinkExecutionStatus } from "./ThinkExecutionStatus.js";
9
7
  import "react";
10
8
  import { jsx, jsxs } from "react/jsx-runtime";
11
9
  //#region src/components/agents-sdk/ThinkExecutionDetail.tsx
12
- function formatJson(value) {
13
- return formatUnknownValue(value, 2);
14
- }
15
10
  /** Native Think submission or Agents Workflow detail, reusable outside the execution workbench. */
16
11
  function ThinkExecutionDetail({ className, emptyState = "Select a run to view its activity.", ref, run, ...props }) {
17
12
  if (!run) return /* @__PURE__ */ jsx("section", {
@@ -22,7 +17,6 @@ function ThinkExecutionDetail({ className, emptyState = "Select a run to view it
22
17
  ...props,
23
18
  children: /* @__PURE__ */ jsx(EmptyState, { description: emptyState })
24
19
  });
25
- const id = getThinkExecutionRunId(run);
26
20
  const progressedAt = getThinkExecutionRunProgressedAt(run);
27
21
  const error = getThinkExecutionRunError(run);
28
22
  return /* @__PURE__ */ jsxs("section", {
@@ -33,17 +27,13 @@ function ThinkExecutionDetail({ className, emptyState = "Select a run to view it
33
27
  children: [
34
28
  /* @__PURE__ */ jsxs("header", {
35
29
  className: "think-execution-detail__header",
36
- children: [
37
- /* @__PURE__ */ jsx("p", {
38
- className: "think-execution-detail__eyebrow",
39
- children: getThinkExecutionRunKindLabel(run)
40
- }),
41
- /* @__PURE__ */ jsxs("div", {
42
- className: "think-execution-detail__heading",
43
- children: [/* @__PURE__ */ jsx("h3", { children: getThinkExecutionRunTitle(run) }), /* @__PURE__ */ jsx(ThinkExecutionStatus, { run })]
44
- }),
45
- !isThinkSubmissionRun(run) ? /* @__PURE__ */ jsx("code", { children: id }) : null
46
- ]
30
+ children: [/* @__PURE__ */ jsx("p", {
31
+ className: "think-execution-detail__eyebrow",
32
+ children: getThinkExecutionRunKindLabel(run)
33
+ }), /* @__PURE__ */ jsxs("div", {
34
+ className: "think-execution-detail__heading",
35
+ children: [/* @__PURE__ */ jsx("h3", { children: getThinkExecutionRunTitle(run) }), /* @__PURE__ */ jsx(ThinkExecutionStatus, { run })]
36
+ })]
47
37
  }),
48
38
  error ? /* @__PURE__ */ jsx("p", {
49
39
  className: "think-execution-detail__error",
@@ -59,21 +49,10 @@ function ThinkExecutionDetail({ className, emptyState = "Select a run to view it
59
49
  run.completedAt ? /* @__PURE__ */ jsxs(DescriptionList.Item, { children: [/* @__PURE__ */ jsx(DescriptionList.Term, { children: "Finished" }), /* @__PURE__ */ jsx(DescriptionList.Details, { children: formatThinkExecutionTimestamp(run.completedAt) })] }) : null
60
50
  ]
61
51
  }),
62
- /* @__PURE__ */ jsxs(Activity, {
63
- defaultOpen: true,
64
- children: [/* @__PURE__ */ jsx(ActivityTrigger, {
65
- icon: /* @__PURE__ */ jsx(FileIcon, {}),
66
- action: "Record"
67
- }), /* @__PURE__ */ jsxs(ActivityContent, { children: [run.metadata ? /* @__PURE__ */ jsx(ActivityItemGroup, {
68
- icon: /* @__PURE__ */ jsx(InfoIcon, {}),
69
- action: "Metadata",
70
- children: /* @__PURE__ */ jsx(ActivityOutput, { children: formatJson(run.metadata) })
71
- }) : null, /* @__PURE__ */ jsx(ActivityItemGroup, {
72
- icon: /* @__PURE__ */ jsx(FileIcon, {}),
73
- action: "Raw record",
74
- children: /* @__PURE__ */ jsx(ActivityOutput, { children: formatJson(run) })
75
- })] })]
76
- })
52
+ run.metadata ? /* @__PURE__ */ jsx(ExecutionResult, {
53
+ result: run.metadata,
54
+ showSummary: false
55
+ }) : null
77
56
  ]
78
57
  });
79
58
  }
@@ -1,5 +1,5 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { K as SpinnerIcon, L as PauseIcon, T as InfoIcon, d as CheckIcon, nt as XIcon } from "../../icons-cuEtsgj9.js";
2
+ import { K as SpinnerIcon, L as PauseIcon, T as InfoIcon, d as CheckIcon, rt as XIcon } from "../../icons-DvlrWt54.js";
3
3
  import { Tooltip } from "../foundations/Tooltip.js";
4
4
  import { formatThinkExecutionRunProgress, formatThinkExecutionStatus, getThinkExecutionRunKindLabel, getThinkExecutionRunStatus, getThinkExecutionRunStatusTone, getThinkExecutionRunTitle } from "./ThinkExecutionRun.js";
5
5
  import "react";