@mcp-b/react-components 0.63.0 → 0.64.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +100 -36
- package/dist/components/extension/FirstRunSetup.js +3974 -1016
- package/dist/components/foundations/Accordion.js +186 -41
- package/dist/components/foundations/AlertDialog.js +425 -97
- package/dist/components/foundations/AppIcon.d.ts +13 -13
- package/dist/components/foundations/AppIcon.js +183 -34
- package/dist/components/foundations/Autocomplete.js +408 -89
- package/dist/components/foundations/Avatar.d.ts +100 -2
- package/dist/components/foundations/Avatar.js +204 -44
- package/dist/components/foundations/Button.js +64 -13
- package/dist/components/foundations/Card.js +357 -63
- package/dist/components/foundations/Checkbox.js +82 -17
- package/dist/components/foundations/CheckboxGroup.js +266 -58
- package/dist/components/foundations/Collapsible.d.ts +2 -1
- package/dist/components/foundations/Collapsible.js +129 -26
- package/dist/components/foundations/Combobox.js +408 -89
- package/dist/components/foundations/ContextMenu.d.ts +2 -2
- package/dist/components/foundations/ContextMenu.js +591 -117
- package/dist/components/foundations/DescriptionList.js +159 -28
- package/dist/components/foundations/Dialog.js +373 -89
- package/dist/components/foundations/EmptyState.js +86 -23
- package/dist/components/foundations/Favicon.d.ts +17 -0
- package/dist/components/foundations/Favicon.js +62 -0
- package/dist/components/foundations/Field.js +525 -108
- package/dist/components/foundations/Fieldset.js +115 -23
- package/dist/components/foundations/Form.js +38 -9
- package/dist/components/foundations/FormattedDate.d.ts +19 -5
- package/dist/components/foundations/FormattedDate.js +82 -12
- package/dist/components/foundations/IconButton.d.ts +1 -1
- package/dist/components/foundations/IconButton.js +114 -17
- package/dist/components/foundations/Input.js +38 -9
- package/dist/components/foundations/Kbd.js +55 -10
- package/dist/components/foundations/Label.js +56 -12
- package/dist/components/foundations/LinkButton.js +67 -15
- package/dist/components/foundations/Marker.js +138 -29
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menu.js +634 -136
- package/dist/components/foundations/Menubar.d.ts +2 -2
- package/dist/components/foundations/Menubar.js +685 -130
- package/dist/components/foundations/Meter.js +186 -41
- package/dist/components/foundations/NavigationMenu.js +426 -95
- package/dist/components/foundations/NumberField.js +223 -49
- package/dist/components/foundations/Popover.js +398 -88
- package/dist/components/foundations/PreviewCard.js +234 -53
- package/dist/components/foundations/Progress.js +117 -25
- package/dist/components/foundations/RadioGroup.d.ts +13 -5
- package/dist/components/foundations/RadioGroup.js +132 -25
- package/dist/components/foundations/ScrollArea.js +230 -51
- package/dist/components/foundations/SearchField.d.ts +8 -3
- package/dist/components/foundations/SearchField.js +129 -28
- package/dist/components/foundations/Select.js +648 -145
- package/dist/components/foundations/Separator.js +61 -12
- package/dist/components/foundations/Slider.js +260 -57
- package/dist/components/foundations/Stepper.d.ts +1 -1
- package/dist/components/foundations/Stepper.js +561 -127
- package/dist/components/foundations/Switch.js +82 -18
- package/dist/components/foundations/Tabs.d.ts +2 -2
- package/dist/components/foundations/Tabs.js +282 -53
- package/dist/components/foundations/Textarea.js +43 -9
- package/dist/components/foundations/ThemeProvider.js +138 -52
- package/dist/components/foundations/Toast.d.ts +10 -2
- package/dist/components/foundations/Toast.js +322 -75
- package/dist/components/foundations/Toggle.d.ts +5 -2
- package/dist/components/foundations/Toggle.js +51 -10
- package/dist/components/foundations/ToggleGroup.d.ts +3 -3
- package/dist/components/foundations/ToggleGroup.js +215 -59
- package/dist/components/foundations/Toolbar.js +249 -61
- package/dist/components/foundations/Tooltip.d.ts +3 -3
- package/dist/components/foundations/Tooltip.js +311 -55
- package/dist/components/foundations/TransitionSurface.js +43 -9
- package/dist/components/foundations/icons.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
- package/dist/components/general-purpose/ActionGuide.js +290 -64
- package/dist/components/general-purpose/AppFrame.js +72 -14
- package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
- package/dist/components/general-purpose/AppTopBar.js +349 -60
- package/dist/components/general-purpose/BrandLoading.js +37 -9
- package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
- package/dist/components/general-purpose/CommandPalette.js +271 -0
- package/dist/components/general-purpose/Commit.d.ts +1 -1
- package/dist/components/general-purpose/Commit.js +937 -167
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
- package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
- package/dist/components/general-purpose/FileTree.d.ts +20 -7
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/ListDetail.d.ts +84 -0
- package/dist/components/general-purpose/ListDetail.js +423 -0
- package/dist/components/general-purpose/NotificationPrompt.js +20 -11
- package/dist/components/general-purpose/PricingBillingToggle.js +33 -6
- package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
- package/dist/components/general-purpose/PricingFAQ.js +53 -12
- package/dist/components/general-purpose/PricingPage.js +376 -139
- package/dist/components/general-purpose/PricingPlanCard.js +209 -84
- package/dist/components/general-purpose/PricingUsageCalculator.js +231 -81
- package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
- package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
- package/dist/components/general-purpose/ScreenStack.js +427 -0
- package/dist/components/general-purpose/SettingsFormDialog.js +235 -77
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/StatusScreen.js +82 -24
- package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
- package/dist/components/general-purpose/SwipeActions.js +357 -0
- package/dist/components/general-purpose/Terminal.d.ts +22 -48
- package/dist/components/general-purpose/Terminal.js +320 -174
- package/dist/components/general-purpose/TestResults.js +975 -196
- package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
- package/dist/components/general-purpose/ThemeModeControl.js +66 -23
- package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
- package/dist/components/general-purpose/WallpaperPicker.js +180 -0
- package/dist/components/general-purpose/WebPreview.d.ts +5 -7
- package/dist/components/general-purpose/WebPreview.js +770 -203
- package/dist/components/nanites/AgentConnection.js +323 -84
- package/dist/components/nanites/AgentToolDetail.js +233 -53
- package/dist/components/nanites/GithubMotionMark.js +37 -9
- package/dist/components/nanites/NaniteScene.js +535 -323
- package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
- package/dist/container-width-C43ccJ84.js +17 -0
- package/dist/context-Ddsp8HgD.js +43 -0
- package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
- package/dist/copy-button-DWBVJR6D.js +118 -0
- package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
- package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
- package/dist/icons-nLTnB9kd.js +470 -0
- package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
- package/dist/motion-CGM3i6lX.js +319 -0
- package/dist/motion-preferences-6qsDIDvH.js +13 -0
- package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
- package/dist/progress-ring-BO649JA9.js +79 -0
- package/dist/provider-logos-Ceu7iYFx.js +362 -0
- package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
- package/dist/styles/accessibility.css +26 -0
- package/dist/styles/accordion.css +0 -2
- package/dist/styles/activity.css +20 -12
- package/dist/styles/agent-attention.css +31 -10
- package/dist/styles/agent-chat.css +7 -6
- package/dist/styles/agent-computer-motion-reduction.css +118 -0
- package/dist/styles/agent-computer-motion.css +127 -0
- package/dist/styles/agent-computer-phone.css +942 -0
- package/dist/styles/agent-computer.css +1764 -0
- package/dist/styles/agent-connection.css +5 -5
- package/dist/styles/agent-screen-switcher.css +313 -0
- package/dist/styles/app-icon.css +34 -30
- package/dist/styles/app-top-bar.css +33 -18
- package/dist/styles/approval.css +3 -3
- package/dist/styles/artifact.css +1 -1
- package/dist/styles/attachment-preview.css +2 -4
- package/dist/styles/avatar.css +12 -14
- package/dist/styles/base-ui-motion.css +84 -18
- package/dist/styles/base-ui-motion.test.tsx +305 -0
- package/dist/styles/base.css +16 -12
- package/dist/styles/brand.test.ts +7 -20
- package/dist/styles/browser-control-overlay.css +1 -1
- package/dist/styles/browser-live-screen.css +2 -2
- package/dist/styles/browser-live-view.css +1 -1
- package/dist/styles/browser-replay.css +0 -8
- package/dist/styles/browser-run-panel.css +275 -37
- package/dist/styles/button.css +52 -9
- package/dist/styles/card.css +6 -5
- package/dist/styles/chain-of-thought.css +0 -10
- package/dist/styles/checkpoint.css +2 -2
- package/dist/styles/codex-model-selector.css +2 -2
- package/dist/styles/color-contrast.test.ts +18 -1
- package/dist/styles/command-palette.css +110 -0
- package/dist/styles/composer-link.css +11 -7
- package/dist/styles/composition-motion.css +3 -14
- package/dist/styles/context.css +2 -2
- package/dist/styles/conversation-tab-picker.css +7 -0
- package/dist/styles/conversation.css +8 -2
- package/dist/styles/dialog.css +2 -2
- package/dist/styles/employee-app.css +8 -2
- package/dist/styles/employee-chrome.css +4 -4
- package/dist/styles/execution-board.css +206 -114
- package/dist/styles/execution-result.css +2 -2
- package/dist/styles/field.css +187 -4
- package/dist/styles/file-tree.css +218 -40
- package/dist/styles/first-run-setup.css +914 -187
- package/dist/styles/github-motion-mark.css +0 -8
- package/dist/styles/index.css +145 -133
- package/dist/styles/inline-citation.css +5 -4
- package/dist/styles/list-detail.css +57 -0
- package/dist/styles/manager-office.css +6 -8
- package/dist/styles/manager-work.css +4 -2
- package/dist/styles/mcp-plugin-catalog.css +2 -2
- package/dist/styles/mcp-server-picker.css +3 -6
- package/dist/styles/media-preview-card.css +2 -2
- package/dist/styles/menu.css +0 -9
- package/dist/styles/menubar.css +18 -6
- package/dist/styles/message-scroller.css +47 -9
- package/dist/styles/message.css +3 -3
- package/dist/styles/model-selector.css +1 -1
- package/dist/styles/motion-reduction.css +39 -6
- package/dist/styles/pricing-page.css +1 -1
- package/dist/styles/prompt-input.css +29 -29
- package/dist/styles/queue.css +1 -1
- package/dist/styles/recipes.css +212 -28
- package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
- package/dist/styles/responsive-sidebar-shell.css +40 -43
- package/dist/styles/screen-stack.css +123 -0
- package/dist/styles/search-field.css +80 -3
- package/dist/styles/stepper.css +0 -10
- package/dist/styles/streamdown.css +2 -2
- package/dist/styles/subagent-run.css +9 -5
- package/dist/styles/swipe-actions.css +158 -0
- package/dist/styles/tabs.css +80 -23
- package/dist/styles/task.css +7 -1
- package/dist/styles/terminal.css +66 -78
- package/dist/styles/test-results.css +1 -19
- package/dist/styles/textarea.css +2 -1
- package/dist/styles/theme-mode-control.css +154 -26
- package/dist/styles/think-chat-tool-panels.css +1 -1
- package/dist/styles/think-execution-workbench.css +0 -9
- package/dist/styles/think-full-app.css +7 -1
- package/dist/styles/think-schedule.css +81 -54
- package/dist/styles/think-thread-picker.css +28 -37
- package/dist/styles/toast.css +11 -0
- package/dist/styles/toggle-group.css +0 -10
- package/dist/styles/toggle.css +13 -0
- package/dist/styles/tooltip.css +12 -0
- package/dist/styles/transition-surface.css +1 -0
- package/dist/styles/wallpaper-picker.css +224 -0
- package/dist/styles/web-preview.css +47 -18
- package/dist/styles/workspace-automation.css +116 -17
- package/dist/styles/workspace-concepts.css +1 -1
- package/dist/styles/workspace-desktop.css +124 -0
- package/dist/styles/workspace-entity-card.css +3 -1
- package/dist/styles/workspace-explorer.css +499 -5
- package/dist/utils/brand-marks.d.ts +13 -0
- package/dist/utils/brand-marks.js +14 -0
- package/dist/utils/desktop-artwork.d.ts +17 -0
- package/dist/utils/desktop-artwork.js +18 -0
- package/dist/utils/favicon.d.ts +6 -2
- package/dist/utils/favicon.js +16 -4
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/workspace-assets-DdtnBDU3.js +213 -0
- package/dist/{workspace-concept-panel-C_oYhPSx.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
- package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
- package/dist/workspace-delete-BOY6CMBf.js +183 -0
- package/dist/workspace-drag-B6hMXUNt.js +304 -0
- package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
- package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
- package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
- package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
- package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
- package/package.json +9 -3
- package/dist/Avatar-t1YRzdwB.d.ts +0 -101
- package/dist/CodeBlock-DYQdZUH6.js +0 -318
- package/dist/ExecutionResult-2fBkpIGN.js +0 -279
- package/dist/FileTree-CDLOD643.js +0 -323
- package/dist/ManagerOffice-CvVSHnOM.js +0 -1129
- package/dist/SetupChecklist-B-iEta9v.js +0 -78
- package/dist/ThinkSchedule-DPoOYWTQ.d.ts +0 -34
- package/dist/WorkspaceFileView-DwIkehSM.js +0 -783
- package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
- package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
- package/dist/attachment-preview-1CXJvrmb.js +0 -25
- package/dist/chatgpt-sign-in-button-D8AT6x4c.js +0 -32
- package/dist/connected-app-drafts-DtA2fBK5.js +0 -283
- package/dist/copy-button-DbR932tF.js +0 -45
- package/dist/icons-GoybMAB2.js +0 -141
- package/dist/progress-ring-L2bbF0ji.js +0 -40
- package/dist/provider-logos-DWYY8wNz.js +0 -99
- package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
- package/dist/workspace-assets-F3r6XltC.js +0 -107
- package/dist/workspace-concept-panel-D8oEvR0n.js +0 -66
- package/dist/workspace-delete-CQvv1eDE.js +0 -81
- package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as useOptionalAgentChatQueue, n as AgentChatQueueProviderProps, r as AgentChatQueuedPrompt, t as AgentChatQueueProvider } from "../../AgentChatQueue-
|
|
1
|
+
import { i as useOptionalAgentChatQueue, n as AgentChatQueueProviderProps, r as AgentChatQueuedPrompt, t as AgentChatQueueProvider } from "../../AgentChatQueue-C1TDnVAn.js";
|
|
2
2
|
export { AgentChatQueueProvider, AgentChatQueueProviderProps, AgentChatQueuedPrompt, useOptionalAgentChatQueue };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { t as attempt } from "../../attempt-CySQHJsF.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
1
3
|
import * as React from "react";
|
|
2
4
|
import { jsx } from "react/jsx-runtime";
|
|
3
5
|
//#region src/components/agents-sdk/AgentChatQueue.tsx
|
|
@@ -5,13 +7,32 @@ const AgentChatQueueContext = React.createContext(null);
|
|
|
5
7
|
function useOptionalAgentChatQueue() {
|
|
6
8
|
return React.useContext(AgentChatQueueContext);
|
|
7
9
|
}
|
|
10
|
+
/** Calls `run`, then `finish` once it returns, rejects or throws. */
|
|
11
|
+
function whenSettled(run, finish) {
|
|
12
|
+
let result;
|
|
13
|
+
try {
|
|
14
|
+
result = run();
|
|
15
|
+
} catch (cause) {
|
|
16
|
+
finish();
|
|
17
|
+
throw cause;
|
|
18
|
+
}
|
|
19
|
+
if (result) return Promise.resolve(result).finally(finish);
|
|
20
|
+
finish();
|
|
21
|
+
}
|
|
8
22
|
/**
|
|
9
23
|
* The queue's single owner, including dispatch reservations and the turn's
|
|
10
24
|
* busy-to-ready edge. Hoist it with the parent connection to preserve queued
|
|
11
25
|
* prompts and cancellation holds while the selected child is visible.
|
|
12
26
|
*/
|
|
13
|
-
function AgentChatQueueProvider(
|
|
14
|
-
const
|
|
27
|
+
function AgentChatQueueProvider(t0) {
|
|
28
|
+
const $ = c(50);
|
|
29
|
+
const { children, status, onSubmit, onStop, onPromptQueued } = t0;
|
|
30
|
+
let t1;
|
|
31
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
32
|
+
t1 = [];
|
|
33
|
+
$[0] = t1;
|
|
34
|
+
} else t1 = $[0];
|
|
35
|
+
const [items, setItems] = React.useState(t1);
|
|
15
36
|
const itemsRef = React.useRef(items);
|
|
16
37
|
const [held, setHeld] = React.useState(false);
|
|
17
38
|
const heldRef = React.useRef(false);
|
|
@@ -22,185 +43,281 @@ function AgentChatQueueProvider({ children, status, onSubmit, onStop, onPromptQu
|
|
|
22
43
|
const drainRequested = React.useRef(false);
|
|
23
44
|
const busy = status === "submitted" || status === "streaming";
|
|
24
45
|
const busyRef = React.useRef(busy);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
46
|
+
let t2;
|
|
47
|
+
let t3;
|
|
48
|
+
if ($[1] !== busy) {
|
|
49
|
+
t2 = () => {
|
|
50
|
+
busyRef.current = busy;
|
|
51
|
+
};
|
|
52
|
+
t3 = [busy];
|
|
53
|
+
$[1] = busy;
|
|
54
|
+
$[2] = t2;
|
|
55
|
+
$[3] = t3;
|
|
56
|
+
} else {
|
|
57
|
+
t2 = $[2];
|
|
58
|
+
t3 = $[3];
|
|
59
|
+
}
|
|
60
|
+
React.useLayoutEffect(t2, t3);
|
|
28
61
|
const wasBusy = React.useRef(busy);
|
|
29
62
|
const dispatching = React.useRef(null);
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
holdRevision.current += 1;
|
|
36
|
-
heldRef.current = true;
|
|
37
|
-
setHeld(true);
|
|
38
|
-
}, []);
|
|
39
|
-
const release = React.useCallback(() => {
|
|
40
|
-
heldRef.current = false;
|
|
41
|
-
setHeld(false);
|
|
42
|
-
setError(null);
|
|
43
|
-
}, []);
|
|
44
|
-
const send = React.useCallback((message) => {
|
|
45
|
-
const dispatch = Symbol();
|
|
46
|
-
dispatching.current = dispatch;
|
|
47
|
-
const finish = () => {
|
|
48
|
-
if (dispatching.current !== dispatch) return;
|
|
49
|
-
dispatching.current = null;
|
|
50
|
-
setDispatchVersion((version) => version + 1);
|
|
63
|
+
let t4;
|
|
64
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
65
|
+
t4 = (next) => {
|
|
66
|
+
itemsRef.current = next;
|
|
67
|
+
setItems(next);
|
|
51
68
|
};
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
69
|
+
$[4] = t4;
|
|
70
|
+
} else t4 = $[4];
|
|
71
|
+
const updateItems = t4;
|
|
72
|
+
let t5;
|
|
73
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
74
|
+
t5 = () => {
|
|
75
|
+
holdRevision.current = holdRevision.current + 1;
|
|
76
|
+
heldRef.current = true;
|
|
77
|
+
setHeld(true);
|
|
78
|
+
};
|
|
79
|
+
$[5] = t5;
|
|
80
|
+
} else t5 = $[5];
|
|
81
|
+
const hold = t5;
|
|
82
|
+
let t6;
|
|
83
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
84
|
+
t6 = () => {
|
|
85
|
+
heldRef.current = false;
|
|
86
|
+
setHeld(false);
|
|
87
|
+
setError(null);
|
|
88
|
+
};
|
|
89
|
+
$[6] = t6;
|
|
90
|
+
} else t6 = $[6];
|
|
91
|
+
const release = t6;
|
|
92
|
+
let t7;
|
|
93
|
+
if ($[7] !== onSubmit) {
|
|
94
|
+
t7 = (message) => {
|
|
95
|
+
const dispatch = Symbol();
|
|
96
|
+
dispatching.current = dispatch;
|
|
97
|
+
const finish = () => {
|
|
98
|
+
if (dispatching.current !== dispatch) return;
|
|
99
|
+
dispatching.current = null;
|
|
100
|
+
setDispatchVersion(_temp);
|
|
101
|
+
};
|
|
102
|
+
return whenSettled(() => onSubmit?.(message), finish);
|
|
103
|
+
};
|
|
104
|
+
$[7] = onSubmit;
|
|
105
|
+
$[8] = t7;
|
|
106
|
+
} else t7 = $[8];
|
|
107
|
+
const send = t7;
|
|
108
|
+
let t8;
|
|
109
|
+
if ($[9] !== onSubmit) {
|
|
110
|
+
t8 = async (next_0) => {
|
|
111
|
+
if (dispatching.current || !onSubmit) return;
|
|
112
|
+
const dispatch_0 = Symbol();
|
|
113
|
+
dispatching.current = dispatch_0;
|
|
114
|
+
setError(null);
|
|
115
|
+
drainRequested.current = false;
|
|
116
|
+
updateItems(itemsRef.current.filter((item) => item.id !== next_0.id));
|
|
117
|
+
const sent = await attempt(() => onSubmit(next_0.message));
|
|
118
|
+
if (!sent.ok) {
|
|
119
|
+
updateItems([next_0, ...itemsRef.current]);
|
|
120
|
+
hold();
|
|
121
|
+
setError(sent.error instanceof Error ? sent.error.message : "Could not send queued message. Try again.");
|
|
122
|
+
}
|
|
123
|
+
if (dispatching.current === dispatch_0) {
|
|
76
124
|
dispatching.current = null;
|
|
77
|
-
setDispatchVersion(
|
|
125
|
+
setDispatchVersion(_temp2);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
$[9] = onSubmit;
|
|
129
|
+
$[10] = t8;
|
|
130
|
+
} else t8 = $[10];
|
|
131
|
+
const sendQueued = React.useEffectEvent(t8);
|
|
132
|
+
let t9;
|
|
133
|
+
if ($[11] !== busy || $[12] !== held || $[13] !== items || $[14] !== onSubmit || $[15] !== sendQueued) {
|
|
134
|
+
t9 = () => {
|
|
135
|
+
if (wasBusy.current && !busy) drainRequested.current = true;
|
|
136
|
+
wasBusy.current = busy;
|
|
137
|
+
if (!busy && !held && drainRequested.current && items[0] && onSubmit && !dispatching.current) sendQueued(items[0]);
|
|
138
|
+
};
|
|
139
|
+
$[11] = busy;
|
|
140
|
+
$[12] = held;
|
|
141
|
+
$[13] = items;
|
|
142
|
+
$[14] = onSubmit;
|
|
143
|
+
$[15] = sendQueued;
|
|
144
|
+
$[16] = t9;
|
|
145
|
+
} else t9 = $[16];
|
|
146
|
+
let t10;
|
|
147
|
+
if ($[17] !== busy || $[18] !== dispatchVersion || $[19] !== held || $[20] !== items || $[21] !== onSubmit) {
|
|
148
|
+
t10 = [
|
|
149
|
+
busy,
|
|
150
|
+
held,
|
|
151
|
+
items,
|
|
152
|
+
onSubmit,
|
|
153
|
+
dispatchVersion
|
|
154
|
+
];
|
|
155
|
+
$[17] = busy;
|
|
156
|
+
$[18] = dispatchVersion;
|
|
157
|
+
$[19] = held;
|
|
158
|
+
$[20] = items;
|
|
159
|
+
$[21] = onSubmit;
|
|
160
|
+
$[22] = t10;
|
|
161
|
+
} else t10 = $[22];
|
|
162
|
+
React.useEffect(t9, t10);
|
|
163
|
+
let t11;
|
|
164
|
+
if ($[23] !== onPromptQueued || $[24] !== send) {
|
|
165
|
+
t11 = (message_0, heldAt) => {
|
|
166
|
+
const revision = heldAt ?? holdRevision.current;
|
|
167
|
+
setSubmissionVersion(_temp3);
|
|
168
|
+
const wasHeld = heldRef.current;
|
|
169
|
+
if (wasHeld && revision !== holdRevision.current) {
|
|
170
|
+
updateItems([...itemsRef.current, {
|
|
171
|
+
id: crypto.randomUUID(),
|
|
172
|
+
message: message_0
|
|
173
|
+
}]);
|
|
174
|
+
onPromptQueued?.();
|
|
175
|
+
return;
|
|
78
176
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
return;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
release,
|
|
117
|
-
send,
|
|
118
|
-
updateItems
|
|
119
|
-
]);
|
|
120
|
-
const stop = React.useCallback(async () => {
|
|
121
|
-
hold();
|
|
122
|
-
try {
|
|
123
|
-
await onStop?.();
|
|
124
|
-
} catch (cause) {
|
|
125
|
-
setError(cause instanceof Error ? cause.message : "Stop could not be confirmed. Try again.");
|
|
126
|
-
throw cause;
|
|
127
|
-
}
|
|
128
|
-
}, [hold, onStop]);
|
|
129
|
-
const sendNext = React.useCallback((id) => {
|
|
130
|
-
if (busyRef.current || dispatching.current || !onSubmit) return;
|
|
131
|
-
const next = id ? itemsRef.current.find((item) => item.id === id) : itemsRef.current[0];
|
|
132
|
-
if (!next) return;
|
|
133
|
-
updateItems([next, ...itemsRef.current.filter((item) => item.id !== next.id)]);
|
|
134
|
-
release();
|
|
135
|
-
drainRequested.current = true;
|
|
136
|
-
setDispatchVersion((version) => version + 1);
|
|
137
|
-
}, [
|
|
138
|
-
onSubmit,
|
|
139
|
-
release,
|
|
140
|
-
updateItems
|
|
141
|
-
]);
|
|
142
|
-
const steer = React.useCallback(async (id) => {
|
|
143
|
-
const next = itemsRef.current.find((item) => item.id === id);
|
|
144
|
-
if (!next) return;
|
|
145
|
-
updateItems([next, ...itemsRef.current.filter((item) => item.id !== id)]);
|
|
146
|
-
hold();
|
|
147
|
-
const revision = holdRevision.current;
|
|
148
|
-
setError(null);
|
|
149
|
-
try {
|
|
150
|
-
if (busyRef.current) await onStop?.();
|
|
151
|
-
if (revision !== holdRevision.current) return;
|
|
177
|
+
release();
|
|
178
|
+
if (busyRef.current || dispatching.current || itemsRef.current.length > 0 && !wasHeld) {
|
|
179
|
+
updateItems([...itemsRef.current, {
|
|
180
|
+
id: crypto.randomUUID(),
|
|
181
|
+
message: message_0
|
|
182
|
+
}]);
|
|
183
|
+
onPromptQueued?.();
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
drainRequested.current = false;
|
|
187
|
+
return send(message_0);
|
|
188
|
+
};
|
|
189
|
+
$[23] = onPromptQueued;
|
|
190
|
+
$[24] = send;
|
|
191
|
+
$[25] = t11;
|
|
192
|
+
} else t11 = $[25];
|
|
193
|
+
const submit = t11;
|
|
194
|
+
let t12;
|
|
195
|
+
if ($[26] !== onStop) {
|
|
196
|
+
t12 = async () => {
|
|
197
|
+
hold();
|
|
198
|
+
const stopped = await attempt(() => onStop?.());
|
|
199
|
+
if (stopped.ok) return;
|
|
200
|
+
setError(stopped.error instanceof Error ? stopped.error.message : "Stop could not be confirmed. Try again.");
|
|
201
|
+
throw stopped.error;
|
|
202
|
+
};
|
|
203
|
+
$[26] = onStop;
|
|
204
|
+
$[27] = t12;
|
|
205
|
+
} else t12 = $[27];
|
|
206
|
+
const stop = t12;
|
|
207
|
+
let t13;
|
|
208
|
+
if ($[28] !== onSubmit) {
|
|
209
|
+
t13 = (id) => {
|
|
210
|
+
if (busyRef.current || dispatching.current || !onSubmit) return;
|
|
211
|
+
const next_1 = id ? itemsRef.current.find((item_0) => item_0.id === id) : itemsRef.current[0];
|
|
212
|
+
if (!next_1) return;
|
|
213
|
+
updateItems([next_1, ...itemsRef.current.filter((item_1) => item_1.id !== next_1.id)]);
|
|
152
214
|
release();
|
|
153
215
|
drainRequested.current = true;
|
|
154
|
-
setDispatchVersion(
|
|
155
|
-
}
|
|
216
|
+
setDispatchVersion(_temp4);
|
|
217
|
+
};
|
|
218
|
+
$[28] = onSubmit;
|
|
219
|
+
$[29] = t13;
|
|
220
|
+
} else t13 = $[29];
|
|
221
|
+
const sendNext = t13;
|
|
222
|
+
let t14;
|
|
223
|
+
if ($[30] !== onStop) {
|
|
224
|
+
t14 = async (id_0) => {
|
|
225
|
+
const next_2 = itemsRef.current.find((item_2) => item_2.id === id_0);
|
|
226
|
+
if (!next_2) return;
|
|
227
|
+
updateItems([next_2, ...itemsRef.current.filter((item_3) => item_3.id !== id_0)]);
|
|
156
228
|
hold();
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
229
|
+
const revision_0 = holdRevision.current;
|
|
230
|
+
setError(null);
|
|
231
|
+
const stopped_0 = await attempt(() => busyRef.current ? onStop?.() : void 0);
|
|
232
|
+
if (!stopped_0.ok) {
|
|
233
|
+
hold();
|
|
234
|
+
setError(stopped_0.error instanceof Error ? stopped_0.error.message : "Stop could not be confirmed. Try again.");
|
|
235
|
+
throw stopped_0.error;
|
|
236
|
+
}
|
|
237
|
+
if (revision_0 !== holdRevision.current) return;
|
|
238
|
+
release();
|
|
239
|
+
drainRequested.current = true;
|
|
240
|
+
setDispatchVersion(_temp5);
|
|
241
|
+
};
|
|
242
|
+
$[30] = onStop;
|
|
243
|
+
$[31] = t14;
|
|
244
|
+
} else t14 = $[31];
|
|
245
|
+
const steer = t14;
|
|
246
|
+
let t15;
|
|
247
|
+
if ($[32] !== submit) {
|
|
248
|
+
t15 = () => {
|
|
249
|
+
const revision_1 = holdRevision.current;
|
|
250
|
+
return (message_1) => submit(message_1, revision_1);
|
|
251
|
+
};
|
|
252
|
+
$[32] = submit;
|
|
253
|
+
$[33] = t15;
|
|
254
|
+
} else t15 = $[33];
|
|
255
|
+
const captureSubmit = t15;
|
|
256
|
+
let t16;
|
|
257
|
+
if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
|
|
258
|
+
t16 = (id_1) => updateItems(itemsRef.current.filter((item_4) => item_4.id !== id_1));
|
|
259
|
+
$[34] = t16;
|
|
260
|
+
} else t16 = $[34];
|
|
261
|
+
const remove = t16;
|
|
262
|
+
const t17 = Boolean(onStop);
|
|
263
|
+
const t18 = Boolean(onSubmit);
|
|
264
|
+
let t19;
|
|
265
|
+
if ($[35] !== captureSubmit || $[36] !== error || $[37] !== held || $[38] !== items || $[39] !== sendNext || $[40] !== steer || $[41] !== stop || $[42] !== submissionVersion || $[43] !== submit || $[44] !== t17 || $[45] !== t18) {
|
|
266
|
+
t19 = {
|
|
267
|
+
items,
|
|
268
|
+
held,
|
|
269
|
+
error,
|
|
270
|
+
submissionVersion,
|
|
271
|
+
canStop: t17,
|
|
272
|
+
canSubmit: t18,
|
|
273
|
+
hold,
|
|
274
|
+
submit,
|
|
275
|
+
captureSubmit,
|
|
276
|
+
stop,
|
|
277
|
+
steer,
|
|
278
|
+
sendNext,
|
|
279
|
+
remove
|
|
280
|
+
};
|
|
281
|
+
$[35] = captureSubmit;
|
|
282
|
+
$[36] = error;
|
|
283
|
+
$[37] = held;
|
|
284
|
+
$[38] = items;
|
|
285
|
+
$[39] = sendNext;
|
|
286
|
+
$[40] = steer;
|
|
287
|
+
$[41] = stop;
|
|
288
|
+
$[42] = submissionVersion;
|
|
289
|
+
$[43] = submit;
|
|
290
|
+
$[44] = t17;
|
|
291
|
+
$[45] = t18;
|
|
292
|
+
$[46] = t19;
|
|
293
|
+
} else t19 = $[46];
|
|
294
|
+
const value = t19;
|
|
295
|
+
let t20;
|
|
296
|
+
if ($[47] !== children || $[48] !== value) {
|
|
297
|
+
t20 = /* @__PURE__ */ jsx(AgentChatQueueContext.Provider, {
|
|
298
|
+
value,
|
|
299
|
+
children
|
|
300
|
+
});
|
|
301
|
+
$[47] = children;
|
|
302
|
+
$[48] = value;
|
|
303
|
+
$[49] = t20;
|
|
304
|
+
} else t20 = $[49];
|
|
305
|
+
return t20;
|
|
306
|
+
}
|
|
307
|
+
function _temp5(version_3) {
|
|
308
|
+
return version_3 + 1;
|
|
309
|
+
}
|
|
310
|
+
function _temp4(version_2) {
|
|
311
|
+
return version_2 + 1;
|
|
312
|
+
}
|
|
313
|
+
function _temp3(version_1) {
|
|
314
|
+
return version_1 + 1;
|
|
315
|
+
}
|
|
316
|
+
function _temp2(version_0) {
|
|
317
|
+
return version_0 + 1;
|
|
318
|
+
}
|
|
319
|
+
function _temp(version) {
|
|
320
|
+
return version + 1;
|
|
204
321
|
}
|
|
205
322
|
//#endregion
|
|
206
323
|
export { AgentChatQueueProvider, useOptionalAgentChatQueue };
|