@mcp-b/react-components 0.63.0 → 0.64.0
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/{AgentActivity-DptCj8XQ.d.ts → AgentActivity-Cngwkalq.d.ts} +2 -9
- package/dist/{AgentChatQueue-DG2rGyCI.d.ts → AgentChatQueue-C1TDnVAn.d.ts} +1 -1
- package/dist/{AppTopBar-DwzydmXu.d.ts → AppTopBar-CM57rJID.d.ts} +7 -3
- package/dist/ChatGptSignInScreen-CmbBe09G.js +298 -0
- package/dist/{CodeBlock-BTkag9ms.d.ts → CodeBlock-BDupVceI.d.ts} +1 -1
- package/dist/CodeBlock-dt0L8md0.js +892 -0
- package/dist/{EmployeeChrome--PWdtg4B.d.ts → EmployeeChrome-kegSASjC.d.ts} +6 -5
- package/dist/{ExecutionBoard-DvPGdn4F.d.ts → ExecutionBoard-DBj1Aiva.d.ts} +8 -1
- package/dist/ExecutionResult-CXnGcmM4.js +671 -0
- package/dist/FileTree-CjfzpN6X.js +968 -0
- package/dist/{IconButton-FWsa9562.d.ts → IconButton-DXtGMkMI.d.ts} +7 -5
- package/dist/ManagerOffice-T79utm-P.js +2469 -0
- package/dist/{Menu-FA4P6KrA.d.ts → Menu-DajfQr3T.d.ts} +4 -2
- package/dist/{Message-BUedRDN1.d.ts → Message-BLyl6kWe.d.ts} +2 -2
- package/dist/{PromptInput-Dbe6WgWA.d.ts → PromptInput-DEwFMj6f.d.ts} +5 -8
- package/dist/{ResponsiveSidebarShell-DSAMNDdg.d.ts → ResponsiveSidebarShell-RwvmlMHS.d.ts} +23 -13
- package/dist/SetupChecklist-DwscX3Bw.js +230 -0
- package/dist/{Tabs-BYs-RgJ7.d.ts → Tabs-tyvVX3nc.d.ts} +29 -10
- package/dist/{ThinkChatActivity-zZaSsbC-.d.ts → ThinkChatActivity-C7xnO0Fx.d.ts} +1 -1
- package/dist/{ThinkChatActivitySummary-8MO1VjAJ.d.ts → ThinkChatActivitySummary-Dh4Av7x_.d.ts} +1 -1
- package/dist/{ThinkExecutionRun-DJ2TFDmZ.d.ts → ThinkExecutionRun-QzZVWX75.d.ts} +11 -3
- package/dist/ThinkSchedule-D4Ulsa0-.d.ts +53 -0
- package/dist/{ThinkThreadPicker-BmIZmpae.d.ts → ThinkThreadPicker-O-i2KloZ.d.ts} +1 -1
- package/dist/{Workspace-42LA9Zrb.d.ts → Workspace-B9nuTfIi.d.ts} +1 -1
- package/dist/{WorkspaceAutomation-yDZorXla.d.ts → WorkspaceAutomation-C0fghGLi.d.ts} +3 -3
- package/dist/WorkspaceBrowser-oBJv-Dac.js +985 -0
- package/dist/{WorkspaceConcept-BjrgGE1w.d.ts → WorkspaceConcept-D46cYerS.d.ts} +1 -1
- package/dist/{WorkspaceFile-nK2n0i4S.d.ts → WorkspaceFile-BJC6vlp_.d.ts} +15 -4
- package/dist/WorkspaceFileCommands-SNIjRgtU.d.ts +145 -0
- package/dist/WorkspaceFileTransfer-BRD22nW-.d.ts +159 -0
- package/dist/WorkspaceLink-DDkj-Tq5.js +407 -0
- package/dist/{WorkspaceMessageResponse-BZ-_I18b.js → WorkspaceMessageResponse-CXGOQgpo.js} +111 -24
- package/dist/{agent-tool-runs-DsOp_X2y.js → agent-tool-runs-BXKdcxl8.js} +55 -28
- package/dist/app-bar-outlet-BEIGl9iF.js +35 -0
- package/{LICENSE → dist/assets/desktop/LICENSE.fluent.txt} +1 -1
- package/dist/assets/desktop/LICENSE.mac-icons.txt +7 -0
- package/dist/assets/desktop/README.md +43 -0
- package/dist/assets/desktop/automations.svg +19 -0
- package/dist/assets/desktop/document.svg +24 -0
- package/dist/assets/desktop/folder.png +0 -0
- package/dist/assets/desktop/mail.svg +31 -0
- package/dist/assets/desktop/settings.svg +9 -0
- package/dist/assets/desktop/trash-full.svg +23 -0
- package/dist/assets/desktop/trash.svg +19 -0
- package/dist/attachment-preview-DeRqFjdz.js +68 -0
- package/dist/attempt-CySQHJsF.js +21 -0
- package/dist/command-search-1fjmCBBo.js +34 -0
- package/dist/components/agents-sdk/AIProviderDialog.js +757 -224
- package/dist/components/agents-sdk/AgentActivity.d.ts +2 -2
- package/dist/components/agents-sdk/AgentActivity.js +78 -31
- package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
- package/dist/components/agents-sdk/AgentChat.js +1113 -386
- package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
- package/dist/components/agents-sdk/AgentChatQueue.js +290 -173
- package/dist/components/agents-sdk/AgentComputer.d.ts +270 -0
- package/dist/components/agents-sdk/AgentComputer.js +8045 -0
- package/dist/components/agents-sdk/AgentEvent.js +164 -21
- package/dist/components/agents-sdk/AgentScreenSwitcher.d.ts +46 -0
- package/dist/components/agents-sdk/AgentScreenSwitcher.js +409 -0
- package/dist/components/agents-sdk/AgentToolRunsContext.js +139 -41
- package/dist/components/agents-sdk/BrowserLiveScreen.js +860 -551
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +1 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +244 -88
- package/dist/components/agents-sdk/BrowserReplay.js +298 -133
- package/dist/components/agents-sdk/BrowserRunPanel.d.ts +57 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +979 -129
- package/dist/components/agents-sdk/DiscordConnectionDialog.js +104 -57
- package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeApp.js +108 -46
- package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +500 -99
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChrome.js +1375 -557
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
- package/dist/components/agents-sdk/EmployeeSchedules.js +281 -64
- package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
- package/dist/components/agents-sdk/EmployeeStartScreen.js +185 -52
- package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
- package/dist/components/agents-sdk/ExecutionBoard.js +1661 -462
- package/dist/components/agents-sdk/ManagerAccountActions.js +142 -35
- package/dist/components/agents-sdk/ManagerOffice.d.ts +15 -8
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +551 -185
- package/dist/components/agents-sdk/McpConnectionRequest.js +332 -117
- package/dist/components/agents-sdk/McpConnectorForm.js +320 -100
- package/dist/components/agents-sdk/McpPluginCatalog.js +697 -249
- package/dist/components/agents-sdk/McpServerIcon.js +57 -14
- package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
- package/dist/components/agents-sdk/McpServerPicker.js +542 -158
- package/dist/components/agents-sdk/ModelSelector.js +1151 -253
- package/dist/components/agents-sdk/PromptInputApproval.js +115 -27
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +33 -46
- package/dist/components/agents-sdk/SlackConnectionDialog.js +38 -14
- package/dist/components/agents-sdk/SubagentRunIndicator.js +118 -25
- package/dist/components/agents-sdk/SubagentRunLanes.js +291 -107
- package/dist/components/agents-sdk/SubagentRunPanel.js +357 -129
- package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
- package/dist/components/agents-sdk/ThinkChat.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkChat.js +321 -132
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +306 -100
- package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.js +15 -9
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +1386 -404
- package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +219 -45
- package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkExecutionRun.js +19 -11
- package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +224 -37
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -5
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +505 -124
- package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
- package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +71 -26
- package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkSchedule.js +124 -1
- package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +3 -3
- package/dist/components/agents-sdk/ThinkScheduleActions.js +363 -132
- package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.js +249 -116
- package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkScheduleDetail.js +311 -90
- package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
- package/dist/components/agents-sdk/ThinkScheduleForm.js +1318 -475
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +434 -214
- package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +30 -13
- package/dist/components/agents-sdk/WorkbenchBack.js +66 -20
- package/dist/components/agents-sdk/Workspace.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.js +491 -166
- package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomation.js +1492 -415
- package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1316 -525
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +72 -2
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -94
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +619 -178
- package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +45 -0
- package/dist/components/agents-sdk/WorkspaceDesktop.js +240 -0
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +52 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.js +267 -85
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceFile.js +30 -9
- package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceFileCommands.js +890 -0
- package/dist/components/agents-sdk/WorkspaceFileDetails.d.ts +29 -0
- package/dist/components/agents-sdk/WorkspaceFileDetails.js +271 -0
- package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceFileTransfer.js +505 -0
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +18 -3
- package/dist/components/agents-sdk/WorkspaceFileView.js +866 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +71 -26
- package/dist/components/agents-sdk/WorkspaceLink.js +2 -2
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceLive.js +126 -73
- package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +63 -0
- package/dist/components/agents-sdk/WorkspaceLocalFolder.js +455 -0
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +118 -58
- package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +90 -54
- package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspacePerson.js +172 -41
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceProject.js +175 -41
- package/dist/components/ai-sdk/Activity.js +768 -192
- package/dist/components/ai-sdk/AgentAttention.js +286 -58
- package/dist/components/ai-sdk/AgentChatMessageEditor.js +193 -68
- package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.js +368 -80
- package/dist/components/ai-sdk/AgentChatTurnError.js +75 -25
- package/dist/components/ai-sdk/AgentMessageParts.js +0 -1
- package/dist/components/ai-sdk/Approval.js +574 -172
- package/dist/components/ai-sdk/Artifact.d.ts +1 -1
- package/dist/components/ai-sdk/Artifact.js +535 -128
- package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +404 -80
- package/dist/components/ai-sdk/Checkpoint.js +229 -45
- package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/ComposerLink.js +216 -48
- package/dist/components/ai-sdk/ConnectedAppCards.js +229 -52
- package/dist/components/ai-sdk/Context.js +737 -178
- package/dist/components/ai-sdk/Conversation.d.ts +1 -1
- package/dist/components/ai-sdk/Conversation.js +305 -68
- package/dist/components/ai-sdk/ExpansionState.js +74 -15
- package/dist/components/ai-sdk/Goal.js +435 -116
- package/dist/components/ai-sdk/InlineCitation.js +313 -76
- package/dist/components/ai-sdk/MediaPreviewCard.js +451 -135
- package/dist/components/ai-sdk/Message.d.ts +1 -1
- package/dist/components/ai-sdk/Message.js +1010 -195
- package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
- package/dist/components/ai-sdk/MessageScroller.js +264 -46
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +6 -6
- package/dist/components/ai-sdk/Plan.js +639 -128
- package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
- package/dist/components/ai-sdk/PromptInput.js +2735 -794
- package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +1 -3
- package/dist/components/ai-sdk/PromptInputComposerEditor.js +188 -83
- package/dist/components/ai-sdk/Queue.js +792 -154
- package/dist/components/ai-sdk/Reasoning.js +268 -69
- package/dist/components/ai-sdk/Sources.js +226 -63
- package/dist/components/ai-sdk/Task.js +294 -71
- package/dist/components/ai-sdk/ToolApproval.js +126 -26
- package/dist/components/ai-sdk/ToolInvocation.js +112 -22
- package/dist/components/extension/ChatGptSignInScreen.js +1 -82
- package/dist/components/extension/CodexModelSelector.d.ts +1 -1
- package/dist/components/extension/CodexModelSelector.js +467 -146
- package/dist/components/extension/ConversationTabPicker.d.ts +1 -1
- package/dist/components/extension/ConversationTabPicker.js +254 -76
- package/dist/components/extension/FirstRunSetup.d.ts +61 -35
- package/dist/components/extension/FirstRunSetup.js +3834 -1012
- package/dist/components/foundations/Accordion.js +186 -41
- package/dist/components/foundations/AlertDialog.js +425 -97
- package/dist/components/foundations/AppIcon.d.ts +13 -13
- package/dist/components/foundations/AppIcon.js +183 -34
- package/dist/components/foundations/Autocomplete.js +408 -89
- package/dist/components/foundations/Avatar.d.ts +100 -2
- package/dist/components/foundations/Avatar.js +204 -44
- package/dist/components/foundations/Button.js +64 -13
- package/dist/components/foundations/Card.js +357 -63
- package/dist/components/foundations/Checkbox.js +82 -17
- package/dist/components/foundations/CheckboxGroup.js +266 -58
- package/dist/components/foundations/Collapsible.d.ts +2 -1
- package/dist/components/foundations/Collapsible.js +129 -26
- package/dist/components/foundations/Combobox.js +408 -89
- package/dist/components/foundations/ContextMenu.d.ts +2 -2
- package/dist/components/foundations/ContextMenu.js +591 -117
- package/dist/components/foundations/DescriptionList.js +159 -28
- package/dist/components/foundations/Dialog.js +373 -89
- package/dist/components/foundations/EmptyState.js +86 -23
- package/dist/components/foundations/Favicon.d.ts +17 -0
- package/dist/components/foundations/Favicon.js +62 -0
- package/dist/components/foundations/Field.js +525 -108
- package/dist/components/foundations/Fieldset.js +115 -23
- package/dist/components/foundations/Form.js +38 -9
- package/dist/components/foundations/FormattedDate.d.ts +19 -5
- package/dist/components/foundations/FormattedDate.js +82 -12
- package/dist/components/foundations/IconButton.d.ts +1 -1
- package/dist/components/foundations/IconButton.js +114 -17
- package/dist/components/foundations/Input.js +38 -9
- package/dist/components/foundations/Kbd.js +55 -10
- package/dist/components/foundations/Label.js +56 -12
- package/dist/components/foundations/LinkButton.js +67 -15
- package/dist/components/foundations/Marker.js +138 -29
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menu.js +634 -136
- package/dist/components/foundations/Menubar.d.ts +2 -2
- package/dist/components/foundations/Menubar.js +685 -130
- package/dist/components/foundations/Meter.js +186 -41
- package/dist/components/foundations/NavigationMenu.js +426 -95
- package/dist/components/foundations/NumberField.js +223 -49
- package/dist/components/foundations/Popover.js +398 -88
- package/dist/components/foundations/PreviewCard.js +234 -53
- package/dist/components/foundations/Progress.js +117 -25
- package/dist/components/foundations/RadioGroup.d.ts +13 -5
- package/dist/components/foundations/RadioGroup.js +132 -25
- package/dist/components/foundations/ScrollArea.js +230 -51
- package/dist/components/foundations/SearchField.d.ts +8 -3
- package/dist/components/foundations/SearchField.js +129 -28
- package/dist/components/foundations/Select.js +648 -145
- package/dist/components/foundations/Separator.js +61 -12
- package/dist/components/foundations/Slider.js +260 -57
- package/dist/components/foundations/Stepper.d.ts +1 -1
- package/dist/components/foundations/Stepper.js +561 -127
- package/dist/components/foundations/Switch.js +82 -18
- package/dist/components/foundations/Tabs.d.ts +2 -2
- package/dist/components/foundations/Tabs.js +282 -53
- package/dist/components/foundations/Textarea.js +43 -9
- package/dist/components/foundations/ThemeProvider.js +138 -52
- package/dist/components/foundations/Toast.d.ts +10 -2
- package/dist/components/foundations/Toast.js +322 -75
- package/dist/components/foundations/Toggle.d.ts +5 -2
- package/dist/components/foundations/Toggle.js +51 -10
- package/dist/components/foundations/ToggleGroup.d.ts +3 -3
- package/dist/components/foundations/ToggleGroup.js +215 -59
- package/dist/components/foundations/Toolbar.js +249 -61
- package/dist/components/foundations/Tooltip.d.ts +3 -3
- package/dist/components/foundations/Tooltip.js +311 -55
- package/dist/components/foundations/TransitionSurface.js +43 -9
- package/dist/components/foundations/icons.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
- package/dist/components/general-purpose/ActionGuide.js +290 -64
- package/dist/components/general-purpose/AppFrame.js +72 -14
- package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
- package/dist/components/general-purpose/AppTopBar.js +349 -60
- package/dist/components/general-purpose/BrandLoading.js +37 -9
- package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
- package/dist/components/general-purpose/CommandPalette.js +271 -0
- package/dist/components/general-purpose/Commit.d.ts +1 -1
- package/dist/components/general-purpose/Commit.js +937 -167
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
- package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
- package/dist/components/general-purpose/FileTree.d.ts +20 -7
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/ListDetail.d.ts +84 -0
- package/dist/components/general-purpose/ListDetail.js +423 -0
- package/dist/components/general-purpose/NotificationPrompt.js +20 -11
- package/dist/components/general-purpose/PricingBillingToggle.js +33 -6
- package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
- package/dist/components/general-purpose/PricingFAQ.js +53 -12
- package/dist/components/general-purpose/PricingPage.js +376 -139
- package/dist/components/general-purpose/PricingPlanCard.js +209 -84
- package/dist/components/general-purpose/PricingUsageCalculator.js +231 -81
- package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
- package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
- package/dist/components/general-purpose/ScreenStack.js +427 -0
- package/dist/components/general-purpose/SettingsFormDialog.js +235 -77
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/StatusScreen.js +82 -24
- package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
- package/dist/components/general-purpose/SwipeActions.js +357 -0
- package/dist/components/general-purpose/Terminal.d.ts +22 -48
- package/dist/components/general-purpose/Terminal.js +320 -174
- package/dist/components/general-purpose/TestResults.js +975 -196
- package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
- package/dist/components/general-purpose/ThemeModeControl.js +66 -23
- package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
- package/dist/components/general-purpose/WallpaperPicker.js +180 -0
- package/dist/components/general-purpose/WebPreview.d.ts +5 -7
- package/dist/components/general-purpose/WebPreview.js +770 -203
- package/dist/components/nanites/AgentConnection.js +323 -84
- package/dist/components/nanites/AgentToolDetail.js +233 -53
- package/dist/components/nanites/GithubMotionMark.js +37 -9
- package/dist/components/nanites/NaniteScene.js +535 -323
- package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
- package/dist/container-width-C43ccJ84.js +17 -0
- package/dist/context-Ddsp8HgD.js +43 -0
- package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
- package/dist/copy-button-DWBVJR6D.js +118 -0
- package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
- package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
- package/dist/icons-nLTnB9kd.js +470 -0
- package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
- package/dist/motion-CGM3i6lX.js +319 -0
- package/dist/motion-preferences-6qsDIDvH.js +13 -0
- package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
- package/dist/progress-ring-BO649JA9.js +79 -0
- package/dist/provider-logos-Ceu7iYFx.js +362 -0
- package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
- package/dist/styles/accessibility.css +26 -0
- package/dist/styles/accordion.css +0 -2
- package/dist/styles/activity.css +20 -12
- package/dist/styles/agent-attention.css +31 -10
- package/dist/styles/agent-chat.css +7 -6
- package/dist/styles/agent-computer-motion-reduction.css +118 -0
- package/dist/styles/agent-computer-motion.css +127 -0
- package/dist/styles/agent-computer-phone.css +942 -0
- package/dist/styles/agent-computer.css +1764 -0
- package/dist/styles/agent-connection.css +5 -5
- package/dist/styles/agent-screen-switcher.css +313 -0
- package/dist/styles/app-icon.css +34 -30
- package/dist/styles/app-top-bar.css +33 -18
- package/dist/styles/approval.css +3 -3
- package/dist/styles/artifact.css +1 -1
- package/dist/styles/attachment-preview.css +2 -4
- package/dist/styles/avatar.css +12 -14
- package/dist/styles/base-ui-motion.css +84 -18
- package/dist/styles/base-ui-motion.test.tsx +305 -0
- package/dist/styles/base.css +16 -12
- package/dist/styles/brand.test.ts +7 -20
- package/dist/styles/browser-control-overlay.css +1 -1
- package/dist/styles/browser-live-screen.css +2 -2
- package/dist/styles/browser-live-view.css +1 -1
- package/dist/styles/browser-replay.css +0 -8
- package/dist/styles/browser-run-panel.css +275 -37
- package/dist/styles/button.css +52 -9
- package/dist/styles/card.css +6 -5
- package/dist/styles/chain-of-thought.css +0 -10
- package/dist/styles/checkpoint.css +2 -2
- package/dist/styles/codex-model-selector.css +2 -2
- package/dist/styles/color-contrast.test.ts +18 -1
- package/dist/styles/command-palette.css +110 -0
- package/dist/styles/composer-link.css +11 -7
- package/dist/styles/composition-motion.css +3 -14
- package/dist/styles/context.css +2 -2
- package/dist/styles/conversation-tab-picker.css +7 -0
- package/dist/styles/conversation.css +8 -2
- package/dist/styles/dialog.css +2 -2
- package/dist/styles/employee-app.css +8 -2
- package/dist/styles/employee-chrome.css +4 -4
- package/dist/styles/execution-board.css +206 -114
- package/dist/styles/execution-result.css +2 -2
- package/dist/styles/field.css +187 -4
- package/dist/styles/file-tree.css +218 -40
- package/dist/styles/first-run-setup.css +914 -187
- package/dist/styles/github-motion-mark.css +0 -8
- package/dist/styles/index.css +145 -133
- package/dist/styles/inline-citation.css +5 -4
- package/dist/styles/list-detail.css +57 -0
- package/dist/styles/manager-office.css +6 -8
- package/dist/styles/manager-work.css +4 -2
- package/dist/styles/mcp-plugin-catalog.css +2 -2
- package/dist/styles/mcp-server-picker.css +3 -6
- package/dist/styles/media-preview-card.css +2 -2
- package/dist/styles/menu.css +0 -9
- package/dist/styles/menubar.css +18 -6
- package/dist/styles/message-scroller.css +47 -9
- package/dist/styles/message.css +3 -3
- package/dist/styles/model-selector.css +1 -1
- package/dist/styles/motion-reduction.css +39 -6
- package/dist/styles/pricing-page.css +1 -1
- package/dist/styles/prompt-input.css +29 -29
- package/dist/styles/queue.css +1 -1
- package/dist/styles/recipes.css +212 -28
- package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
- package/dist/styles/responsive-sidebar-shell.css +40 -43
- package/dist/styles/screen-stack.css +123 -0
- package/dist/styles/search-field.css +80 -3
- package/dist/styles/stepper.css +0 -10
- package/dist/styles/streamdown.css +2 -2
- package/dist/styles/subagent-run.css +9 -5
- package/dist/styles/swipe-actions.css +158 -0
- package/dist/styles/tabs.css +80 -23
- package/dist/styles/task.css +7 -1
- package/dist/styles/terminal.css +66 -78
- package/dist/styles/test-results.css +1 -19
- package/dist/styles/textarea.css +2 -1
- package/dist/styles/theme-mode-control.css +154 -26
- package/dist/styles/think-chat-tool-panels.css +1 -1
- package/dist/styles/think-execution-workbench.css +0 -9
- package/dist/styles/think-full-app.css +7 -1
- package/dist/styles/think-schedule.css +81 -54
- package/dist/styles/think-thread-picker.css +28 -37
- package/dist/styles/toast.css +11 -0
- package/dist/styles/toggle-group.css +0 -10
- package/dist/styles/toggle.css +13 -0
- package/dist/styles/tooltip.css +12 -0
- package/dist/styles/transition-surface.css +1 -0
- package/dist/styles/wallpaper-picker.css +224 -0
- package/dist/styles/web-preview.css +47 -18
- package/dist/styles/workspace-automation.css +116 -17
- package/dist/styles/workspace-concepts.css +1 -1
- package/dist/styles/workspace-desktop.css +124 -0
- package/dist/styles/workspace-entity-card.css +3 -1
- package/dist/styles/workspace-explorer.css +499 -5
- package/dist/utils/brand-marks.d.ts +13 -0
- package/dist/utils/brand-marks.js +14 -0
- package/dist/utils/desktop-artwork.d.ts +17 -0
- package/dist/utils/desktop-artwork.js +18 -0
- package/dist/utils/favicon.d.ts +6 -2
- package/dist/utils/favicon.js +16 -4
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/workspace-assets-DdtnBDU3.js +213 -0
- package/dist/{workspace-concept-panel-C_oYhPSx.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
- package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
- package/dist/workspace-delete-BOY6CMBf.js +183 -0
- package/dist/workspace-drag-B6hMXUNt.js +304 -0
- package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
- package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
- package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
- package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
- package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
- package/package.json +9 -3
- package/dist/Avatar-t1YRzdwB.d.ts +0 -101
- package/dist/CodeBlock-DYQdZUH6.js +0 -318
- package/dist/ExecutionResult-2fBkpIGN.js +0 -279
- package/dist/FileTree-CDLOD643.js +0 -323
- package/dist/ManagerOffice-CvVSHnOM.js +0 -1129
- package/dist/SetupChecklist-B-iEta9v.js +0 -78
- package/dist/ThinkSchedule-DPoOYWTQ.d.ts +0 -34
- package/dist/WorkspaceFileView-DwIkehSM.js +0 -783
- package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
- package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
- package/dist/attachment-preview-1CXJvrmb.js +0 -25
- package/dist/chatgpt-sign-in-button-D8AT6x4c.js +0 -32
- package/dist/connected-app-drafts-DtA2fBK5.js +0 -283
- package/dist/copy-button-DbR932tF.js +0 -45
- package/dist/icons-GoybMAB2.js +0 -141
- package/dist/progress-ring-L2bbF0ji.js +0 -40
- package/dist/provider-logos-DWYY8wNz.js +0 -99
- package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
- package/dist/workspace-assets-F3r6XltC.js +0 -107
- package/dist/workspace-concept-panel-D8oEvR0n.js +0 -66
- package/dist/workspace-delete-CQvv1eDE.js +0 -81
- package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { ActivityOutput, ActivityPanel } from "../ai-sdk/Activity.js";
|
|
2
2
|
import { ToolInvocationDetails } from "../ai-sdk/ToolInvocation.js";
|
|
3
3
|
import { Tabs } from "../foundations/Tabs.js";
|
|
4
|
+
import { i as workspaceBasename } from "../../workspace-path-TZggP-u4.js";
|
|
4
5
|
import { BrowserLiveView } from "./BrowserLiveView.js";
|
|
5
|
-
import { i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "../../CodeBlock-
|
|
6
|
+
import { i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "../../CodeBlock-dt0L8md0.js";
|
|
6
7
|
import { inferWorkspaceLanguage } from "./WorkspaceFile.js";
|
|
7
8
|
import { displayUrl, isSessionContextToolFailure, readFollowUpReceipt, thinkToolOutcome } from "./ThinkChatToolParts.js";
|
|
8
9
|
import { n as executionErrorSummary } from "../../execution-result-DAuW4VWv.js";
|
|
9
|
-
import { t as WorkspaceFileLink } from "../../WorkspaceLink-
|
|
10
|
-
import { t as ExecutionResult } from "../../ExecutionResult-
|
|
10
|
+
import { t as WorkspaceFileLink } from "../../WorkspaceLink-DDkj-Tq5.js";
|
|
11
|
+
import { t as ExecutionResult } from "../../ExecutionResult-CXnGcmM4.js";
|
|
11
12
|
import { formatThinkExecutionShortTimestamp } from "./ThinkExecutionRun.js";
|
|
13
|
+
import { c } from "react/compiler-runtime";
|
|
12
14
|
import * as React from "react";
|
|
13
15
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
16
|
import { getToolName } from "ai";
|
|
@@ -36,48 +38,158 @@ function prefixLines(text, prefix) {
|
|
|
36
38
|
show the file with line numbers, edit shows a mini diff, list/find/grep
|
|
37
39
|
show their result lists, bash gets the shell panel. Everything is typed by
|
|
38
40
|
the upstream tool contract. */
|
|
39
|
-
function ThinkChatWorkspacePanel(
|
|
40
|
-
|
|
41
|
-
const
|
|
41
|
+
function ThinkChatWorkspacePanel(t0) {
|
|
42
|
+
const $ = c(16);
|
|
43
|
+
const { part } = t0;
|
|
44
|
+
if (part.type === "tool-bash") {
|
|
45
|
+
let t1;
|
|
46
|
+
if ($[0] !== part) {
|
|
47
|
+
t1 = /* @__PURE__ */ jsx(ThinkChatShellPanel, { part });
|
|
48
|
+
$[0] = part;
|
|
49
|
+
$[1] = t1;
|
|
50
|
+
} else t1 = $[1];
|
|
51
|
+
return t1;
|
|
52
|
+
}
|
|
53
|
+
let t1;
|
|
54
|
+
if ($[2] !== part) {
|
|
55
|
+
t1 = toolFailurePanel(part, getToolName(part));
|
|
56
|
+
$[2] = part;
|
|
57
|
+
$[3] = t1;
|
|
58
|
+
} else t1 = $[3];
|
|
59
|
+
const failure = t1;
|
|
42
60
|
if (failure) return failure;
|
|
43
61
|
switch (part.type) {
|
|
44
|
-
case "tool-read":
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
62
|
+
case "tool-read": {
|
|
63
|
+
let t2;
|
|
64
|
+
if ($[4] !== part) {
|
|
65
|
+
t2 = /* @__PURE__ */ jsx(WorkspaceReadPanel, { part });
|
|
66
|
+
$[4] = part;
|
|
67
|
+
$[5] = t2;
|
|
68
|
+
} else t2 = $[5];
|
|
69
|
+
return t2;
|
|
70
|
+
}
|
|
71
|
+
case "tool-write": {
|
|
72
|
+
let t2;
|
|
73
|
+
if ($[6] !== part) {
|
|
74
|
+
t2 = /* @__PURE__ */ jsx(WorkspaceWritePanel, { part });
|
|
75
|
+
$[6] = part;
|
|
76
|
+
$[7] = t2;
|
|
77
|
+
} else t2 = $[7];
|
|
78
|
+
return t2;
|
|
79
|
+
}
|
|
80
|
+
case "tool-edit": {
|
|
81
|
+
let t2;
|
|
82
|
+
if ($[8] !== part) {
|
|
83
|
+
t2 = /* @__PURE__ */ jsx(WorkspaceEditPanel, { part });
|
|
84
|
+
$[8] = part;
|
|
85
|
+
$[9] = t2;
|
|
86
|
+
} else t2 = $[9];
|
|
87
|
+
return t2;
|
|
88
|
+
}
|
|
89
|
+
case "tool-list": {
|
|
90
|
+
let t2;
|
|
91
|
+
if ($[10] !== part) {
|
|
92
|
+
t2 = /* @__PURE__ */ jsx(WorkspaceListPanel, { part });
|
|
93
|
+
$[10] = part;
|
|
94
|
+
$[11] = t2;
|
|
95
|
+
} else t2 = $[11];
|
|
96
|
+
return t2;
|
|
97
|
+
}
|
|
98
|
+
case "tool-find": {
|
|
99
|
+
let t2;
|
|
100
|
+
if ($[12] !== part) {
|
|
101
|
+
t2 = /* @__PURE__ */ jsx(WorkspaceFindPanel, { part });
|
|
102
|
+
$[12] = part;
|
|
103
|
+
$[13] = t2;
|
|
104
|
+
} else t2 = $[13];
|
|
105
|
+
return t2;
|
|
106
|
+
}
|
|
107
|
+
case "tool-grep": {
|
|
108
|
+
let t2;
|
|
109
|
+
if ($[14] !== part) {
|
|
110
|
+
t2 = /* @__PURE__ */ jsx(WorkspaceGrepPanel, { part });
|
|
111
|
+
$[14] = part;
|
|
112
|
+
$[15] = t2;
|
|
113
|
+
} else t2 = $[15];
|
|
114
|
+
return t2;
|
|
115
|
+
}
|
|
50
116
|
default: return null;
|
|
51
117
|
}
|
|
52
118
|
}
|
|
53
|
-
function WorkspaceReadPanel(
|
|
119
|
+
function WorkspaceReadPanel(t0) {
|
|
120
|
+
const $ = c(14);
|
|
121
|
+
const { part } = t0;
|
|
54
122
|
const label = part.input?.path ?? "file";
|
|
55
123
|
const output = part.state === "output-available" ? part.output : void 0;
|
|
56
|
-
if (output && "error" in output)
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
124
|
+
if (output && "error" in output) {
|
|
125
|
+
let t1;
|
|
126
|
+
if ($[0] !== output.error) {
|
|
127
|
+
t1 = executionErrorSummary(output.error);
|
|
128
|
+
$[0] = output.error;
|
|
129
|
+
$[1] = t1;
|
|
130
|
+
} else t1 = $[1];
|
|
131
|
+
let t2;
|
|
132
|
+
if ($[2] !== label || $[3] !== t1) {
|
|
133
|
+
t2 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
134
|
+
label,
|
|
135
|
+
text: t1,
|
|
136
|
+
status: "error",
|
|
137
|
+
error: true
|
|
138
|
+
});
|
|
139
|
+
$[2] = label;
|
|
140
|
+
$[3] = t1;
|
|
141
|
+
$[4] = t2;
|
|
142
|
+
} else t2 = $[4];
|
|
143
|
+
return t2;
|
|
144
|
+
}
|
|
145
|
+
if (output && "content" in output) {
|
|
146
|
+
const t1 = `${output.totalLines} lines`;
|
|
147
|
+
let t2;
|
|
148
|
+
if ($[5] !== label || $[6] !== output.content || $[7] !== t1) {
|
|
149
|
+
t2 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
150
|
+
label,
|
|
151
|
+
text: output.content,
|
|
152
|
+
status: t1
|
|
153
|
+
});
|
|
154
|
+
$[5] = label;
|
|
155
|
+
$[6] = output.content;
|
|
156
|
+
$[7] = t1;
|
|
157
|
+
$[8] = t2;
|
|
158
|
+
} else t2 = $[8];
|
|
159
|
+
return t2;
|
|
160
|
+
}
|
|
161
|
+
if (output) {
|
|
162
|
+
const t1 = `${output.name} · ${output.mediaType} · ${output.sizeBytes} bytes`;
|
|
163
|
+
let t2;
|
|
164
|
+
if ($[9] !== label || $[10] !== t1) {
|
|
165
|
+
t2 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
166
|
+
label,
|
|
167
|
+
text: t1
|
|
168
|
+
});
|
|
169
|
+
$[9] = label;
|
|
170
|
+
$[10] = t1;
|
|
171
|
+
$[11] = t2;
|
|
172
|
+
} else t2 = $[11];
|
|
173
|
+
return t2;
|
|
174
|
+
}
|
|
175
|
+
let t1;
|
|
176
|
+
if ($[12] !== label) {
|
|
177
|
+
t1 = /* @__PURE__ */ jsx(ActivityPanel, { label });
|
|
178
|
+
$[12] = label;
|
|
179
|
+
$[13] = t1;
|
|
180
|
+
} else t1 = $[13];
|
|
181
|
+
return t1;
|
|
72
182
|
}
|
|
73
|
-
function WorkspaceWritePanel(
|
|
183
|
+
function WorkspaceWritePanel(t0) {
|
|
184
|
+
const $ = c(8);
|
|
185
|
+
const { part } = t0;
|
|
74
186
|
const path = part.input?.path ?? "file";
|
|
75
187
|
const content = part.input?.content;
|
|
76
188
|
const output = part.state === "output-available" ? part.output : void 0;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
189
|
+
const t1 = output ? `${output.lines} lines written` : void 0;
|
|
190
|
+
let t2;
|
|
191
|
+
if ($[0] !== content || $[1] !== part.state || $[2] !== path) {
|
|
192
|
+
t2 = content !== void 0 ? /* @__PURE__ */ jsx(CodeBlock, {
|
|
81
193
|
surface: "plain",
|
|
82
194
|
wrap: true,
|
|
83
195
|
code: content,
|
|
@@ -85,18 +197,37 @@ function WorkspaceWritePanel({ part }) {
|
|
|
85
197
|
language: inferWorkspaceLanguage(path),
|
|
86
198
|
showLineNumbers: true,
|
|
87
199
|
children: /* @__PURE__ */ jsx(CodeBlockContainer, { children: /* @__PURE__ */ jsx(CodeBlockContent, {}) })
|
|
88
|
-
}) : null
|
|
89
|
-
|
|
200
|
+
}) : null;
|
|
201
|
+
$[0] = content;
|
|
202
|
+
$[1] = part.state;
|
|
203
|
+
$[2] = path;
|
|
204
|
+
$[3] = t2;
|
|
205
|
+
} else t2 = $[3];
|
|
206
|
+
let t3;
|
|
207
|
+
if ($[4] !== path || $[5] !== t1 || $[6] !== t2) {
|
|
208
|
+
t3 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
209
|
+
label: path,
|
|
210
|
+
status: t1,
|
|
211
|
+
children: t2
|
|
212
|
+
});
|
|
213
|
+
$[4] = path;
|
|
214
|
+
$[5] = t1;
|
|
215
|
+
$[6] = t2;
|
|
216
|
+
$[7] = t3;
|
|
217
|
+
} else t3 = $[7];
|
|
218
|
+
return t3;
|
|
90
219
|
}
|
|
91
|
-
function WorkspaceEditPanel(
|
|
220
|
+
function WorkspaceEditPanel(t0) {
|
|
221
|
+
const $ = c(7);
|
|
222
|
+
const { part } = t0;
|
|
92
223
|
const input = part.input;
|
|
93
224
|
const output = part.state === "output-available" ? part.output : void 0;
|
|
94
225
|
const status = !output ? void 0 : output.error ? output.error : output.created ? "created" : output.fuzzyMatch ? "replaced (fuzzy match)" : "replaced";
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
226
|
+
const t1 = input?.path ?? "file";
|
|
227
|
+
const t2 = Boolean(output?.error);
|
|
228
|
+
let t3;
|
|
229
|
+
if ($[0] !== input) {
|
|
230
|
+
t3 = input?.old_string !== void 0 && input.new_string !== void 0 ? /* @__PURE__ */ jsxs(ActivityOutput, { children: [
|
|
100
231
|
/* @__PURE__ */ jsx("span", {
|
|
101
232
|
className: "think-chat-tool-panels__diff-del",
|
|
102
233
|
children: prefixLines(input.old_string, "- ")
|
|
@@ -106,144 +237,413 @@ function WorkspaceEditPanel({ part }) {
|
|
|
106
237
|
className: "think-chat-tool-panels__diff-add",
|
|
107
238
|
children: prefixLines(input.new_string, "+ ")
|
|
108
239
|
})
|
|
109
|
-
] }) : null
|
|
110
|
-
|
|
240
|
+
] }) : null;
|
|
241
|
+
$[0] = input;
|
|
242
|
+
$[1] = t3;
|
|
243
|
+
} else t3 = $[1];
|
|
244
|
+
let t4;
|
|
245
|
+
if ($[2] !== status || $[3] !== t1 || $[4] !== t2 || $[5] !== t3) {
|
|
246
|
+
t4 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
247
|
+
label: t1,
|
|
248
|
+
status,
|
|
249
|
+
error: t2,
|
|
250
|
+
children: t3
|
|
251
|
+
});
|
|
252
|
+
$[2] = status;
|
|
253
|
+
$[3] = t1;
|
|
254
|
+
$[4] = t2;
|
|
255
|
+
$[5] = t3;
|
|
256
|
+
$[6] = t4;
|
|
257
|
+
} else t4 = $[6];
|
|
258
|
+
return t4;
|
|
111
259
|
}
|
|
112
|
-
function WorkspaceListPanel(
|
|
260
|
+
function WorkspaceListPanel(t0) {
|
|
261
|
+
const $ = c(6);
|
|
262
|
+
const { part } = t0;
|
|
113
263
|
const output = part.state === "output-available" ? part.output : void 0;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
264
|
+
const t1 = part.input?.path ?? "/";
|
|
265
|
+
let t2;
|
|
266
|
+
if ($[0] !== output?.entries) {
|
|
267
|
+
t2 = output?.entries.join("\n");
|
|
268
|
+
$[0] = output?.entries;
|
|
269
|
+
$[1] = t2;
|
|
270
|
+
} else t2 = $[1];
|
|
271
|
+
const t3 = output ? `${output.count} entries` : void 0;
|
|
272
|
+
let t4;
|
|
273
|
+
if ($[2] !== t1 || $[3] !== t2 || $[4] !== t3) {
|
|
274
|
+
t4 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
275
|
+
label: t1,
|
|
276
|
+
text: t2,
|
|
277
|
+
status: t3
|
|
278
|
+
});
|
|
279
|
+
$[2] = t1;
|
|
280
|
+
$[3] = t2;
|
|
281
|
+
$[4] = t3;
|
|
282
|
+
$[5] = t4;
|
|
283
|
+
} else t4 = $[5];
|
|
284
|
+
return t4;
|
|
119
285
|
}
|
|
120
|
-
function WorkspaceFindPanel(
|
|
286
|
+
function WorkspaceFindPanel(t0) {
|
|
287
|
+
const $ = c(11);
|
|
288
|
+
const { part } = t0;
|
|
121
289
|
const output = part.state === "output-available" ? part.output : void 0;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
290
|
+
let T0;
|
|
291
|
+
let count;
|
|
292
|
+
let t1;
|
|
293
|
+
let t2;
|
|
294
|
+
if ($[0] !== output || $[1] !== part.input?.pattern) {
|
|
295
|
+
const files = Array.isArray(output?.files) ? output.files.map(String) : [];
|
|
296
|
+
count = typeof output?.count === "number" ? output.count : files.length;
|
|
297
|
+
T0 = ActivityPanel;
|
|
298
|
+
t1 = part.input?.pattern ?? "files";
|
|
299
|
+
t2 = files.join("\n");
|
|
300
|
+
$[0] = output;
|
|
301
|
+
$[1] = part.input?.pattern;
|
|
302
|
+
$[2] = T0;
|
|
303
|
+
$[3] = count;
|
|
304
|
+
$[4] = t1;
|
|
305
|
+
$[5] = t2;
|
|
306
|
+
} else {
|
|
307
|
+
T0 = $[2];
|
|
308
|
+
count = $[3];
|
|
309
|
+
t1 = $[4];
|
|
310
|
+
t2 = $[5];
|
|
311
|
+
}
|
|
312
|
+
const t3 = output ? `${count} files${output.truncated ? " (truncated)" : ""}` : void 0;
|
|
313
|
+
let t4;
|
|
314
|
+
if ($[6] !== T0 || $[7] !== t1 || $[8] !== t2 || $[9] !== t3) {
|
|
315
|
+
t4 = /* @__PURE__ */ jsx(T0, {
|
|
316
|
+
label: t1,
|
|
317
|
+
text: t2,
|
|
318
|
+
status: t3
|
|
319
|
+
});
|
|
320
|
+
$[6] = T0;
|
|
321
|
+
$[7] = t1;
|
|
322
|
+
$[8] = t2;
|
|
323
|
+
$[9] = t3;
|
|
324
|
+
$[10] = t4;
|
|
325
|
+
} else t4 = $[10];
|
|
326
|
+
return t4;
|
|
129
327
|
}
|
|
130
|
-
function WorkspaceGrepPanel(
|
|
328
|
+
function WorkspaceGrepPanel(t0) {
|
|
329
|
+
const $ = c(8);
|
|
330
|
+
const { part } = t0;
|
|
131
331
|
const output = part.state === "output-available" ? part.output : void 0;
|
|
132
|
-
|
|
332
|
+
let t1;
|
|
333
|
+
if ($[0] !== output) {
|
|
334
|
+
t1 = Array.isArray(output?.matches) ? output.matches.map(_temp) : [];
|
|
335
|
+
$[0] = output;
|
|
336
|
+
$[1] = t1;
|
|
337
|
+
} else t1 = $[1];
|
|
338
|
+
const matches = t1;
|
|
133
339
|
const status = output && typeof output.totalMatches === "number" ? `${output.totalMatches} matches in ${String(output.filesWithMatches)} files` : void 0;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
340
|
+
const t2 = part.input?.query ?? "search";
|
|
341
|
+
let t3;
|
|
342
|
+
if ($[2] !== matches) {
|
|
343
|
+
t3 = matches.length ? /* @__PURE__ */ jsx(ExecutionResult, {
|
|
138
344
|
result: matches,
|
|
139
345
|
showSummary: false
|
|
140
|
-
}) : null
|
|
141
|
-
|
|
346
|
+
}) : null;
|
|
347
|
+
$[2] = matches;
|
|
348
|
+
$[3] = t3;
|
|
349
|
+
} else t3 = $[3];
|
|
350
|
+
let t4;
|
|
351
|
+
if ($[4] !== status || $[5] !== t2 || $[6] !== t3) {
|
|
352
|
+
t4 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
353
|
+
label: t2,
|
|
354
|
+
status,
|
|
355
|
+
children: t3
|
|
356
|
+
});
|
|
357
|
+
$[4] = status;
|
|
358
|
+
$[5] = t2;
|
|
359
|
+
$[6] = t3;
|
|
360
|
+
$[7] = t4;
|
|
361
|
+
} else t4 = $[7];
|
|
362
|
+
return t4;
|
|
363
|
+
}
|
|
364
|
+
function _temp(match) {
|
|
365
|
+
return match != null && typeof match === "object" && "context" in match ? match.context : match;
|
|
142
366
|
}
|
|
143
367
|
/** Skill panels show what the model actually received: the activated skill's
|
|
144
368
|
body, the resource text, or the script result. */
|
|
145
|
-
function ThinkChatSkillPanel(
|
|
146
|
-
const
|
|
369
|
+
function ThinkChatSkillPanel(t0) {
|
|
370
|
+
const $ = c(13);
|
|
371
|
+
const { part } = t0;
|
|
372
|
+
let t1;
|
|
373
|
+
if ($[0] !== part) {
|
|
374
|
+
t1 = toolFailurePanel(part, getToolName(part));
|
|
375
|
+
$[0] = part;
|
|
376
|
+
$[1] = t1;
|
|
377
|
+
} else t1 = $[1];
|
|
378
|
+
const failure = t1;
|
|
147
379
|
if (failure) return failure;
|
|
148
380
|
switch (part.type) {
|
|
149
381
|
case "tool-activate_skill": {
|
|
150
|
-
const
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
382
|
+
const output_1 = part.state === "output-available" ? part.output : void 0;
|
|
383
|
+
const t2 = part.input?.name ?? "skill";
|
|
384
|
+
let t3;
|
|
385
|
+
if ($[2] !== output_1 || $[3] !== t2) {
|
|
386
|
+
t3 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
387
|
+
label: t2,
|
|
388
|
+
text: output_1
|
|
389
|
+
});
|
|
390
|
+
$[2] = output_1;
|
|
391
|
+
$[3] = t2;
|
|
392
|
+
$[4] = t3;
|
|
393
|
+
} else t3 = $[4];
|
|
394
|
+
return t3;
|
|
155
395
|
}
|
|
156
396
|
case "tool-read_skill_resource": {
|
|
157
|
-
const
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
397
|
+
const output_0 = part.state === "output-available" ? part.output : void 0;
|
|
398
|
+
const t2 = part.input?.path ?? "resource";
|
|
399
|
+
let t3;
|
|
400
|
+
if ($[5] !== output_0 || $[6] !== t2) {
|
|
401
|
+
t3 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
402
|
+
label: t2,
|
|
403
|
+
text: output_0
|
|
404
|
+
});
|
|
405
|
+
$[5] = output_0;
|
|
406
|
+
$[6] = t2;
|
|
407
|
+
$[7] = t3;
|
|
408
|
+
} else t3 = $[7];
|
|
409
|
+
return t3;
|
|
162
410
|
}
|
|
163
411
|
case "tool-run_skill_script": {
|
|
164
412
|
const output = part.state === "output-available" ? part.output : void 0;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
413
|
+
const t2 = part.input?.path ?? "script";
|
|
414
|
+
let t3;
|
|
415
|
+
if ($[8] !== output) {
|
|
416
|
+
t3 = output !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
|
|
168
417
|
result: output,
|
|
169
418
|
showSummary: false
|
|
170
|
-
}) : null
|
|
171
|
-
|
|
419
|
+
}) : null;
|
|
420
|
+
$[8] = output;
|
|
421
|
+
$[9] = t3;
|
|
422
|
+
} else t3 = $[9];
|
|
423
|
+
let t4;
|
|
424
|
+
if ($[10] !== t2 || $[11] !== t3) {
|
|
425
|
+
t4 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
426
|
+
label: t2,
|
|
427
|
+
children: t3
|
|
428
|
+
});
|
|
429
|
+
$[10] = t2;
|
|
430
|
+
$[11] = t3;
|
|
431
|
+
$[12] = t4;
|
|
432
|
+
} else t4 = $[12];
|
|
433
|
+
return t4;
|
|
172
434
|
}
|
|
173
435
|
}
|
|
174
436
|
}
|
|
175
437
|
/** Session panels expose the durable context/search operation recorded in the
|
|
176
438
|
UIMessage. The session itself remains server-owned; this is transcript
|
|
177
439
|
rendering, not a client-side mirror of context state. */
|
|
178
|
-
function ThinkChatSessionContextPanel(
|
|
179
|
-
const
|
|
440
|
+
function ThinkChatSessionContextPanel(t0) {
|
|
441
|
+
const $ = c(4);
|
|
442
|
+
const { part } = t0;
|
|
443
|
+
let t1;
|
|
444
|
+
if ($[0] !== part) {
|
|
445
|
+
t1 = toolFailurePanel(part, getToolName(part));
|
|
446
|
+
$[0] = part;
|
|
447
|
+
$[1] = t1;
|
|
448
|
+
} else t1 = $[1];
|
|
449
|
+
const failure = t1;
|
|
180
450
|
if (failure) return failure;
|
|
181
|
-
|
|
451
|
+
let t2;
|
|
452
|
+
if ($[2] !== part) {
|
|
453
|
+
t2 = /* @__PURE__ */ jsx(SessionContextResultPanel, { part });
|
|
454
|
+
$[2] = part;
|
|
455
|
+
$[3] = t2;
|
|
456
|
+
} else t2 = $[3];
|
|
457
|
+
return t2;
|
|
182
458
|
}
|
|
183
|
-
function SessionContextResultPanel(
|
|
459
|
+
function SessionContextResultPanel(t0) {
|
|
460
|
+
const $ = c(18);
|
|
461
|
+
const { part } = t0;
|
|
184
462
|
const output = part.state === "output-available" ? part.output : void 0;
|
|
185
|
-
|
|
463
|
+
let t1;
|
|
464
|
+
if ($[0] !== part) {
|
|
465
|
+
t1 = isSessionContextToolFailure(part);
|
|
466
|
+
$[0] = part;
|
|
467
|
+
$[1] = t1;
|
|
468
|
+
} else t1 = $[1];
|
|
469
|
+
const outputIsError = t1;
|
|
186
470
|
switch (part.type) {
|
|
187
471
|
case "tool-set_context": {
|
|
188
472
|
const input = part.input;
|
|
189
473
|
const title = input?.metadata?.title;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
474
|
+
const t2 = title ? `${input?.label ?? "context"} / ${title}` : input?.label ?? "context";
|
|
475
|
+
const t3 = input?.content;
|
|
476
|
+
let t4;
|
|
477
|
+
if ($[2] !== output || $[3] !== outputIsError || $[4] !== t2 || $[5] !== t3) {
|
|
478
|
+
t4 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
479
|
+
label: t2,
|
|
480
|
+
text: t3,
|
|
481
|
+
status: output,
|
|
482
|
+
error: outputIsError
|
|
483
|
+
});
|
|
484
|
+
$[2] = output;
|
|
485
|
+
$[3] = outputIsError;
|
|
486
|
+
$[4] = t2;
|
|
487
|
+
$[5] = t3;
|
|
488
|
+
$[6] = t4;
|
|
489
|
+
} else t4 = $[6];
|
|
490
|
+
return t4;
|
|
196
491
|
}
|
|
197
492
|
case "tool-load_context":
|
|
198
|
-
case "tool-unload_context":
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
493
|
+
case "tool-unload_context": {
|
|
494
|
+
const t2 = `${part.input?.label ?? "context"} / ${part.input?.key ?? "entry"}`;
|
|
495
|
+
const t3 = outputIsError ? "error" : void 0;
|
|
496
|
+
let t4;
|
|
497
|
+
if ($[7] !== output) {
|
|
498
|
+
t4 = output !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
|
|
499
|
+
result: output,
|
|
500
|
+
showSummary: false
|
|
501
|
+
}) : null;
|
|
502
|
+
$[7] = output;
|
|
503
|
+
$[8] = t4;
|
|
504
|
+
} else t4 = $[8];
|
|
505
|
+
let t5;
|
|
506
|
+
if ($[9] !== outputIsError || $[10] !== t2 || $[11] !== t3 || $[12] !== t4) {
|
|
507
|
+
t5 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
508
|
+
label: t2,
|
|
509
|
+
status: t3,
|
|
510
|
+
error: outputIsError,
|
|
511
|
+
children: t4
|
|
512
|
+
});
|
|
513
|
+
$[9] = outputIsError;
|
|
514
|
+
$[10] = t2;
|
|
515
|
+
$[11] = t3;
|
|
516
|
+
$[12] = t4;
|
|
517
|
+
$[13] = t5;
|
|
518
|
+
} else t5 = $[13];
|
|
519
|
+
return t5;
|
|
520
|
+
}
|
|
207
521
|
case "tool-search_context":
|
|
208
|
-
case "tool-session_search":
|
|
209
|
-
|
|
210
|
-
output
|
|
211
|
-
|
|
212
|
-
|
|
522
|
+
case "tool-session_search": {
|
|
523
|
+
let t2;
|
|
524
|
+
if ($[14] !== output || $[15] !== outputIsError || $[16] !== part) {
|
|
525
|
+
t2 = /* @__PURE__ */ jsx(SessionContextSearchPanel, {
|
|
526
|
+
part,
|
|
527
|
+
output,
|
|
528
|
+
error: outputIsError
|
|
529
|
+
});
|
|
530
|
+
$[14] = output;
|
|
531
|
+
$[15] = outputIsError;
|
|
532
|
+
$[16] = part;
|
|
533
|
+
$[17] = t2;
|
|
534
|
+
} else t2 = $[17];
|
|
535
|
+
return t2;
|
|
536
|
+
}
|
|
213
537
|
}
|
|
214
538
|
}
|
|
215
|
-
function SessionContextSearchPanel(
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
539
|
+
function SessionContextSearchPanel(t0) {
|
|
540
|
+
const $ = c(7);
|
|
541
|
+
const { part, output, error } = t0;
|
|
542
|
+
const t1 = part.input?.query ?? (part.type === "tool-search_context" ? "Context search" : "Conversation search");
|
|
543
|
+
const t2 = error ? "error" : part.type === "tool-search_context" ? part.input?.label : void 0;
|
|
544
|
+
let t3;
|
|
545
|
+
if ($[0] !== output) {
|
|
546
|
+
t3 = output !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
|
|
221
547
|
result: output,
|
|
222
548
|
showSummary: false
|
|
223
|
-
}) : null
|
|
224
|
-
|
|
549
|
+
}) : null;
|
|
550
|
+
$[0] = output;
|
|
551
|
+
$[1] = t3;
|
|
552
|
+
} else t3 = $[1];
|
|
553
|
+
let t4;
|
|
554
|
+
if ($[2] !== error || $[3] !== t1 || $[4] !== t2 || $[5] !== t3) {
|
|
555
|
+
t4 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
556
|
+
label: t1,
|
|
557
|
+
status: t2,
|
|
558
|
+
error,
|
|
559
|
+
children: t3
|
|
560
|
+
});
|
|
561
|
+
$[2] = error;
|
|
562
|
+
$[3] = t1;
|
|
563
|
+
$[4] = t2;
|
|
564
|
+
$[5] = t3;
|
|
565
|
+
$[6] = t4;
|
|
566
|
+
} else t4 = $[6];
|
|
567
|
+
return t4;
|
|
225
568
|
}
|
|
226
|
-
function ThinkChatFetchPanel(
|
|
569
|
+
function ThinkChatFetchPanel(t0) {
|
|
570
|
+
const $ = c(21);
|
|
571
|
+
const { part } = t0;
|
|
227
572
|
const label = part.input?.url ?? part.input?.path ?? "fetch";
|
|
228
|
-
|
|
573
|
+
let t1;
|
|
574
|
+
if ($[0] !== label || $[1] !== part) {
|
|
575
|
+
t1 = toolFailurePanel(part, label);
|
|
576
|
+
$[0] = label;
|
|
577
|
+
$[1] = part;
|
|
578
|
+
$[2] = t1;
|
|
579
|
+
} else t1 = $[2];
|
|
580
|
+
const failure = t1;
|
|
229
581
|
if (failure) return failure;
|
|
230
582
|
const output = part.state === "output-available" ? part.output : void 0;
|
|
231
|
-
if (!output)
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
583
|
+
if (!output) {
|
|
584
|
+
let t2;
|
|
585
|
+
if ($[3] !== label) {
|
|
586
|
+
t2 = /* @__PURE__ */ jsx(ActivityPanel, { label });
|
|
587
|
+
$[3] = label;
|
|
588
|
+
$[4] = t2;
|
|
589
|
+
} else t2 = $[4];
|
|
590
|
+
return t2;
|
|
591
|
+
}
|
|
592
|
+
if (!output.ok) {
|
|
593
|
+
const t2 = output.finalUrl ?? label;
|
|
594
|
+
let t3;
|
|
595
|
+
if ($[5] !== output.message) {
|
|
596
|
+
t3 = executionErrorSummary(output.message);
|
|
597
|
+
$[5] = output.message;
|
|
598
|
+
$[6] = t3;
|
|
599
|
+
} else t3 = $[6];
|
|
600
|
+
let t4;
|
|
601
|
+
if ($[7] !== output.code || $[8] !== t2 || $[9] !== t3) {
|
|
602
|
+
t4 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
603
|
+
label: t2,
|
|
604
|
+
text: t3,
|
|
605
|
+
status: output.code,
|
|
606
|
+
error: true
|
|
607
|
+
});
|
|
608
|
+
$[7] = output.code;
|
|
609
|
+
$[8] = t2;
|
|
610
|
+
$[9] = t3;
|
|
611
|
+
$[10] = t4;
|
|
612
|
+
} else t4 = $[10];
|
|
613
|
+
return t4;
|
|
614
|
+
}
|
|
615
|
+
let t2;
|
|
616
|
+
if ($[11] !== output.body || $[12] !== output.json || $[13] !== output.path) {
|
|
617
|
+
t2 = output.json ?? output.body ?? (output.path ? { savedTo: output.path } : void 0);
|
|
618
|
+
$[11] = output.body;
|
|
619
|
+
$[12] = output.json;
|
|
620
|
+
$[13] = output.path;
|
|
621
|
+
$[14] = t2;
|
|
622
|
+
} else t2 = $[14];
|
|
623
|
+
const body = t2;
|
|
624
|
+
const t3 = `${output.status} · ${output.bytes} bytes${output.truncated ? " (truncated)" : ""}`;
|
|
625
|
+
let t4;
|
|
626
|
+
if ($[15] !== body) {
|
|
627
|
+
t4 = body !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
|
|
243
628
|
result: body,
|
|
244
629
|
showSummary: false
|
|
245
|
-
}) : null
|
|
246
|
-
|
|
630
|
+
}) : null;
|
|
631
|
+
$[15] = body;
|
|
632
|
+
$[16] = t4;
|
|
633
|
+
} else t4 = $[16];
|
|
634
|
+
let t5;
|
|
635
|
+
if ($[17] !== output.finalUrl || $[18] !== t3 || $[19] !== t4) {
|
|
636
|
+
t5 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
637
|
+
label: output.finalUrl,
|
|
638
|
+
status: t3,
|
|
639
|
+
children: t4
|
|
640
|
+
});
|
|
641
|
+
$[17] = output.finalUrl;
|
|
642
|
+
$[18] = t3;
|
|
643
|
+
$[19] = t4;
|
|
644
|
+
$[20] = t5;
|
|
645
|
+
} else t5 = $[20];
|
|
646
|
+
return t5;
|
|
247
647
|
}
|
|
248
648
|
function isBrowserLiveViewUrl(value) {
|
|
249
649
|
if (!value || typeof value !== "object") return false;
|
|
@@ -279,78 +679,169 @@ function findBrowserResultMedia(value, depth = 0) {
|
|
|
279
679
|
visit(value, depth);
|
|
280
680
|
return media;
|
|
281
681
|
}
|
|
282
|
-
function ExecuteCodeView(
|
|
682
|
+
function ExecuteCodeView(t0) {
|
|
683
|
+
const $ = c(22);
|
|
684
|
+
const { code, output, hideResult, isStreaming } = t0;
|
|
283
685
|
const calls = output && "calls" in output ? output.calls : void 0;
|
|
284
|
-
|
|
285
|
-
|
|
686
|
+
let t1;
|
|
687
|
+
if ($[0] !== code || $[1] !== isStreaming) {
|
|
688
|
+
t1 = /* @__PURE__ */ jsx(ExecutionCode, {
|
|
286
689
|
code,
|
|
287
690
|
isStreaming
|
|
288
|
-
})
|
|
289
|
-
|
|
290
|
-
|
|
691
|
+
});
|
|
692
|
+
$[0] = code;
|
|
693
|
+
$[1] = isStreaming;
|
|
694
|
+
$[2] = t1;
|
|
695
|
+
} else t1 = $[2];
|
|
696
|
+
let t2;
|
|
697
|
+
if ($[3] !== calls) {
|
|
698
|
+
t2 = calls?.length ? /* @__PURE__ */ jsx(ToolCallAudit, { calls }) : null;
|
|
699
|
+
$[3] = calls;
|
|
700
|
+
$[4] = t2;
|
|
701
|
+
} else t2 = $[4];
|
|
702
|
+
let t3;
|
|
703
|
+
if ($[5] !== output) {
|
|
704
|
+
t3 = output && "logs" in output && output.logs?.length ? /* @__PURE__ */ jsx(ExecutionResult, {
|
|
291
705
|
result: output.logs,
|
|
292
706
|
showSummary: false
|
|
293
|
-
}) : null
|
|
294
|
-
|
|
295
|
-
|
|
707
|
+
}) : null;
|
|
708
|
+
$[5] = output;
|
|
709
|
+
$[6] = t3;
|
|
710
|
+
} else t3 = $[6];
|
|
711
|
+
let t4;
|
|
712
|
+
if ($[7] !== output) {
|
|
713
|
+
t4 = output?.status === "error" ? /* @__PURE__ */ jsx(ActivityOutput, { children: executionErrorSummary(output.error) }) : null;
|
|
714
|
+
$[7] = output;
|
|
715
|
+
$[8] = t4;
|
|
716
|
+
} else t4 = $[8];
|
|
717
|
+
let t5;
|
|
718
|
+
if ($[9] !== calls?.length || $[10] !== output) {
|
|
719
|
+
t5 = output?.status === "paused" && !calls?.length ? /* @__PURE__ */ jsx("ol", {
|
|
296
720
|
className: "think-chat-tool-panels__call-audit-list",
|
|
297
|
-
children: output.pending.map(
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
721
|
+
children: output.pending.map(_temp2)
|
|
722
|
+
}) : null;
|
|
723
|
+
$[9] = calls?.length;
|
|
724
|
+
$[10] = output;
|
|
725
|
+
$[11] = t5;
|
|
726
|
+
} else t5 = $[11];
|
|
727
|
+
let t6;
|
|
728
|
+
if ($[12] !== hideResult || $[13] !== output) {
|
|
729
|
+
t6 = output?.status === "completed" && output.result !== void 0 && !hideResult ? /* @__PURE__ */ jsx(ExecutionResult, {
|
|
303
730
|
result: output.result,
|
|
304
731
|
showSummary: false
|
|
305
|
-
}) : null
|
|
306
|
-
|
|
732
|
+
}) : null;
|
|
733
|
+
$[12] = hideResult;
|
|
734
|
+
$[13] = output;
|
|
735
|
+
$[14] = t6;
|
|
736
|
+
} else t6 = $[14];
|
|
737
|
+
let t7;
|
|
738
|
+
if ($[15] !== t1 || $[16] !== t2 || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== t6) {
|
|
739
|
+
t7 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
740
|
+
t1,
|
|
741
|
+
t2,
|
|
742
|
+
t3,
|
|
743
|
+
t4,
|
|
744
|
+
t5,
|
|
745
|
+
t6
|
|
746
|
+
] });
|
|
747
|
+
$[15] = t1;
|
|
748
|
+
$[16] = t2;
|
|
749
|
+
$[17] = t3;
|
|
750
|
+
$[18] = t4;
|
|
751
|
+
$[19] = t5;
|
|
752
|
+
$[20] = t6;
|
|
753
|
+
$[21] = t7;
|
|
754
|
+
} else t7 = $[21];
|
|
755
|
+
return t7;
|
|
756
|
+
}
|
|
757
|
+
function _temp2(action) {
|
|
758
|
+
return /* @__PURE__ */ jsxs("li", { children: [/* @__PURE__ */ jsx("span", { children: pendingActionLabel(action) }), action.args !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
|
|
759
|
+
result: action.args,
|
|
760
|
+
showSummary: false
|
|
761
|
+
}) : null] }, action.seq);
|
|
307
762
|
}
|
|
308
|
-
function ExecutionCode(
|
|
763
|
+
function ExecutionCode(t0) {
|
|
764
|
+
const $ = c(4);
|
|
765
|
+
const { code, isStreaming } = t0;
|
|
309
766
|
if (!code) return null;
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
767
|
+
let t1;
|
|
768
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
769
|
+
t1 = /* @__PURE__ */ jsx(CodeBlockContainer, { children: /* @__PURE__ */ jsx(CodeBlockContent, {}) });
|
|
770
|
+
$[0] = t1;
|
|
771
|
+
} else t1 = $[0];
|
|
772
|
+
let t2;
|
|
773
|
+
if ($[1] !== code || $[2] !== isStreaming) {
|
|
774
|
+
t2 = /* @__PURE__ */ jsx(CodeBlock, {
|
|
775
|
+
surface: "plain",
|
|
776
|
+
wrap: true,
|
|
777
|
+
code,
|
|
778
|
+
isStreaming,
|
|
779
|
+
language: "ts",
|
|
780
|
+
children: t1
|
|
781
|
+
});
|
|
782
|
+
$[1] = code;
|
|
783
|
+
$[2] = isStreaming;
|
|
784
|
+
$[3] = t2;
|
|
785
|
+
} else t2 = $[3];
|
|
786
|
+
return t2;
|
|
318
787
|
}
|
|
319
788
|
/** Durable connector calls emitted by Codemode 0.4.3. The ordered list keeps
|
|
320
789
|
execution order and state available to assistive technology without adding
|
|
321
790
|
another host-side activity protocol. */
|
|
322
|
-
function ToolCallAudit(
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
791
|
+
function ToolCallAudit(t0) {
|
|
792
|
+
const $ = c(5);
|
|
793
|
+
const { calls } = t0;
|
|
794
|
+
let t1;
|
|
795
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
796
|
+
t1 = /* @__PURE__ */ jsx("span", {
|
|
326
797
|
className: "think-chat-tool-panels__call-audit-label",
|
|
327
798
|
children: "Calls"
|
|
328
|
-
})
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
799
|
+
});
|
|
800
|
+
$[0] = t1;
|
|
801
|
+
} else t1 = $[0];
|
|
802
|
+
let t2;
|
|
803
|
+
if ($[1] !== calls) {
|
|
804
|
+
t2 = calls.map(_temp3);
|
|
805
|
+
$[1] = calls;
|
|
806
|
+
$[2] = t2;
|
|
807
|
+
} else t2 = $[2];
|
|
808
|
+
let t3;
|
|
809
|
+
if ($[3] !== t2) {
|
|
810
|
+
t3 = /* @__PURE__ */ jsxs("div", {
|
|
811
|
+
className: "think-chat-tool-panels__call-audit",
|
|
812
|
+
children: [t1, /* @__PURE__ */ jsx("ol", {
|
|
813
|
+
className: "think-chat-tool-panels__call-audit-list",
|
|
814
|
+
children: t2
|
|
815
|
+
})]
|
|
816
|
+
});
|
|
817
|
+
$[3] = t2;
|
|
818
|
+
$[4] = t3;
|
|
819
|
+
} else t3 = $[4];
|
|
820
|
+
return t3;
|
|
821
|
+
}
|
|
822
|
+
function _temp3(call) {
|
|
823
|
+
return /* @__PURE__ */ jsxs("li", {
|
|
824
|
+
className: "think-chat-tool-panels__call-audit-item",
|
|
825
|
+
"data-state": call.state,
|
|
826
|
+
children: [
|
|
827
|
+
/* @__PURE__ */ jsx("span", {
|
|
828
|
+
className: "think-chat-tool-panels__call-audit-code",
|
|
829
|
+
children: call.connector === "__step" ? call.method : `${call.connector}.${call.method}`
|
|
830
|
+
}),
|
|
831
|
+
/* @__PURE__ */ jsx("span", {
|
|
832
|
+
className: "think-chat-tool-panels__call-audit-state",
|
|
833
|
+
children: toolCallStateLabel(call)
|
|
834
|
+
}),
|
|
835
|
+
call.args !== void 0 && call.args !== null ? /* @__PURE__ */ jsxs("details", { children: [/* @__PURE__ */ jsx("summary", { children: "Inputs" }), /* @__PURE__ */ jsx(ExecutionResult, {
|
|
836
|
+
result: call.args,
|
|
837
|
+
showSummary: false
|
|
838
|
+
})] }) : null,
|
|
839
|
+
call.result !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
|
|
840
|
+
result: call.result,
|
|
841
|
+
showSummary: false
|
|
842
|
+
}) : null
|
|
843
|
+
]
|
|
844
|
+
}, call.seq);
|
|
354
845
|
}
|
|
355
846
|
function isHumanWait(action) {
|
|
356
847
|
return action.connector === "human" && action.method === "waitFor";
|
|
@@ -438,75 +929,229 @@ function formatFollowUpDateTime(value) {
|
|
|
438
929
|
const date = new Date(value);
|
|
439
930
|
return [formatThinkExecutionShortTimestamp(date, ""), timeZoneNameFormat.formatToParts(date).find((part) => part.type === "timeZoneName")?.value].filter(Boolean).join(" ");
|
|
440
931
|
}
|
|
441
|
-
function fileName(path) {
|
|
442
|
-
return path.split("/").filter(Boolean).at(-1) ?? path;
|
|
443
|
-
}
|
|
444
932
|
/** One-time follow-ups use the returned wake instant; list/cancel receipts stay distinct. */
|
|
445
|
-
function ThinkChatFollowUpPanel(
|
|
446
|
-
const
|
|
447
|
-
const
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
933
|
+
function ThinkChatFollowUpPanel(t0) {
|
|
934
|
+
const $ = c(22);
|
|
935
|
+
const { part } = t0;
|
|
936
|
+
let t1;
|
|
937
|
+
if ($[0] !== part) {
|
|
938
|
+
t1 = thinkToolOutcome(part);
|
|
939
|
+
$[0] = part;
|
|
940
|
+
$[1] = t1;
|
|
941
|
+
} else t1 = $[1];
|
|
942
|
+
const outcome = t1;
|
|
943
|
+
let t2;
|
|
944
|
+
if ($[2] !== outcome || $[3] !== part) {
|
|
945
|
+
t2 = () => /* @__PURE__ */ jsx(ToolInvocationDetails, {
|
|
946
|
+
part,
|
|
947
|
+
outputError: outcome === "failed"
|
|
948
|
+
});
|
|
949
|
+
$[2] = outcome;
|
|
950
|
+
$[3] = part;
|
|
951
|
+
$[4] = t2;
|
|
952
|
+
} else t2 = $[4];
|
|
953
|
+
const generic = t2;
|
|
954
|
+
if (part.state !== "output-available" || part.preliminary || outcome) {
|
|
955
|
+
let t3;
|
|
956
|
+
if ($[5] !== generic) {
|
|
957
|
+
t3 = generic();
|
|
958
|
+
$[5] = generic;
|
|
959
|
+
$[6] = t3;
|
|
960
|
+
} else t3 = $[6];
|
|
961
|
+
return t3;
|
|
962
|
+
}
|
|
963
|
+
let receipt;
|
|
964
|
+
let t3;
|
|
965
|
+
if ($[7] !== generic || $[8] !== part) {
|
|
966
|
+
t3 = Symbol.for("react.early_return_sentinel");
|
|
967
|
+
bb0: {
|
|
968
|
+
receipt = readFollowUpReceipt(part);
|
|
969
|
+
if (!receipt) {
|
|
970
|
+
let t4;
|
|
971
|
+
if ($[11] !== generic) {
|
|
972
|
+
t4 = generic();
|
|
973
|
+
$[11] = generic;
|
|
974
|
+
$[12] = t4;
|
|
975
|
+
} else t4 = $[12];
|
|
976
|
+
t3 = t4;
|
|
977
|
+
break bb0;
|
|
978
|
+
}
|
|
979
|
+
if (receipt.operation === "schedule") {
|
|
980
|
+
let t4;
|
|
981
|
+
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
982
|
+
t4 = /* @__PURE__ */ jsx("dt", { children: "Scheduled for" });
|
|
983
|
+
$[13] = t4;
|
|
984
|
+
} else t4 = $[13];
|
|
985
|
+
let t5;
|
|
986
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
987
|
+
t5 = /* @__PURE__ */ jsx("dt", { children: "Instructions" });
|
|
988
|
+
$[14] = t5;
|
|
989
|
+
} else t5 = $[14];
|
|
990
|
+
const t6 = /* @__PURE__ */ jsxs("dl", {
|
|
991
|
+
className: "think-chat-tool-panels__follow-up-details",
|
|
992
|
+
children: [
|
|
993
|
+
t4,
|
|
994
|
+
/* @__PURE__ */ jsx("dd", { children: /* @__PURE__ */ jsx("time", {
|
|
995
|
+
dateTime: receipt.scheduledFor,
|
|
996
|
+
children: formatFollowUpDateTime(receipt.scheduledFor)
|
|
997
|
+
}) }),
|
|
998
|
+
t5,
|
|
999
|
+
/* @__PURE__ */ jsx("dd", { children: receipt.prompt })
|
|
1000
|
+
]
|
|
1001
|
+
});
|
|
1002
|
+
let t7;
|
|
1003
|
+
if ($[15] !== t6) {
|
|
1004
|
+
t7 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
1005
|
+
label: "Follow-up",
|
|
1006
|
+
status: "Scheduled follow-up",
|
|
1007
|
+
children: t6
|
|
1008
|
+
});
|
|
1009
|
+
$[15] = t6;
|
|
1010
|
+
$[16] = t7;
|
|
1011
|
+
} else t7 = $[16];
|
|
1012
|
+
t3 = t7;
|
|
1013
|
+
break bb0;
|
|
1014
|
+
}
|
|
1015
|
+
if (receipt.operation === "list") {
|
|
1016
|
+
const t4 = receipt.followUps.length === 0 ? "No follow-ups scheduled" : `${receipt.followUps.length} scheduled`;
|
|
1017
|
+
const t5 = receipt.followUps.length ? /* @__PURE__ */ jsx("ol", {
|
|
1018
|
+
className: "think-chat-tool-panels__follow-up-list",
|
|
1019
|
+
children: receipt.followUps.map(_temp4)
|
|
1020
|
+
}) : null;
|
|
1021
|
+
let t6;
|
|
1022
|
+
if ($[17] !== t4 || $[18] !== t5) {
|
|
1023
|
+
t6 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
1024
|
+
label: "Follow-ups",
|
|
1025
|
+
status: t4,
|
|
1026
|
+
children: t5
|
|
1027
|
+
});
|
|
1028
|
+
$[17] = t4;
|
|
1029
|
+
$[18] = t5;
|
|
1030
|
+
$[19] = t6;
|
|
1031
|
+
} else t6 = $[19];
|
|
1032
|
+
t3 = t6;
|
|
1033
|
+
break bb0;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
$[7] = generic;
|
|
1037
|
+
$[8] = part;
|
|
1038
|
+
$[9] = receipt;
|
|
1039
|
+
$[10] = t3;
|
|
1040
|
+
} else {
|
|
1041
|
+
receipt = $[9];
|
|
1042
|
+
t3 = $[10];
|
|
1043
|
+
}
|
|
1044
|
+
if (t3 !== Symbol.for("react.early_return_sentinel")) return t3;
|
|
1045
|
+
const t4 = receipt.cancelled ? "Cancelled follow-up" : "No follow-up cancelled";
|
|
1046
|
+
let t5;
|
|
1047
|
+
if ($[20] !== t4) {
|
|
1048
|
+
t5 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
1049
|
+
label: "Follow-up",
|
|
1050
|
+
status: t4
|
|
1051
|
+
});
|
|
1052
|
+
$[20] = t4;
|
|
1053
|
+
$[21] = t5;
|
|
1054
|
+
} else t5 = $[21];
|
|
1055
|
+
return t5;
|
|
1056
|
+
}
|
|
1057
|
+
function _temp4(item) {
|
|
1058
|
+
return /* @__PURE__ */ jsxs("li", { children: [/* @__PURE__ */ jsx("time", {
|
|
1059
|
+
dateTime: item.scheduledFor,
|
|
1060
|
+
children: formatFollowUpDateTime(item.scheduledFor)
|
|
1061
|
+
}), /* @__PURE__ */ jsx("span", { children: item.prompt })] }, item.id);
|
|
1062
|
+
}
|
|
1063
|
+
function RookExecutePanel(t0) {
|
|
1064
|
+
const $ = c(28);
|
|
1065
|
+
const { inputValue, outputValue, isStreaming } = t0;
|
|
1066
|
+
let T0;
|
|
1067
|
+
let T1;
|
|
1068
|
+
let input;
|
|
1069
|
+
let output;
|
|
1070
|
+
let t1;
|
|
1071
|
+
let t2;
|
|
1072
|
+
let t3;
|
|
1073
|
+
let t4;
|
|
1074
|
+
if ($[0] !== inputValue || $[1] !== outputValue) {
|
|
1075
|
+
input = asRecord(inputValue);
|
|
1076
|
+
let t5;
|
|
1077
|
+
if ($[10] !== outputValue) {
|
|
1078
|
+
t5 = asRecord(outputValue);
|
|
1079
|
+
$[10] = outputValue;
|
|
1080
|
+
$[11] = t5;
|
|
1081
|
+
} else t5 = $[11];
|
|
1082
|
+
output = t5;
|
|
1083
|
+
const failed = output?.status === "error";
|
|
1084
|
+
T1 = ActivityPanel;
|
|
1085
|
+
t2 = "Code";
|
|
1086
|
+
t3 = failed ? "error" : output?.status === "completed" ? "completed" : void 0;
|
|
1087
|
+
t4 = failed;
|
|
1088
|
+
T0 = ExecutionCode;
|
|
1089
|
+
t1 = stringField(input, "code") ?? "";
|
|
1090
|
+
$[0] = inputValue;
|
|
1091
|
+
$[1] = outputValue;
|
|
1092
|
+
$[2] = T0;
|
|
1093
|
+
$[3] = T1;
|
|
1094
|
+
$[4] = input;
|
|
1095
|
+
$[5] = output;
|
|
1096
|
+
$[6] = t1;
|
|
1097
|
+
$[7] = t2;
|
|
1098
|
+
$[8] = t3;
|
|
1099
|
+
$[9] = t4;
|
|
1100
|
+
} else {
|
|
1101
|
+
T0 = $[2];
|
|
1102
|
+
T1 = $[3];
|
|
1103
|
+
input = $[4];
|
|
1104
|
+
output = $[5];
|
|
1105
|
+
t1 = $[6];
|
|
1106
|
+
t2 = $[7];
|
|
1107
|
+
t3 = $[8];
|
|
1108
|
+
t4 = $[9];
|
|
1109
|
+
}
|
|
1110
|
+
let t5;
|
|
1111
|
+
if ($[12] !== T0 || $[13] !== isStreaming || $[14] !== t1) {
|
|
1112
|
+
t5 = /* @__PURE__ */ jsx(T0, {
|
|
1113
|
+
code: t1,
|
|
1114
|
+
isStreaming
|
|
1115
|
+
});
|
|
1116
|
+
$[12] = T0;
|
|
1117
|
+
$[13] = isStreaming;
|
|
1118
|
+
$[14] = t1;
|
|
1119
|
+
$[15] = t5;
|
|
1120
|
+
} else t5 = $[15];
|
|
1121
|
+
let t6;
|
|
1122
|
+
if ($[16] !== input) {
|
|
1123
|
+
t6 = input ? /* @__PURE__ */ jsx(RookExecuteInput, { input }) : null;
|
|
1124
|
+
$[16] = input;
|
|
1125
|
+
$[17] = t6;
|
|
1126
|
+
} else t6 = $[17];
|
|
1127
|
+
let t7;
|
|
1128
|
+
if ($[18] !== output) {
|
|
1129
|
+
t7 = output ? /* @__PURE__ */ jsx(RookExecuteOutput, { output }) : null;
|
|
1130
|
+
$[18] = output;
|
|
1131
|
+
$[19] = t7;
|
|
1132
|
+
} else t7 = $[19];
|
|
1133
|
+
let t8;
|
|
1134
|
+
if ($[20] !== T1 || $[21] !== t2 || $[22] !== t3 || $[23] !== t4 || $[24] !== t5 || $[25] !== t6 || $[26] !== t7) {
|
|
1135
|
+
t8 = /* @__PURE__ */ jsxs(T1, {
|
|
1136
|
+
label: t2,
|
|
1137
|
+
status: t3,
|
|
1138
|
+
error: t4,
|
|
459
1139
|
children: [
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
/* @__PURE__ */ jsx("dd", { children: /* @__PURE__ */ jsx("time", {
|
|
464
|
-
dateTime: receipt.scheduledFor,
|
|
465
|
-
children: formatFollowUpDateTime(receipt.scheduledFor)
|
|
466
|
-
}) }),
|
|
467
|
-
/* @__PURE__ */ jsx("dt", { children: "Instructions" }),
|
|
468
|
-
/* @__PURE__ */ jsx("dd", { children: receipt.prompt })
|
|
1140
|
+
t5,
|
|
1141
|
+
t6,
|
|
1142
|
+
t7
|
|
469
1143
|
]
|
|
470
|
-
})
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
}),
|
|
482
|
-
/* @__PURE__ */ jsx("span", { children: item.prompt }),
|
|
483
|
-
/* @__PURE__ */ jsx("span", { children: item.id })
|
|
484
|
-
] }, item.id))
|
|
485
|
-
}) : null
|
|
486
|
-
});
|
|
487
|
-
return /* @__PURE__ */ jsx(ActivityPanel, {
|
|
488
|
-
label: "Follow-up",
|
|
489
|
-
status: receipt.cancelled ? "Cancelled follow-up" : "No follow-up cancelled",
|
|
490
|
-
children: /* @__PURE__ */ jsx(ActivityOutput, { children: `Checkpoint: ${receipt.id}` })
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
function RookExecutePanel({ inputValue, outputValue, isStreaming }) {
|
|
494
|
-
const input = asRecord(inputValue);
|
|
495
|
-
const output = asRecord(outputValue);
|
|
496
|
-
const failed = output?.status === "error";
|
|
497
|
-
return /* @__PURE__ */ jsxs(ActivityPanel, {
|
|
498
|
-
label: "Code",
|
|
499
|
-
status: failed ? "error" : output?.status === "completed" ? "completed" : void 0,
|
|
500
|
-
error: failed,
|
|
501
|
-
children: [
|
|
502
|
-
/* @__PURE__ */ jsx(ExecutionCode, {
|
|
503
|
-
code: stringField(input, "code") ?? "",
|
|
504
|
-
isStreaming
|
|
505
|
-
}),
|
|
506
|
-
input ? /* @__PURE__ */ jsx(RookExecuteInput, { input }) : null,
|
|
507
|
-
output ? /* @__PURE__ */ jsx(RookExecuteOutput, { output }) : null
|
|
508
|
-
]
|
|
509
|
-
});
|
|
1144
|
+
});
|
|
1145
|
+
$[20] = T1;
|
|
1146
|
+
$[21] = t2;
|
|
1147
|
+
$[22] = t3;
|
|
1148
|
+
$[23] = t4;
|
|
1149
|
+
$[24] = t5;
|
|
1150
|
+
$[25] = t6;
|
|
1151
|
+
$[26] = t7;
|
|
1152
|
+
$[27] = t8;
|
|
1153
|
+
} else t8 = $[27];
|
|
1154
|
+
return t8;
|
|
510
1155
|
}
|
|
511
1156
|
function executionResultSection(label, result) {
|
|
512
1157
|
return /* @__PURE__ */ jsxs("section", {
|
|
@@ -528,33 +1173,107 @@ function executionFileSection(label, filePath) {
|
|
|
528
1173
|
children: label
|
|
529
1174
|
}), /* @__PURE__ */ jsx(WorkspaceFileLink, {
|
|
530
1175
|
href: filePath,
|
|
531
|
-
children:
|
|
1176
|
+
children: workspaceBasename(filePath)
|
|
532
1177
|
})]
|
|
533
1178
|
});
|
|
534
1179
|
}
|
|
535
1180
|
/** The saved code and the values the run was given. */
|
|
536
|
-
function RookExecuteInput(
|
|
537
|
-
const
|
|
538
|
-
const
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
1181
|
+
function RookExecuteInput(t0) {
|
|
1182
|
+
const $ = c(16);
|
|
1183
|
+
const { input } = t0;
|
|
1184
|
+
let args;
|
|
1185
|
+
let preview;
|
|
1186
|
+
let t1;
|
|
1187
|
+
let table;
|
|
1188
|
+
if ($[0] !== input) {
|
|
1189
|
+
const path = stringField(input, "path");
|
|
1190
|
+
args = Object.hasOwn(input, "args") ? input.args : void 0;
|
|
1191
|
+
table = Object.hasOwn(input, "table") ? input.table : void 0;
|
|
1192
|
+
preview = Object.hasOwn(input, "preview") ? input.preview : void 0;
|
|
1193
|
+
t1 = path ? executionFileSection("Code", path) : null;
|
|
1194
|
+
$[0] = input;
|
|
1195
|
+
$[1] = args;
|
|
1196
|
+
$[2] = preview;
|
|
1197
|
+
$[3] = t1;
|
|
1198
|
+
$[4] = table;
|
|
1199
|
+
} else {
|
|
1200
|
+
args = $[1];
|
|
1201
|
+
preview = $[2];
|
|
1202
|
+
t1 = $[3];
|
|
1203
|
+
table = $[4];
|
|
1204
|
+
}
|
|
1205
|
+
let t2;
|
|
1206
|
+
if ($[5] !== args) {
|
|
1207
|
+
t2 = args !== void 0 ? executionResultSection("Arguments", args) : null;
|
|
1208
|
+
$[5] = args;
|
|
1209
|
+
$[6] = t2;
|
|
1210
|
+
} else t2 = $[6];
|
|
1211
|
+
let t3;
|
|
1212
|
+
if ($[7] !== table) {
|
|
1213
|
+
t3 = table !== void 0 ? executionResultSection("Table", table) : null;
|
|
1214
|
+
$[7] = table;
|
|
1215
|
+
$[8] = t3;
|
|
1216
|
+
} else t3 = $[8];
|
|
1217
|
+
let t4;
|
|
1218
|
+
if ($[9] !== preview) {
|
|
1219
|
+
t4 = preview !== void 0 ? executionResultSection("Preview", preview) : null;
|
|
1220
|
+
$[9] = preview;
|
|
1221
|
+
$[10] = t4;
|
|
1222
|
+
} else t4 = $[10];
|
|
1223
|
+
let t5;
|
|
1224
|
+
if ($[11] !== t1 || $[12] !== t2 || $[13] !== t3 || $[14] !== t4) {
|
|
1225
|
+
t5 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1226
|
+
t1,
|
|
1227
|
+
t2,
|
|
1228
|
+
t3,
|
|
1229
|
+
t4
|
|
1230
|
+
] });
|
|
1231
|
+
$[11] = t1;
|
|
1232
|
+
$[12] = t2;
|
|
1233
|
+
$[13] = t3;
|
|
1234
|
+
$[14] = t4;
|
|
1235
|
+
$[15] = t5;
|
|
1236
|
+
} else t5 = $[15];
|
|
1237
|
+
return t5;
|
|
547
1238
|
}
|
|
548
1239
|
/** The run's receipt, in the order a reader checks it. */
|
|
549
|
-
function RookExecuteOutput(
|
|
550
|
-
const
|
|
551
|
-
const
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
1240
|
+
function RookExecuteOutput(t0) {
|
|
1241
|
+
const $ = c(29);
|
|
1242
|
+
const { output } = t0;
|
|
1243
|
+
let t1;
|
|
1244
|
+
let t2;
|
|
1245
|
+
let t3;
|
|
1246
|
+
let t4;
|
|
1247
|
+
let t5;
|
|
1248
|
+
let t6;
|
|
1249
|
+
let t7;
|
|
1250
|
+
if ($[0] !== output) {
|
|
1251
|
+
const error = stringField(output, "error");
|
|
1252
|
+
let t8;
|
|
1253
|
+
if ($[8] !== output.kind || $[9] !== output.status) {
|
|
1254
|
+
t8 = output.status === "error" && typeof output.kind === "string" && ROOK_EXECUTION_FAILURE_KINDS.has(output.kind) ? output.kind : void 0;
|
|
1255
|
+
$[8] = output.kind;
|
|
1256
|
+
$[9] = output.status;
|
|
1257
|
+
$[10] = t8;
|
|
1258
|
+
} else t8 = $[10];
|
|
1259
|
+
const failureKind = t8;
|
|
1260
|
+
let t9;
|
|
1261
|
+
if ($[11] !== output.logs) {
|
|
1262
|
+
t9 = isStringArray(output.logs) ? output.logs : void 0;
|
|
1263
|
+
$[11] = output.logs;
|
|
1264
|
+
$[12] = t9;
|
|
1265
|
+
} else t9 = $[12];
|
|
1266
|
+
const logs = t9;
|
|
1267
|
+
let t10;
|
|
1268
|
+
if ($[13] !== output.files) {
|
|
1269
|
+
t10 = isRookExecutionFiles(output.files) ? output.files : void 0;
|
|
1270
|
+
$[13] = output.files;
|
|
1271
|
+
$[14] = t10;
|
|
1272
|
+
} else t10 = $[14];
|
|
1273
|
+
const files = t10;
|
|
1274
|
+
const outputPath = stringField(output, "path");
|
|
1275
|
+
const saveError = stringField(output, "saveError");
|
|
1276
|
+
t1 = error ? /* @__PURE__ */ jsxs("section", {
|
|
558
1277
|
className: "think-chat-tool-panels__execution-section",
|
|
559
1278
|
children: [
|
|
560
1279
|
/* @__PURE__ */ jsx("span", {
|
|
@@ -568,163 +1287,426 @@ function RookExecuteOutput({ output }) {
|
|
|
568
1287
|
children: "error"
|
|
569
1288
|
})
|
|
570
1289
|
]
|
|
571
|
-
}) : null
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
1290
|
+
}) : null;
|
|
1291
|
+
if ($[15] !== failureKind) {
|
|
1292
|
+
t2 = failureKind ? /* @__PURE__ */ jsxs("section", {
|
|
1293
|
+
className: "think-chat-tool-panels__execution-section",
|
|
1294
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
1295
|
+
className: "activity__shell-label",
|
|
1296
|
+
children: "Failure kind"
|
|
1297
|
+
}), /* @__PURE__ */ jsx(ActivityOutput, { children: failureKind })]
|
|
1298
|
+
}) : null;
|
|
1299
|
+
$[15] = failureKind;
|
|
1300
|
+
$[16] = t2;
|
|
1301
|
+
} else t2 = $[16];
|
|
1302
|
+
if ($[17] !== logs) {
|
|
1303
|
+
t3 = logs?.length ? executionResultSection("Logs", logs) : null;
|
|
1304
|
+
$[17] = logs;
|
|
1305
|
+
$[18] = t3;
|
|
1306
|
+
} else t3 = $[18];
|
|
1307
|
+
if ($[19] !== files) {
|
|
1308
|
+
t4 = files?.length ? executionResultSection("Files", files) : null;
|
|
1309
|
+
$[19] = files;
|
|
1310
|
+
$[20] = t4;
|
|
1311
|
+
} else t4 = $[20];
|
|
1312
|
+
t5 = outputPath ? executionFileSection("Code", outputPath) : null;
|
|
1313
|
+
t6 = Object.hasOwn(output, "result") ? executionResultSection("Result", output.result) : null;
|
|
1314
|
+
t7 = saveError ? /* @__PURE__ */ jsxs("section", {
|
|
584
1315
|
className: "think-chat-tool-panels__execution-section",
|
|
585
1316
|
children: [/* @__PURE__ */ jsx("span", {
|
|
586
1317
|
className: "activity__shell-label",
|
|
587
1318
|
children: "Code not saved"
|
|
588
1319
|
}), /* @__PURE__ */ jsx(ActivityOutput, { children: executionErrorSummary(saveError) })]
|
|
589
|
-
}) : null
|
|
590
|
-
|
|
1320
|
+
}) : null;
|
|
1321
|
+
$[0] = output;
|
|
1322
|
+
$[1] = t1;
|
|
1323
|
+
$[2] = t2;
|
|
1324
|
+
$[3] = t3;
|
|
1325
|
+
$[4] = t4;
|
|
1326
|
+
$[5] = t5;
|
|
1327
|
+
$[6] = t6;
|
|
1328
|
+
$[7] = t7;
|
|
1329
|
+
} else {
|
|
1330
|
+
t1 = $[1];
|
|
1331
|
+
t2 = $[2];
|
|
1332
|
+
t3 = $[3];
|
|
1333
|
+
t4 = $[4];
|
|
1334
|
+
t5 = $[5];
|
|
1335
|
+
t6 = $[6];
|
|
1336
|
+
t7 = $[7];
|
|
1337
|
+
}
|
|
1338
|
+
let t8;
|
|
1339
|
+
if ($[21] !== t1 || $[22] !== t2 || $[23] !== t3 || $[24] !== t4 || $[25] !== t5 || $[26] !== t6 || $[27] !== t7) {
|
|
1340
|
+
t8 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1341
|
+
t1,
|
|
1342
|
+
t2,
|
|
1343
|
+
t3,
|
|
1344
|
+
t4,
|
|
1345
|
+
t5,
|
|
1346
|
+
t6,
|
|
1347
|
+
t7
|
|
1348
|
+
] });
|
|
1349
|
+
$[21] = t1;
|
|
1350
|
+
$[22] = t2;
|
|
1351
|
+
$[23] = t3;
|
|
1352
|
+
$[24] = t4;
|
|
1353
|
+
$[25] = t5;
|
|
1354
|
+
$[26] = t6;
|
|
1355
|
+
$[27] = t7;
|
|
1356
|
+
$[28] = t8;
|
|
1357
|
+
} else t8 = $[28];
|
|
1358
|
+
return t8;
|
|
591
1359
|
}
|
|
592
1360
|
/** Route only discriminable outputs; ambiguous contracts remain generic data. */
|
|
593
|
-
function ThinkChatExecutePanel(
|
|
594
|
-
const
|
|
1361
|
+
function ThinkChatExecutePanel(t0) {
|
|
1362
|
+
const $ = c(32);
|
|
1363
|
+
const { part } = t0;
|
|
1364
|
+
let t1;
|
|
1365
|
+
if ($[0] !== part) {
|
|
1366
|
+
t1 = toolFailurePanel(part, "Code");
|
|
1367
|
+
$[0] = part;
|
|
1368
|
+
$[1] = t1;
|
|
1369
|
+
} else t1 = $[1];
|
|
1370
|
+
const failure = t1;
|
|
595
1371
|
if (failure) return failure;
|
|
596
|
-
|
|
597
|
-
|
|
1372
|
+
let input;
|
|
1373
|
+
let t2;
|
|
1374
|
+
if ($[2] !== part.input) {
|
|
1375
|
+
input = asRecord(part.input);
|
|
1376
|
+
t2 = stringField(input, "code") ?? "";
|
|
1377
|
+
$[2] = part.input;
|
|
1378
|
+
$[3] = input;
|
|
1379
|
+
$[4] = t2;
|
|
1380
|
+
} else {
|
|
1381
|
+
input = $[3];
|
|
1382
|
+
t2 = $[4];
|
|
1383
|
+
}
|
|
1384
|
+
const code = t2;
|
|
598
1385
|
const outputValue = part.state === "output-available" ? part.output : void 0;
|
|
599
|
-
if (part.state === "output-available" && part.preliminary)
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
outputValue
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
1386
|
+
if (part.state === "output-available" && part.preliminary) {
|
|
1387
|
+
let t3;
|
|
1388
|
+
if ($[5] !== part) {
|
|
1389
|
+
t3 = /* @__PURE__ */ jsx(ToolInvocationDetails, { part });
|
|
1390
|
+
$[5] = part;
|
|
1391
|
+
$[6] = t3;
|
|
1392
|
+
} else t3 = $[6];
|
|
1393
|
+
return t3;
|
|
1394
|
+
}
|
|
1395
|
+
if (part.state === "output-available" && isCodemodePanelOutput(outputValue)) {
|
|
1396
|
+
let t3;
|
|
1397
|
+
if ($[7] !== outputValue) {
|
|
1398
|
+
t3 = executeStatusText(outputValue);
|
|
1399
|
+
$[7] = outputValue;
|
|
1400
|
+
$[8] = t3;
|
|
1401
|
+
} else t3 = $[8];
|
|
1402
|
+
const t4 = outputValue.status === "error";
|
|
1403
|
+
let t5;
|
|
1404
|
+
if ($[9] !== code || $[10] !== outputValue) {
|
|
1405
|
+
t5 = /* @__PURE__ */ jsx(ExecuteCodeView, {
|
|
1406
|
+
code,
|
|
1407
|
+
output: outputValue,
|
|
1408
|
+
isStreaming: false
|
|
1409
|
+
});
|
|
1410
|
+
$[9] = code;
|
|
1411
|
+
$[10] = outputValue;
|
|
1412
|
+
$[11] = t5;
|
|
1413
|
+
} else t5 = $[11];
|
|
1414
|
+
let t6;
|
|
1415
|
+
if ($[12] !== t3 || $[13] !== t4 || $[14] !== t5) {
|
|
1416
|
+
t6 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
1417
|
+
label: "Code",
|
|
1418
|
+
status: t3,
|
|
1419
|
+
error: t4,
|
|
1420
|
+
children: t5
|
|
1421
|
+
});
|
|
1422
|
+
$[12] = t3;
|
|
1423
|
+
$[13] = t4;
|
|
1424
|
+
$[14] = t5;
|
|
1425
|
+
$[15] = t6;
|
|
1426
|
+
} else t6 = $[15];
|
|
1427
|
+
return t6;
|
|
1428
|
+
}
|
|
1429
|
+
if (part.state === "output-available" && isRookExecuteOutput(outputValue)) {
|
|
1430
|
+
let t3;
|
|
1431
|
+
if ($[16] !== outputValue || $[17] !== part.input) {
|
|
1432
|
+
t3 = /* @__PURE__ */ jsx(RookExecutePanel, {
|
|
1433
|
+
inputValue: part.input,
|
|
1434
|
+
outputValue,
|
|
1435
|
+
isStreaming: false
|
|
1436
|
+
});
|
|
1437
|
+
$[16] = outputValue;
|
|
1438
|
+
$[17] = part.input;
|
|
1439
|
+
$[18] = t3;
|
|
1440
|
+
} else t3 = $[18];
|
|
1441
|
+
return t3;
|
|
1442
|
+
}
|
|
1443
|
+
if (part.state !== "output-available" && typeof input?.path === "string") {
|
|
1444
|
+
const t3 = part.state === "input-streaming";
|
|
1445
|
+
let t4;
|
|
1446
|
+
if ($[19] !== part.input || $[20] !== t3) {
|
|
1447
|
+
t4 = /* @__PURE__ */ jsx(RookExecutePanel, {
|
|
1448
|
+
inputValue: part.input,
|
|
1449
|
+
outputValue: void 0,
|
|
1450
|
+
isStreaming: t3
|
|
1451
|
+
});
|
|
1452
|
+
$[19] = part.input;
|
|
1453
|
+
$[20] = t3;
|
|
1454
|
+
$[21] = t4;
|
|
1455
|
+
} else t4 = $[21];
|
|
1456
|
+
return t4;
|
|
1457
|
+
}
|
|
1458
|
+
if (part.state === "output-available") {
|
|
1459
|
+
let t3;
|
|
1460
|
+
if ($[22] !== part) {
|
|
1461
|
+
t3 = thinkToolOutcome(part);
|
|
1462
|
+
$[22] = part;
|
|
1463
|
+
$[23] = t3;
|
|
1464
|
+
} else t3 = $[23];
|
|
1465
|
+
const t4 = t3 === "failed";
|
|
1466
|
+
let t5;
|
|
1467
|
+
if ($[24] !== part || $[25] !== t4) {
|
|
1468
|
+
t5 = /* @__PURE__ */ jsx(ToolInvocationDetails, {
|
|
1469
|
+
part,
|
|
1470
|
+
outputError: t4
|
|
1471
|
+
});
|
|
1472
|
+
$[24] = part;
|
|
1473
|
+
$[25] = t4;
|
|
1474
|
+
$[26] = t5;
|
|
1475
|
+
} else t5 = $[26];
|
|
1476
|
+
return t5;
|
|
1477
|
+
}
|
|
1478
|
+
if (!code) {
|
|
1479
|
+
let t3;
|
|
1480
|
+
if ($[27] !== part) {
|
|
1481
|
+
t3 = /* @__PURE__ */ jsx(ToolInvocationDetails, { part });
|
|
1482
|
+
$[27] = part;
|
|
1483
|
+
$[28] = t3;
|
|
1484
|
+
} else t3 = $[28];
|
|
1485
|
+
return t3;
|
|
1486
|
+
}
|
|
1487
|
+
const t3 = part.state === "input-streaming";
|
|
1488
|
+
let t4;
|
|
1489
|
+
if ($[29] !== code || $[30] !== t3) {
|
|
1490
|
+
t4 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
1491
|
+
label: "Code",
|
|
1492
|
+
children: /* @__PURE__ */ jsx(ExecuteCodeView, {
|
|
1493
|
+
code,
|
|
1494
|
+
output: void 0,
|
|
1495
|
+
isStreaming: t3
|
|
1496
|
+
})
|
|
1497
|
+
});
|
|
1498
|
+
$[29] = code;
|
|
1499
|
+
$[30] = t3;
|
|
1500
|
+
$[31] = t4;
|
|
1501
|
+
} else t4 = $[31];
|
|
1502
|
+
return t4;
|
|
633
1503
|
}
|
|
634
|
-
function ThinkChatBrowserPanel(
|
|
635
|
-
const
|
|
636
|
-
const
|
|
1504
|
+
function ThinkChatBrowserPanel(t0) {
|
|
1505
|
+
const $ = c(13);
|
|
1506
|
+
const { part } = t0;
|
|
1507
|
+
const [seenAt] = React.useState(_temp5);
|
|
1508
|
+
let t1;
|
|
1509
|
+
if ($[0] !== part) {
|
|
1510
|
+
t1 = toolFailurePanel(part, "Browser");
|
|
1511
|
+
$[0] = part;
|
|
1512
|
+
$[1] = t1;
|
|
1513
|
+
} else t1 = $[1];
|
|
1514
|
+
const failure = t1;
|
|
637
1515
|
if (failure) return failure;
|
|
638
|
-
if (part.type === "tool-browser_execute")
|
|
639
|
-
|
|
640
|
-
seenAt
|
|
641
|
-
|
|
1516
|
+
if (part.type === "tool-browser_execute") {
|
|
1517
|
+
let t2;
|
|
1518
|
+
if ($[2] !== part || $[3] !== seenAt) {
|
|
1519
|
+
t2 = /* @__PURE__ */ jsx(ThinkChatBrowserExecutePanel, {
|
|
1520
|
+
part,
|
|
1521
|
+
seenAt
|
|
1522
|
+
});
|
|
1523
|
+
$[2] = part;
|
|
1524
|
+
$[3] = seenAt;
|
|
1525
|
+
$[4] = t2;
|
|
1526
|
+
} else t2 = $[4];
|
|
1527
|
+
return t2;
|
|
1528
|
+
}
|
|
642
1529
|
const output = part.state === "output-available" ? part.output : void 0;
|
|
643
|
-
|
|
1530
|
+
let t2;
|
|
1531
|
+
if ($[5] !== part.input?.url) {
|
|
1532
|
+
t2 = displayUrl(part.input?.url) || "page";
|
|
1533
|
+
$[5] = part.input?.url;
|
|
1534
|
+
$[6] = t2;
|
|
1535
|
+
} else t2 = $[6];
|
|
1536
|
+
const label = t2;
|
|
644
1537
|
const status = part.type === "tool-browser_links" && Array.isArray(output) ? `${output.length} links` : void 0;
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
children: output !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
|
|
1538
|
+
let t3;
|
|
1539
|
+
if ($[7] !== output) {
|
|
1540
|
+
t3 = output !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
|
|
649
1541
|
result: output,
|
|
650
1542
|
showSummary: false
|
|
651
|
-
}) : null
|
|
652
|
-
|
|
1543
|
+
}) : null;
|
|
1544
|
+
$[7] = output;
|
|
1545
|
+
$[8] = t3;
|
|
1546
|
+
} else t3 = $[8];
|
|
1547
|
+
let t4;
|
|
1548
|
+
if ($[9] !== label || $[10] !== status || $[11] !== t3) {
|
|
1549
|
+
t4 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
1550
|
+
label,
|
|
1551
|
+
status,
|
|
1552
|
+
children: t3
|
|
1553
|
+
});
|
|
1554
|
+
$[9] = label;
|
|
1555
|
+
$[10] = status;
|
|
1556
|
+
$[11] = t3;
|
|
1557
|
+
$[12] = t4;
|
|
1558
|
+
} else t4 = $[12];
|
|
1559
|
+
return t4;
|
|
653
1560
|
}
|
|
654
|
-
function
|
|
1561
|
+
function _temp5() {
|
|
1562
|
+
return Date.now();
|
|
1563
|
+
}
|
|
1564
|
+
function ThinkChatBrowserExecutePanel(t0) {
|
|
1565
|
+
const $ = c(21);
|
|
1566
|
+
const { part, seenAt } = t0;
|
|
655
1567
|
const output = part.state === "output-available" ? part.output : void 0;
|
|
656
1568
|
const code = part.input?.code ?? "";
|
|
657
|
-
|
|
1569
|
+
let t1;
|
|
1570
|
+
if ($[0] !== output) {
|
|
1571
|
+
t1 = output?.status === "completed" ? findBrowserResultMedia(output.result) : {};
|
|
1572
|
+
$[0] = output;
|
|
1573
|
+
$[1] = t1;
|
|
1574
|
+
} else t1 = $[1];
|
|
1575
|
+
const media = t1;
|
|
658
1576
|
const hasMedia = Boolean(media.liveView || media.screenshot);
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
1577
|
+
let t2;
|
|
1578
|
+
if ($[2] !== media.liveView || $[3] !== media.screenshot || $[4] !== seenAt) {
|
|
1579
|
+
t2 = media.liveView ? /* @__PURE__ */ jsx(BrowserLiveView, {
|
|
1580
|
+
source: media.liveView,
|
|
1581
|
+
receivedAt: seenAt,
|
|
1582
|
+
fallback: media.screenshot ? /* @__PURE__ */ jsx("img", {
|
|
1583
|
+
src: media.screenshot,
|
|
1584
|
+
alt: "Last browser state",
|
|
1585
|
+
width: 16,
|
|
1586
|
+
height: 10
|
|
1587
|
+
}) : void 0
|
|
1588
|
+
}) : media.screenshot ? /* @__PURE__ */ jsx("img", {
|
|
1589
|
+
className: "think-chat-tool-panels__browser-screenshot",
|
|
663
1590
|
src: media.screenshot,
|
|
664
|
-
alt: "
|
|
1591
|
+
alt: "Browser screenshot",
|
|
665
1592
|
width: 16,
|
|
666
1593
|
height: 10
|
|
667
|
-
}) :
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
1594
|
+
}) : null;
|
|
1595
|
+
$[2] = media.liveView;
|
|
1596
|
+
$[3] = media.screenshot;
|
|
1597
|
+
$[4] = seenAt;
|
|
1598
|
+
$[5] = t2;
|
|
1599
|
+
} else t2 = $[5];
|
|
1600
|
+
const browserView = t2;
|
|
1601
|
+
const t3 = part.state === "input-streaming";
|
|
1602
|
+
let t4;
|
|
1603
|
+
if ($[6] !== code || $[7] !== hasMedia || $[8] !== output || $[9] !== t3) {
|
|
1604
|
+
t4 = /* @__PURE__ */ jsx(ExecuteCodeView, {
|
|
1605
|
+
code,
|
|
1606
|
+
output,
|
|
1607
|
+
hideResult: hasMedia,
|
|
1608
|
+
isStreaming: t3
|
|
1609
|
+
});
|
|
1610
|
+
$[6] = code;
|
|
1611
|
+
$[7] = hasMedia;
|
|
1612
|
+
$[8] = output;
|
|
1613
|
+
$[9] = t3;
|
|
1614
|
+
$[10] = t4;
|
|
1615
|
+
} else t4 = $[10];
|
|
1616
|
+
const codeView = t4;
|
|
1617
|
+
let t5;
|
|
1618
|
+
if ($[11] !== output) {
|
|
1619
|
+
t5 = executeStatusText(output);
|
|
1620
|
+
$[11] = output;
|
|
1621
|
+
$[12] = t5;
|
|
1622
|
+
} else t5 = $[12];
|
|
1623
|
+
const t6 = output?.status === "error";
|
|
1624
|
+
let t7;
|
|
1625
|
+
if ($[13] !== browserView || $[14] !== code || $[15] !== codeView) {
|
|
1626
|
+
t7 = browserView && code ? /* @__PURE__ */ jsxs(Tabs.Root, {
|
|
686
1627
|
defaultValue: "browser",
|
|
687
|
-
children: [
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
}
|
|
1628
|
+
children: [/* @__PURE__ */ jsxs(Tabs.List, {
|
|
1629
|
+
variant: "line",
|
|
1630
|
+
children: [
|
|
1631
|
+
/* @__PURE__ */ jsx(Tabs.Tab, {
|
|
1632
|
+
value: "browser",
|
|
1633
|
+
children: "Preview"
|
|
1634
|
+
}),
|
|
1635
|
+
/* @__PURE__ */ jsx(Tabs.Tab, {
|
|
1636
|
+
value: "code",
|
|
1637
|
+
children: "Code"
|
|
1638
|
+
}),
|
|
1639
|
+
/* @__PURE__ */ jsx(Tabs.Indicator, {})
|
|
1640
|
+
]
|
|
1641
|
+
}), /* @__PURE__ */ jsxs(Tabs.Panels, { children: [/* @__PURE__ */ jsx(Tabs.Panel, {
|
|
1642
|
+
className: "think-chat-tool-panels__browser-panel",
|
|
1643
|
+
value: "browser",
|
|
1644
|
+
children: browserView
|
|
1645
|
+
}), /* @__PURE__ */ jsx(Tabs.Panel, {
|
|
1646
|
+
className: "think-chat-tool-panels__browser-panel",
|
|
1647
|
+
value: "code",
|
|
1648
|
+
children: codeView
|
|
1649
|
+
})] })]
|
|
1650
|
+
}) : /* @__PURE__ */ jsxs(Fragment, { children: [browserView, codeView] });
|
|
1651
|
+
$[13] = browserView;
|
|
1652
|
+
$[14] = code;
|
|
1653
|
+
$[15] = codeView;
|
|
1654
|
+
$[16] = t7;
|
|
1655
|
+
} else t7 = $[16];
|
|
1656
|
+
let t8;
|
|
1657
|
+
if ($[17] !== t5 || $[18] !== t6 || $[19] !== t7) {
|
|
1658
|
+
t8 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
1659
|
+
label: "Browser",
|
|
1660
|
+
status: t5,
|
|
1661
|
+
error: t6,
|
|
1662
|
+
children: t7
|
|
1663
|
+
});
|
|
1664
|
+
$[17] = t5;
|
|
1665
|
+
$[18] = t6;
|
|
1666
|
+
$[19] = t7;
|
|
1667
|
+
$[20] = t8;
|
|
1668
|
+
} else t8 = $[20];
|
|
1669
|
+
return t8;
|
|
715
1670
|
}
|
|
716
|
-
function ThinkChatShellPanel(
|
|
1671
|
+
function ThinkChatShellPanel(t0) {
|
|
1672
|
+
const $ = c(12);
|
|
1673
|
+
const { part } = t0;
|
|
717
1674
|
const output = part.state === "output-available" ? part.output : void 0;
|
|
718
1675
|
const errorText = part.state === "output-error" ? part.errorText : "";
|
|
719
1676
|
const deniedReason = part.state === "output-denied" || part.state === "approval-responded" && !part.approval.approved ? part.approval.reason ?? "denied" : "";
|
|
720
1677
|
const failed = Boolean(errorText) || Boolean(deniedReason) || output !== void 0 && (output.exitCode !== 0 || Boolean(output.errors?.length));
|
|
721
|
-
const
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
1678
|
+
const t1 = errorText || deniedReason;
|
|
1679
|
+
let t2;
|
|
1680
|
+
if ($[0] !== output || $[1] !== part.input || $[2] !== t1) {
|
|
1681
|
+
t2 = formatBashPanelText(part.input, output, t1);
|
|
1682
|
+
$[0] = output;
|
|
1683
|
+
$[1] = part.input;
|
|
1684
|
+
$[2] = t1;
|
|
1685
|
+
$[3] = t2;
|
|
1686
|
+
} else t2 = $[3];
|
|
1687
|
+
const text = t2;
|
|
1688
|
+
let t3;
|
|
1689
|
+
if ($[4] !== deniedReason || $[5] !== errorText || $[6] !== output) {
|
|
1690
|
+
t3 = output !== void 0 || errorText || deniedReason ? getBashStatusText(output, errorText, deniedReason) : void 0;
|
|
1691
|
+
$[4] = deniedReason;
|
|
1692
|
+
$[5] = errorText;
|
|
1693
|
+
$[6] = output;
|
|
1694
|
+
$[7] = t3;
|
|
1695
|
+
} else t3 = $[7];
|
|
1696
|
+
let t4;
|
|
1697
|
+
if ($[8] !== failed || $[9] !== t3 || $[10] !== text) {
|
|
1698
|
+
t4 = /* @__PURE__ */ jsx(ActivityPanel, {
|
|
1699
|
+
label: "Shell",
|
|
1700
|
+
text,
|
|
1701
|
+
status: t3,
|
|
1702
|
+
error: failed
|
|
1703
|
+
});
|
|
1704
|
+
$[8] = failed;
|
|
1705
|
+
$[9] = t3;
|
|
1706
|
+
$[10] = text;
|
|
1707
|
+
$[11] = t4;
|
|
1708
|
+
} else t4 = $[11];
|
|
1709
|
+
return t4;
|
|
728
1710
|
}
|
|
729
1711
|
function formatBashPanelText(input, output, errorText) {
|
|
730
1712
|
return [
|