@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,407 @@
|
|
|
1
|
+
import { t as cx } from "./class-names-BiMDVpUo.js";
|
|
2
|
+
import { a as workspaceDirname, n as isWorkspacePathWithinRoot, t as canonicalizeAbsoluteWorkspacePath } from "./workspace-path-TZggP-u4.js";
|
|
3
|
+
import { n as isPlainPrimaryLinkActivation, t as NavigationLink } from "./navigation-link-DMmtdqsM.js";
|
|
4
|
+
import { useWorkspaceNavigationRestoration } from "./components/agents-sdk/WorkspaceNavigationRestoration.js";
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
//#region src/components/_internal/workspace-navigation-context.tsx
|
|
9
|
+
const WorkspaceNavigationContext = React.createContext(null);
|
|
10
|
+
function useWorkspaceNavigationContext() {
|
|
11
|
+
return React.use(WorkspaceNavigationContext);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/components/agents-sdk/WorkspaceLink.tsx
|
|
15
|
+
const EXTERNAL_PROTOCOLS = /* @__PURE__ */ new Set([
|
|
16
|
+
"http:",
|
|
17
|
+
"https:",
|
|
18
|
+
"mailto:",
|
|
19
|
+
"tel:"
|
|
20
|
+
]);
|
|
21
|
+
const UNSAFE_PROTOCOLS = /* @__PURE__ */ new Set([
|
|
22
|
+
"data:",
|
|
23
|
+
"file:",
|
|
24
|
+
"javascript:",
|
|
25
|
+
"vbscript:"
|
|
26
|
+
]);
|
|
27
|
+
const URL_SCHEME = /^[a-zA-Z][a-zA-Z\d+.-]*:/;
|
|
28
|
+
function hasInvalidPathCharacter(value) {
|
|
29
|
+
for (const character of value) {
|
|
30
|
+
const codePoint = character.codePointAt(0) ?? 0;
|
|
31
|
+
if (character === "\\" || codePoint <= 31 || codePoint === 127) return true;
|
|
32
|
+
}
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
function decodeUrlPart(value) {
|
|
36
|
+
try {
|
|
37
|
+
return decodeURIComponent(value);
|
|
38
|
+
} catch {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function canonicalizeWorkspaceLinkPath(path) {
|
|
43
|
+
if (hasInvalidPathCharacter(path)) return null;
|
|
44
|
+
return canonicalizeAbsoluteWorkspacePath(path);
|
|
45
|
+
}
|
|
46
|
+
function getPathSegments(path) {
|
|
47
|
+
return path === "/" ? [] : path.slice(1).split("/");
|
|
48
|
+
}
|
|
49
|
+
function resolveLocalPath(rawPath, root, base, normalizedBase) {
|
|
50
|
+
const decodedPath = decodeUrlPart(rawPath);
|
|
51
|
+
if (decodedPath === null || hasInvalidPathCharacter(decodedPath)) return { reason: "invalid-path" };
|
|
52
|
+
if (decodedPath === "") return { path: normalizedBase };
|
|
53
|
+
const rootSegments = getPathSegments(root);
|
|
54
|
+
let segments;
|
|
55
|
+
let remainingPath;
|
|
56
|
+
if (decodedPath.startsWith("/")) {
|
|
57
|
+
segments = [...rootSegments];
|
|
58
|
+
remainingPath = root !== "/" && (decodedPath === root || decodedPath.startsWith(`${root}/`)) ? decodedPath.slice(root.length) : decodedPath.slice(1);
|
|
59
|
+
} else {
|
|
60
|
+
segments = getPathSegments(base.kind === "directory" ? normalizedBase : workspaceDirname(normalizedBase));
|
|
61
|
+
remainingPath = decodedPath;
|
|
62
|
+
}
|
|
63
|
+
for (const segment of remainingPath.split("/")) {
|
|
64
|
+
if (!segment || segment === ".") continue;
|
|
65
|
+
if (segment === "..") {
|
|
66
|
+
if (segments.length <= rootSegments.length) return { reason: "outside-workspace" };
|
|
67
|
+
segments.pop();
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
segments.push(segment);
|
|
71
|
+
}
|
|
72
|
+
return { path: `/${segments.join("/")}` };
|
|
73
|
+
}
|
|
74
|
+
function invalid(href, reason) {
|
|
75
|
+
return {
|
|
76
|
+
kind: "invalid",
|
|
77
|
+
href,
|
|
78
|
+
reason
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function getExternalDestination(href) {
|
|
82
|
+
try {
|
|
83
|
+
const protocol = new URL(href.startsWith("//") ? `https:${href}` : href).protocol.toLowerCase();
|
|
84
|
+
if (UNSAFE_PROTOCOLS.has(protocol) || !EXTERNAL_PROTOCOLS.has(protocol)) return invalid(href, "unsafe-protocol");
|
|
85
|
+
return {
|
|
86
|
+
kind: "external",
|
|
87
|
+
href
|
|
88
|
+
};
|
|
89
|
+
} catch {
|
|
90
|
+
return invalid(href, "invalid-path");
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/** Resolve a Markdown link to a validated workspace file, external URL, or unavailable target. */
|
|
94
|
+
function resolveWorkspaceLink({ href, root, base }) {
|
|
95
|
+
const normalizedRoot = canonicalizeWorkspaceLinkPath(root);
|
|
96
|
+
const normalizedBase = canonicalizeWorkspaceLinkPath(base.path);
|
|
97
|
+
const trimmedHref = href.trim();
|
|
98
|
+
if (!normalizedRoot || !normalizedBase || !isWorkspacePathWithinRoot(normalizedBase, normalizedRoot) || !trimmedHref || hasInvalidPathCharacter(href)) return invalid(href, "invalid-path");
|
|
99
|
+
if (trimmedHref.startsWith("//")) return getExternalDestination(trimmedHref);
|
|
100
|
+
if (URL_SCHEME.test(trimmedHref)) return getExternalDestination(trimmedHref);
|
|
101
|
+
if (trimmedHref.startsWith("#") && base.kind === "directory") return invalid(href, "fragment-without-file");
|
|
102
|
+
const fragmentIndex = trimmedHref.indexOf("#");
|
|
103
|
+
const pathAndQuery = fragmentIndex === -1 ? trimmedHref : trimmedHref.slice(0, fragmentIndex);
|
|
104
|
+
if (pathAndQuery.includes("?")) return invalid(href, "unsupported-query");
|
|
105
|
+
const rawPath = pathAndQuery;
|
|
106
|
+
const rawFragment = fragmentIndex === -1 ? null : trimmedHref.slice(fragmentIndex + 1);
|
|
107
|
+
const fragment = rawFragment === null || rawFragment === "" ? null : decodeUrlPart(rawFragment);
|
|
108
|
+
if (rawFragment !== null && rawFragment !== "" && fragment === null || fragment !== null && hasInvalidPathCharacter(fragment)) return invalid(href, "invalid-path");
|
|
109
|
+
const localPath = resolveLocalPath(rawPath, normalizedRoot, base, normalizedBase);
|
|
110
|
+
if ("reason" in localPath) return invalid(href, localPath.reason);
|
|
111
|
+
if (!isWorkspacePathWithinRoot(localPath.path, normalizedRoot)) return invalid(href, "outside-workspace");
|
|
112
|
+
return {
|
|
113
|
+
kind: "file",
|
|
114
|
+
path: localPath.path,
|
|
115
|
+
fragment
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function WorkspaceNavigationProvider(t0) {
|
|
119
|
+
const $ = c(10);
|
|
120
|
+
const { children, root, base, navigation } = t0;
|
|
121
|
+
const { kind: baseKind, path: basePath } = base;
|
|
122
|
+
let t1;
|
|
123
|
+
if ($[0] !== baseKind || $[1] !== basePath) {
|
|
124
|
+
t1 = {
|
|
125
|
+
kind: baseKind,
|
|
126
|
+
path: basePath
|
|
127
|
+
};
|
|
128
|
+
$[0] = baseKind;
|
|
129
|
+
$[1] = basePath;
|
|
130
|
+
$[2] = t1;
|
|
131
|
+
} else t1 = $[2];
|
|
132
|
+
let t2;
|
|
133
|
+
if ($[3] !== navigation || $[4] !== root || $[5] !== t1) {
|
|
134
|
+
t2 = {
|
|
135
|
+
root,
|
|
136
|
+
base: t1,
|
|
137
|
+
navigation
|
|
138
|
+
};
|
|
139
|
+
$[3] = navigation;
|
|
140
|
+
$[4] = root;
|
|
141
|
+
$[5] = t1;
|
|
142
|
+
$[6] = t2;
|
|
143
|
+
} else t2 = $[6];
|
|
144
|
+
const value = t2;
|
|
145
|
+
let t3;
|
|
146
|
+
if ($[7] !== children || $[8] !== value) {
|
|
147
|
+
t3 = /* @__PURE__ */ jsx(WorkspaceNavigationContext, {
|
|
148
|
+
value,
|
|
149
|
+
children
|
|
150
|
+
});
|
|
151
|
+
$[7] = children;
|
|
152
|
+
$[8] = value;
|
|
153
|
+
$[9] = t3;
|
|
154
|
+
} else t3 = $[9];
|
|
155
|
+
return t3;
|
|
156
|
+
}
|
|
157
|
+
function UnavailableWorkspaceLink(t0) {
|
|
158
|
+
const $ = c(7);
|
|
159
|
+
const { children, className } = t0;
|
|
160
|
+
let t1;
|
|
161
|
+
if ($[0] !== className) {
|
|
162
|
+
t1 = cx("workspace-link workspace-link--invalid", className);
|
|
163
|
+
$[0] = className;
|
|
164
|
+
$[1] = t1;
|
|
165
|
+
} else t1 = $[1];
|
|
166
|
+
let t2;
|
|
167
|
+
let t3;
|
|
168
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
169
|
+
t2 = /* @__PURE__ */ jsx("span", {
|
|
170
|
+
className: "workspace-link__invalid-mark",
|
|
171
|
+
"aria-hidden": "true",
|
|
172
|
+
children: "↛"
|
|
173
|
+
});
|
|
174
|
+
t3 = /* @__PURE__ */ jsx("span", {
|
|
175
|
+
className: "sigvelo-visually-hidden",
|
|
176
|
+
children: " (link unavailable)"
|
|
177
|
+
});
|
|
178
|
+
$[2] = t2;
|
|
179
|
+
$[3] = t3;
|
|
180
|
+
} else {
|
|
181
|
+
t2 = $[2];
|
|
182
|
+
t3 = $[3];
|
|
183
|
+
}
|
|
184
|
+
let t4;
|
|
185
|
+
if ($[4] !== children || $[5] !== t1) {
|
|
186
|
+
t4 = /* @__PURE__ */ jsxs("span", {
|
|
187
|
+
className: t1,
|
|
188
|
+
"data-workspace-link": "invalid",
|
|
189
|
+
children: [
|
|
190
|
+
children,
|
|
191
|
+
t2,
|
|
192
|
+
t3
|
|
193
|
+
]
|
|
194
|
+
});
|
|
195
|
+
$[4] = children;
|
|
196
|
+
$[5] = t1;
|
|
197
|
+
$[6] = t4;
|
|
198
|
+
} else t4 = $[6];
|
|
199
|
+
return t4;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Markdown-compatible anchor that resolves local files through the nearest
|
|
203
|
+
* workspace navigation provider while preserving native link behavior.
|
|
204
|
+
*/
|
|
205
|
+
function WorkspaceFileLink(t0) {
|
|
206
|
+
const $ = c(60);
|
|
207
|
+
let children;
|
|
208
|
+
let className;
|
|
209
|
+
let download;
|
|
210
|
+
let node;
|
|
211
|
+
let onClick;
|
|
212
|
+
let props;
|
|
213
|
+
let rel;
|
|
214
|
+
let t1;
|
|
215
|
+
let target;
|
|
216
|
+
if ($[0] !== t0) {
|
|
217
|
+
({children, className, download, href: t1, node, onClick, rel, target, ...props} = t0);
|
|
218
|
+
$[0] = t0;
|
|
219
|
+
$[1] = children;
|
|
220
|
+
$[2] = className;
|
|
221
|
+
$[3] = download;
|
|
222
|
+
$[4] = node;
|
|
223
|
+
$[5] = onClick;
|
|
224
|
+
$[6] = props;
|
|
225
|
+
$[7] = rel;
|
|
226
|
+
$[8] = t1;
|
|
227
|
+
$[9] = target;
|
|
228
|
+
} else {
|
|
229
|
+
children = $[1];
|
|
230
|
+
className = $[2];
|
|
231
|
+
download = $[3];
|
|
232
|
+
node = $[4];
|
|
233
|
+
onClick = $[5];
|
|
234
|
+
props = $[6];
|
|
235
|
+
rel = $[7];
|
|
236
|
+
t1 = $[8];
|
|
237
|
+
target = $[9];
|
|
238
|
+
}
|
|
239
|
+
const href = t1 === void 0 ? "" : t1;
|
|
240
|
+
const workspace = useWorkspaceNavigationContext();
|
|
241
|
+
const restoration = useWorkspaceNavigationRestoration();
|
|
242
|
+
if (!workspace) {
|
|
243
|
+
const t2 = node ? "link" : void 0;
|
|
244
|
+
let t3;
|
|
245
|
+
if ($[10] !== children || $[11] !== className || $[12] !== download || $[13] !== href || $[14] !== onClick || $[15] !== props || $[16] !== rel || $[17] !== t2 || $[18] !== target) {
|
|
246
|
+
t3 = /* @__PURE__ */ jsx("a", {
|
|
247
|
+
className,
|
|
248
|
+
"data-streamdown": t2,
|
|
249
|
+
download,
|
|
250
|
+
href,
|
|
251
|
+
onClick,
|
|
252
|
+
rel,
|
|
253
|
+
target,
|
|
254
|
+
...props,
|
|
255
|
+
children
|
|
256
|
+
});
|
|
257
|
+
$[10] = children;
|
|
258
|
+
$[11] = className;
|
|
259
|
+
$[12] = download;
|
|
260
|
+
$[13] = href;
|
|
261
|
+
$[14] = onClick;
|
|
262
|
+
$[15] = props;
|
|
263
|
+
$[16] = rel;
|
|
264
|
+
$[17] = t2;
|
|
265
|
+
$[18] = target;
|
|
266
|
+
$[19] = t3;
|
|
267
|
+
} else t3 = $[19];
|
|
268
|
+
return t3;
|
|
269
|
+
}
|
|
270
|
+
let T0;
|
|
271
|
+
let handleClick;
|
|
272
|
+
let resolved;
|
|
273
|
+
let t2;
|
|
274
|
+
let t3;
|
|
275
|
+
if ($[20] !== children || $[21] !== className || $[22] !== download || $[23] !== href || $[24] !== node || $[25] !== onClick || $[26] !== props || $[27] !== rel || $[28] !== restoration || $[29] !== target || $[30] !== workspace.base || $[31] !== workspace.navigation || $[32] !== workspace.root) {
|
|
276
|
+
t3 = Symbol.for("react.early_return_sentinel");
|
|
277
|
+
bb0: {
|
|
278
|
+
resolved = resolveWorkspaceLink({
|
|
279
|
+
href,
|
|
280
|
+
root: workspace.root,
|
|
281
|
+
base: workspace.base
|
|
282
|
+
});
|
|
283
|
+
if (resolved.kind === "invalid") {
|
|
284
|
+
let t4;
|
|
285
|
+
if ($[38] !== children || $[39] !== className) {
|
|
286
|
+
t4 = /* @__PURE__ */ jsx(UnavailableWorkspaceLink, {
|
|
287
|
+
className,
|
|
288
|
+
children
|
|
289
|
+
});
|
|
290
|
+
$[38] = children;
|
|
291
|
+
$[39] = className;
|
|
292
|
+
$[40] = t4;
|
|
293
|
+
} else t4 = $[40];
|
|
294
|
+
t3 = t4;
|
|
295
|
+
break bb0;
|
|
296
|
+
}
|
|
297
|
+
if (resolved.kind === "external") {
|
|
298
|
+
const externalTarget = target ?? "_blank";
|
|
299
|
+
let t4;
|
|
300
|
+
if ($[41] !== className) {
|
|
301
|
+
t4 = cx("workspace-link workspace-link--external", className);
|
|
302
|
+
$[41] = className;
|
|
303
|
+
$[42] = t4;
|
|
304
|
+
} else t4 = $[42];
|
|
305
|
+
let t5;
|
|
306
|
+
if ($[43] !== externalTarget) {
|
|
307
|
+
t5 = externalTarget === "_blank" ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
308
|
+
className: "workspace-link__external-mark",
|
|
309
|
+
"aria-hidden": "true",
|
|
310
|
+
children: "↗"
|
|
311
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
312
|
+
className: "sigvelo-visually-hidden",
|
|
313
|
+
children: " (opens in a new tab)"
|
|
314
|
+
})] }) : null;
|
|
315
|
+
$[43] = externalTarget;
|
|
316
|
+
$[44] = t5;
|
|
317
|
+
} else t5 = $[44];
|
|
318
|
+
t3 = /* @__PURE__ */ jsxs("a", {
|
|
319
|
+
className: t4,
|
|
320
|
+
"data-streamdown": node ? "link" : void 0,
|
|
321
|
+
download,
|
|
322
|
+
href: resolved.href,
|
|
323
|
+
onClick,
|
|
324
|
+
rel: rel ?? (externalTarget === "_blank" ? "noopener noreferrer" : void 0),
|
|
325
|
+
target: externalTarget,
|
|
326
|
+
...props,
|
|
327
|
+
children: [children, t5]
|
|
328
|
+
});
|
|
329
|
+
break bb0;
|
|
330
|
+
}
|
|
331
|
+
handleClick = (event) => {
|
|
332
|
+
onClick?.(event);
|
|
333
|
+
if (!isPlainPrimaryLinkActivation(event)) return;
|
|
334
|
+
const focusScope = event.currentTarget.closest("[data-workspace-restoration-scope]")?.dataset.workspaceRestorationScope;
|
|
335
|
+
restoration?.recordFocus(workspace.navigation.current.key, resolved, focusScope);
|
|
336
|
+
};
|
|
337
|
+
T0 = NavigationLink;
|
|
338
|
+
t2 = workspace.navigation.renderLink(resolved);
|
|
339
|
+
}
|
|
340
|
+
$[20] = children;
|
|
341
|
+
$[21] = className;
|
|
342
|
+
$[22] = download;
|
|
343
|
+
$[23] = href;
|
|
344
|
+
$[24] = node;
|
|
345
|
+
$[25] = onClick;
|
|
346
|
+
$[26] = props;
|
|
347
|
+
$[27] = rel;
|
|
348
|
+
$[28] = restoration;
|
|
349
|
+
$[29] = target;
|
|
350
|
+
$[30] = workspace.base;
|
|
351
|
+
$[31] = workspace.navigation;
|
|
352
|
+
$[32] = workspace.root;
|
|
353
|
+
$[33] = T0;
|
|
354
|
+
$[34] = handleClick;
|
|
355
|
+
$[35] = resolved;
|
|
356
|
+
$[36] = t2;
|
|
357
|
+
$[37] = t3;
|
|
358
|
+
} else {
|
|
359
|
+
T0 = $[33];
|
|
360
|
+
handleClick = $[34];
|
|
361
|
+
resolved = $[35];
|
|
362
|
+
t2 = $[36];
|
|
363
|
+
t3 = $[37];
|
|
364
|
+
}
|
|
365
|
+
if (t3 !== Symbol.for("react.early_return_sentinel")) return t3;
|
|
366
|
+
let t4;
|
|
367
|
+
if ($[45] !== className) {
|
|
368
|
+
t4 = cx("workspace-link workspace-link--file", className);
|
|
369
|
+
$[45] = className;
|
|
370
|
+
$[46] = t4;
|
|
371
|
+
} else t4 = $[46];
|
|
372
|
+
const t5 = node ? "link" : void 0;
|
|
373
|
+
const t6 = resolved.fragment ?? "";
|
|
374
|
+
let t7;
|
|
375
|
+
if ($[47] !== T0 || $[48] !== children || $[49] !== download || $[50] !== handleClick || $[51] !== props || $[52] !== rel || $[53] !== resolved.path || $[54] !== t2 || $[55] !== t4 || $[56] !== t5 || $[57] !== t6 || $[58] !== target) {
|
|
376
|
+
t7 = /* @__PURE__ */ jsx(T0, {
|
|
377
|
+
render: t2,
|
|
378
|
+
className: t4,
|
|
379
|
+
"data-streamdown": t5,
|
|
380
|
+
"data-workspace-link": "file",
|
|
381
|
+
"data-workspace-destination-fragment": t6,
|
|
382
|
+
"data-workspace-path": resolved.path,
|
|
383
|
+
download,
|
|
384
|
+
onClick: handleClick,
|
|
385
|
+
rel,
|
|
386
|
+
target,
|
|
387
|
+
...props,
|
|
388
|
+
children
|
|
389
|
+
});
|
|
390
|
+
$[47] = T0;
|
|
391
|
+
$[48] = children;
|
|
392
|
+
$[49] = download;
|
|
393
|
+
$[50] = handleClick;
|
|
394
|
+
$[51] = props;
|
|
395
|
+
$[52] = rel;
|
|
396
|
+
$[53] = resolved.path;
|
|
397
|
+
$[54] = t2;
|
|
398
|
+
$[55] = t4;
|
|
399
|
+
$[56] = t5;
|
|
400
|
+
$[57] = t6;
|
|
401
|
+
$[58] = target;
|
|
402
|
+
$[59] = t7;
|
|
403
|
+
} else t7 = $[59];
|
|
404
|
+
return t7;
|
|
405
|
+
}
|
|
406
|
+
//#endregion
|
|
407
|
+
export { useWorkspaceNavigationContext as i, WorkspaceNavigationProvider as n, resolveWorkspaceLink as r, WorkspaceFileLink as t };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MessageResponse } from "./components/ai-sdk/Message.js";
|
|
2
|
-
import { i as useWorkspaceNavigationContext, r as resolveWorkspaceLink, t as WorkspaceFileLink } from "./WorkspaceLink-
|
|
2
|
+
import { i as useWorkspaceNavigationContext, r as resolveWorkspaceLink, t as WorkspaceFileLink } from "./WorkspaceLink-DDkj-Tq5.js";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
3
4
|
import * as React from "react";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
import { defaultRehypePlugins } from "streamdown";
|
|
@@ -89,11 +90,21 @@ const WorkspaceFileRendererContext = React.createContext(null);
|
|
|
89
90
|
* `EmployeeTranscript` provides it from its `renderWorkspaceFile` prop; hosts
|
|
90
91
|
* composing their own transcript provide it once at their conversation root.
|
|
91
92
|
*/
|
|
92
|
-
function WorkspaceFileRendererProvider(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
function WorkspaceFileRendererProvider(t0) {
|
|
94
|
+
const $ = c(3);
|
|
95
|
+
const { children, renderWorkspaceFile } = t0;
|
|
96
|
+
const t1 = renderWorkspaceFile ?? null;
|
|
97
|
+
let t2;
|
|
98
|
+
if ($[0] !== children || $[1] !== t1) {
|
|
99
|
+
t2 = /* @__PURE__ */ jsx(WorkspaceFileRendererContext.Provider, {
|
|
100
|
+
value: t1,
|
|
101
|
+
children
|
|
102
|
+
});
|
|
103
|
+
$[0] = children;
|
|
104
|
+
$[1] = t1;
|
|
105
|
+
$[2] = t2;
|
|
106
|
+
} else t2 = $[2];
|
|
107
|
+
return t2;
|
|
97
108
|
}
|
|
98
109
|
/**
|
|
99
110
|
* The paragraph the promoted one falls back to — the caller's `components.p`
|
|
@@ -104,7 +115,9 @@ function WorkspaceFileRendererProvider({ children, renderWorkspaceFile }) {
|
|
|
104
115
|
*/
|
|
105
116
|
const FallbackParagraphContext = React.createContext("p");
|
|
106
117
|
const workspaceComponents = { a: WorkspaceFileLink };
|
|
107
|
-
function WorkspaceFileParagraph(
|
|
118
|
+
function WorkspaceFileParagraph(t0) {
|
|
119
|
+
const $ = c(10);
|
|
120
|
+
const { node, children, ...paragraphProps } = t0;
|
|
108
121
|
const workspace = useWorkspaceNavigationContext();
|
|
109
122
|
const renderFile = React.useContext(WorkspaceFileRendererContext);
|
|
110
123
|
const FallbackParagraph = React.useContext(FallbackParagraphContext);
|
|
@@ -124,37 +137,111 @@ function WorkspaceFileParagraph({ node, children, ...paragraphProps }) {
|
|
|
124
137
|
})
|
|
125
138
|
});
|
|
126
139
|
if (promoted == null) return renderFallbackParagraph(children);
|
|
127
|
-
|
|
128
|
-
|
|
140
|
+
let t1;
|
|
141
|
+
if ($[0] !== children || $[1] !== file) {
|
|
142
|
+
let t2;
|
|
143
|
+
if ($[3] !== file) {
|
|
144
|
+
t2 = (_child, index) => index !== file.childIndex;
|
|
145
|
+
$[3] = file;
|
|
146
|
+
$[4] = t2;
|
|
147
|
+
} else t2 = $[4];
|
|
148
|
+
t1 = React.Children.toArray(children).filter(t2);
|
|
149
|
+
$[0] = children;
|
|
150
|
+
$[1] = file;
|
|
151
|
+
$[2] = t1;
|
|
152
|
+
} else t1 = $[2];
|
|
153
|
+
const remainingChildren = t1;
|
|
154
|
+
const t2 = React;
|
|
155
|
+
const t3 = file.showRemainingChildren ? renderFallbackParagraph(remainingChildren) : null;
|
|
156
|
+
let t4;
|
|
157
|
+
if ($[5] !== file || $[6] !== promoted || $[7] !== t2.Fragment || $[8] !== t3) {
|
|
158
|
+
t4 = /* @__PURE__ */ jsxs(t2.Fragment, { children: [t3, promoted] }, file.path);
|
|
159
|
+
$[5] = file;
|
|
160
|
+
$[6] = promoted;
|
|
161
|
+
$[7] = t2.Fragment;
|
|
162
|
+
$[8] = t3;
|
|
163
|
+
$[9] = t4;
|
|
164
|
+
} else t4 = $[9];
|
|
165
|
+
return t4;
|
|
129
166
|
}
|
|
130
167
|
/** Adds workspace-aware Markdown links when rendered inside a workspace provider. */
|
|
131
|
-
const WorkspaceMessageResponse = React.memo(function WorkspaceMessageResponse(
|
|
168
|
+
const WorkspaceMessageResponse = React.memo(function WorkspaceMessageResponse(t0) {
|
|
169
|
+
const $ = c(21);
|
|
170
|
+
let components;
|
|
171
|
+
let props;
|
|
172
|
+
let rehypePlugins;
|
|
173
|
+
let t1;
|
|
174
|
+
if ($[0] !== t0) {
|
|
175
|
+
({components, rehypePlugins, promoteWorkspaceFiles: t1, ...props} = t0);
|
|
176
|
+
$[0] = t0;
|
|
177
|
+
$[1] = components;
|
|
178
|
+
$[2] = props;
|
|
179
|
+
$[3] = rehypePlugins;
|
|
180
|
+
$[4] = t1;
|
|
181
|
+
} else {
|
|
182
|
+
components = $[1];
|
|
183
|
+
props = $[2];
|
|
184
|
+
rehypePlugins = $[3];
|
|
185
|
+
t1 = $[4];
|
|
186
|
+
}
|
|
187
|
+
const promoteWorkspaceFiles = t1 === void 0 ? true : t1;
|
|
132
188
|
const workspace = useWorkspaceNavigationContext();
|
|
133
189
|
const workspaceRoot = workspace?.root;
|
|
134
190
|
const workspaceBase = workspace?.base;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
workspaceBase,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
191
|
+
let t2;
|
|
192
|
+
if ($[5] !== rehypePlugins || $[6] !== workspaceBase || $[7] !== workspaceRoot) {
|
|
193
|
+
t2 = rehypePlugins ?? (workspaceRoot !== void 0 && workspaceBase !== void 0 ? createWorkspaceRehypePlugins(workspaceRoot, workspaceBase) : void 0);
|
|
194
|
+
$[5] = rehypePlugins;
|
|
195
|
+
$[6] = workspaceBase;
|
|
196
|
+
$[7] = workspaceRoot;
|
|
197
|
+
$[8] = t2;
|
|
198
|
+
} else t2 = $[8];
|
|
199
|
+
const resolvedRehypePlugins = t2;
|
|
200
|
+
let t3;
|
|
201
|
+
if ($[9] !== components) {
|
|
202
|
+
t3 = components ? {
|
|
142
203
|
...workspaceComponents,
|
|
143
204
|
...components
|
|
144
205
|
} : workspaceComponents;
|
|
145
|
-
|
|
206
|
+
$[9] = components;
|
|
207
|
+
$[10] = t3;
|
|
208
|
+
} else t3 = $[10];
|
|
209
|
+
const merged = t3;
|
|
210
|
+
let t4;
|
|
211
|
+
if ($[11] !== merged || $[12] !== promoteWorkspaceFiles) {
|
|
212
|
+
t4 = promoteWorkspaceFiles ? {
|
|
146
213
|
...merged,
|
|
147
214
|
p: WorkspaceFileParagraph
|
|
148
215
|
} : merged;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
216
|
+
$[11] = merged;
|
|
217
|
+
$[12] = promoteWorkspaceFiles;
|
|
218
|
+
$[13] = t4;
|
|
219
|
+
} else t4 = $[13];
|
|
220
|
+
const resolvedComponents = t4;
|
|
221
|
+
const t5 = components?.p ?? "p";
|
|
222
|
+
let t6;
|
|
223
|
+
if ($[14] !== props || $[15] !== resolvedComponents || $[16] !== resolvedRehypePlugins) {
|
|
224
|
+
t6 = /* @__PURE__ */ jsx(MessageResponse, {
|
|
153
225
|
components: resolvedComponents,
|
|
154
226
|
rehypePlugins: resolvedRehypePlugins,
|
|
155
227
|
...props
|
|
156
|
-
})
|
|
157
|
-
|
|
228
|
+
});
|
|
229
|
+
$[14] = props;
|
|
230
|
+
$[15] = resolvedComponents;
|
|
231
|
+
$[16] = resolvedRehypePlugins;
|
|
232
|
+
$[17] = t6;
|
|
233
|
+
} else t6 = $[17];
|
|
234
|
+
let t7;
|
|
235
|
+
if ($[18] !== t5 || $[19] !== t6) {
|
|
236
|
+
t7 = /* @__PURE__ */ jsx(FallbackParagraphContext, {
|
|
237
|
+
value: t5,
|
|
238
|
+
children: t6
|
|
239
|
+
});
|
|
240
|
+
$[18] = t5;
|
|
241
|
+
$[19] = t6;
|
|
242
|
+
$[20] = t7;
|
|
243
|
+
} else t7 = $[20];
|
|
244
|
+
return t7;
|
|
158
245
|
});
|
|
159
246
|
function getStandaloneWorkspaceFileParagraph(node, root, base) {
|
|
160
247
|
if (!node || node.tagName !== "p") return null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { c } from "react/compiler-runtime";
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { agentToolRunMayExecute } from "agents/react";
|
|
3
4
|
//#region src/components/_internal/agent-tool-runs.ts
|
|
@@ -16,6 +17,7 @@ function createRunsStore(scopeKey, host) {
|
|
|
16
17
|
...host,
|
|
17
18
|
stops: {}
|
|
18
19
|
};
|
|
20
|
+
let focusReturn = null;
|
|
19
21
|
const listeners = /* @__PURE__ */ new Set();
|
|
20
22
|
const inFlight = /* @__PURE__ */ new Map();
|
|
21
23
|
const publish = (next) => {
|
|
@@ -46,18 +48,20 @@ function createRunsStore(scopeKey, host) {
|
|
|
46
48
|
};
|
|
47
49
|
return {
|
|
48
50
|
scopeKey,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
focusReturn: () => focusReturn,
|
|
52
|
+
claimFocusReturn: (claim) => {
|
|
53
|
+
focusReturn = claim;
|
|
54
|
+
},
|
|
55
|
+
takeFocusReturn: (claim) => {
|
|
56
|
+
if (focusReturn !== claim) return false;
|
|
57
|
+
focusReturn = null;
|
|
58
|
+
return true;
|
|
59
|
+
},
|
|
55
60
|
getState: () => state,
|
|
56
61
|
subscribe: (listener) => {
|
|
57
62
|
listeners.add(listener);
|
|
58
63
|
return () => void listeners.delete(listener);
|
|
59
64
|
},
|
|
60
|
-
/** Mirrors the host's latest values; a no-op when none changed. */
|
|
61
65
|
sync: (host) => {
|
|
62
66
|
if (Object.keys(host).some((key) => !Object.is(host[key], state[key]))) publish({
|
|
63
67
|
...state,
|
|
@@ -79,28 +83,44 @@ const subscribeNothing = () => () => void 0;
|
|
|
79
83
|
* (module scope or `useCallback`) so the memo survives renders; `fallback`,
|
|
80
84
|
* also stable, is the slice outside a provider.
|
|
81
85
|
*/
|
|
82
|
-
function useRunsSelector(select, fallback,
|
|
86
|
+
function useRunsSelector(select, fallback, t0) {
|
|
87
|
+
const $ = c(6);
|
|
88
|
+
const isEqual = t0 === void 0 ? Object.is : t0;
|
|
83
89
|
const store = useRunsStore();
|
|
84
|
-
|
|
85
|
-
|
|
90
|
+
let t1;
|
|
91
|
+
bb0: {
|
|
92
|
+
if (!store) {
|
|
93
|
+
let t2;
|
|
94
|
+
if ($[0] !== fallback) {
|
|
95
|
+
t2 = () => fallback;
|
|
96
|
+
$[0] = fallback;
|
|
97
|
+
$[1] = t2;
|
|
98
|
+
} else t2 = $[1];
|
|
99
|
+
t1 = t2;
|
|
100
|
+
break bb0;
|
|
101
|
+
}
|
|
86
102
|
let memo;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
const
|
|
91
|
-
memo
|
|
92
|
-
state
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
let t2;
|
|
104
|
+
if ($[2] !== isEqual || $[3] !== select || $[4] !== store) {
|
|
105
|
+
t2 = () => {
|
|
106
|
+
const state = store.getState();
|
|
107
|
+
if (memo?.state !== state) {
|
|
108
|
+
const value = select(state);
|
|
109
|
+
memo = {
|
|
110
|
+
state,
|
|
111
|
+
value: memo && isEqual(memo.value, value) ? memo.value : value
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
return memo.value;
|
|
115
|
+
};
|
|
116
|
+
$[2] = isEqual;
|
|
117
|
+
$[3] = select;
|
|
118
|
+
$[4] = store;
|
|
119
|
+
$[5] = t2;
|
|
120
|
+
} else t2 = $[5];
|
|
121
|
+
t1 = t2;
|
|
122
|
+
}
|
|
123
|
+
const getSnapshot = t1;
|
|
104
124
|
return React.useSyncExternalStore(store?.subscribe ?? subscribeNothing, getSnapshot, getSnapshot);
|
|
105
125
|
}
|
|
106
126
|
function shallowEqual(a, b) {
|
|
@@ -119,7 +139,14 @@ function selectRunStop(state, runId) {
|
|
|
119
139
|
return state.onStopRun ? state.stops[runId] ?? IDLE : null;
|
|
120
140
|
}
|
|
121
141
|
function useRunStop(runId) {
|
|
122
|
-
|
|
142
|
+
const $ = c(2);
|
|
143
|
+
let t0;
|
|
144
|
+
if ($[0] !== runId) {
|
|
145
|
+
t0 = (state) => selectRunStop(state, runId);
|
|
146
|
+
$[0] = runId;
|
|
147
|
+
$[1] = t0;
|
|
148
|
+
} else t0 = $[1];
|
|
149
|
+
return useRunsSelector(t0, null);
|
|
123
150
|
}
|
|
124
151
|
/**
|
|
125
152
|
* The one rule wherever a run offers Stop — lane, roster row, and run
|