@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
|
@@ -0,0 +1,671 @@
|
|
|
1
|
+
import { g as ChevronRightIcon } from "./icons-nLTnB9kd.js";
|
|
2
|
+
import { IconButton } from "./components/foundations/IconButton.js";
|
|
3
|
+
import { DescriptionList } from "./components/foundations/DescriptionList.js";
|
|
4
|
+
import { a as executionResultSummary, i as executionResultPath, o as readExecutionResult, r as executionResultFiles } from "./execution-result-DAuW4VWv.js";
|
|
5
|
+
import { i as httpUrl, n as OutboundLink, r as WorkspaceComposerLink } from "./workspace-assets-DdtnBDU3.js";
|
|
6
|
+
import { t as WorkspaceFileLink } from "./WorkspaceLink-DDkj-Tq5.js";
|
|
7
|
+
import { c } from "react/compiler-runtime";
|
|
8
|
+
import { useId, useState } from "react";
|
|
9
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
//#region src/components/_internal/ExecutionResult.tsx
|
|
11
|
+
function executionResultLabel(key) {
|
|
12
|
+
if (key.toLowerCase() === "url") return "Link";
|
|
13
|
+
if (key === key.toUpperCase()) return key;
|
|
14
|
+
const words = key.replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ");
|
|
15
|
+
return words.charAt(0).toUpperCase() + words.slice(1).toLowerCase();
|
|
16
|
+
}
|
|
17
|
+
function FileLink(t0) {
|
|
18
|
+
const $ = c(6);
|
|
19
|
+
const { path, label: t1 } = t0;
|
|
20
|
+
const label = t1 === void 0 ? "Open result" : t1;
|
|
21
|
+
let t2;
|
|
22
|
+
if ($[0] !== label || $[1] !== path) {
|
|
23
|
+
t2 = /* @__PURE__ */ jsx(WorkspaceComposerLink, {
|
|
24
|
+
value: path,
|
|
25
|
+
label
|
|
26
|
+
});
|
|
27
|
+
$[0] = label;
|
|
28
|
+
$[1] = path;
|
|
29
|
+
$[2] = t2;
|
|
30
|
+
} else t2 = $[2];
|
|
31
|
+
let t3;
|
|
32
|
+
if ($[3] !== path || $[4] !== t2) {
|
|
33
|
+
t3 = /* @__PURE__ */ jsx(WorkspaceFileLink, {
|
|
34
|
+
href: path,
|
|
35
|
+
children: t2
|
|
36
|
+
});
|
|
37
|
+
$[3] = path;
|
|
38
|
+
$[4] = t2;
|
|
39
|
+
$[5] = t3;
|
|
40
|
+
} else t3 = $[5];
|
|
41
|
+
return t3;
|
|
42
|
+
}
|
|
43
|
+
/** The text between saved files, each file with a key distinct among equal paths. */
|
|
44
|
+
function resultSegments(text, files) {
|
|
45
|
+
let start = 0;
|
|
46
|
+
const occurrences = /* @__PURE__ */ new Map();
|
|
47
|
+
return {
|
|
48
|
+
segments: files.map((path) => {
|
|
49
|
+
const position = text.indexOf(path, start);
|
|
50
|
+
const before = text.slice(start, position);
|
|
51
|
+
start = position + path.length;
|
|
52
|
+
const occurrence = occurrences.get(path) ?? 0;
|
|
53
|
+
occurrences.set(path, occurrence + 1);
|
|
54
|
+
return {
|
|
55
|
+
key: `${path}:${occurrence}`,
|
|
56
|
+
before,
|
|
57
|
+
path
|
|
58
|
+
};
|
|
59
|
+
}),
|
|
60
|
+
rest: text.slice(start)
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function ResultText(t0) {
|
|
64
|
+
const $ = c(9);
|
|
65
|
+
const { text } = t0;
|
|
66
|
+
let rest;
|
|
67
|
+
let t1;
|
|
68
|
+
let t2;
|
|
69
|
+
let t3;
|
|
70
|
+
if ($[0] !== text) {
|
|
71
|
+
t3 = Symbol.for("react.early_return_sentinel");
|
|
72
|
+
bb0: {
|
|
73
|
+
const files = executionResultFiles(text);
|
|
74
|
+
if (!files.length) {
|
|
75
|
+
t3 = /* @__PURE__ */ jsx("span", {
|
|
76
|
+
className: "execution-result__text",
|
|
77
|
+
children: text
|
|
78
|
+
});
|
|
79
|
+
break bb0;
|
|
80
|
+
}
|
|
81
|
+
const { segments, rest: t4 } = resultSegments(text, files);
|
|
82
|
+
rest = t4;
|
|
83
|
+
t1 = "execution-result__text";
|
|
84
|
+
t2 = segments.map(_temp);
|
|
85
|
+
}
|
|
86
|
+
$[0] = text;
|
|
87
|
+
$[1] = rest;
|
|
88
|
+
$[2] = t1;
|
|
89
|
+
$[3] = t2;
|
|
90
|
+
$[4] = t3;
|
|
91
|
+
} else {
|
|
92
|
+
rest = $[1];
|
|
93
|
+
t1 = $[2];
|
|
94
|
+
t2 = $[3];
|
|
95
|
+
t3 = $[4];
|
|
96
|
+
}
|
|
97
|
+
if (t3 !== Symbol.for("react.early_return_sentinel")) return t3;
|
|
98
|
+
let t4;
|
|
99
|
+
if ($[5] !== rest || $[6] !== t1 || $[7] !== t2) {
|
|
100
|
+
t4 = /* @__PURE__ */ jsxs("span", {
|
|
101
|
+
className: t1,
|
|
102
|
+
children: [t2, rest]
|
|
103
|
+
});
|
|
104
|
+
$[5] = rest;
|
|
105
|
+
$[6] = t1;
|
|
106
|
+
$[7] = t2;
|
|
107
|
+
$[8] = t4;
|
|
108
|
+
} else t4 = $[8];
|
|
109
|
+
return t4;
|
|
110
|
+
}
|
|
111
|
+
function _temp(t0) {
|
|
112
|
+
const { key, before, path } = t0;
|
|
113
|
+
return /* @__PURE__ */ jsxs("span", { children: [before, /* @__PURE__ */ jsx(FileLink, {
|
|
114
|
+
path,
|
|
115
|
+
label: "saved file"
|
|
116
|
+
})] }, key);
|
|
117
|
+
}
|
|
118
|
+
function isRecord(value) {
|
|
119
|
+
return value != null && typeof value === "object" && !Array.isArray(value);
|
|
120
|
+
}
|
|
121
|
+
function contentKeys(values) {
|
|
122
|
+
const occurrences = /* @__PURE__ */ new Map();
|
|
123
|
+
return values.map((value) => {
|
|
124
|
+
let content;
|
|
125
|
+
try {
|
|
126
|
+
content = JSON.stringify(value) ?? String(value);
|
|
127
|
+
} catch {
|
|
128
|
+
content = String(value);
|
|
129
|
+
}
|
|
130
|
+
const occurrence = occurrences.get(content) ?? 0;
|
|
131
|
+
occurrences.set(content, occurrence + 1);
|
|
132
|
+
return `${content}:${occurrence}`;
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
function resultColumns(records, path = []) {
|
|
136
|
+
return [...new Set(records.flatMap((record) => isRecord(record) ? Object.keys(record) : []))].map((key) => {
|
|
137
|
+
const fieldPath = [...path, key];
|
|
138
|
+
const values = records.map((record) => {
|
|
139
|
+
if (!isRecord(record)) return record == null ? record : void 0;
|
|
140
|
+
return Object.hasOwn(record, key) ? readExecutionResult(record[key]) : void 0;
|
|
141
|
+
});
|
|
142
|
+
const children = values.every((value) => value == null || isRecord(value)) ? resultColumns(values, fieldPath) : [];
|
|
143
|
+
return {
|
|
144
|
+
path: fieldPath,
|
|
145
|
+
values,
|
|
146
|
+
children,
|
|
147
|
+
kind: valueKind(values),
|
|
148
|
+
span: children.reduce((sum, child) => sum + child.span, 0) || 1
|
|
149
|
+
};
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
function valueKind(items) {
|
|
153
|
+
const values = items.filter((value) => value != null);
|
|
154
|
+
if (values.length && values.every((value) => typeof value === "number")) return "number";
|
|
155
|
+
if (values.some((value) => typeof value === "string" && value.length > 60)) return "prose";
|
|
156
|
+
return "text";
|
|
157
|
+
}
|
|
158
|
+
function hasDetail(value) {
|
|
159
|
+
return value != null && typeof value === "object" && Object.keys(value).length > 0;
|
|
160
|
+
}
|
|
161
|
+
function ResultRow(t0) {
|
|
162
|
+
const $ = c(17);
|
|
163
|
+
const { columns, index, expandable, headerId } = t0;
|
|
164
|
+
const [expanded, setExpanded] = useState(false);
|
|
165
|
+
const detailsId = useId();
|
|
166
|
+
let t1;
|
|
167
|
+
if ($[0] !== columns || $[1] !== detailsId || $[2] !== expandable || $[3] !== expanded || $[4] !== headerId || $[5] !== index) {
|
|
168
|
+
let t2;
|
|
169
|
+
if ($[7] !== index) {
|
|
170
|
+
t2 = (column) => hasDetail(column.values[index]);
|
|
171
|
+
$[7] = index;
|
|
172
|
+
$[8] = t2;
|
|
173
|
+
} else t2 = $[8];
|
|
174
|
+
const details = columns.filter(t2);
|
|
175
|
+
const t3 = expanded || void 0;
|
|
176
|
+
const t4 = expandable ? /* @__PURE__ */ jsx("td", {
|
|
177
|
+
className: "execution-result__toggle-cell",
|
|
178
|
+
children: details.length ? /* @__PURE__ */ jsx(IconButton, {
|
|
179
|
+
className: "execution-result__expand",
|
|
180
|
+
variant: "ghost",
|
|
181
|
+
color: "neutral",
|
|
182
|
+
label: `${expanded ? "Collapse" : "Expand"} row ${index + 1}`,
|
|
183
|
+
"aria-expanded": expanded,
|
|
184
|
+
"aria-controls": expanded ? detailsId : void 0,
|
|
185
|
+
onClick: () => setExpanded(!expanded),
|
|
186
|
+
children: /* @__PURE__ */ jsx(ChevronRightIcon, {})
|
|
187
|
+
}) : null
|
|
188
|
+
}) : null;
|
|
189
|
+
let t5;
|
|
190
|
+
if ($[9] !== columns || $[10] !== headerId || $[11] !== index) {
|
|
191
|
+
t5 = columns.map((column_0, columnIndex) => {
|
|
192
|
+
const value = column_0.values[index];
|
|
193
|
+
const previous = columns[columnIndex - 1];
|
|
194
|
+
return /* @__PURE__ */ jsx("td", {
|
|
195
|
+
"data-kind": column_0.kind,
|
|
196
|
+
"data-group-start": previous && column_0.path[0] !== previous.path[0] && (column_0.path.length > 1 || previous.path.length > 1) || void 0,
|
|
197
|
+
headers: column_0.path.map((_, depth) => headerId(column_0.path.slice(0, depth + 1))).join(" "),
|
|
198
|
+
children: value === void 0 ? /* @__PURE__ */ jsx("span", {
|
|
199
|
+
className: "execution-result__muted",
|
|
200
|
+
children: "—"
|
|
201
|
+
}) : hasDetail(value) ? /* @__PURE__ */ jsx("span", {
|
|
202
|
+
className: "execution-result__muted",
|
|
203
|
+
children: Array.isArray(value) ? `${value.length} ${value.length === 1 ? "item" : "items"}` : `${Object.keys(value).length} fields`
|
|
204
|
+
}) : /* @__PURE__ */ jsx(Value, {
|
|
205
|
+
value,
|
|
206
|
+
label: executionResultLabel(column_0.path.at(-1))
|
|
207
|
+
})
|
|
208
|
+
}, headerId(column_0.path));
|
|
209
|
+
});
|
|
210
|
+
$[9] = columns;
|
|
211
|
+
$[10] = headerId;
|
|
212
|
+
$[11] = index;
|
|
213
|
+
$[12] = t5;
|
|
214
|
+
} else t5 = $[12];
|
|
215
|
+
let t6;
|
|
216
|
+
if ($[13] !== t3 || $[14] !== t4 || $[15] !== t5) {
|
|
217
|
+
t6 = /* @__PURE__ */ jsxs("tr", {
|
|
218
|
+
"data-expanded": t3,
|
|
219
|
+
children: [t4, t5]
|
|
220
|
+
});
|
|
221
|
+
$[13] = t3;
|
|
222
|
+
$[14] = t4;
|
|
223
|
+
$[15] = t5;
|
|
224
|
+
$[16] = t6;
|
|
225
|
+
} else t6 = $[16];
|
|
226
|
+
t1 = /* @__PURE__ */ jsxs(Fragment, { children: [t6, expanded && details.length ? /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", {
|
|
227
|
+
colSpan: columns.length + 1,
|
|
228
|
+
className: "execution-result__detail-cell",
|
|
229
|
+
children: /* @__PURE__ */ jsx("section", {
|
|
230
|
+
id: detailsId,
|
|
231
|
+
className: "execution-result__detail",
|
|
232
|
+
"aria-label": `Row ${index + 1} details`,
|
|
233
|
+
children: details.map((column_1) => /* @__PURE__ */ jsxs("section", { children: [/* @__PURE__ */ jsx("p", {
|
|
234
|
+
className: "execution-result__detail-title",
|
|
235
|
+
children: column_1.path.map(executionResultLabel).join(" / ")
|
|
236
|
+
}), /* @__PURE__ */ jsx(Value, {
|
|
237
|
+
value: column_1.values[index],
|
|
238
|
+
label: column_1.path.map(executionResultLabel).join(" / ")
|
|
239
|
+
})] }, headerId(column_1.path)))
|
|
240
|
+
})
|
|
241
|
+
}) }) : null] });
|
|
242
|
+
$[0] = columns;
|
|
243
|
+
$[1] = detailsId;
|
|
244
|
+
$[2] = expandable;
|
|
245
|
+
$[3] = expanded;
|
|
246
|
+
$[4] = headerId;
|
|
247
|
+
$[5] = index;
|
|
248
|
+
$[6] = t1;
|
|
249
|
+
} else t1 = $[6];
|
|
250
|
+
return t1;
|
|
251
|
+
}
|
|
252
|
+
function ResultTable(t0) {
|
|
253
|
+
const $ = c(41);
|
|
254
|
+
const { rows, label } = t0;
|
|
255
|
+
const tableId = useId();
|
|
256
|
+
let t1;
|
|
257
|
+
if ($[0] !== rows) {
|
|
258
|
+
t1 = contentKeys(rows);
|
|
259
|
+
$[0] = rows;
|
|
260
|
+
$[1] = t1;
|
|
261
|
+
} else t1 = $[1];
|
|
262
|
+
const rowKeys = t1;
|
|
263
|
+
let expandable;
|
|
264
|
+
let headerId;
|
|
265
|
+
let leaves;
|
|
266
|
+
let t2;
|
|
267
|
+
let t3;
|
|
268
|
+
let t4;
|
|
269
|
+
let t5;
|
|
270
|
+
let t6;
|
|
271
|
+
let t7;
|
|
272
|
+
let t8;
|
|
273
|
+
if ($[2] !== label || $[3] !== rows || $[4] !== tableId) {
|
|
274
|
+
const columns = resultColumns(rows);
|
|
275
|
+
const levels = [];
|
|
276
|
+
leaves = [];
|
|
277
|
+
function visit(column, depth) {
|
|
278
|
+
levels[depth] = [...levels[depth] ?? [], column];
|
|
279
|
+
if (column.children.length) column.children.forEach((child) => visit(child, depth + 1));
|
|
280
|
+
else leaves.push(column);
|
|
281
|
+
}
|
|
282
|
+
columns.forEach((column_0) => visit(column_0, 0));
|
|
283
|
+
let t9;
|
|
284
|
+
if ($[15] !== tableId) {
|
|
285
|
+
t9 = (path) => `${tableId}-${encodeURIComponent(JSON.stringify(path))}`;
|
|
286
|
+
$[15] = tableId;
|
|
287
|
+
$[16] = t9;
|
|
288
|
+
} else t9 = $[16];
|
|
289
|
+
headerId = t9;
|
|
290
|
+
expandable = leaves.some(_temp2);
|
|
291
|
+
t4 = "execution-result__scroll";
|
|
292
|
+
t5 = "region";
|
|
293
|
+
t6 = label;
|
|
294
|
+
t7 = 0;
|
|
295
|
+
t2 = "execution-result__table";
|
|
296
|
+
t3 = label;
|
|
297
|
+
t8 = /* @__PURE__ */ jsx("thead", { children: levels.map((level, depth_0) => /* @__PURE__ */ jsxs("tr", { children: [depth_0 === 0 && expandable ? /* @__PURE__ */ jsx("th", {
|
|
298
|
+
className: "execution-result__toggle-cell",
|
|
299
|
+
rowSpan: levels.length,
|
|
300
|
+
scope: "col",
|
|
301
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
302
|
+
className: "sigvelo-visually-hidden",
|
|
303
|
+
children: "Row details"
|
|
304
|
+
})
|
|
305
|
+
}) : null, level.map((column_2) => /* @__PURE__ */ jsx("th", {
|
|
306
|
+
id: headerId(column_2.path),
|
|
307
|
+
scope: column_2.children.length ? "colgroup" : "col",
|
|
308
|
+
colSpan: column_2.span,
|
|
309
|
+
rowSpan: column_2.children.length ? 1 : levels.length - depth_0,
|
|
310
|
+
"data-kind": column_2.children.length ? void 0 : column_2.kind,
|
|
311
|
+
children: executionResultLabel(column_2.path.at(-1))
|
|
312
|
+
}, headerId(column_2.path)))] }, depth_0)) });
|
|
313
|
+
$[2] = label;
|
|
314
|
+
$[3] = rows;
|
|
315
|
+
$[4] = tableId;
|
|
316
|
+
$[5] = expandable;
|
|
317
|
+
$[6] = headerId;
|
|
318
|
+
$[7] = leaves;
|
|
319
|
+
$[8] = t2;
|
|
320
|
+
$[9] = t3;
|
|
321
|
+
$[10] = t4;
|
|
322
|
+
$[11] = t5;
|
|
323
|
+
$[12] = t6;
|
|
324
|
+
$[13] = t7;
|
|
325
|
+
$[14] = t8;
|
|
326
|
+
} else {
|
|
327
|
+
expandable = $[5];
|
|
328
|
+
headerId = $[6];
|
|
329
|
+
leaves = $[7];
|
|
330
|
+
t2 = $[8];
|
|
331
|
+
t3 = $[9];
|
|
332
|
+
t4 = $[10];
|
|
333
|
+
t5 = $[11];
|
|
334
|
+
t6 = $[12];
|
|
335
|
+
t7 = $[13];
|
|
336
|
+
t8 = $[14];
|
|
337
|
+
}
|
|
338
|
+
let t9;
|
|
339
|
+
if ($[17] !== expandable || $[18] !== headerId || $[19] !== leaves || $[20] !== rowKeys || $[21] !== rows) {
|
|
340
|
+
let t10;
|
|
341
|
+
if ($[23] !== expandable || $[24] !== headerId || $[25] !== leaves || $[26] !== rowKeys) {
|
|
342
|
+
t10 = (_, index) => /* @__PURE__ */ jsx(ResultRow, {
|
|
343
|
+
columns: leaves,
|
|
344
|
+
index,
|
|
345
|
+
expandable,
|
|
346
|
+
headerId
|
|
347
|
+
}, rowKeys[index]);
|
|
348
|
+
$[23] = expandable;
|
|
349
|
+
$[24] = headerId;
|
|
350
|
+
$[25] = leaves;
|
|
351
|
+
$[26] = rowKeys;
|
|
352
|
+
$[27] = t10;
|
|
353
|
+
} else t10 = $[27];
|
|
354
|
+
t9 = rows.map(t10);
|
|
355
|
+
$[17] = expandable;
|
|
356
|
+
$[18] = headerId;
|
|
357
|
+
$[19] = leaves;
|
|
358
|
+
$[20] = rowKeys;
|
|
359
|
+
$[21] = rows;
|
|
360
|
+
$[22] = t9;
|
|
361
|
+
} else t9 = $[22];
|
|
362
|
+
let t10;
|
|
363
|
+
if ($[28] !== t9) {
|
|
364
|
+
t10 = /* @__PURE__ */ jsx("tbody", { children: t9 });
|
|
365
|
+
$[28] = t9;
|
|
366
|
+
$[29] = t10;
|
|
367
|
+
} else t10 = $[29];
|
|
368
|
+
let t11;
|
|
369
|
+
if ($[30] !== t10 || $[31] !== t2 || $[32] !== t3 || $[33] !== t8) {
|
|
370
|
+
t11 = /* @__PURE__ */ jsxs("table", {
|
|
371
|
+
className: t2,
|
|
372
|
+
"aria-label": t3,
|
|
373
|
+
children: [t8, t10]
|
|
374
|
+
});
|
|
375
|
+
$[30] = t10;
|
|
376
|
+
$[31] = t2;
|
|
377
|
+
$[32] = t3;
|
|
378
|
+
$[33] = t8;
|
|
379
|
+
$[34] = t11;
|
|
380
|
+
} else t11 = $[34];
|
|
381
|
+
let t12;
|
|
382
|
+
if ($[35] !== t11 || $[36] !== t4 || $[37] !== t5 || $[38] !== t6 || $[39] !== t7) {
|
|
383
|
+
t12 = /* @__PURE__ */ jsx("div", {
|
|
384
|
+
className: t4,
|
|
385
|
+
role: t5,
|
|
386
|
+
"aria-label": t6,
|
|
387
|
+
tabIndex: t7,
|
|
388
|
+
children: t11
|
|
389
|
+
});
|
|
390
|
+
$[35] = t11;
|
|
391
|
+
$[36] = t4;
|
|
392
|
+
$[37] = t5;
|
|
393
|
+
$[38] = t6;
|
|
394
|
+
$[39] = t7;
|
|
395
|
+
$[40] = t12;
|
|
396
|
+
} else t12 = $[40];
|
|
397
|
+
return t12;
|
|
398
|
+
}
|
|
399
|
+
function _temp2(column_1) {
|
|
400
|
+
return column_1.values.some(hasDetail);
|
|
401
|
+
}
|
|
402
|
+
function ResultList(t0) {
|
|
403
|
+
const $ = c(12);
|
|
404
|
+
const { items, label } = t0;
|
|
405
|
+
if (items.length === 0) {
|
|
406
|
+
let t1;
|
|
407
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
408
|
+
t1 = /* @__PURE__ */ jsx("span", { children: "None" });
|
|
409
|
+
$[0] = t1;
|
|
410
|
+
} else t1 = $[0];
|
|
411
|
+
return t1;
|
|
412
|
+
}
|
|
413
|
+
let t1;
|
|
414
|
+
let t2;
|
|
415
|
+
if ($[1] !== items || $[2] !== label) {
|
|
416
|
+
t2 = Symbol.for("react.early_return_sentinel");
|
|
417
|
+
bb0: {
|
|
418
|
+
const rows = items.map(readExecutionResult);
|
|
419
|
+
if (rows.every(isRecord) && rows.some(hasDetail)) {
|
|
420
|
+
t2 = /* @__PURE__ */ jsx(ResultTable, {
|
|
421
|
+
rows,
|
|
422
|
+
label
|
|
423
|
+
});
|
|
424
|
+
break bb0;
|
|
425
|
+
}
|
|
426
|
+
t1 = contentKeys(rows);
|
|
427
|
+
}
|
|
428
|
+
$[1] = items;
|
|
429
|
+
$[2] = label;
|
|
430
|
+
$[3] = t1;
|
|
431
|
+
$[4] = t2;
|
|
432
|
+
} else {
|
|
433
|
+
t1 = $[3];
|
|
434
|
+
t2 = $[4];
|
|
435
|
+
}
|
|
436
|
+
if (t2 !== Symbol.for("react.early_return_sentinel")) return t2;
|
|
437
|
+
const keys = t1;
|
|
438
|
+
let t3;
|
|
439
|
+
if ($[5] !== items || $[6] !== keys) {
|
|
440
|
+
let t4;
|
|
441
|
+
if ($[8] !== keys) {
|
|
442
|
+
t4 = (item, index) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Value, { value: item }) }, keys[index]);
|
|
443
|
+
$[8] = keys;
|
|
444
|
+
$[9] = t4;
|
|
445
|
+
} else t4 = $[9];
|
|
446
|
+
t3 = items.map(t4);
|
|
447
|
+
$[5] = items;
|
|
448
|
+
$[6] = keys;
|
|
449
|
+
$[7] = t3;
|
|
450
|
+
} else t3 = $[7];
|
|
451
|
+
let t4;
|
|
452
|
+
if ($[10] !== t3) {
|
|
453
|
+
t4 = /* @__PURE__ */ jsx("ol", {
|
|
454
|
+
className: "execution-result__list",
|
|
455
|
+
children: t3
|
|
456
|
+
});
|
|
457
|
+
$[10] = t3;
|
|
458
|
+
$[11] = t4;
|
|
459
|
+
} else t4 = $[11];
|
|
460
|
+
return t4;
|
|
461
|
+
}
|
|
462
|
+
function ResultFields(t0) {
|
|
463
|
+
const $ = c(11);
|
|
464
|
+
const { result } = t0;
|
|
465
|
+
if (Object.keys(result).length === 0) {
|
|
466
|
+
let t1;
|
|
467
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
468
|
+
t1 = /* @__PURE__ */ jsx("span", { children: "None" });
|
|
469
|
+
$[0] = t1;
|
|
470
|
+
} else t1 = $[0];
|
|
471
|
+
return t1;
|
|
472
|
+
}
|
|
473
|
+
let t1;
|
|
474
|
+
if ($[1] !== result) {
|
|
475
|
+
t1 = executionResultPath(result);
|
|
476
|
+
$[1] = result;
|
|
477
|
+
$[2] = t1;
|
|
478
|
+
} else t1 = $[2];
|
|
479
|
+
const resultPath = t1;
|
|
480
|
+
let t2;
|
|
481
|
+
if ($[3] !== result || $[4] !== resultPath) {
|
|
482
|
+
t2 = /* @__PURE__ */ jsx(DescriptionList.Root, {
|
|
483
|
+
align: "start",
|
|
484
|
+
className: "execution-result__fields",
|
|
485
|
+
children: Object.entries(result).filter((t3) => {
|
|
486
|
+
const [key] = t3;
|
|
487
|
+
return key !== "resultPath" || !resultPath;
|
|
488
|
+
}).map(_temp3)
|
|
489
|
+
});
|
|
490
|
+
$[3] = result;
|
|
491
|
+
$[4] = resultPath;
|
|
492
|
+
$[5] = t2;
|
|
493
|
+
} else t2 = $[5];
|
|
494
|
+
let t3;
|
|
495
|
+
if ($[6] !== resultPath) {
|
|
496
|
+
t3 = resultPath ? /* @__PURE__ */ jsx(FileLink, { path: resultPath }) : null;
|
|
497
|
+
$[6] = resultPath;
|
|
498
|
+
$[7] = t3;
|
|
499
|
+
} else t3 = $[7];
|
|
500
|
+
let t4;
|
|
501
|
+
if ($[8] !== t2 || $[9] !== t3) {
|
|
502
|
+
t4 = /* @__PURE__ */ jsxs(Fragment, { children: [t2, t3] });
|
|
503
|
+
$[8] = t2;
|
|
504
|
+
$[9] = t3;
|
|
505
|
+
$[10] = t4;
|
|
506
|
+
} else t4 = $[10];
|
|
507
|
+
return t4;
|
|
508
|
+
}
|
|
509
|
+
function _temp3(t0) {
|
|
510
|
+
const [key_0, item] = t0;
|
|
511
|
+
const decoded = readExecutionResult(item);
|
|
512
|
+
return /* @__PURE__ */ jsxs(DescriptionList.Item, {
|
|
513
|
+
className: "execution-result__field",
|
|
514
|
+
"data-number": typeof decoded === "number" || void 0,
|
|
515
|
+
children: [/* @__PURE__ */ jsx(DescriptionList.Term, { children: executionResultLabel(key_0) }), /* @__PURE__ */ jsx(DescriptionList.Details, {
|
|
516
|
+
className: "execution-result__value",
|
|
517
|
+
children: /* @__PURE__ */ jsx(Value, {
|
|
518
|
+
value: decoded,
|
|
519
|
+
label: executionResultLabel(key_0)
|
|
520
|
+
})
|
|
521
|
+
})]
|
|
522
|
+
}, key_0);
|
|
523
|
+
}
|
|
524
|
+
function Value(t0) {
|
|
525
|
+
const $ = c(10);
|
|
526
|
+
const { value, label: t1 } = t0;
|
|
527
|
+
const label = t1 === void 0 ? "Results" : t1;
|
|
528
|
+
let result;
|
|
529
|
+
let t2;
|
|
530
|
+
let t3;
|
|
531
|
+
if ($[0] !== label || $[1] !== value) {
|
|
532
|
+
t3 = Symbol.for("react.early_return_sentinel");
|
|
533
|
+
bb0: {
|
|
534
|
+
result = readExecutionResult(value);
|
|
535
|
+
if (result == null) {
|
|
536
|
+
let t4;
|
|
537
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
538
|
+
t4 = /* @__PURE__ */ jsx("span", { children: "None" });
|
|
539
|
+
$[5] = t4;
|
|
540
|
+
} else t4 = $[5];
|
|
541
|
+
t3 = t4;
|
|
542
|
+
break bb0;
|
|
543
|
+
}
|
|
544
|
+
if (typeof result === "boolean") {
|
|
545
|
+
const t4 = result ? "Yes" : "No";
|
|
546
|
+
let t5;
|
|
547
|
+
if ($[6] !== t4) {
|
|
548
|
+
t5 = /* @__PURE__ */ jsx("span", { children: t4 });
|
|
549
|
+
$[6] = t4;
|
|
550
|
+
$[7] = t5;
|
|
551
|
+
} else t5 = $[7];
|
|
552
|
+
t3 = t5;
|
|
553
|
+
break bb0;
|
|
554
|
+
}
|
|
555
|
+
if (typeof result === "number") {
|
|
556
|
+
t3 = /* @__PURE__ */ jsx("span", { children: result.toLocaleString() });
|
|
557
|
+
break bb0;
|
|
558
|
+
}
|
|
559
|
+
if (typeof result === "string") {
|
|
560
|
+
const href = httpUrl(result);
|
|
561
|
+
if (href) {
|
|
562
|
+
t3 = /* @__PURE__ */ jsx(OutboundLink, { href });
|
|
563
|
+
break bb0;
|
|
564
|
+
}
|
|
565
|
+
if (result.startsWith("/") && !/\s/.test(result)) {
|
|
566
|
+
t3 = /* @__PURE__ */ jsx(FileLink, { path: result });
|
|
567
|
+
break bb0;
|
|
568
|
+
}
|
|
569
|
+
t3 = /* @__PURE__ */ jsx(ResultText, { text: result });
|
|
570
|
+
break bb0;
|
|
571
|
+
}
|
|
572
|
+
if (Array.isArray(result)) {
|
|
573
|
+
t3 = /* @__PURE__ */ jsx(ResultList, {
|
|
574
|
+
items: result,
|
|
575
|
+
label
|
|
576
|
+
});
|
|
577
|
+
break bb0;
|
|
578
|
+
}
|
|
579
|
+
t2 = isRecord(result);
|
|
580
|
+
}
|
|
581
|
+
$[0] = label;
|
|
582
|
+
$[1] = value;
|
|
583
|
+
$[2] = result;
|
|
584
|
+
$[3] = t2;
|
|
585
|
+
$[4] = t3;
|
|
586
|
+
} else {
|
|
587
|
+
result = $[2];
|
|
588
|
+
t2 = $[3];
|
|
589
|
+
t3 = $[4];
|
|
590
|
+
}
|
|
591
|
+
if (t3 !== Symbol.for("react.early_return_sentinel")) return t3;
|
|
592
|
+
if (t2) {
|
|
593
|
+
let t4;
|
|
594
|
+
if ($[8] !== result) {
|
|
595
|
+
t4 = /* @__PURE__ */ jsx(ResultFields, { result });
|
|
596
|
+
$[8] = result;
|
|
597
|
+
$[9] = t4;
|
|
598
|
+
} else t4 = $[9];
|
|
599
|
+
return t4;
|
|
600
|
+
}
|
|
601
|
+
return null;
|
|
602
|
+
}
|
|
603
|
+
function visibleResult(value, showSummary) {
|
|
604
|
+
const record = isRecord(value);
|
|
605
|
+
const resultPath = executionResultPath(value);
|
|
606
|
+
const summary = record && "summary" in value ? value.summary : value;
|
|
607
|
+
const summaryIsText = typeof readExecutionResult(summary) === "string";
|
|
608
|
+
return {
|
|
609
|
+
value,
|
|
610
|
+
summary,
|
|
611
|
+
summaryHref: typeof summary === "string" ? httpUrl(summary) : void 0,
|
|
612
|
+
fields: record && showSummary ? Object.fromEntries(Object.entries(value).filter(([key]) => (key !== "summary" || !summaryIsText) && (key !== "resultPath" || !resultPath))) : value,
|
|
613
|
+
files: showSummary ? [.../* @__PURE__ */ new Set([...typeof summary === "string" ? executionResultFiles(summary) : [], ...resultPath ? [resultPath] : []])] : []
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
/** Readable outcomes and saved inputs. Payloads are data, never code blocks. */
|
|
617
|
+
function ExecutionResult(t0) {
|
|
618
|
+
const $ = c(11);
|
|
619
|
+
const { result, showSummary: t1 } = t0;
|
|
620
|
+
const showSummary = t1 === void 0 ? true : t1;
|
|
621
|
+
let t2;
|
|
622
|
+
let t3;
|
|
623
|
+
let t4;
|
|
624
|
+
let t5;
|
|
625
|
+
if ($[0] !== result || $[1] !== showSummary) {
|
|
626
|
+
const { value, summary, summaryHref, fields, files } = visibleResult(readExecutionResult(result), showSummary);
|
|
627
|
+
t2 = "execution-result";
|
|
628
|
+
t3 = showSummary ? /* @__PURE__ */ jsx("p", {
|
|
629
|
+
className: "execution-result__summary",
|
|
630
|
+
children: summaryHref ? /* @__PURE__ */ jsx(Value, { value: summary }) : executionResultSummary(value)
|
|
631
|
+
}) : null;
|
|
632
|
+
t4 = !showSummary || hasDetail(fields) ? /* @__PURE__ */ jsx(Value, { value: fields }) : null;
|
|
633
|
+
t5 = files.length ? /* @__PURE__ */ jsx("div", {
|
|
634
|
+
className: "sigvelo-cluster",
|
|
635
|
+
children: files.map((path, index) => /* @__PURE__ */ jsx(FileLink, {
|
|
636
|
+
path,
|
|
637
|
+
label: files.length === 1 ? "Open result" : `Open result ${index + 1}`
|
|
638
|
+
}, path))
|
|
639
|
+
}) : null;
|
|
640
|
+
$[0] = result;
|
|
641
|
+
$[1] = showSummary;
|
|
642
|
+
$[2] = t2;
|
|
643
|
+
$[3] = t3;
|
|
644
|
+
$[4] = t4;
|
|
645
|
+
$[5] = t5;
|
|
646
|
+
} else {
|
|
647
|
+
t2 = $[2];
|
|
648
|
+
t3 = $[3];
|
|
649
|
+
t4 = $[4];
|
|
650
|
+
t5 = $[5];
|
|
651
|
+
}
|
|
652
|
+
let t6;
|
|
653
|
+
if ($[6] !== t2 || $[7] !== t3 || $[8] !== t4 || $[9] !== t5) {
|
|
654
|
+
t6 = /* @__PURE__ */ jsxs("div", {
|
|
655
|
+
className: t2,
|
|
656
|
+
children: [
|
|
657
|
+
t3,
|
|
658
|
+
t4,
|
|
659
|
+
t5
|
|
660
|
+
]
|
|
661
|
+
});
|
|
662
|
+
$[6] = t2;
|
|
663
|
+
$[7] = t3;
|
|
664
|
+
$[8] = t4;
|
|
665
|
+
$[9] = t5;
|
|
666
|
+
$[10] = t6;
|
|
667
|
+
} else t6 = $[10];
|
|
668
|
+
return t6;
|
|
669
|
+
}
|
|
670
|
+
//#endregion
|
|
671
|
+
export { executionResultLabel as n, ExecutionResult as t };
|