@mcp-b/react-components 0.60.0 → 0.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AgentActivity-DSObWhDU.d.ts → AgentActivity-DptCj8XQ.d.ts} +2 -2
- package/dist/{AgentChatQueue-CGR4hd7D.d.ts → AgentChatQueue-DG2rGyCI.d.ts} +1 -1
- package/dist/AgentToolRunsContext-Br3jZ6Up.d.ts +74 -0
- package/dist/{Button-ClRxb8tM.d.ts → Button-DIn-0P-0.d.ts} +4 -5
- package/dist/{Card-BPkXIkBz.d.ts → Card-DkGZ3jKQ.d.ts} +7 -1
- package/dist/{CodeBlock-DYp5V_4O.d.ts → CodeBlock-BTkag9ms.d.ts} +1 -1
- package/dist/{CodeBlock-B4K656LO.js → CodeBlock-CNvOYR0Q.js} +1 -1
- package/dist/{EmployeeChrome-QSki0QT4.d.ts → EmployeeChrome-D5x4EM9y.d.ts} +19 -35
- package/dist/{ExecutionBoard-DHfMvKlB.d.ts → ExecutionBoard-DvPGdn4F.d.ts} +2 -2
- package/dist/{ExecutionResult-Wd1sKAvD.js → ExecutionResult-DmC21cll.js} +4 -4
- package/dist/{FileTree-BpCJuvji.js → FileTree-H31EVRv_.js} +1 -1
- package/dist/{IconButton-43ggXEuf.d.ts → IconButton-FWsa9562.d.ts} +1 -1
- package/dist/{ManagerOffice-BaHSBcSF.js → ManagerOffice-B3X3iZV9.js} +27 -34
- package/dist/{McpConnectorForm-D4bY-lm_.d.ts → McpConnectorForm-BLsQt_er.d.ts} +1 -1
- package/dist/{McpPluginCatalog-2FZDLCeK.d.ts → McpPluginCatalog-SQNOytXQ.d.ts} +2 -2
- package/dist/{Message-CwCqa90H.d.ts → Message-BUedRDN1.d.ts} +2 -2
- package/dist/{MessageScrollerVirtual-DVQeEkNy.d.ts → MessageScrollerVirtual-DxL6XKq9.d.ts} +1 -1
- package/dist/{PromptInput-C3adKglc.d.ts → PromptInput-Dbe6WgWA.d.ts} +1 -1
- package/dist/{ResponsiveSidebarShell-DzBGlRJF.d.ts → ResponsiveSidebarShell-DSAMNDdg.d.ts} +1 -1
- package/dist/{SetupChecklist-BNK2XFaI.js → SetupChecklist-Wo4akaSG.js} +2 -2
- package/dist/{ThinkChatActivity-C4_hPEmb.d.ts → ThinkChatActivity-zZaSsbC-.d.ts} +7 -3
- package/dist/{ThinkChatActivitySummary-ChJ8Iu2T.d.ts → ThinkChatActivitySummary-8MO1VjAJ.d.ts} +1 -1
- package/dist/{ThinkExecutionRun-CPeYVneQ.d.ts → ThinkExecutionRun-DJ2TFDmZ.d.ts} +1 -1
- package/dist/ThinkSchedule-CSuDGrZ9.d.ts +34 -0
- package/dist/{Workspace-iCkXvQRJ.d.ts → Workspace-42LA9Zrb.d.ts} +1 -1
- package/dist/WorkspaceAutomation-CMvICi-p.d.ts +215 -0
- package/dist/{WorkspaceConcept-ByaG-kBq.d.ts → WorkspaceConcept-BjrgGE1w.d.ts} +2 -3
- package/dist/{WorkspaceFile-DkIZKoK6.d.ts → WorkspaceFile-nK2n0i4S.d.ts} +1 -1
- package/dist/{WorkspaceFileView-5SHsjamf.js → WorkspaceFileView-BWI_AJlV.js} +8 -8
- package/dist/{WorkspaceLink-Buo6gKj2.d.ts → WorkspaceLink-C8HH2fMT.d.ts} +1 -0
- package/dist/{WorkspaceMessageResponse-DnsdpaGU.js → WorkspaceMessageResponse-BZ-_I18b.js} +3 -7
- package/dist/agent-tool-runs-DsOp_X2y.js +133 -0
- package/dist/assets/chrome.svg +1 -0
- package/dist/assets/plugins/plugin-github.svg +8 -0
- package/dist/assets/plugins/plugin-gmail.svg +1 -0
- package/dist/assets/plugins/plugin-google-drive.svg +1 -0
- package/dist/assets/plugins/plugin-google.svg +1 -0
- package/dist/assets/plugins/plugin-linear.svg +1 -0
- package/dist/assets/plugins/plugin-notion.svg +25 -0
- package/dist/assets/plugins/plugin-salesforce.svg +31 -0
- package/dist/assets/plugins/plugin-slack.svg +6 -0
- package/dist/chatgpt-sign-in-button-DNchrZHs.js +32 -0
- package/dist/{codex-model-catalog-CFEGgUAj.d.ts → codex-model-catalog-18yO7dln.d.ts} +8 -8
- package/dist/components/agents-sdk/AgentActivity.d.ts +1 -1
- package/dist/components/agents-sdk/AgentActivity.js +5 -4
- package/dist/components/agents-sdk/AgentChat.d.ts +4 -4
- package/dist/components/agents-sdk/AgentChat.js +8 -8
- package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
- package/dist/components/agents-sdk/AgentEvent.js +5 -5
- package/dist/components/agents-sdk/AgentToolRunsContext.d.ts +2 -2
- package/dist/components/agents-sdk/AgentToolRunsContext.js +78 -8
- package/dist/components/agents-sdk/BrowserLiveScreen.js +1 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +1 -1
- package/dist/components/agents-sdk/EmployeeApp.d.ts +4 -3
- package/dist/components/agents-sdk/EmployeeApp.js +2 -2
- package/dist/components/agents-sdk/EmployeeChat.d.ts +9 -2
- package/dist/components/agents-sdk/EmployeeChat.js +15 -11
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +2 -2
- package/dist/components/agents-sdk/EmployeeChrome.js +53 -35
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +10 -10
- package/dist/components/agents-sdk/EmployeeSchedules.js +39 -39
- package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +3 -3
- package/dist/components/agents-sdk/EmployeeStartScreen.js +4 -4
- package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
- package/dist/components/agents-sdk/ExecutionBoard.js +7 -33
- package/dist/components/agents-sdk/ManagerAccountActions.js +2 -2
- package/dist/components/agents-sdk/ManagerOffice.d.ts +10 -14
- 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 +3 -3
- package/dist/components/agents-sdk/McpConnectionRequest.d.ts +1 -1
- package/dist/components/agents-sdk/McpConnectionRequest.js +2 -2
- 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 +4 -4
- package/dist/components/agents-sdk/McpServerIcon.d.ts +1 -1
- package/dist/components/agents-sdk/McpServerPicker.d.ts +2 -2
- package/dist/components/agents-sdk/McpServerPicker.js +2 -2
- package/dist/components/agents-sdk/ModelEndpointDialog.js +1 -1
- package/dist/components/agents-sdk/ModelSelector.d.ts +2 -2
- package/dist/components/agents-sdk/ModelSelector.js +7 -6
- package/dist/components/agents-sdk/PromptInputApproval.js +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
- package/dist/components/agents-sdk/SubagentRunIndicator.d.ts +4 -2
- package/dist/components/agents-sdk/SubagentRunIndicator.js +4 -3
- package/dist/components/agents-sdk/SubagentRunLanes.d.ts +38 -0
- package/dist/components/agents-sdk/SubagentRunLanes.js +160 -0
- package/dist/components/agents-sdk/SubagentRunPanel.d.ts +3 -28
- package/dist/components/agents-sdk/SubagentRunPanel.js +145 -190
- package/dist/components/agents-sdk/SubagentRunSelector.d.ts +1 -1
- package/dist/components/agents-sdk/SubagentRunSelector.js +1 -1
- package/dist/components/agents-sdk/ThinkChat.d.ts +4 -7
- package/dist/components/agents-sdk/ThinkChat.js +5 -8
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +27 -26
- package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.js +28 -28
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +13 -28
- package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +2 -2
- package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +3 -16
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +4 -4
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
- package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -0
- package/dist/components/agents-sdk/ThinkSchedule.js +9 -0
- package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +42 -0
- package/dist/components/agents-sdk/{ThinkRoutineActions.js → ThinkScheduleActions.js} +35 -35
- package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +24 -0
- package/dist/components/agents-sdk/{ThinkRoutineBrowser.js → ThinkScheduleBrowser.js} +47 -45
- package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +19 -0
- package/dist/components/agents-sdk/ThinkScheduleDetail.js +139 -0
- package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +58 -0
- package/dist/components/agents-sdk/ThinkScheduleForm.js +686 -0
- package/dist/components/agents-sdk/ThinkThreadPicker.js +3 -3
- package/dist/components/agents-sdk/WorkbenchBack.d.ts +1 -1
- 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 +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceAutomation.js +791 -0
- package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +2 -0
- package/dist/components/agents-sdk/{WorkspaceExecutionTable.js → WorkspaceAutomationTable.js} +45 -65
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceConcept.js +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +28 -8
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +104 -254
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceExplorer.js +4 -4
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
- package/dist/components/agents-sdk/WorkspaceLink.d.ts +3 -2
- package/dist/components/agents-sdk/WorkspaceLink.js +2 -1
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +13 -6
- package/dist/components/agents-sdk/WorkspaceLive.js +2 -0
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +37 -2
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +1 -1
- package/dist/components/agents-sdk/WorkspaceNavigationRestoration.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspacePerson.d.ts +30 -0
- package/dist/components/agents-sdk/WorkspacePerson.js +100 -0
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +24 -60
- package/dist/components/agents-sdk/WorkspaceProject.js +82 -184
- package/dist/components/ai-sdk/Activity.js +1 -1
- package/dist/components/ai-sdk/AgentAttention.d.ts +1 -1
- package/dist/components/ai-sdk/AgentChatMessageEditor.js +1 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +2 -2
- package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
- package/dist/components/ai-sdk/Approval.js +2 -2
- package/dist/components/ai-sdk/Artifact.d.ts +1 -1
- package/dist/components/ai-sdk/Artifact.js +2 -2
- package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +1 -1
- 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.js +1 -1
- package/dist/components/ai-sdk/ConnectedAppCards.d.ts +51 -63
- package/dist/components/ai-sdk/ConnectedAppCards.js +42 -365
- package/dist/components/ai-sdk/Context.js +1 -1
- package/dist/components/ai-sdk/Conversation.d.ts +1 -1
- package/dist/components/ai-sdk/Conversation.js +3 -3
- package/dist/components/ai-sdk/Goal.js +1 -1
- package/dist/components/ai-sdk/MediaPreviewCard.d.ts +1 -1
- 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 +12 -4
- package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
- 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.js +1 -1
- package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
- package/dist/components/ai-sdk/PromptInput.js +6 -6
- package/dist/components/ai-sdk/Queue.d.ts +1 -1
- package/dist/components/ai-sdk/Queue.js +1 -1
- package/dist/components/ai-sdk/Reasoning.js +1 -1
- package/dist/components/ai-sdk/Sources.js +1 -1
- package/dist/components/ai-sdk/Task.js +1 -1
- package/dist/components/extension/ChatGptSignInScreen.d.ts +17 -4
- package/dist/components/extension/ChatGptSignInScreen.js +32 -32
- package/dist/components/extension/CodexModelSelector.d.ts +1 -1
- package/dist/components/extension/CodexModelSelector.js +2 -2
- package/dist/components/extension/ConversationTabPicker.js +2 -2
- package/dist/components/extension/FirstRunSetup.d.ts +117 -0
- package/dist/components/extension/FirstRunSetup.js +1175 -0
- package/dist/components/foundations/AlertDialog.d.ts +1 -1
- package/dist/components/foundations/AppIcon.d.ts +5 -2
- package/dist/components/foundations/Button.d.ts +1 -1
- package/dist/components/foundations/Button.js +1 -1
- package/dist/components/foundations/Card.d.ts +1 -1
- package/dist/components/foundations/Card.js +2 -2
- package/dist/components/foundations/Checkbox.js +1 -1
- package/dist/components/foundations/Collapsible.js +1 -1
- package/dist/components/foundations/ContextMenu.js +1 -1
- package/dist/components/foundations/DescriptionList.d.ts +3 -1
- package/dist/components/foundations/DescriptionList.js +2 -1
- package/dist/components/foundations/IconButton.d.ts +1 -1
- package/dist/components/foundations/LinkButton.d.ts +1 -1
- package/dist/components/foundations/Menubar.js +1 -1
- package/dist/components/foundations/Popover.js +1 -1
- package/dist/components/foundations/SearchField.js +1 -1
- package/dist/components/foundations/Select.js +1 -1
- package/dist/components/foundations/Stepper.js +1 -1
- package/dist/components/foundations/Toast.js +1 -1
- package/dist/components/foundations/Toggle.d.ts +2 -4
- package/dist/components/foundations/Toggle.js +3 -7
- package/dist/components/foundations/ToggleGroup.d.ts +3 -5
- package/dist/components/foundations/ToggleGroup.js +5 -17
- package/dist/components/foundations/icons.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- package/dist/components/general-purpose/AccountSignInDialog.js +1 -1
- package/dist/components/general-purpose/ActionGuide.d.ts +1 -1
- package/dist/components/general-purpose/Commit.d.ts +1 -1
- package/dist/components/general-purpose/Commit.js +2 -2
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
- package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/PricingBillingToggle.js +1 -1
- package/dist/components/general-purpose/PricingPlanCard.js +3 -3
- package/dist/components/general-purpose/PricingUsageCalculator.js +2 -2
- 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.js +2 -2
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/Terminal.d.ts +2 -2
- package/dist/components/general-purpose/Terminal.js +2 -2
- package/dist/components/general-purpose/TestResults.js +1 -1
- package/dist/components/general-purpose/ThemeModeControl.js +2 -2
- package/dist/components/general-purpose/WebPreview.d.ts +1 -1
- package/dist/components/general-purpose/WebPreview.js +1 -1
- package/dist/components/nanites/AgentConnection.js +3 -3
- package/dist/components/nanites/AgentToolDetail.d.ts +1 -1
- package/dist/components/nanites/AgentToolDetail.js +4 -4
- package/dist/connected-app-drafts-B9i69bkj.js +283 -0
- package/dist/{copy-button-BIfY5M-D.d.ts → copy-button-B09hHWd1.d.ts} +1 -1
- package/dist/{copy-button-BsmxSSeD.js → copy-button-z20VEXRF.js} +1 -1
- package/dist/{execution-result-DWVmm-bL.js → execution-result-DAuW4VWv.js} +30 -2
- package/dist/{icons-Dj6id76o.d.ts → icons-CReP3qYl.d.ts} +7 -1
- package/dist/{icons-Cn3vWZRs.js → icons-Yp99gmMC.js} +9 -3
- package/dist/{mcp-server-catalog-kaMWaSAL.d.ts → mcp-server-catalog-Di4N46H9.d.ts} +9 -3
- package/dist/navigation-link-zK6z8Gn3.d.ts +18 -0
- package/dist/scheduled-table-source-NZR1vFc_.js +38 -0
- package/dist/styles/accessibility.css +22 -9
- package/dist/styles/accordion.css +2 -2
- package/dist/styles/activity-header.css +14 -11
- package/dist/styles/activity.css +6 -13
- package/dist/styles/agent-attention.css +0 -23
- package/dist/styles/agent-chat.css +8 -3
- package/dist/styles/agent-connection.css +2 -2
- package/dist/styles/app-icon.css +7 -0
- package/dist/styles/app-top-bar.css +3 -11
- package/dist/styles/approval.css +2 -2
- package/dist/styles/base.css +3 -1
- package/dist/styles/browser-live-screen.css +3 -1
- package/dist/styles/browser-run-panel.css +2 -2
- package/dist/styles/button.css +13 -44
- package/dist/styles/card.css +42 -5
- package/dist/styles/chain-of-thought.css +2 -8
- package/dist/styles/chatgpt-sign-in-screen.css +91 -83
- package/dist/styles/checkbox-group.css +2 -1
- package/dist/styles/checkbox.css +4 -6
- package/dist/styles/code-block.css +2 -1
- package/dist/styles/codex-model-selector.css +2 -2
- package/dist/styles/collapsible.css +2 -2
- package/dist/styles/color-contrast.test.ts +1 -0
- package/dist/styles/combobox.css +5 -9
- package/dist/styles/commit.css +2 -7
- package/dist/styles/composer-link.css +0 -10
- package/dist/styles/connected-app-card.css +32 -32
- package/dist/styles/context-menu.css +2 -2
- package/dist/styles/description-list.css +14 -0
- package/dist/styles/execution-board.css +1 -1
- package/dist/styles/execution-result.css +161 -0
- package/dist/styles/file-tree.css +5 -9
- package/dist/styles/first-run-setup.css +751 -0
- package/dist/styles/index.css +5 -2
- package/dist/styles/inline-citation.css +2 -10
- package/dist/styles/manager-office.css +16 -43
- package/dist/styles/marker.css +2 -2
- package/dist/styles/media-preview-card.css +2 -7
- package/dist/styles/message-scroller.css +3 -2
- package/dist/styles/model-selector.css +19 -15
- package/dist/styles/navigation-menu.css +4 -4
- package/dist/styles/number-field.css +2 -3
- package/dist/styles/preview-card.css +2 -2
- package/dist/styles/prompt-input.css +5 -15
- package/dist/styles/queue.css +2 -7
- package/dist/styles/radio.css +4 -6
- package/dist/styles/recipes.css +25 -52
- package/dist/styles/resizable-side-panel.css +3 -2
- package/dist/styles/responsive-sidebar-shell.css +1 -6
- package/dist/styles/scroll-area.css +3 -2
- package/dist/styles/scrollbars.css +2 -0
- package/dist/styles/search-field.css +1 -2
- package/dist/styles/slider.css +4 -5
- package/dist/styles/sources.css +2 -7
- package/dist/styles/stepper.css +4 -4
- package/dist/styles/streamdown.css +8 -1
- package/dist/styles/subagent-run.css +123 -12
- package/dist/styles/switch.css +4 -7
- package/dist/styles/tabs.css +5 -4
- package/dist/styles/task.css +2 -7
- package/dist/styles/test-results.css +2 -7
- package/dist/styles/theme-mode-control.css +0 -6
- package/dist/styles/think-chat-activity.css +0 -8
- package/dist/styles/think-execution-status.css +1 -1
- package/dist/styles/think-execution-workbench.css +3 -3
- package/dist/styles/think-full-app.css +3 -2
- package/dist/styles/{think-routine.css → think-schedule.css} +64 -80
- package/dist/styles/toggle-group.css +9 -6
- package/dist/styles/toggle.css +23 -15
- package/dist/styles/toolbar.css +0 -6
- package/dist/styles/workspace-automation.css +233 -0
- package/dist/styles/workspace-concepts.css +18 -412
- package/dist/styles/workspace-entity-card.css +146 -0
- package/dist/styles/workspace-explorer.css +4 -3
- package/dist/utils/codex-model-catalog.d.ts +1 -1
- package/dist/utils/mcp-server-catalog.d.ts +2 -2
- package/dist/utils/mcp-server-catalog.js +108 -21
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/{workspace-assets-RD6IhOyh.js → workspace-assets-Dq5toMQc.js} +34 -38
- package/dist/workspace-concept-panel-CxZfmFkP.js +66 -0
- package/dist/workspace-concept-panel-KpMmznB_.d.ts +21 -0
- package/dist/{workspace-delete-CrNGUuBp.js → workspace-delete-CoB0l6ZU.js} +2 -1
- package/dist/workspace-entity-card-2TC3RPKh.d.ts +7 -0
- package/dist/workspace-entity-card-B1aV-jBj.js +61 -0
- package/dist/workspace-person-BSgvRjZE.d.ts +24 -0
- package/dist/workspace-person-BVkYb3dv.js +116 -0
- package/package.json +2 -2
- package/dist/AgentToolRunsContext-DniwGn96.d.ts +0 -18
- package/dist/Correspondent-ANkZHGEa.d.ts +0 -60
- package/dist/ThinkRoutine-DoZjbzyn.d.ts +0 -41
- package/dist/WorkspaceConceptPanel-D21iRsWm.js +0 -23
- package/dist/WorkspaceExecutionTable-DNhj6YDX.d.ts +0 -239
- package/dist/WorkspaceMessageResponse-D8FGgIQU.d.ts +0 -39
- package/dist/components/agents-sdk/SubagentRunList.d.ts +0 -17
- package/dist/components/agents-sdk/SubagentRunList.js +0 -26
- package/dist/components/agents-sdk/ThinkRoutine.d.ts +0 -2
- package/dist/components/agents-sdk/ThinkRoutine.js +0 -9
- package/dist/components/agents-sdk/ThinkRoutineActions.d.ts +0 -42
- package/dist/components/agents-sdk/ThinkRoutineBrowser.d.ts +0 -25
- package/dist/components/agents-sdk/ThinkRoutineDetail.d.ts +0 -19
- package/dist/components/agents-sdk/ThinkRoutineDetail.js +0 -97
- package/dist/components/agents-sdk/ThinkRoutineForm.d.ts +0 -59
- package/dist/components/agents-sdk/ThinkRoutineForm.js +0 -744
- package/dist/components/agents-sdk/ThinkRoutineRuns.d.ts +0 -15
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +0 -52
- package/dist/components/agents-sdk/WorkspaceExecution.d.ts +0 -2
- package/dist/components/agents-sdk/WorkspaceExecution.js +0 -843
- package/dist/components/agents-sdk/WorkspaceExecutionTable.d.ts +0 -2
- package/dist/components/agents-sdk/WorkspaceUserScript.d.ts +0 -36
- package/dist/components/agents-sdk/WorkspaceUserScript.js +0 -153
- package/dist/components/ai-sdk/Correspondent.d.ts +0 -2
- package/dist/components/ai-sdk/Correspondent.js +0 -145
- package/dist/styles/correspondent.css +0 -73
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { J as PromptInputMessage } from "../../PromptInput-
|
|
1
|
+
import { J as PromptInputMessage } from "../../PromptInput-Dbe6WgWA.js";
|
|
2
2
|
import { i as AgentMessageRenderPartContext } from "../../AgentMessageParts-BtWwiE4f.js";
|
|
3
3
|
import { AgentChatMessageContentProps, AgentChatRootProps } from "./AgentChat.js";
|
|
4
|
-
import { o as createThinkChatActivityRenderer, r as ThinkChatActivityRendererOptions, t as ThinkChatActivity } from "../../ThinkChatActivity-
|
|
4
|
+
import { o as createThinkChatActivityRenderer, r as ThinkChatActivityRendererOptions, t as ThinkChatActivity } from "../../ThinkChatActivity-zZaSsbC-.js";
|
|
5
5
|
import { i as ThinkChatValue } from "../../ThinkChatContext-DQ6M2VlJ.js";
|
|
6
|
-
import { n as WorkspaceFileRenderer } from "../../WorkspaceMessageResponse-D8FGgIQU.js";
|
|
7
6
|
import * as React from "react";
|
|
8
7
|
import { ChatStatus, UIMessage } from "ai";
|
|
9
8
|
import { DataTag, UndefinedInitialDataOptions } from "@tanstack/react-query";
|
|
@@ -30,11 +29,9 @@ export interface ThinkChatRootProps<State = unknown, MessageT extends UIMessage
|
|
|
30
29
|
export declare function ThinkChatRoot<State = unknown, MessageT extends UIMessage = UIMessage>({ chat, children, ...props }: ThinkChatRootProps<State, MessageT>): React.JSX.Element;
|
|
31
30
|
/** Normalize composer references for the upstream transport, also usable before a conversation exists. */
|
|
32
31
|
export declare function normalizeThinkPrompt({ text, references }: PromptInputMessage): string;
|
|
33
|
-
export
|
|
34
|
-
renderWorkspaceFile?: WorkspaceFileRenderer;
|
|
35
|
-
}
|
|
32
|
+
export type ThinkChatMessageContentProps<MessageT extends UIMessage = UIMessage> = AgentChatMessageContentProps<MessageT> & ThinkChatActivityRendererOptions<MessageT>;
|
|
36
33
|
/** Think activity/workspace rendering, independent of transcript layout and message actions. */
|
|
37
|
-
export declare function ThinkChatMessageContent<MessageT extends UIMessage = UIMessage>({ message, renderPart, excludeTools, renderAgentToolRunLink, toolRenderers
|
|
34
|
+
export declare function ThinkChatMessageContent<MessageT extends UIMessage = UIMessage>({ message, renderPart, excludeTools, renderAgentToolRunLink, toolRenderers }: ThinkChatMessageContentProps<MessageT>): React.JSX.Element;
|
|
38
35
|
export interface ThinkChatApprovalsProps {
|
|
39
36
|
stub: AgentStub<Think>;
|
|
40
37
|
sourceKey: string;
|
|
@@ -3,7 +3,7 @@ import { AgentChat, useAgentChatControls } from "./AgentChat.js";
|
|
|
3
3
|
import { ThinkChatContext, ThinkChatLiveContext, useThinkChatContext } from "./ThinkChatContext.js";
|
|
4
4
|
import { ThinkChatActivity, createThinkChatActivityRenderer, renderThinkChatActivityPart } from "./ThinkChatActivity.js";
|
|
5
5
|
import { ThinkRecoveryNotice } from "./ThinkRecoveryNotice.js";
|
|
6
|
-
import { n as WorkspaceMessageResponse
|
|
6
|
+
import { n as WorkspaceMessageResponse } from "../../WorkspaceMessageResponse-BZ-_I18b.js";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
import { isTextUIPart } from "ai";
|
|
@@ -140,7 +140,7 @@ function detachParts(message) {
|
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
142
|
/** Think activity/workspace rendering, independent of transcript layout and message actions. */
|
|
143
|
-
function ThinkChatMessageContent({ message, renderPart, excludeTools, renderAgentToolRunLink, toolRenderers
|
|
143
|
+
function ThinkChatMessageContent({ message, renderPart, excludeTools, renderAgentToolRunLink, toolRenderers }) {
|
|
144
144
|
const [snapshot, setSnapshot] = React.useState(() => ({
|
|
145
145
|
input: message,
|
|
146
146
|
shared: detachParts(message)
|
|
@@ -186,12 +186,9 @@ function ThinkChatMessageContent({ message, renderPart, excludeTools, renderAgen
|
|
|
186
186
|
renderPart,
|
|
187
187
|
isLiveMessage
|
|
188
188
|
]);
|
|
189
|
-
return /* @__PURE__ */ jsx(
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
message: sharedMessage,
|
|
193
|
-
renderPart: resolved
|
|
194
|
-
})
|
|
189
|
+
return /* @__PURE__ */ jsx(AgentChat.MessageContent, {
|
|
190
|
+
message: sharedMessage,
|
|
191
|
+
renderPart: resolved
|
|
195
192
|
});
|
|
196
193
|
}
|
|
197
194
|
/** Explicit durable discovery; policy and the decision to render a card remain with the caller. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ThinkChatToolRenderers, i as ThinkChatToolRenderer, n as ThinkChatActivityProps, o as createThinkChatActivityRenderer, r as ThinkChatActivityRendererOptions, s as renderThinkChatActivityPart, t as ThinkChatActivity } from "../../ThinkChatActivity-
|
|
1
|
+
import { a as ThinkChatToolRenderers, i as ThinkChatToolRenderer, n as ThinkChatActivityProps, o as createThinkChatActivityRenderer, r as ThinkChatActivityRendererOptions, s as renderThinkChatActivityPart, t as ThinkChatActivity } from "../../ThinkChatActivity-zZaSsbC-.js";
|
|
2
2
|
export { ThinkChatActivity, ThinkChatActivityProps, ThinkChatActivityRendererOptions, ThinkChatToolRenderer, ThinkChatToolRenderers, createThinkChatActivityRenderer, renderThinkChatActivityPart };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { AgentActivityFavicon, AgentActivityIcon } from "./AgentActivity.js";
|
|
2
1
|
import { useExpansionNumber } from "../ai-sdk/ExpansionState.js";
|
|
3
2
|
import { Activity, ActivityContent, ActivityItem, ActivityItemGroup, ActivityText, ActivityTrigger } from "../ai-sdk/Activity.js";
|
|
4
3
|
import { Button } from "../foundations/Button.js";
|
|
5
4
|
import { MessageResponse } from "../ai-sdk/Message.js";
|
|
6
|
-
import { useOptionalAgentToolRuns } from "./AgentToolRunsContext.js";
|
|
7
|
-
import { getSubagentRunName } from "./SubagentRunIndicator.js";
|
|
8
5
|
import { ToolInvocationDetails } from "../ai-sdk/ToolInvocation.js";
|
|
9
|
-
import {
|
|
6
|
+
import { d as useRunsStore, u as useRunsSelector } from "../../agent-tool-runs-DsOp_X2y.js";
|
|
7
|
+
import { AgentActivityFavicon, AgentActivityIcon } from "./AgentActivity.js";
|
|
8
|
+
import { SubagentRunLanes } from "./SubagentRunLanes.js";
|
|
10
9
|
import { useOptionalThinkChatLive } from "./ThinkChatContext.js";
|
|
11
10
|
import { isBrowserToolPart, isExecuteToolPart, isFetchToolPart, isPartWorking, isSessionContextToolPart, isSkillToolPart, isThinkChatActivityPart, isWorkspaceToolPart, thinkToolOutcome } from "./ThinkChatToolParts.js";
|
|
12
11
|
import { ThinkChatBrowserPanel, ThinkChatExecutePanel, ThinkChatFetchPanel, ThinkChatFollowUpPanel, ThinkChatSessionContextPanel, ThinkChatSkillPanel, ThinkChatWorkspacePanel } from "./ThinkChatToolPanels.js";
|
|
@@ -164,16 +163,8 @@ function terminalActivityAction(message) {
|
|
|
164
163
|
}
|
|
165
164
|
function ThinkChatActivityGroup({ message, parts, renderAgentToolRunLink, isTrailing, isTerminal, settledAction, toolRenderers, stateKey }) {
|
|
166
165
|
const live = useOptionalThinkChatLive();
|
|
167
|
-
const
|
|
168
|
-
const
|
|
169
|
-
const runs = React.useMemo(() => {
|
|
170
|
-
if (!agentTools || !renderAgentToolRunLink) return [];
|
|
171
|
-
return [...new Map(parts.flatMap((part) => isToolUIPart(part) ? agentTools.getRunsForToolCall(part.toolCallId) : []).map((run) => [run.runId, run])).values()];
|
|
172
|
-
}, [
|
|
173
|
-
agentTools,
|
|
174
|
-
parts,
|
|
175
|
-
renderAgentToolRunLink
|
|
176
|
-
]);
|
|
166
|
+
const messageLive = live ? live.isStreaming && live.lastMessageId === message.id : void 0;
|
|
167
|
+
const streaming = isTrailing && (messageLive ?? (!isTerminal && parts.some(isPartWorking)));
|
|
177
168
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ThinkChatActivity, {
|
|
178
169
|
parts,
|
|
179
170
|
isStreaming: streaming,
|
|
@@ -181,20 +172,30 @@ function ThinkChatActivityGroup({ message, parts, renderAgentToolRunLink, isTrai
|
|
|
181
172
|
settledAction,
|
|
182
173
|
toolRenderers,
|
|
183
174
|
stateKey
|
|
184
|
-
}),
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
render: renderAgentToolRunLink(run),
|
|
189
|
-
"aria-label": `View ${getSubagentRunName(run)} report`,
|
|
190
|
-
children: [
|
|
191
|
-
"Delegated ",
|
|
192
|
-
getSubagentRunName(run),
|
|
193
|
-
" · View report"
|
|
194
|
-
]
|
|
195
|
-
}) }, run.runId))
|
|
175
|
+
}), renderAgentToolRunLink ? /* @__PURE__ */ jsx(ThinkChatActivityLanes, {
|
|
176
|
+
parts,
|
|
177
|
+
renderRunLink: renderAgentToolRunLink,
|
|
178
|
+
waiting: messageLive ?? streaming
|
|
196
179
|
}) : null] });
|
|
197
180
|
}
|
|
181
|
+
const NO_RUNS = [];
|
|
182
|
+
const sameRuns = (a, b) => a.length === b.length && a.every((run, index) => run === b[index]);
|
|
183
|
+
/**
|
|
184
|
+
* The runs a group's tool calls dispatched, as lanes. It alone reads the runs,
|
|
185
|
+
* and only its own, so a child's chunk re-renders that child's group and not
|
|
186
|
+
* the activity above it or any other group.
|
|
187
|
+
*/
|
|
188
|
+
function ThinkChatActivityLanes({ parts, renderRunLink, waiting }) {
|
|
189
|
+
const store = useRunsStore();
|
|
190
|
+
const toolCallIds = React.useMemo(() => parts.flatMap((part) => isToolUIPart(part) ? [part.toolCallId] : []), [parts]);
|
|
191
|
+
const select = React.useCallback((state) => [...new Map(toolCallIds.flatMap((id) => state.agentTools.getRunsForToolCall(id)).map((run) => [run.runId, run])).values()], [toolCallIds]);
|
|
192
|
+
const runs = useRunsSelector(select, NO_RUNS, sameRuns);
|
|
193
|
+
if (!store || runs.length === 0 && !waiting) return null;
|
|
194
|
+
return /* @__PURE__ */ jsx(SubagentRunLanes, {
|
|
195
|
+
runs,
|
|
196
|
+
renderRunLink
|
|
197
|
+
});
|
|
198
|
+
}
|
|
198
199
|
/**
|
|
199
200
|
* Builds a renderPart handler that folds every run of consecutive activity
|
|
200
201
|
* parts (reasoning + tool calls) into one collapsed Activity box. Everything
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ThinkChatToolLifecycleSnapshot, c as deriveThinkChatActivityHeader, d as summarizeActivitySteps, i as ThinkChatToolDescribers, l as deriveThinkChatToolLifecycleHeader, n as ThinkChatActivityHeader, o as activityPartIconKind, r as ThinkChatToolDescriber, s as activityPartUrl, t as ThinkChatActivityDescription, u as describeThinkChatActivityPart } from "../../ThinkChatActivitySummary-
|
|
1
|
+
import { a as ThinkChatToolLifecycleSnapshot, c as deriveThinkChatActivityHeader, d as summarizeActivitySteps, i as ThinkChatToolDescribers, l as deriveThinkChatToolLifecycleHeader, n as ThinkChatActivityHeader, o as activityPartIconKind, r as ThinkChatToolDescriber, s as activityPartUrl, t as ThinkChatActivityDescription, u as describeThinkChatActivityPart } from "../../ThinkChatActivitySummary-8MO1VjAJ.js";
|
|
2
2
|
export { ThinkChatActivityDescription, ThinkChatActivityHeader, ThinkChatToolDescriber, ThinkChatToolDescribers, ThinkChatToolLifecycleSnapshot, activityPartIconKind, activityPartUrl, deriveThinkChatActivityHeader, deriveThinkChatToolLifecycleHeader, describeThinkChatActivityPart, summarizeActivitySteps };
|
|
@@ -160,31 +160,31 @@ function describeFollowUpPart(part) {
|
|
|
160
160
|
}
|
|
161
161
|
function describeScheduledTasksPart(part) {
|
|
162
162
|
const outcome = thinkToolOutcome(part);
|
|
163
|
-
if (outcome === "failed") return described("
|
|
164
|
-
if (outcome === "denied") return described("
|
|
163
|
+
if (outcome === "failed") return described("Schedule action failed");
|
|
164
|
+
if (outcome === "denied") return described("Schedule action denied");
|
|
165
165
|
const input = isRecord(part.input) ? part.input : void 0;
|
|
166
166
|
const operation = input?.operation;
|
|
167
|
-
const
|
|
168
|
-
list
|
|
169
|
-
create
|
|
170
|
-
update
|
|
171
|
-
set_enabled
|
|
172
|
-
run_now
|
|
173
|
-
delete
|
|
174
|
-
|
|
175
|
-
if (!
|
|
176
|
-
if (part.state === "approval-requested") return described("
|
|
177
|
-
if (isPartWorking(part)) return described(
|
|
178
|
-
if (part.state !== "output-available" || part.preliminary) return described("
|
|
167
|
+
const working = (/* @__PURE__ */ new Map([
|
|
168
|
+
["list", "Listing schedules"],
|
|
169
|
+
["create", "Creating schedule"],
|
|
170
|
+
["update", "Updating schedule"],
|
|
171
|
+
["set_enabled", input?.enabled === false ? "Disabling schedule" : "Enabling schedule"],
|
|
172
|
+
["run_now", "Starting schedule run"],
|
|
173
|
+
["delete", "Deleting schedule"]
|
|
174
|
+
])).get(String(operation));
|
|
175
|
+
if (!working) return describeGenericToolPart(part);
|
|
176
|
+
if (part.state === "approval-requested") return described("Schedule awaiting approval");
|
|
177
|
+
if (isPartWorking(part)) return described(working);
|
|
178
|
+
if (part.state !== "output-available" || part.preliminary) return described("Schedule result unavailable");
|
|
179
179
|
const output = part.output;
|
|
180
|
-
if (operation === "list") return Array.isArray(output) && output.every(
|
|
181
|
-
if (operation === "create" || operation === "update") return
|
|
182
|
-
if (operation === "set_enabled") return
|
|
183
|
-
if (operation === "delete") return typeof output === "boolean" ? described(output ? "Deleted
|
|
180
|
+
if (operation === "list") return Array.isArray(output) && output.every(isScheduleReceipt) ? described("Listed schedules") : described("Schedule list result unavailable");
|
|
181
|
+
if (operation === "create" || operation === "update") return isScheduleReceipt(output) ? described(operation === "create" ? "Created schedule" : "Updated schedule") : described("Schedule result unavailable");
|
|
182
|
+
if (operation === "set_enabled") return isScheduleReceipt(output) ? described(output.enabled ? "Enabled schedule" : "Disabled schedule") : described("Schedule result unavailable");
|
|
183
|
+
if (operation === "delete") return typeof output === "boolean" ? described(output ? "Deleted schedule" : "Schedule not found") : described("Schedule result unavailable");
|
|
184
184
|
if (operation === "run_now") return describeScheduledTaskRun(output);
|
|
185
|
-
return described("
|
|
185
|
+
return described("Schedule result unavailable");
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function isScheduleReceipt(value) {
|
|
188
188
|
return isRecord(value) && typeof value.id === "string" && value.id.length > 0 && typeof value.name === "string" && value.name.length > 0 && typeof value.enabled === "boolean" && typeof value.revision === "number" && Number.isInteger(value.revision) && value.revision >= 0 && isRecord(value.owner) && typeof value.owner.id === "string" && typeof value.owner.name === "string" && isRecord(value.task) && isRecord(value.parsedSchedule) && Array.isArray(value.runs) && typeof value.createdAt === "number" && Number.isFinite(value.createdAt) && typeof value.updatedAt === "number" && Number.isFinite(value.updatedAt);
|
|
189
189
|
}
|
|
190
190
|
function describeScheduledTaskRun(value) {
|
|
@@ -195,15 +195,15 @@ function describeScheduledTaskRun(value) {
|
|
|
195
195
|
"aborted",
|
|
196
196
|
"skipped",
|
|
197
197
|
"error"
|
|
198
|
-
].includes(String(value.status)) || !isRecord(value.metadata) || typeof value.metadata.routineId !== "string" || typeof value.metadata.threadId !== "string" || typeof value.createdAt !== "number" || !Number.isFinite(value.createdAt)) return described("
|
|
198
|
+
].includes(String(value.status)) || !isRecord(value.metadata) || typeof value.metadata.routineId !== "string" || typeof value.metadata.threadId !== "string" || typeof value.createdAt !== "number" || !Number.isFinite(value.createdAt)) return described("Schedule run result unavailable");
|
|
199
199
|
switch (value.status) {
|
|
200
200
|
case "pending":
|
|
201
|
-
case "running": return described("Started
|
|
202
|
-
case "completed": return described("Completed
|
|
203
|
-
case "aborted": return described("
|
|
204
|
-
case "skipped": return described("
|
|
205
|
-
case "error": return described("
|
|
206
|
-
default: return described("
|
|
201
|
+
case "running": return described("Started schedule run");
|
|
202
|
+
case "completed": return described("Completed schedule run");
|
|
203
|
+
case "aborted": return described("Schedule run aborted");
|
|
204
|
+
case "skipped": return described("Schedule run skipped");
|
|
205
|
+
case "error": return described("Schedule run failed");
|
|
206
|
+
default: return described("Schedule run result unavailable");
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
function activityPartUrl(part) {
|
|
@@ -366,7 +366,7 @@ function describeBrowserToolPart(part) {
|
|
|
366
366
|
const failed = isPartFailed(part);
|
|
367
367
|
if (part.type === "tool-browser_execute") {
|
|
368
368
|
const output = part.state === "output-available" ? part.output : void 0;
|
|
369
|
-
if (failed || output?.status === "error") return described("Browser
|
|
369
|
+
if (failed || output?.status === "error") return described("Browser control failed");
|
|
370
370
|
if (output?.status === "paused") return described(isHumanWaitPauseValue(output) ? "Browser waiting for human" : "Browser waiting for approval");
|
|
371
371
|
return described(working ? "Using the browser" : "Used the browser");
|
|
372
372
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ActivityOutput, ActivityPanel } from "../ai-sdk/Activity.js";
|
|
2
|
-
import { ToolInvocationDetails } from "../ai-sdk/ToolInvocation.js";
|
|
3
2
|
import { Tabs } from "../foundations/Tabs.js";
|
|
3
|
+
import { ToolInvocationDetails } from "../ai-sdk/ToolInvocation.js";
|
|
4
|
+
import { i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "../../CodeBlock-CNvOYR0Q.js";
|
|
5
|
+
import { formatThinkExecutionShortTimestamp } from "./ThinkExecutionRun.js";
|
|
6
|
+
import { n as executionErrorSummary } from "../../execution-result-DAuW4VWv.js";
|
|
7
|
+
import { t as WorkspaceFileLink } from "../../WorkspaceLink-BeFAXpbI.js";
|
|
8
|
+
import { t as ExecutionResult } from "../../ExecutionResult-DmC21cll.js";
|
|
4
9
|
import { BrowserLiveView } from "./BrowserLiveView.js";
|
|
5
|
-
import { i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "../../CodeBlock-B4K656LO.js";
|
|
6
10
|
import { inferWorkspaceLanguage } from "./WorkspaceFile.js";
|
|
7
11
|
import { displayUrl, isSessionContextToolFailure, readFollowUpReceipt, thinkToolOutcome } from "./ThinkChatToolParts.js";
|
|
8
|
-
import { t as executionErrorSummary } from "../../execution-result-DWVmm-bL.js";
|
|
9
|
-
import { t as WorkspaceFileLink } from "../../WorkspaceLink-BeFAXpbI.js";
|
|
10
|
-
import { t as ExecutionResult } from "../../ExecutionResult-Wd1sKAvD.js";
|
|
11
|
-
import { formatThinkExecutionShortTimestamp } from "./ThinkExecutionRun.js";
|
|
12
12
|
import * as React from "react";
|
|
13
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { getToolName } from "ai";
|
|
@@ -532,14 +532,14 @@ function executionFileSection(label, filePath) {
|
|
|
532
532
|
})]
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
|
-
/** The saved
|
|
535
|
+
/** The saved code and the values the run was given. */
|
|
536
536
|
function RookExecuteInput({ input }) {
|
|
537
537
|
const path = stringField(input, "path");
|
|
538
538
|
const args = Object.hasOwn(input, "args") ? input.args : void 0;
|
|
539
539
|
const table = Object.hasOwn(input, "table") ? input.table : void 0;
|
|
540
540
|
const preview = Object.hasOwn(input, "preview") ? input.preview : void 0;
|
|
541
541
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
542
|
-
path ? executionFileSection("
|
|
542
|
+
path ? executionFileSection("Code", path) : null,
|
|
543
543
|
args !== void 0 ? executionResultSection("Arguments", args) : null,
|
|
544
544
|
table !== void 0 ? executionResultSection("Table", table) : null,
|
|
545
545
|
preview !== void 0 ? executionResultSection("Preview", preview) : null
|
|
@@ -547,7 +547,6 @@ function RookExecuteInput({ input }) {
|
|
|
547
547
|
}
|
|
548
548
|
/** The run's receipt, in the order a reader checks it. */
|
|
549
549
|
function RookExecuteOutput({ output }) {
|
|
550
|
-
const executionId = stringField(output, "executionId");
|
|
551
550
|
const error = stringField(output, "error");
|
|
552
551
|
const failureKind = output.status === "error" && typeof output.kind === "string" && ROOK_EXECUTION_FAILURE_KINDS.has(output.kind) ? output.kind : void 0;
|
|
553
552
|
const logs = isStringArray(output.logs) ? output.logs : void 0;
|
|
@@ -555,13 +554,6 @@ function RookExecuteOutput({ output }) {
|
|
|
555
554
|
const outputPath = stringField(output, "path");
|
|
556
555
|
const saveError = stringField(output, "saveError");
|
|
557
556
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
558
|
-
executionId ? /* @__PURE__ */ jsxs("section", {
|
|
559
|
-
className: "think-chat-tool-panels__execution-section",
|
|
560
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
561
|
-
className: "activity__shell-label",
|
|
562
|
-
children: "Execution"
|
|
563
|
-
}), /* @__PURE__ */ jsx(ActivityOutput, { children: executionId })]
|
|
564
|
-
}) : null,
|
|
565
557
|
error ? /* @__PURE__ */ jsxs("section", {
|
|
566
558
|
className: "think-chat-tool-panels__execution-section",
|
|
567
559
|
children: [
|
|
@@ -586,21 +578,14 @@ function RookExecuteOutput({ output }) {
|
|
|
586
578
|
}) : null,
|
|
587
579
|
logs?.length ? executionResultSection("Logs", logs) : null,
|
|
588
580
|
files?.length ? executionResultSection("Files", files) : null,
|
|
589
|
-
outputPath ? executionFileSection("
|
|
581
|
+
outputPath ? executionFileSection("Code", outputPath) : null,
|
|
590
582
|
Object.hasOwn(output, "result") ? executionResultSection("Result", output.result) : null,
|
|
591
583
|
saveError ? /* @__PURE__ */ jsxs("section", {
|
|
592
584
|
className: "think-chat-tool-panels__execution-section",
|
|
593
|
-
children: [
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
}),
|
|
598
|
-
/* @__PURE__ */ jsx(ActivityOutput, { children: executionErrorSummary(saveError) }),
|
|
599
|
-
/* @__PURE__ */ jsx("span", {
|
|
600
|
-
className: "activity__shell-status",
|
|
601
|
-
children: "not saved"
|
|
602
|
-
})
|
|
603
|
-
]
|
|
585
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
586
|
+
className: "activity__shell-label",
|
|
587
|
+
children: "Code not saved"
|
|
588
|
+
}), /* @__PURE__ */ jsx(ActivityOutput, { children: executionErrorSummary(saveError) })]
|
|
604
589
|
}) : null
|
|
605
590
|
] });
|
|
606
591
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ThinkExecutionRun } from "../../ThinkExecutionRun-
|
|
1
|
+
import { t as ThinkExecutionRun } from "../../ThinkExecutionRun-DJ2TFDmZ.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
//#region src/components/agents-sdk/ThinkExecutionDetail.d.ts
|
|
4
4
|
export interface ThinkExecutionDetailProps extends React.HTMLAttributes<HTMLElement> {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { EmptyState } from "../foundations/EmptyState.js";
|
|
3
2
|
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
4
|
-
import { t as ExecutionResult } from "../../ExecutionResult-Wd1sKAvD.js";
|
|
5
3
|
import { formatThinkExecutionTimestamp, getThinkExecutionRunError, getThinkExecutionRunKindLabel, getThinkExecutionRunProgressedAt, getThinkExecutionRunProgressedLabel, getThinkExecutionRunTitle } from "./ThinkExecutionRun.js";
|
|
4
|
+
import { t as ExecutionResult } from "../../ExecutionResult-DmC21cll.js";
|
|
5
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
6
6
|
import { ThinkExecutionStatus } from "./ThinkExecutionStatus.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -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-DJ2TFDmZ.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 ThinkExecutionRun } from "../../ThinkExecutionRun-
|
|
1
|
+
import { t as ThinkExecutionRun } from "../../ThinkExecutionRun-DJ2TFDmZ.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
//#region src/components/agents-sdk/ThinkExecutionStatus.d.ts
|
|
4
4
|
export interface ThinkExecutionStatusProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { B as PauseIcon, E as InfoIcon, Z as SpinnerIcon, d as CheckIcon, lt as XIcon } from "../../icons-Yp99gmMC.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,26 +1,13 @@
|
|
|
1
|
+
import { t as NavigationLink } from "../../navigation-link-zK6z8Gn3.js";
|
|
1
2
|
import { t as AppTopBar } from "../../AppTopBar-DwzydmXu.js";
|
|
2
|
-
import { r as ResponsiveSidebarAppBarProps } from "../../ResponsiveSidebarShell-
|
|
3
|
-
import { t as ThinkExecutionRun } from "../../ThinkExecutionRun-
|
|
3
|
+
import { r as ResponsiveSidebarAppBarProps } from "../../ResponsiveSidebarShell-DSAMNDdg.js";
|
|
4
|
+
import { t as ThinkExecutionRun } from "../../ThinkExecutionRun-DJ2TFDmZ.js";
|
|
4
5
|
import * as React from "react";
|
|
5
6
|
import { useRender } from "@base-ui/react/use-render";
|
|
6
7
|
import { DataTag, UnusedSkipTokenOptions } from "@tanstack/react-query";
|
|
7
8
|
import { Think, ThinkSubmissionInspection } from "@cloudflare/think";
|
|
8
9
|
import { AgentStub } from "agents/client";
|
|
9
10
|
import { WorkflowPage } from "agents/workflows";
|
|
10
|
-
//#region src/components/_internal/navigation-link.d.ts
|
|
11
|
-
interface NavigationLinkProps extends Omit<useRender.ComponentProps<"a">, "render"> {
|
|
12
|
-
/** App-authored TanStack Router Link with its destination already type-checked. */
|
|
13
|
-
render: React.ReactElement;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Merges design-system anchor props into an application-owned router Link.
|
|
17
|
-
*
|
|
18
|
-
* Keeping the Link element at the call site lets the consuming application's
|
|
19
|
-
* registered route tree infer `to`, `params`, and `search` without routing
|
|
20
|
-
* generics leaking through every design-system component.
|
|
21
|
-
*/
|
|
22
|
-
declare function NavigationLink({ render, ref, ...props }: NavigationLinkProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
23
|
-
//#endregion
|
|
24
11
|
//#region src/components/agents-sdk/ThinkExecutionWorkbench.d.ts
|
|
25
12
|
export interface ThinkExecutionWorkbenchRootProps extends useRender.ComponentProps<"div"> {
|
|
26
13
|
/** Whole Agents SDK client stub; native submission/workflow methods remain unchanged. */
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { q as RefreshIcon, st as WarningIcon, y as EllipsisIcon } from "../../icons-Yp99gmMC.js";
|
|
3
3
|
import { buttonVariants } from "../foundations/Button.js";
|
|
4
|
+
import { Menu } from "../foundations/Menu.js";
|
|
4
5
|
import { IconButton } from "../foundations/IconButton.js";
|
|
5
6
|
import { a as formatErrorMessage } from "../../format-CWaZEp5o.js";
|
|
6
|
-
import {
|
|
7
|
+
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
8
|
+
import { getThinkExecutionRunAccessibleName, getThinkExecutionRunId, getThinkExecutionRunStatus, getThinkExecutionRunStatusTone, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
|
|
7
9
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
8
10
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
9
|
-
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
10
11
|
import { ResponsiveSidebarAppBar } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
11
|
-
import { getThinkExecutionRunAccessibleName, getThinkExecutionRunId, getThinkExecutionRunStatus, getThinkExecutionRunStatusTone, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
|
|
12
12
|
import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
|
|
13
13
|
import * as React from "react";
|
|
14
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -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) {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { formatThinkExecutionShortTimestamp } from "./ThinkExecutionRun.js";
|
|
2
|
+
//#region src/components/agents-sdk/ThinkSchedule.ts
|
|
3
|
+
function getThinkScheduleNextRun(schedule) {
|
|
4
|
+
if (!schedule.alarm) return null;
|
|
5
|
+
if (!schedule.enabled) return "Paused";
|
|
6
|
+
return formatThinkExecutionShortTimestamp(schedule.alarm.time * 1e3, "Not scheduled");
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { getThinkScheduleNextRun };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { t as AppTopBar } from "../../AppTopBar-DwzydmXu.js";
|
|
2
|
+
import { t as ThinkSchedule } from "../../ThinkSchedule-CSuDGrZ9.js";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
//#region src/components/agents-sdk/ThinkScheduleActions.d.ts
|
|
5
|
+
export interface ThinkScheduleActionsRootProps<TSchedule extends ThinkSchedule = ThinkSchedule> {
|
|
6
|
+
/** Whole selected schedule, including app-owned extensions and native task/run values. */
|
|
7
|
+
schedule: TSchedule;
|
|
8
|
+
/** Stable non-secret identity of the source backing this schedule. */
|
|
9
|
+
sourceKey: string;
|
|
10
|
+
/** Host mutation that runs the whole selected schedule; its promise controls pending and error feedback. */
|
|
11
|
+
onRun?: (schedule: TSchedule) => void | Promise<void>;
|
|
12
|
+
/** Host mutation for the requested enabled state; the host supplies the updated schedule after success. */
|
|
13
|
+
onEnabledChange?: (schedule: TSchedule, enabled: boolean) => void | Promise<void>;
|
|
14
|
+
/** Host removal invoked after confirmation; rejection keeps the confirmation open with its error. */
|
|
15
|
+
onDelete?: (schedule: TSchedule) => void | Promise<void>;
|
|
16
|
+
/** Caller-composed controls and detail sharing this source/schedule mutation scope; no layout is inserted. */
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
/** Connect an independently mounted detail to its selected schedule action scope. */
|
|
20
|
+
export declare function useThinkScheduleActions(): {
|
|
21
|
+
busy: boolean;
|
|
22
|
+
onEnabledChange: ((enabled: boolean) => void) | undefined;
|
|
23
|
+
};
|
|
24
|
+
/** No layout or routing. Source/schedule changes reset actions without remounting caller navigation. */
|
|
25
|
+
declare function ThinkScheduleActionsRoot<TSchedule extends ThinkSchedule>({ schedule, sourceKey, onRun, onEnabledChange, onDelete, children }: ThinkScheduleActionsRootProps<TSchedule>): React.JSX.Element;
|
|
26
|
+
type ScheduleActionProps = Omit<React.ComponentProps<typeof AppTopBar.Button>, "label"> & {
|
|
27
|
+
label?: string;
|
|
28
|
+
};
|
|
29
|
+
/** Explicit run control; preserves the complete shared button composition contract. */
|
|
30
|
+
declare function ThinkScheduleRun({ label, tooltip, children, ...props }: ScheduleActionProps): React.JSX.Element | null;
|
|
31
|
+
/** Delete confirmation stays open on failure; only its source-scoped action can settle it. */
|
|
32
|
+
declare function ThinkScheduleDelete(props: ScheduleActionProps): React.JSX.Element | null;
|
|
33
|
+
declare function ThinkScheduleError(props: React.ComponentPropsWithRef<"div">): React.JSX.Element | null;
|
|
34
|
+
declare function ThinkScheduleStatus(props: React.ComponentPropsWithRef<"div">): React.JSX.Element;
|
|
35
|
+
export declare const ThinkScheduleActions: {
|
|
36
|
+
Root: typeof ThinkScheduleActionsRoot;
|
|
37
|
+
Run: typeof ThinkScheduleRun;
|
|
38
|
+
Delete: typeof ThinkScheduleDelete;
|
|
39
|
+
Error: typeof ThinkScheduleError;
|
|
40
|
+
Status: typeof ThinkScheduleStatus;
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|