@mcp-b/react-components 0.56.1 → 0.56.2
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-Cc_oDYum.d.ts → AgentActivity-DSObWhDU.d.ts} +3 -9
- package/dist/{AgentChatQueue-MrHhV901.d.ts → AgentChatQueue-CGR4hd7D.d.ts} +2 -9
- package/dist/{AgentMessageParts-C7L-Mv9U.d.ts → AgentMessageParts-BtWwiE4f.d.ts} +1 -6
- package/dist/{AgentToolRunsContext-DT50htHj.d.ts → AgentToolRunsContext-DniwGn96.d.ts} +1 -5
- package/dist/{AppTopBar-CVkLRdk7.d.ts → AppTopBar-DwzydmXu.d.ts} +8 -43
- package/dist/{Avatar-o2NO1fCG.d.ts → Avatar-t1YRzdwB.d.ts} +7 -30
- package/dist/{Button-DjONW5UW.d.ts → Button-ClRxb8tM.d.ts} +4 -17
- package/dist/{CodeBlock-DJ99TQWy.d.ts → CodeBlock-CPotpyyM.d.ts} +16 -72
- package/dist/{CodeBlock-Bl-q7wMc.js → CodeBlock-Dw1z6jc8.js} +1 -1
- package/dist/{Correspondent-7K6uNLUm.d.ts → Correspondent-ANkZHGEa.d.ts} +1 -5
- package/dist/{Dialog-88GF7_Th.d.ts → Dialog-D5AVE3IN.d.ts} +9 -49
- package/dist/{EmployeeChrome-B7Gt2Hpk.d.ts → EmployeeChrome-CN99SVfF.d.ts} +15 -59
- package/dist/{FileTree-DruTQ-oa.js → FileTree-D61EeWRU.js} +1 -2
- package/dist/{Form-CM7GNTwR.d.ts → Form-DIpgCZ2V.d.ts} +3 -7
- package/dist/{IconButton-CAlFVb2L.d.ts → IconButton-43ggXEuf.d.ts} +4 -14
- package/dist/{ManagerOffice-CMJ7laGe.js → ManagerOffice-CJwBAEMv.js} +4 -4
- package/dist/McpConnectorForm-BPWCo9bU.d.ts +35 -0
- package/dist/{McpPluginCatalog-DNeHDrts.d.ts → McpPluginCatalog-uSh0gGeY.d.ts} +5 -32
- package/dist/{Menu-CgfUZhZd.d.ts → Menu-FA4P6KrA.d.ts} +18 -87
- package/dist/{Message-COsMPZSC.d.ts → Message-CwCqa90H.d.ts} +20 -116
- package/dist/{MessageScrollerVirtual-D4afYwVB.d.ts → MessageScrollerVirtual-DVQeEkNy.d.ts} +2 -16
- package/dist/{Popover-CgHG5DtS.d.ts → Popover-BtAR4Tn8.d.ts} +12 -54
- package/dist/{PromptInput-DGPrCTPl.d.ts → PromptInput-C3adKglc.d.ts} +35 -243
- package/dist/{PromptInputApproval-D2hpn54U.d.ts → PromptInputApproval-C6KvCOMZ.d.ts} +2 -17
- package/dist/{ResponsiveSidebarShell-BUBQa_IV.d.ts → ResponsiveSidebarShell-DoZlSP30.d.ts} +4 -20
- package/dist/{Select-RrceeEIe.d.ts → Select-CEzSA672.d.ts} +16 -86
- package/dist/{Separator-CzhtLYE1.d.ts → Separator-CYWGW1tr.d.ts} +1 -8
- package/dist/{SetupChecklist-BiWQkKEq.js → SetupChecklist-DWyifWWg.js} +2 -2
- package/dist/{Tabs-Ptrbaynh.d.ts → Tabs-BYs-RgJ7.d.ts} +5 -33
- package/dist/{ThinkChatActivity-B6dh3n0-.d.ts → ThinkChatActivity-BkGjTY4r.d.ts} +6 -18
- package/dist/{ThinkChatActivitySummary-BtBQgMg6.d.ts → ThinkChatActivitySummary-DZVy3uQV.d.ts} +2 -3
- package/dist/{ThinkChatContext-COIgzkYp.d.ts → ThinkChatContext-DQ6M2VlJ.d.ts} +0 -1
- package/dist/{ThinkChatToolParts-D4qcnnxt.d.ts → ThinkChatToolParts-BucHi63O.d.ts} +1 -2
- package/dist/{ThinkExecutionRun-k8bpyXqt.d.ts → ThinkExecutionRun-CPeYVneQ.d.ts} +0 -1
- package/dist/{ThinkRoutine-Cb1DdaHa.d.ts → ThinkRoutine-DGlKJbIy.d.ts} +1 -2
- package/dist/{ThinkThreadPicker-DX0lL-P7.d.ts → ThinkThreadPicker-BmIZmpae.d.ts} +4 -19
- package/dist/{Toolbar-CGY004u0.d.ts → Toolbar-Dcn4IszI.d.ts} +8 -34
- package/dist/{Workspace-mzMZSdts.d.ts → Workspace-Cr-aGDfx.d.ts} +3 -19
- package/dist/{WorkspaceFile-19WP0EU1.d.ts → WorkspaceFile-DiwiJEwO.d.ts} +3 -3
- package/dist/{WorkspaceFileView-DXgTljKV.js → WorkspaceFileView-DCvGBsI1.js} +7 -6
- package/dist/{WorkspaceLink-BYZG-V_I.js → WorkspaceLink-BeFAXpbI.js} +14 -13
- package/dist/{WorkspaceLink-Bh9-Jo1r.d.ts → WorkspaceLink-Buo6gKj2.d.ts} +3 -23
- package/dist/{WorkspaceMessageResponse-BApg8KZv.d.ts → WorkspaceMessageResponse-D8FGgIQU.d.ts} +3 -12
- package/dist/{WorkspaceMessageResponse-CUJk9_P5.js → WorkspaceMessageResponse-DnsdpaGU.js} +1 -1
- package/dist/{WorkspaceMountManager-CkLI1B-G.d.ts → WorkspaceMountManager-DM384Cn6.d.ts} +1 -11
- package/dist/{codex-model-catalog-BBN_gWcc.d.ts → codex-model-catalog-CBWDdQl7.d.ts} +4 -2
- package/dist/components/agents-sdk/AgentActivity.d.ts +1 -1
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentChat.d.ts +41 -89
- package/dist/components/agents-sdk/AgentChat.js +10 -9
- package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
- package/dist/components/agents-sdk/AgentEvent.d.ts +5 -13
- package/dist/components/agents-sdk/AgentEvent.js +1 -1
- package/dist/components/agents-sdk/AgentToolRunsContext.d.ts +1 -1
- package/dist/components/agents-sdk/BrowserLiveScreen.d.ts +12 -24
- package/dist/components/agents-sdk/BrowserLiveScreen.js +1 -1
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +9 -8
- package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
- package/dist/components/agents-sdk/BrowserReplay.d.ts +5 -12
- package/dist/components/agents-sdk/BrowserReplay.js +2 -2
- package/dist/components/agents-sdk/BrowserRunPanel.d.ts +4 -6
- package/dist/components/agents-sdk/BrowserRunPanel.js +1 -1
- package/dist/components/agents-sdk/DiscordConnectionDialog.d.ts +3 -11
- package/dist/components/agents-sdk/EmployeeApp.d.ts +9 -30
- package/dist/components/agents-sdk/EmployeeApp.js +1 -1
- package/dist/components/agents-sdk/EmployeeChat.d.ts +9 -39
- package/dist/components/agents-sdk/EmployeeChat.js +4 -4
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChrome.js +13 -12
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +5 -16
- package/dist/components/agents-sdk/EmployeeSchedules.js +3 -2
- package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +9 -17
- package/dist/components/agents-sdk/EmployeeStartScreen.js +3 -3
- package/dist/components/agents-sdk/ManagerAccountActions.d.ts +4 -12
- package/dist/components/agents-sdk/ManagerAccountActions.js +3 -3
- package/dist/components/agents-sdk/ManagerOffice.d.ts +41 -98
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +18 -29
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +2 -2
- package/dist/components/agents-sdk/McpConnectionRequest.d.ts +13 -10
- package/dist/components/agents-sdk/McpConnectionRequest.js +3 -3
- package/dist/components/agents-sdk/McpConnectorForm.d.ts +1 -1
- package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.d.ts +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.js +3 -3
- package/dist/components/agents-sdk/McpServerIcon.d.ts +4 -10
- package/dist/components/agents-sdk/McpServerPicker.d.ts +16 -52
- package/dist/components/agents-sdk/McpServerPicker.js +3 -3
- package/dist/components/agents-sdk/ModelEndpointDialog.d.ts +3 -11
- package/dist/components/agents-sdk/ModelSelector.d.ts +46 -134
- package/dist/components/agents-sdk/ModelSelector.js +5 -5
- package/dist/components/agents-sdk/PromptInputApproval.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputApproval.js +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +5 -7
- package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
- package/dist/components/agents-sdk/SlackConnectionDialog.d.ts +3 -10
- package/dist/components/agents-sdk/SubagentRunDetails.d.ts +12 -37
- package/dist/components/agents-sdk/SubagentRunDetails.js +1 -1
- package/dist/components/agents-sdk/SubagentRunIndicator.d.ts +9 -17
- package/dist/components/agents-sdk/SubagentRunIndicator.js +2 -2
- package/dist/components/agents-sdk/SubagentRunList.d.ts +4 -13
- package/dist/components/agents-sdk/SubagentRunPanel.d.ts +7 -19
- package/dist/components/agents-sdk/SubagentRunPanel.js +1 -1
- package/dist/components/agents-sdk/SubagentRunSelector.d.ts +6 -16
- package/dist/components/agents-sdk/SubagentRunSelector.js +1 -1
- package/dist/components/agents-sdk/ThinkChat.d.ts +21 -41
- package/dist/components/agents-sdk/ThinkChat.js +3 -2
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +2 -2
- package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.js +4 -3
- package/dist/components/agents-sdk/ThinkChatContext.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatToolPanels.d.ts +9 -23
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +11 -8
- package/dist/components/agents-sdk/ThinkChatToolParts.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +4 -12
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +3 -3
- package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkExecutionRun.js +3 -2
- package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +8 -20
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +20 -57
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +6 -5
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +10 -30
- package/dist/components/agents-sdk/ThinkPendingApproval.d.ts +6 -28
- package/dist/components/agents-sdk/ThinkPendingApproval.js +1 -1
- package/dist/components/agents-sdk/ThinkRecoveryNotice.d.ts +4 -8
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutine.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkRoutineActions.d.ts +8 -17
- package/dist/components/agents-sdk/ThinkRoutineActions.js +2 -2
- package/dist/components/agents-sdk/ThinkRoutineBrowser.d.ts +5 -17
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +3 -3
- package/dist/components/agents-sdk/ThinkRoutineDetail.d.ts +4 -15
- package/dist/components/agents-sdk/ThinkRoutineForm.d.ts +8 -16
- package/dist/components/agents-sdk/ThinkRoutineForm.js +3 -3
- package/dist/components/agents-sdk/ThinkRoutineRuns.d.ts +4 -14
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +3 -3
- package/dist/components/agents-sdk/WorkbenchBack.d.ts +3 -10
- package/dist/components/agents-sdk/WorkbenchBack.js +1 -1
- package/dist/components/agents-sdk/Workspace.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.js +3 -3
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +4 -15
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +10 -18
- package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +12 -27
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +6 -6
- package/dist/components/agents-sdk/WorkspaceExecution.d.ts +18 -32
- package/dist/components/agents-sdk/WorkspaceExecution.js +6 -6
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +8 -11
- package/dist/components/agents-sdk/WorkspaceExplorer.js +3 -3
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +4 -16
- package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
- package/dist/components/agents-sdk/WorkspaceHeader.d.ts +3 -14
- package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
- package/dist/components/agents-sdk/WorkspaceLink.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceLink.js +1 -1
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +8 -19
- 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.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +3 -2
- package/dist/components/agents-sdk/WorkspaceNavigationRestoration.d.ts +8 -16
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +22 -38
- package/dist/components/agents-sdk/WorkspaceProject.js +5 -5
- package/dist/components/agents-sdk/WorkspaceUserScript.d.ts +8 -19
- package/dist/components/agents-sdk/WorkspaceUserScript.js +6 -5
- package/dist/components/ai-sdk/Activity.d.ts +21 -90
- package/dist/components/ai-sdk/Activity.js +1 -1
- package/dist/components/ai-sdk/AgentAttention.d.ts +15 -44
- package/dist/components/ai-sdk/AgentChatMessageEditor.d.ts +3 -11
- package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +15 -54
- package/dist/components/ai-sdk/AgentChatStartScreen.js +12 -11
- package/dist/components/ai-sdk/AgentChatTurnError.d.ts +3 -8
- package/dist/components/ai-sdk/AgentMessageParts.d.ts +1 -1
- package/dist/components/ai-sdk/AgentMessageParts.js +4 -2
- package/dist/components/ai-sdk/Approval.d.ts +20 -56
- package/dist/components/ai-sdk/Approval.js +2 -2
- package/dist/components/ai-sdk/Artifact.d.ts +23 -73
- package/dist/components/ai-sdk/Artifact.js +1 -1
- package/dist/components/ai-sdk/ChainOfThought.d.ts +19 -62
- package/dist/components/ai-sdk/ChainOfThought.js +1 -1
- package/dist/components/ai-sdk/Checkpoint.d.ts +13 -40
- package/dist/components/ai-sdk/Checkpoint.js +1 -1
- 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.d.ts +6 -17
- package/dist/components/ai-sdk/ComposerLink.js +1 -1
- package/dist/components/ai-sdk/ConnectedAppCards.d.ts +20 -60
- package/dist/components/ai-sdk/ConnectedAppCards.js +3 -3
- package/dist/components/ai-sdk/Context.d.ts +27 -65
- package/dist/components/ai-sdk/Context.js +2 -2
- package/dist/components/ai-sdk/Conversation.d.ts +16 -50
- package/dist/components/ai-sdk/Conversation.js +1 -1
- package/dist/components/ai-sdk/Correspondent.d.ts +1 -1
- package/dist/components/ai-sdk/ExpansionState.d.ts +6 -11
- package/dist/components/ai-sdk/Goal.d.ts +20 -61
- package/dist/components/ai-sdk/Goal.js +2 -2
- package/dist/components/ai-sdk/InlineCitation.d.ts +11 -30
- package/dist/components/ai-sdk/InlineCitation.js +8 -7
- package/dist/components/ai-sdk/MediaPreviewCard.d.ts +15 -53
- package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
- package/dist/components/ai-sdk/Message.d.ts +1 -1
- package/dist/components/ai-sdk/Message.js +3 -3
- package/dist/components/ai-sdk/MessageScroller.d.ts +14 -42
- package/dist/components/ai-sdk/MessageScroller.js +1 -1
- package/dist/components/ai-sdk/MessageScrollerVirtual.d.ts +1 -1
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +1 -1
- package/dist/components/ai-sdk/Plan.d.ts +32 -95
- package/dist/components/ai-sdk/Plan.js +4 -3
- package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
- package/dist/components/ai-sdk/PromptInput.js +7 -7
- package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +5 -19
- package/dist/components/ai-sdk/PromptInputComposerEditor.js +1 -1
- package/dist/components/ai-sdk/Queue.d.ts +39 -130
- package/dist/components/ai-sdk/Queue.js +1 -1
- package/dist/components/ai-sdk/Reasoning.d.ts +10 -32
- package/dist/components/ai-sdk/Reasoning.js +1 -1
- package/dist/components/ai-sdk/Sources.d.ts +11 -35
- package/dist/components/ai-sdk/Sources.js +1 -1
- package/dist/components/ai-sdk/Task.d.ts +13 -41
- package/dist/components/ai-sdk/Task.js +1 -1
- package/dist/components/ai-sdk/ToolApproval.d.ts +3 -14
- package/dist/components/ai-sdk/ToolInvocation.d.ts +3 -9
- package/dist/components/ai-sdk/ToolInvocation.js +2 -4
- package/dist/components/ai-sdk/ToolPart.d.ts +5 -7
- package/dist/components/extension/ChatGptSignInScreen.d.ts +6 -20
- package/dist/components/extension/ChatGptSignInScreen.js +1 -1
- package/dist/components/extension/CodexModelSelector.d.ts +5 -22
- package/dist/components/extension/CodexModelSelector.js +3 -3
- package/dist/components/extension/ConversationTabPicker.d.ts +5 -10
- package/dist/components/extension/ConversationTabPicker.js +2 -2
- package/dist/components/foundations/Accordion.d.ts +12 -34
- package/dist/components/foundations/AlertDialog.d.ts +24 -72
- package/dist/components/foundations/AlertDialog.js +6 -3
- package/dist/components/foundations/AppIcon.d.ts +15 -37
- package/dist/components/foundations/Autocomplete.d.ts +13 -59
- package/dist/components/foundations/Avatar.d.ts +1 -1
- package/dist/components/foundations/Avatar.js +4 -2
- package/dist/components/foundations/Button.d.ts +1 -1
- package/dist/components/foundations/Card.d.ts +15 -54
- package/dist/components/foundations/Checkbox.d.ts +5 -15
- package/dist/components/foundations/Checkbox.js +1 -1
- package/dist/components/foundations/CheckboxGroup.d.ts +14 -44
- package/dist/components/foundations/CheckboxGroup.js +14 -7
- package/dist/components/foundations/Collapsible.d.ts +10 -26
- package/dist/components/foundations/Collapsible.js +1 -1
- package/dist/components/foundations/Combobox.d.ts +13 -59
- package/dist/components/foundations/ContextMenu.d.ts +31 -93
- package/dist/components/foundations/ContextMenu.js +3 -2
- package/dist/components/foundations/DescriptionList.d.ts +6 -26
- package/dist/components/foundations/Dialog.d.ts +1 -1
- package/dist/components/foundations/Dialog.js +4 -2
- package/dist/components/foundations/EmptyState.d.ts +5 -14
- package/dist/components/foundations/Field.d.ts +29 -84
- package/dist/components/foundations/Fieldset.d.ts +10 -24
- package/dist/components/foundations/Fieldset.js +2 -1
- package/dist/components/foundations/Form.d.ts +1 -1
- package/dist/components/foundations/Form.js +2 -1
- package/dist/components/foundations/FormattedDate.d.ts +3 -7
- package/dist/components/foundations/IconButton.d.ts +1 -1
- package/dist/components/foundations/Input.d.ts +3 -9
- package/dist/components/foundations/Input.js +2 -1
- package/dist/components/foundations/Kbd.d.ts +3 -10
- package/dist/components/foundations/Label.d.ts +5 -12
- package/dist/components/foundations/Label.js +2 -1
- package/dist/components/foundations/LinkButton.d.ts +10 -17
- package/dist/components/foundations/Marker.d.ts +10 -29
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menu.js +2 -1
- package/dist/components/foundations/Menubar.d.ts +35 -101
- package/dist/components/foundations/Menubar.js +5 -3
- package/dist/components/foundations/Meter.d.ts +14 -35
- package/dist/components/foundations/NavigationMenu.d.ts +25 -71
- package/dist/components/foundations/NumberField.d.ts +16 -41
- package/dist/components/foundations/Popover.d.ts +1 -1
- package/dist/components/foundations/Popover.js +2 -1
- package/dist/components/foundations/PreviewCard.d.ts +16 -42
- package/dist/components/foundations/Progress.d.ts +9 -24
- package/dist/components/foundations/RadioGroup.d.ts +9 -24
- package/dist/components/foundations/RadioGroup.js +2 -1
- package/dist/components/foundations/ScrollArea.d.ts +16 -42
- package/dist/components/foundations/SearchField.d.ts +10 -23
- package/dist/components/foundations/SearchField.js +1 -1
- package/dist/components/foundations/Select.d.ts +1 -1
- package/dist/components/foundations/Select.js +1 -1
- package/dist/components/foundations/Separator.d.ts +1 -1
- package/dist/components/foundations/Slider.d.ts +16 -46
- package/dist/components/foundations/Stepper.d.ts +31 -91
- package/dist/components/foundations/Stepper.js +1 -1
- package/dist/components/foundations/Switch.d.ts +6 -17
- package/dist/components/foundations/Tabs.d.ts +1 -1
- package/dist/components/foundations/Textarea.d.ts +5 -11
- package/dist/components/foundations/ThemeProvider.d.ts +5 -13
- package/dist/components/foundations/Toast.d.ts +19 -51
- package/dist/components/foundations/Toast.js +1 -1
- package/dist/components/foundations/Toggle.d.ts +7 -18
- package/dist/components/foundations/Toggle.js +5 -4
- package/dist/components/foundations/ToggleGroup.d.ts +11 -26
- package/dist/components/foundations/Toolbar.d.ts +1 -1
- package/dist/components/foundations/Tooltip.d.ts +16 -43
- package/dist/components/foundations/TransitionSurface.d.ts +6 -12
- package/dist/components/foundations/icons.d.ts +1 -1
- package/dist/components/foundations/icons.js +1 -1
- package/dist/components/general-purpose/AccountSignInDialog.d.ts +3 -10
- package/dist/components/general-purpose/AccountSignInDialog.js +1 -1
- package/dist/components/general-purpose/ActionGuide.d.ts +14 -47
- package/dist/components/general-purpose/AppFrame.d.ts +4 -14
- package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
- package/dist/components/general-purpose/BrandLoading.d.ts +3 -7
- package/dist/components/general-purpose/Commit.d.ts +48 -156
- package/dist/components/general-purpose/Commit.js +4 -3
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +27 -93
- package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
- package/dist/components/general-purpose/FileTree.d.ts +15 -62
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/NotificationPrompt.d.ts +2 -7
- package/dist/components/general-purpose/Pricing.d.ts +10 -11
- package/dist/components/general-purpose/PricingBillingToggle.d.ts +3 -11
- package/dist/components/general-purpose/PricingConfirmationDialog.d.ts +3 -13
- package/dist/components/general-purpose/PricingFAQ.d.ts +3 -9
- package/dist/components/general-purpose/PricingPage.d.ts +3 -30
- package/dist/components/general-purpose/PricingPage.js +2 -1
- package/dist/components/general-purpose/PricingPlanCard.d.ts +4 -12
- package/dist/components/general-purpose/PricingPlanCard.js +2 -2
- package/dist/components/general-purpose/PricingUsageCalculator.d.ts +3 -11
- package/dist/components/general-purpose/PricingUsageCalculator.js +2 -2
- package/dist/components/general-purpose/ResizableSidePanel.d.ts +10 -33
- package/dist/components/general-purpose/ResizableSidePanel.js +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +2 -2
- package/dist/components/general-purpose/SettingsFormDialog.d.ts +5 -13
- package/dist/components/general-purpose/SettingsFormDialog.js +2 -2
- package/dist/components/general-purpose/SetupChecklist.d.ts +6 -18
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/StatusScreen.d.ts +5 -13
- package/dist/components/general-purpose/Terminal.d.ts +22 -67
- package/dist/components/general-purpose/Terminal.js +2 -2
- package/dist/components/general-purpose/TestResults.d.ts +39 -137
- package/dist/components/general-purpose/TestResults.js +7 -6
- package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -10
- package/dist/components/general-purpose/ThemeModeControl.js +1 -1
- package/dist/components/general-purpose/WebPreview.d.ts +23 -76
- package/dist/components/general-purpose/WebPreview.js +2 -2
- package/dist/components/nanites/AgentConnection.d.ts +11 -35
- package/dist/components/nanites/AgentConnection.js +2 -2
- package/dist/components/nanites/AgentToolDetail.d.ts +8 -27
- package/dist/components/nanites/AgentToolDetail.js +6 -5
- package/dist/components/nanites/GithubMotionMark.d.ts +2 -6
- package/dist/components/nanites/GithubMotionMark.js +2 -1
- package/dist/components/nanites/NaniteScene.d.ts +16 -19
- package/dist/components/nanites/NaniteScene.js +9 -8
- package/dist/{copy-button-CJYYgCIU.d.ts → copy-button-BIfY5M-D.d.ts} +1 -2
- package/dist/{copy-button-CSDuDfdP.js → copy-button-Dk2vRe9j.js} +1 -1
- package/dist/{format-COCyV98Z.js → format-CWaZEp5o.js} +1 -1
- package/dist/icons-CUuD7iEh.d.ts +73 -0
- package/dist/{mcp-server-catalog-D9p4gGeJ.d.ts → mcp-server-catalog-DgA9BnL0.d.ts} +0 -1
- package/dist/{progress-ring-Cgii90dC.js → progress-ring-L2bbF0ji.js} +1 -1
- package/dist/styles/app-top-bar.css +2 -2
- package/dist/styles/recipes.css +19 -19
- package/dist/utils/codex-model-catalog.d.ts +1 -1
- package/dist/utils/composer-link.d.ts +24 -25
- package/dist/utils/favicon.d.ts +3 -4
- package/dist/utils/mcp-server-catalog.d.ts +1 -1
- package/dist/utils/structured-code.d.ts +4 -6
- package/dist/utils/theme.d.ts +11 -12
- package/dist/{workspace-assets-Bg7XhPsk.js → workspace-assets-C3QT6UlQ.js} +1 -1
- package/package.json +37 -37
- package/dist/McpConnectorForm--HB0MEGC.d.ts +0 -39
- package/dist/icons-CCZGYUwU.d.ts +0 -299
- package/dist/{icons-cuEtsgj9.js → icons-CeGfXO21.js} +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ActivityOutput, ActivityPanel } from "../ai-sdk/Activity.js";
|
|
2
|
-
import { o as formatUnknownValue } from "../../format-COCyV98Z.js";
|
|
3
2
|
import { Tabs } from "../foundations/Tabs.js";
|
|
3
|
+
import { o as formatUnknownValue } from "../../format-CWaZEp5o.js";
|
|
4
|
+
import { i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "../../CodeBlock-Dw1z6jc8.js";
|
|
4
5
|
import { BrowserLiveView } from "./BrowserLiveView.js";
|
|
5
|
-
import { i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "../../CodeBlock-Bl-q7wMc.js";
|
|
6
6
|
import { inferWorkspaceLanguage } from "./WorkspaceFile.js";
|
|
7
7
|
import { displayUrl, isSessionContextToolFailure } from "./ThinkChatToolParts.js";
|
|
8
8
|
import * as React from "react";
|
|
@@ -328,8 +328,7 @@ function formatToolCall(call) {
|
|
|
328
328
|
}
|
|
329
329
|
function formatAuditValue(value) {
|
|
330
330
|
const formatted = formatUnknownValue(value);
|
|
331
|
-
|
|
332
|
-
return formatted.length > maxLength ? `${formatted.slice(0, maxLength - 1)}…` : formatted;
|
|
331
|
+
return formatted.length > 240 ? `${formatted.slice(0, 239)}…` : formatted;
|
|
333
332
|
}
|
|
334
333
|
function isHumanWait(action) {
|
|
335
334
|
return action.connector === "human" && action.method === "waitFor";
|
|
@@ -445,10 +444,13 @@ function ThinkChatBrowserPanel({ part }) {
|
|
|
445
444
|
});
|
|
446
445
|
}
|
|
447
446
|
const output = part.state === "output-available" ? part.output : void 0;
|
|
447
|
+
const label = displayUrl(part.input?.url) || "page";
|
|
448
|
+
const text = output === void 0 ? void 0 : typeof output === "string" ? output : Array.isArray(output) ? output.map((item) => typeof item === "string" ? item : JSON.stringify(item)).join("\n") : JSON.stringify(output, null, 2);
|
|
449
|
+
const status = part.type === "tool-browser_links" && Array.isArray(output) ? `${output.length} links` : void 0;
|
|
448
450
|
return /* @__PURE__ */ jsx(ActivityPanel, {
|
|
449
|
-
label
|
|
450
|
-
text
|
|
451
|
-
status
|
|
451
|
+
label,
|
|
452
|
+
text,
|
|
453
|
+
status
|
|
452
454
|
});
|
|
453
455
|
}
|
|
454
456
|
function ThinkChatShellPanel({ part }) {
|
|
@@ -456,9 +458,10 @@ function ThinkChatShellPanel({ part }) {
|
|
|
456
458
|
const errorText = part.state === "output-error" ? part.errorText : "";
|
|
457
459
|
const deniedReason = part.state === "output-denied" ? part.approval.reason ?? "denied" : "";
|
|
458
460
|
const failed = Boolean(errorText) || Boolean(deniedReason) || output !== void 0 && (output.exitCode !== 0 || Boolean(output.errors?.length));
|
|
461
|
+
const text = formatBashPanelText(part.input, output, errorText || deniedReason);
|
|
459
462
|
return /* @__PURE__ */ jsx(ActivityPanel, {
|
|
460
463
|
label: "Shell",
|
|
461
|
-
text
|
|
464
|
+
text,
|
|
462
465
|
status: output !== void 0 || errorText || deniedReason ? getBashStatusText(output, errorText, deniedReason) : void 0,
|
|
463
466
|
error: failed
|
|
464
467
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as isWorkspaceToolPart, _ as isPartWorking, a as SessionContextToolPart, b as isSkillToolPart, c as ThinkBashToolPart, d as WorkspaceToolPart, f as displayUrl, g as isPartFailed, h as isFetchToolPart, i as SessionContextToolName, l as ThinkChatPart, m as isExecuteToolPart, n as ExecuteToolPart, o as SkillToolPart, p as isBrowserToolPart, r as FetchToolPart, s as ThinkBashToolOutput, t as BrowserToolPart, u as ThinkWorkspaceToolName, v as isSessionContextToolFailure, x as isThinkChatActivityPart, y as isSessionContextToolPart } from "../../ThinkChatToolParts-
|
|
1
|
+
import { S as isWorkspaceToolPart, _ as isPartWorking, a as SessionContextToolPart, b as isSkillToolPart, c as ThinkBashToolPart, d as WorkspaceToolPart, f as displayUrl, g as isPartFailed, h as isFetchToolPart, i as SessionContextToolName, l as ThinkChatPart, m as isExecuteToolPart, n as ExecuteToolPart, o as SkillToolPart, p as isBrowserToolPart, r as FetchToolPart, s as ThinkBashToolOutput, t as BrowserToolPart, u as ThinkWorkspaceToolName, v as isSessionContextToolFailure, x as isThinkChatActivityPart, y as isSessionContextToolPart } from "../../ThinkChatToolParts-BucHi63O.js";
|
|
2
2
|
export { BrowserToolPart, ExecuteToolPart, FetchToolPart, SessionContextToolName, SessionContextToolPart, SkillToolPart, ThinkBashToolOutput, ThinkBashToolPart, ThinkChatPart, ThinkWorkspaceToolName, WorkspaceToolPart, displayUrl, isBrowserToolPart, isExecuteToolPart, isFetchToolPart, isPartFailed, isPartWorking, isSessionContextToolFailure, isSessionContextToolPart, isSkillToolPart, isThinkChatActivityPart, isWorkspaceToolPart };
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
import { t as ThinkExecutionRun } from "../../ThinkExecutionRun-
|
|
1
|
+
import { t as ThinkExecutionRun } from "../../ThinkExecutionRun-CPeYVneQ.js";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
|
|
4
3
|
//#region src/components/agents-sdk/ThinkExecutionDetail.d.ts
|
|
5
|
-
interface ThinkExecutionDetailProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
export interface ThinkExecutionDetailProps extends React.HTMLAttributes<HTMLElement> {
|
|
6
5
|
run: ThinkExecutionRun | null;
|
|
7
6
|
emptyState?: React.ReactNode;
|
|
8
7
|
}
|
|
9
8
|
/** Native Think submission or Agents Workflow detail, reusable outside the execution workbench. */
|
|
10
|
-
declare function ThinkExecutionDetail({
|
|
11
|
-
className,
|
|
12
|
-
emptyState,
|
|
13
|
-
ref,
|
|
14
|
-
run,
|
|
15
|
-
...props
|
|
16
|
-
}: ThinkExecutionDetailProps & {
|
|
9
|
+
export declare function ThinkExecutionDetail({ className, emptyState, ref, run, ...props }: ThinkExecutionDetailProps & {
|
|
17
10
|
ref?: React.Ref<HTMLElement>;
|
|
18
11
|
}): React.JSX.Element;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { ThinkExecutionDetail, ThinkExecutionDetailProps };
|
|
12
|
+
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { S as FileIcon, T as InfoIcon } from "../../icons-
|
|
2
|
+
import { S as FileIcon, T as InfoIcon } from "../../icons-CeGfXO21.js";
|
|
3
3
|
import { Activity, ActivityContent, ActivityItemGroup, ActivityOutput, ActivityTrigger } from "../ai-sdk/Activity.js";
|
|
4
|
-
import { o as formatUnknownValue } from "../../format-
|
|
5
|
-
import { EmptyState } from "../foundations/EmptyState.js";
|
|
4
|
+
import { o as formatUnknownValue } from "../../format-CWaZEp5o.js";
|
|
6
5
|
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
6
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
7
7
|
import { formatThinkExecutionTimestamp, getThinkExecutionRunError, getThinkExecutionRunId, getThinkExecutionRunKindLabel, getThinkExecutionRunProgressedAt, getThinkExecutionRunProgressedLabel, getThinkExecutionRunTitle, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
|
|
8
8
|
import { ThinkExecutionStatus } from "./ThinkExecutionStatus.js";
|
|
9
9
|
import "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as isThinkSubmissionRun, a as formatThinkExecutionStatus, c as getThinkExecutionRunError, d as getThinkExecutionRunProgressedAt, f as getThinkExecutionRunProgressedLabel, g as getThinkExecutionRunTitle, h as getThinkExecutionRunSubtitle, i as formatThinkExecutionShortTimestamp, l as getThinkExecutionRunId, m as getThinkExecutionRunStatusTone, n as ThinkExecutionStatusTone, o as formatThinkExecutionTimestamp, p as getThinkExecutionRunStatus, r as formatThinkExecutionRunProgress, s as getThinkExecutionRunAccessibleName, t as ThinkExecutionRun, u as getThinkExecutionRunKindLabel } from "../../ThinkExecutionRun-
|
|
1
|
+
import { _ as isThinkSubmissionRun, a as formatThinkExecutionStatus, c as getThinkExecutionRunError, d as getThinkExecutionRunProgressedAt, f as getThinkExecutionRunProgressedLabel, g as getThinkExecutionRunTitle, h as getThinkExecutionRunSubtitle, i as formatThinkExecutionShortTimestamp, l as getThinkExecutionRunId, m as getThinkExecutionRunStatusTone, n as ThinkExecutionStatusTone, o as formatThinkExecutionTimestamp, p as getThinkExecutionRunStatus, r as formatThinkExecutionRunProgress, s as getThinkExecutionRunAccessibleName, t as ThinkExecutionRun, u as getThinkExecutionRunKindLabel } from "../../ThinkExecutionRun-CPeYVneQ.js";
|
|
2
2
|
export { ThinkExecutionRun, ThinkExecutionStatusTone, formatThinkExecutionRunProgress, formatThinkExecutionShortTimestamp, formatThinkExecutionStatus, formatThinkExecutionTimestamp, getThinkExecutionRunAccessibleName, getThinkExecutionRunError, getThinkExecutionRunId, getThinkExecutionRunKindLabel, getThinkExecutionRunProgressedAt, getThinkExecutionRunProgressedLabel, getThinkExecutionRunStatus, getThinkExecutionRunStatusTone, getThinkExecutionRunSubtitle, getThinkExecutionRunTitle, isThinkSubmissionRun };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as capitalize } from "../../format-
|
|
1
|
+
import { t as capitalize } from "../../format-CWaZEp5o.js";
|
|
2
2
|
//#region src/components/agents-sdk/ThinkExecutionRun.ts
|
|
3
3
|
/** Narrows the direct upstream execution union without wrapping either record. */
|
|
4
4
|
function isThinkSubmissionRun(run) {
|
|
@@ -39,7 +39,8 @@ function getThinkExecutionRunStatusTone(run) {
|
|
|
39
39
|
return "neutral";
|
|
40
40
|
}
|
|
41
41
|
function formatThinkExecutionStatus(status) {
|
|
42
|
-
|
|
42
|
+
const words = status.replaceAll(/([a-z])([A-Z])/g, "$1 $2");
|
|
43
|
+
return capitalize(words);
|
|
43
44
|
}
|
|
44
45
|
function formatThinkExecutionTimestamp(value, fallback = "Not recorded") {
|
|
45
46
|
if (value == null) return fallback;
|
|
@@ -1,35 +1,23 @@
|
|
|
1
|
-
import { t as ThinkExecutionRun } from "../../ThinkExecutionRun-
|
|
1
|
+
import { t as ThinkExecutionRun } from "../../ThinkExecutionRun-CPeYVneQ.js";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
|
|
4
3
|
//#region src/components/agents-sdk/ThinkExecutionStatus.d.ts
|
|
5
|
-
interface ThinkExecutionStatusProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
export interface ThinkExecutionStatusProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
6
5
|
/** Whole upstream Think submission or Agents workflow record. */
|
|
7
6
|
run: ThinkExecutionRun;
|
|
8
7
|
/** Accessible status label; derived from the run when omitted. */
|
|
9
8
|
label?: string;
|
|
10
9
|
}
|
|
11
|
-
interface ThinkExecutionRunSummaryProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
10
|
+
export interface ThinkExecutionRunSummaryProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
12
11
|
/** Whole upstream Think submission or Agents workflow record. */
|
|
13
12
|
run: ThinkExecutionRun;
|
|
14
13
|
}
|
|
15
14
|
/** Shared status icon for whole upstream Think submission and Agents workflow records. */
|
|
16
|
-
declare function ThinkExecutionStatus({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
run,
|
|
20
|
-
ref,
|
|
21
|
-
...props
|
|
22
|
-
}: ThinkExecutionStatusProps & {
|
|
23
|
-
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLSpanElement>;
|
|
15
|
+
export declare function ThinkExecutionStatus({ className, label, run, ref, ...props }: ThinkExecutionStatusProps & {
|
|
16
|
+
/** Ref forwarded to the component's rendered root element. */
|
|
17
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
24
18
|
}): React.JSX.Element;
|
|
25
19
|
/** Shared identity, status, and progress summary for a whole Think execution record. */
|
|
26
|
-
declare function ThinkExecutionRunSummary({
|
|
27
|
-
className,
|
|
28
|
-
run,
|
|
29
|
-
ref,
|
|
30
|
-
...props
|
|
31
|
-
}: ThinkExecutionRunSummaryProps & {
|
|
20
|
+
export declare function ThinkExecutionRunSummary({ className, run, ref, ...props }: ThinkExecutionRunSummaryProps & {
|
|
32
21
|
ref?: React.Ref<HTMLSpanElement>;
|
|
33
22
|
}): React.JSX.Element;
|
|
34
|
-
//#endregion
|
|
35
|
-
export { ThinkExecutionRunSummary, ThinkExecutionRunSummaryProps, ThinkExecutionStatus, ThinkExecutionStatusProps };
|
|
23
|
+
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { K as SpinnerIcon, L as PauseIcon, T as InfoIcon, d as CheckIcon, nt as XIcon } from "../../icons-
|
|
2
|
+
import { K as SpinnerIcon, L as PauseIcon, T as InfoIcon, d as CheckIcon, nt as XIcon } from "../../icons-CeGfXO21.js";
|
|
3
3
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
4
4
|
import { formatThinkExecutionRunProgress, formatThinkExecutionStatus, getThinkExecutionRunKindLabel, getThinkExecutionRunStatus, getThinkExecutionRunStatusTone, getThinkExecutionRunTitle } from "./ThinkExecutionRun.js";
|
|
5
5
|
import "react";
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { t as AppTopBar } from "../../AppTopBar-
|
|
2
|
-
import { t as ThinkExecutionRun } from "../../ThinkExecutionRun-
|
|
1
|
+
import { t as AppTopBar } from "../../AppTopBar-DwzydmXu.js";
|
|
2
|
+
import { t as ThinkExecutionRun } from "../../ThinkExecutionRun-CPeYVneQ.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { useRender } from "@base-ui/react/use-render";
|
|
5
5
|
import { DataTag, UnusedSkipTokenOptions } from "@tanstack/react-query";
|
|
6
6
|
import { Think, ThinkSubmissionInspection } from "@cloudflare/think";
|
|
7
7
|
import { AgentStub } from "agents/client";
|
|
8
8
|
import { WorkflowPage } from "agents/workflows";
|
|
9
|
-
|
|
10
9
|
//#region src/components/_internal/navigation-link.d.ts
|
|
11
10
|
interface NavigationLinkProps extends Omit<useRender.ComponentProps<"a">, "render"> {
|
|
12
11
|
/** App-authored TanStack Router Link with its destination already type-checked. */
|
|
@@ -19,14 +18,10 @@ interface NavigationLinkProps extends Omit<useRender.ComponentProps<"a">, "rende
|
|
|
19
18
|
* registered route tree infer `to`, `params`, and `search` without routing
|
|
20
19
|
* generics leaking through every design-system component.
|
|
21
20
|
*/
|
|
22
|
-
declare function NavigationLink({
|
|
23
|
-
render,
|
|
24
|
-
ref,
|
|
25
|
-
...props
|
|
26
|
-
}: NavigationLinkProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
21
|
+
declare function NavigationLink({ render, ref, ...props }: NavigationLinkProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
27
22
|
//#endregion
|
|
28
23
|
//#region src/components/agents-sdk/ThinkExecutionWorkbench.d.ts
|
|
29
|
-
interface ThinkExecutionWorkbenchRootProps extends useRender.ComponentProps<"div"> {
|
|
24
|
+
export interface ThinkExecutionWorkbenchRootProps extends useRender.ComponentProps<"div"> {
|
|
30
25
|
/** Whole Agents SDK client stub; native submission/workflow methods remain unchanged. */
|
|
31
26
|
source: AgentStub<Think>;
|
|
32
27
|
/** Stable, non-secret remote agent identity; change with the backing source. */
|
|
@@ -34,83 +29,52 @@ interface ThinkExecutionWorkbenchRootProps extends useRender.ComponentProps<"div
|
|
|
34
29
|
/** Maximum submissions and workflows requested per page. */
|
|
35
30
|
pageSize?: number;
|
|
36
31
|
}
|
|
37
|
-
interface ThinkExecutionRunsData {
|
|
32
|
+
export interface ThinkExecutionRunsData {
|
|
38
33
|
submissions: readonly ThinkSubmissionInspection[];
|
|
39
34
|
workflows: WorkflowPage;
|
|
40
35
|
}
|
|
41
|
-
type ThinkExecutionRunsQueryKey = readonly ["think", sourceKey: string, "execution-runs", {
|
|
36
|
+
export type ThinkExecutionRunsQueryKey = readonly ["think", sourceKey: string, "execution-runs", {
|
|
42
37
|
readonly limit: number;
|
|
43
38
|
}];
|
|
44
|
-
type ThinkExecutionRunsQueryOptions = UnusedSkipTokenOptions<ThinkExecutionRunsData, Error, ThinkExecutionRunsData, ThinkExecutionRunsQueryKey> & {
|
|
39
|
+
export type ThinkExecutionRunsQueryOptions = UnusedSkipTokenOptions<ThinkExecutionRunsData, Error, ThinkExecutionRunsData, ThinkExecutionRunsQueryKey> & {
|
|
45
40
|
queryKey: DataTag<ThinkExecutionRunsQueryKey, ThinkExecutionRunsData, Error>;
|
|
46
41
|
};
|
|
47
42
|
/**
|
|
48
43
|
* Shared list options for component reads and TanStack Router loaders.
|
|
49
44
|
*/
|
|
50
|
-
declare function thinkExecutionRunsQueryOptions(source: AgentStub<Think>, sourceKey: string, pageSize?: number): ThinkExecutionRunsQueryOptions;
|
|
45
|
+
export declare function thinkExecutionRunsQueryOptions(source: AgentStub<Think>, sourceKey: string, pageSize?: number): ThinkExecutionRunsQueryOptions;
|
|
51
46
|
/**
|
|
52
47
|
* Unified execution history for native Think submissions and Agents workflows.
|
|
53
48
|
* The workbench reads and acts through the whole upstream agent stub; it does
|
|
54
49
|
* not normalize execution records or own workflow authoring. Its first
|
|
55
50
|
* uncached list read suspends to the consuming route's Suspense boundary.
|
|
56
51
|
*/
|
|
57
|
-
declare function ThinkExecutionWorkbenchRoot({
|
|
58
|
-
pageSize,
|
|
59
|
-
render,
|
|
60
|
-
ref,
|
|
61
|
-
source,
|
|
62
|
-
sourceKey,
|
|
63
|
-
...props
|
|
64
|
-
}: ThinkExecutionWorkbenchRootProps): React.JSX.Element;
|
|
52
|
+
declare function ThinkExecutionWorkbenchRoot({ pageSize, render, ref, source, sourceKey, ...props }: ThinkExecutionWorkbenchRootProps): React.JSX.Element;
|
|
65
53
|
/** Caller-authored toolbar; no title, navigation, or action is injected. */
|
|
66
|
-
declare function ThinkExecutionWorkbenchHeader({
|
|
67
|
-
className,
|
|
68
|
-
"aria-label": label,
|
|
69
|
-
...props
|
|
70
|
-
}: Omit<React.ComponentProps<typeof AppTopBar.Root>, "aria-label"> & {
|
|
54
|
+
declare function ThinkExecutionWorkbenchHeader({ className, "aria-label": label, ...props }: Omit<React.ComponentProps<typeof AppTopBar.Root>, "aria-label"> & {
|
|
71
55
|
"aria-label"?: string;
|
|
72
56
|
}): React.JSX.Element;
|
|
73
|
-
declare function ThinkExecutionWorkbenchContent({
|
|
74
|
-
render,
|
|
75
|
-
ref,
|
|
76
|
-
...props
|
|
77
|
-
}: useRender.ComponentProps<"div">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
57
|
+
declare function ThinkExecutionWorkbenchContent({ render, ref, ...props }: useRender.ComponentProps<"div">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
78
58
|
/** Refresh control retaining the complete AppTopBar button render/ref/event contract. */
|
|
79
|
-
declare function ThinkExecutionWorkbenchRefresh({
|
|
80
|
-
label,
|
|
81
|
-
...props
|
|
82
|
-
}: Omit<React.ComponentProps<typeof AppTopBar.Button>, "label"> & {
|
|
59
|
+
declare function ThinkExecutionWorkbenchRefresh({ label, ...props }: Omit<React.ComponentProps<typeof AppTopBar.Button>, "label"> & {
|
|
83
60
|
label?: string;
|
|
84
61
|
}): React.JSX.Element;
|
|
85
|
-
declare function ThinkExecutionWorkbenchError({
|
|
86
|
-
className,
|
|
87
|
-
...props
|
|
88
|
-
}: React.ComponentPropsWithRef<"div">): React.JSX.Element | null;
|
|
62
|
+
declare function ThinkExecutionWorkbenchError({ className, ...props }: React.ComponentPropsWithRef<"div">): React.JSX.Element | null;
|
|
89
63
|
/** Controls for one whole native run; mount in a list row or a selected-run toolbar. */
|
|
90
|
-
declare function ThinkExecutionWorkbenchRunActions({
|
|
91
|
-
run
|
|
92
|
-
}: {
|
|
64
|
+
declare function ThinkExecutionWorkbenchRunActions({ run }: {
|
|
93
65
|
run: ThinkExecutionRun;
|
|
94
66
|
}): React.JSX.Element;
|
|
95
|
-
interface ThinkExecutionWorkbenchListProps extends Omit<React.ComponentPropsWithRef<"section">, "children"> {
|
|
67
|
+
export interface ThinkExecutionWorkbenchListProps extends Omit<React.ComponentPropsWithRef<"section">, "children"> {
|
|
96
68
|
/** Explicit row content; native execution identity and order come from the query. */
|
|
97
69
|
children: (run: ThinkExecutionRun) => React.ReactNode;
|
|
98
70
|
}
|
|
99
|
-
declare function ThinkExecutionWorkbenchList({
|
|
100
|
-
|
|
101
|
-
className,
|
|
102
|
-
...props
|
|
103
|
-
}: ThinkExecutionWorkbenchListProps): React.JSX.Element;
|
|
104
|
-
interface ThinkExecutionWorkbenchRunLinkProps extends Omit<React.ComponentProps<typeof NavigationLink>, "children"> {
|
|
71
|
+
declare function ThinkExecutionWorkbenchList({ children, className, ...props }: ThinkExecutionWorkbenchListProps): React.JSX.Element;
|
|
72
|
+
export interface ThinkExecutionWorkbenchRunLinkProps extends Omit<React.ComponentProps<typeof NavigationLink>, "children"> {
|
|
105
73
|
run: ThinkExecutionRun;
|
|
106
74
|
}
|
|
107
|
-
declare function ThinkExecutionWorkbenchRunLink({
|
|
108
|
-
run,
|
|
109
|
-
className,
|
|
110
|
-
...props
|
|
111
|
-
}: ThinkExecutionWorkbenchRunLinkProps): React.JSX.Element;
|
|
75
|
+
declare function ThinkExecutionWorkbenchRunLink({ run, className, ...props }: ThinkExecutionWorkbenchRunLinkProps): React.JSX.Element;
|
|
112
76
|
/** Native execution runtime with independently placed controls, rows, and route content. */
|
|
113
|
-
declare const ThinkExecutionWorkbench: {
|
|
77
|
+
export declare const ThinkExecutionWorkbench: {
|
|
114
78
|
Root: typeof ThinkExecutionWorkbenchRoot;
|
|
115
79
|
Header: typeof ThinkExecutionWorkbenchHeader;
|
|
116
80
|
Content: typeof ThinkExecutionWorkbenchContent;
|
|
@@ -120,5 +84,4 @@ declare const ThinkExecutionWorkbench: {
|
|
|
120
84
|
RunLink: typeof ThinkExecutionWorkbenchRunLink;
|
|
121
85
|
RunActions: typeof ThinkExecutionWorkbenchRunActions;
|
|
122
86
|
};
|
|
123
|
-
//#endregion
|
|
124
|
-
export { ThinkExecutionRunsData, ThinkExecutionRunsQueryKey, ThinkExecutionRunsQueryOptions, ThinkExecutionWorkbench, ThinkExecutionWorkbenchListProps, ThinkExecutionWorkbenchRootProps, ThinkExecutionWorkbenchRunLinkProps, thinkExecutionRunsQueryOptions };
|
|
87
|
+
//#endregion
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { H as RefreshIcon, et as WarningIcon, y as EllipsisIcon } from "../../icons-
|
|
2
|
+
import { H as RefreshIcon, et as WarningIcon, y as EllipsisIcon } from "../../icons-CeGfXO21.js";
|
|
3
3
|
import { buttonVariants } from "../foundations/Button.js";
|
|
4
|
-
import { IconButton } from "../foundations/IconButton.js";
|
|
5
|
-
import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
|
|
6
4
|
import { Menu } from "../foundations/Menu.js";
|
|
5
|
+
import { IconButton } from "../foundations/IconButton.js";
|
|
6
|
+
import { a as formatErrorMessage } from "../../format-CWaZEp5o.js";
|
|
7
|
+
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
7
8
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
8
9
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
9
|
-
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
10
10
|
import { getThinkExecutionRunAccessibleName, getThinkExecutionRunId, getThinkExecutionRunStatus, getThinkExecutionRunStatusTone, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
|
|
11
11
|
import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
|
|
12
12
|
import * as React from "react";
|
|
@@ -123,7 +123,8 @@ function thinkExecutionRunsQueryOptions(source, sourceKey, pageSize = executionP
|
|
|
123
123
|
* uncached list read suspends to the consuming route's Suspense boundary.
|
|
124
124
|
*/
|
|
125
125
|
function ThinkExecutionWorkbenchRoot({ pageSize = executionPanelPageSize, render, ref, source, sourceKey, ...props }) {
|
|
126
|
-
const
|
|
126
|
+
const runsOptions = thinkExecutionRunsQueryOptions(source, sourceKey, pageSize);
|
|
127
|
+
const runsQuery = useSuspenseQuery(runsOptions);
|
|
127
128
|
const actionMutation = useMutation({
|
|
128
129
|
mutationFn: ({ action }) => action(),
|
|
129
130
|
onSuccess: (_result, action, _onMutateResult, context) => context.client.invalidateQueries({ queryKey: action.runsQueryKey })
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ResizableSidePanelHandleProps } from "../general-purpose/ResizableSidePanel.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
-
|
|
5
4
|
//#region src/components/agents-sdk/ThinkFullApp.d.ts
|
|
6
|
-
interface ThinkFullAppRootProps extends React.ComponentPropsWithRef<"div"> {
|
|
5
|
+
export interface ThinkFullAppRootProps extends React.ComponentPropsWithRef<"div"> {
|
|
7
6
|
/** Whether the host-selected workbench is visible. Route identity remains with the host. */
|
|
8
7
|
workbenchOpen: boolean;
|
|
9
8
|
}
|
|
@@ -14,39 +13,20 @@ interface ThinkFullAppRootProps extends React.ComponentPropsWithRef<"div"> {
|
|
|
14
13
|
* Compact layout follows the width available to this content, including any
|
|
15
14
|
* space occupied by a surrounding sidebar.
|
|
16
15
|
*/
|
|
17
|
-
declare function ThinkFullAppRoot({
|
|
18
|
-
|
|
19
|
-
children,
|
|
20
|
-
className,
|
|
21
|
-
...props
|
|
22
|
-
}: ThinkFullAppRootProps): React.JSX.Element;
|
|
23
|
-
interface ThinkFullAppConversationProps extends useRender.ComponentProps<"section"> {}
|
|
16
|
+
declare function ThinkFullAppRoot({ workbenchOpen, children, className, ...props }: ThinkFullAppRootProps): React.JSX.Element;
|
|
17
|
+
export interface ThinkFullAppConversationProps extends useRender.ComponentProps<"section"> {}
|
|
24
18
|
/** Persistent conversation lane. Its contents and SDK providers belong to the caller. */
|
|
25
|
-
declare function ThinkFullAppConversation({
|
|
26
|
-
|
|
27
|
-
className,
|
|
28
|
-
ref,
|
|
29
|
-
...props
|
|
30
|
-
}: ThinkFullAppConversationProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
31
|
-
interface ThinkFullAppWorkbenchProps extends useRender.ComponentProps<"aside"> {}
|
|
19
|
+
declare function ThinkFullAppConversation({ render, className, ref, ...props }: ThinkFullAppConversationProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
20
|
+
export interface ThinkFullAppWorkbenchProps extends useRender.ComponentProps<"aside"> {}
|
|
32
21
|
/** The single raised output plane. Unmounts its content when the host closes it. */
|
|
33
|
-
declare function ThinkFullAppWorkbench({
|
|
34
|
-
|
|
35
|
-
className,
|
|
36
|
-
ref,
|
|
37
|
-
...props
|
|
38
|
-
}: ThinkFullAppWorkbenchProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
39
|
-
interface ThinkFullAppResizeHandleProps extends ResizableSidePanelHandleProps {}
|
|
22
|
+
declare function ThinkFullAppWorkbench({ render, className, ref, ...props }: ThinkFullAppWorkbenchProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
23
|
+
export interface ThinkFullAppResizeHandleProps extends ResizableSidePanelHandleProps {}
|
|
40
24
|
/** Keyboard and pointer resize control; absent while the workbench is closed. */
|
|
41
|
-
declare function ThinkFullAppResizeHandle({
|
|
42
|
-
|
|
43
|
-
...props
|
|
44
|
-
}: ThinkFullAppResizeHandleProps): React.JSX.Element | null;
|
|
45
|
-
declare const ThinkFullApp: {
|
|
25
|
+
declare function ThinkFullAppResizeHandle({ className, ...props }: ThinkFullAppResizeHandleProps): React.JSX.Element | null;
|
|
26
|
+
export declare const ThinkFullApp: {
|
|
46
27
|
Root: typeof ThinkFullAppRoot;
|
|
47
28
|
Conversation: typeof ThinkFullAppConversation;
|
|
48
29
|
Workbench: typeof ThinkFullAppWorkbench;
|
|
49
30
|
ResizeHandle: typeof ThinkFullAppResizeHandle;
|
|
50
31
|
};
|
|
51
|
-
//#endregion
|
|
52
|
-
export { ThinkFullApp, ThinkFullAppConversationProps, ThinkFullAppResizeHandleProps, ThinkFullAppRootProps, ThinkFullAppWorkbenchProps };
|
|
32
|
+
//#endregion
|
|
@@ -3,13 +3,12 @@ import { DynamicToolUIPart, ToolUIPart } from "ai";
|
|
|
3
3
|
import { PendingApproval, Think } from "@cloudflare/think";
|
|
4
4
|
import { AgentStub } from "agents/client";
|
|
5
5
|
import { ProxyToolOutput } from "@cloudflare/codemode";
|
|
6
|
-
|
|
7
6
|
//#region src/components/agents-sdk/ThinkPendingApproval.d.ts
|
|
8
7
|
type PausedExecution = Extract<ProxyToolOutput, {
|
|
9
8
|
status: "paused";
|
|
10
9
|
}>;
|
|
11
10
|
/** Structural match for any upstream tool binding of the Codemode execute runtime. */
|
|
12
|
-
declare function getPausedExecution(part: ToolUIPart | DynamicToolUIPart): PausedExecution | undefined;
|
|
11
|
+
export declare function getPausedExecution(part: ToolUIPart | DynamicToolUIPart): PausedExecution | undefined;
|
|
13
12
|
interface SharedThinkApprovalProps {
|
|
14
13
|
thinkStub: AgentStub<Think>;
|
|
15
14
|
onSettled?: () => void | Promise<void>;
|
|
@@ -17,7 +16,7 @@ interface SharedThinkApprovalProps {
|
|
|
17
16
|
count?: number;
|
|
18
17
|
question?: React.ReactNode;
|
|
19
18
|
}
|
|
20
|
-
interface ThinkPendingApprovalProps extends React.HTMLAttributes<HTMLDivElement>, SharedThinkApprovalProps {
|
|
19
|
+
export interface ThinkPendingApprovalProps extends React.HTMLAttributes<HTMLDivElement>, SharedThinkApprovalProps {
|
|
21
20
|
/** Whole entry returned by Think `pendingApprovals()`. */
|
|
22
21
|
approval: PendingApproval;
|
|
23
22
|
}
|
|
@@ -25,36 +24,15 @@ interface ThinkPendingApprovalProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
25
24
|
* Durable Think approval adapter. It renders the complete upstream descriptor
|
|
26
25
|
* and resolves only through the full Think stub's idempotent execution RPCs.
|
|
27
26
|
*/
|
|
28
|
-
declare function ThinkPendingApproval({
|
|
29
|
-
approval,
|
|
30
|
-
className,
|
|
31
|
-
count,
|
|
32
|
-
onSettled,
|
|
33
|
-
onSkip,
|
|
34
|
-
question,
|
|
35
|
-
ref,
|
|
36
|
-
thinkStub,
|
|
37
|
-
...props
|
|
38
|
-
}: ThinkPendingApprovalProps & {
|
|
27
|
+
export declare function ThinkPendingApproval({ approval, className, count, onSettled, onSkip, question, ref, thinkStub, ...props }: ThinkPendingApprovalProps & {
|
|
39
28
|
ref?: React.Ref<HTMLDivElement>;
|
|
40
29
|
}): React.JSX.Element;
|
|
41
|
-
interface ThinkExecutionApprovalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "part">, SharedThinkApprovalProps {
|
|
30
|
+
export interface ThinkExecutionApprovalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "part">, SharedThinkApprovalProps {
|
|
42
31
|
/** Whole AI SDK tool part whose upstream Codemode output may be paused. */
|
|
43
32
|
part: ToolUIPart | DynamicToolUIPart;
|
|
44
33
|
}
|
|
45
34
|
/** Actionable adapter for Think's in-band paused Codemode execution output. */
|
|
46
|
-
declare function ThinkExecutionApproval({
|
|
47
|
-
className,
|
|
48
|
-
count,
|
|
49
|
-
onSettled,
|
|
50
|
-
onSkip,
|
|
51
|
-
part,
|
|
52
|
-
question,
|
|
53
|
-
ref,
|
|
54
|
-
thinkStub,
|
|
55
|
-
...props
|
|
56
|
-
}: ThinkExecutionApprovalProps & {
|
|
35
|
+
export declare function ThinkExecutionApproval({ className, count, onSettled, onSkip, part, question, ref, thinkStub, ...props }: ThinkExecutionApprovalProps & {
|
|
57
36
|
ref?: React.Ref<HTMLDivElement>;
|
|
58
37
|
}): React.JSX.Element | null;
|
|
59
|
-
//#endregion
|
|
60
|
-
export { ThinkExecutionApproval, ThinkExecutionApprovalProps, ThinkPendingApproval, ThinkPendingApprovalProps, getPausedExecution };
|
|
38
|
+
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as titleCase, o as formatUnknownValue } from "../../format-
|
|
1
|
+
import { c as titleCase, o as formatUnknownValue } from "../../format-CWaZEp5o.js";
|
|
2
2
|
import { Approval, ApprovalCount, ApprovalDecision, ApprovalHeader, ApprovalInputPreview, ApprovalPreview, ApprovalPreviewRow, ApprovalQuestion } from "../ai-sdk/Approval.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { i as ThinkChatValue } from "../../ThinkChatContext-
|
|
1
|
+
import { i as ThinkChatValue } from "../../ThinkChatContext-DQ6M2VlJ.js";
|
|
2
2
|
import { UIMessage } from "ai";
|
|
3
|
-
|
|
4
3
|
//#region src/components/agents-sdk/ThinkRecoveryNotice.d.ts
|
|
5
|
-
interface ThinkRecoveryNoticeProps<State = unknown, MessageT extends UIMessage = UIMessage> {
|
|
4
|
+
export interface ThinkRecoveryNoticeProps<State = unknown, MessageT extends UIMessage = UIMessage> {
|
|
6
5
|
/** The complete `useAgentChat` value from `@cloudflare/think/react`. */
|
|
7
6
|
chat: ThinkChatValue<State, MessageT>;
|
|
8
7
|
}
|
|
@@ -12,8 +11,5 @@ interface ThinkRecoveryNoticeProps<State = unknown, MessageT extends UIMessage =
|
|
|
12
11
|
* checkpoint, attempt count, or timeline to the browser, so this adapter does
|
|
13
12
|
* not claim those details.
|
|
14
13
|
*/
|
|
15
|
-
declare function ThinkRecoveryNotice<State = unknown, MessageT extends UIMessage = UIMessage>({
|
|
16
|
-
|
|
17
|
-
}: ThinkRecoveryNoticeProps<State, MessageT>): import("react").JSX.Element | null;
|
|
18
|
-
//#endregion
|
|
19
|
-
export { ThinkRecoveryNotice, ThinkRecoveryNoticeProps };
|
|
14
|
+
export declare function ThinkRecoveryNotice<State = unknown, MessageT extends UIMessage = UIMessage>({ chat }: ThinkRecoveryNoticeProps<State, MessageT>): import("react").JSX.Element | null;
|
|
15
|
+
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TransitionSurface } from "../foundations/TransitionSurface.js";
|
|
2
1
|
import { AgentChatTurnError } from "../ai-sdk/AgentChatTurnError.js";
|
|
2
|
+
import { TransitionSurface } from "../foundations/TransitionSurface.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/agents-sdk/ThinkRecoveryNotice.tsx
|
|
5
5
|
function connectionReason(error) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as getThinkRoutineNextRun, n as ThinkRoutineOwner, r as ThinkRoutineRunOf, t as ThinkRoutine } from "../../ThinkRoutine-
|
|
1
|
+
import { i as getThinkRoutineNextRun, n as ThinkRoutineOwner, r as ThinkRoutineRunOf, t as ThinkRoutine } from "../../ThinkRoutine-DGlKJbIy.js";
|
|
2
2
|
export { ThinkRoutine, ThinkRoutineOwner, ThinkRoutineRunOf, getThinkRoutineNextRun };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { t as AppTopBar } from "../../AppTopBar-
|
|
2
|
-
import { t as ThinkRoutine } from "../../ThinkRoutine-
|
|
1
|
+
import { t as AppTopBar } from "../../AppTopBar-DwzydmXu.js";
|
|
2
|
+
import { t as ThinkRoutine } from "../../ThinkRoutine-DGlKJbIy.js";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
|
|
5
4
|
//#region src/components/agents-sdk/ThinkRoutineActions.d.ts
|
|
6
|
-
interface ThinkRoutineActionsRootProps<TRoutine extends ThinkRoutine = ThinkRoutine> {
|
|
5
|
+
export interface ThinkRoutineActionsRootProps<TRoutine extends ThinkRoutine = ThinkRoutine> {
|
|
7
6
|
/** Whole selected routine, including app-owned extensions and native task/run values. */
|
|
8
7
|
routine: TRoutine;
|
|
9
8
|
/** Stable non-secret identity of the source backing this routine. */
|
|
@@ -18,20 +17,13 @@ interface ThinkRoutineActionsRootProps<TRoutine extends ThinkRoutine = ThinkRout
|
|
|
18
17
|
children: React.ReactNode;
|
|
19
18
|
}
|
|
20
19
|
/** Connect an independently mounted detail to its selected routine action scope. */
|
|
21
|
-
declare function useThinkRoutineActions(): {
|
|
20
|
+
export declare function useThinkRoutineActions(): {
|
|
22
21
|
busy: boolean;
|
|
23
22
|
onEnabledChange: ((enabled: boolean) => void) | undefined;
|
|
24
23
|
};
|
|
25
24
|
/** No layout or routing. Source/routine changes reset actions without remounting caller navigation. */
|
|
26
|
-
declare function ThinkRoutineActionsRoot<TRoutine extends ThinkRoutine>({
|
|
27
|
-
|
|
28
|
-
sourceKey,
|
|
29
|
-
onRun,
|
|
30
|
-
onEnabledChange,
|
|
31
|
-
onDelete,
|
|
32
|
-
children
|
|
33
|
-
}: ThinkRoutineActionsRootProps<TRoutine>): React.JSX.Element;
|
|
34
|
-
type ThinkRoutineActionProps = Omit<React.ComponentProps<typeof AppTopBar.Button>, "label"> & {
|
|
25
|
+
declare function ThinkRoutineActionsRoot<TRoutine extends ThinkRoutine>({ routine, sourceKey, onRun, onEnabledChange, onDelete, children }: ThinkRoutineActionsRootProps<TRoutine>): React.JSX.Element;
|
|
26
|
+
export type ThinkRoutineActionProps = Omit<React.ComponentProps<typeof AppTopBar.Button>, "label"> & {
|
|
35
27
|
label?: string;
|
|
36
28
|
};
|
|
37
29
|
/** Explicit run control; preserves the complete shared button composition contract. */
|
|
@@ -40,12 +32,11 @@ declare function ThinkRoutineRun(props: ThinkRoutineActionProps): React.JSX.Elem
|
|
|
40
32
|
declare function ThinkRoutineDelete(props: ThinkRoutineActionProps): React.JSX.Element | null;
|
|
41
33
|
declare function ThinkRoutineError(props: React.ComponentPropsWithRef<"div">): React.JSX.Element | null;
|
|
42
34
|
declare function ThinkRoutineStatus(props: React.ComponentPropsWithRef<"div">): React.JSX.Element;
|
|
43
|
-
declare const ThinkRoutineActions: {
|
|
35
|
+
export declare const ThinkRoutineActions: {
|
|
44
36
|
Root: typeof ThinkRoutineActionsRoot;
|
|
45
37
|
Run: typeof ThinkRoutineRun;
|
|
46
38
|
Delete: typeof ThinkRoutineDelete;
|
|
47
39
|
Error: typeof ThinkRoutineError;
|
|
48
40
|
Status: typeof ThinkRoutineStatus;
|
|
49
41
|
};
|
|
50
|
-
//#endregion
|
|
51
|
-
export { ThinkRoutineActionProps, ThinkRoutineActions, ThinkRoutineActionsRootProps, useThinkRoutineActions };
|
|
42
|
+
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { K as SpinnerIcon, Q as TrashIcon, z as PlayIcon } from "../../icons-
|
|
1
|
+
import { K as SpinnerIcon, Q as TrashIcon, z as PlayIcon } from "../../icons-CeGfXO21.js";
|
|
2
2
|
import { Button } from "../foundations/Button.js";
|
|
3
|
-
import { a as formatErrorMessage } from "../../format-
|
|
3
|
+
import { a as formatErrorMessage } from "../../format-CWaZEp5o.js";
|
|
4
4
|
import { n as mergeRefs } from "../../merge-refs-DF_7w2x_.js";
|
|
5
5
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
6
6
|
import { AlertDialog } from "../foundations/AlertDialog.js";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { t as ThinkRoutine } from "../../ThinkRoutine-
|
|
1
|
+
import { t as ThinkRoutine } from "../../ThinkRoutine-DGlKJbIy.js";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
|
|
4
3
|
//#region src/components/agents-sdk/ThinkRoutineBrowser.d.ts
|
|
5
|
-
type ThinkRoutineFilter = "all" | "active" | "paused";
|
|
6
|
-
interface ThinkRoutineBrowserProps<TRoutine extends ThinkRoutine = ThinkRoutine> extends Omit<React.HTMLAttributes<HTMLElement>, "onSelect"> {
|
|
4
|
+
export type ThinkRoutineFilter = "all" | "active" | "paused";
|
|
5
|
+
export interface ThinkRoutineBrowserProps<TRoutine extends ThinkRoutine = ThinkRoutine> extends Omit<React.HTMLAttributes<HTMLElement>, "onSelect"> {
|
|
7
6
|
routines: readonly TRoutine[];
|
|
8
7
|
/** Routine selected by the current application route. */
|
|
9
8
|
selectedRoutineId?: string | null;
|
|
@@ -20,18 +19,7 @@ interface ThinkRoutineBrowserProps<TRoutine extends ThinkRoutine = ThinkRoutine>
|
|
|
20
19
|
onRoutineLinkClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
21
20
|
}
|
|
22
21
|
/** Searchable, filterable navigation for an app-owned collection of Think routines. */
|
|
23
|
-
declare function ThinkRoutineBrowser<TRoutine extends ThinkRoutine = ThinkRoutine>({
|
|
24
|
-
className,
|
|
25
|
-
routines,
|
|
26
|
-
selectedRoutineId,
|
|
27
|
-
showOwner,
|
|
28
|
-
renderRoutineLink,
|
|
29
|
-
createRoutineLink,
|
|
30
|
-
onRoutineLinkClick,
|
|
31
|
-
ref,
|
|
32
|
-
...props
|
|
33
|
-
}: ThinkRoutineBrowserProps<TRoutine> & {
|
|
22
|
+
export declare function ThinkRoutineBrowser<TRoutine extends ThinkRoutine = ThinkRoutine>({ className, routines, selectedRoutineId, showOwner, renderRoutineLink, createRoutineLink, onRoutineLinkClick, ref, ...props }: ThinkRoutineBrowserProps<TRoutine> & {
|
|
34
23
|
ref?: React.Ref<HTMLElement>;
|
|
35
24
|
}): React.JSX.Element;
|
|
36
|
-
//#endregion
|
|
37
|
-
export { ThinkRoutineBrowser, ThinkRoutineBrowserProps, ThinkRoutineFilter };
|
|
25
|
+
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { B as PlusIcon } from "../../icons-
|
|
2
|
+
import { B as PlusIcon } from "../../icons-CeGfXO21.js";
|
|
3
3
|
import { buttonVariants } from "../foundations/Button.js";
|
|
4
4
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
5
|
-
import { t as capitalize } from "../../format-
|
|
6
|
-
import { EmptyState } from "../foundations/EmptyState.js";
|
|
5
|
+
import { t as capitalize } from "../../format-CWaZEp5o.js";
|
|
7
6
|
import { n as isPlainPrimaryLinkActivation, t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
7
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
8
8
|
import { SearchField } from "../foundations/SearchField.js";
|
|
9
9
|
import { ToggleGroup } from "../foundations/ToggleGroup.js";
|
|
10
10
|
import { getThinkRoutineNextRun } from "./ThinkRoutine.js";
|