@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,32 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { U as PlayIcon, Z as SpinnerIcon, it as TrashIcon } from "../../icons-Yp99gmMC.js";
|
|
2
2
|
import { Button } from "../foundations/Button.js";
|
|
3
3
|
import { a as formatErrorMessage } from "../../format-CWaZEp5o.js";
|
|
4
4
|
import { n as mergeRefs } from "../../merge-refs-DAh6reu8.js";
|
|
5
|
+
import { n as executionErrorSummary } from "../../execution-result-DAuW4VWv.js";
|
|
5
6
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
6
7
|
import { AlertDialog } from "../foundations/AlertDialog.js";
|
|
7
|
-
import { t as executionErrorSummary } from "../../execution-result-DWVmm-bL.js";
|
|
8
8
|
import * as React from "react";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
11
|
-
//#region src/components/agents-sdk/
|
|
12
|
-
const
|
|
13
|
-
/** Selected-
|
|
14
|
-
function
|
|
15
|
-
const value = React.useContext(
|
|
16
|
-
if (!value) throw new Error("
|
|
11
|
+
//#region src/components/agents-sdk/ThinkScheduleActions.tsx
|
|
12
|
+
const ScheduleActionsContext = React.createContext(null);
|
|
13
|
+
/** Selected-schedule mutation state for explicitly composed detail and controls. */
|
|
14
|
+
function useScheduleActions() {
|
|
15
|
+
const value = React.useContext(ScheduleActionsContext);
|
|
16
|
+
if (!value) throw new Error("Schedule actions require ThinkScheduleActions.Root.");
|
|
17
17
|
return value;
|
|
18
18
|
}
|
|
19
|
-
/** Connect an independently mounted detail to its selected
|
|
20
|
-
function
|
|
21
|
-
const { busy, onEnabledChange } =
|
|
19
|
+
/** Connect an independently mounted detail to its selected schedule action scope. */
|
|
20
|
+
function useThinkScheduleActions() {
|
|
21
|
+
const { busy, onEnabledChange } = useScheduleActions();
|
|
22
22
|
return {
|
|
23
23
|
busy,
|
|
24
24
|
onEnabledChange
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
/** No layout or routing. Source/
|
|
28
|
-
function
|
|
29
|
-
const identity = JSON.stringify([sourceKey,
|
|
27
|
+
/** No layout or routing. Source/schedule changes reset actions without remounting caller navigation. */
|
|
28
|
+
function ThinkScheduleActionsRoot({ schedule, sourceKey, onRun, onEnabledChange, onDelete, children }) {
|
|
29
|
+
const identity = JSON.stringify([sourceKey, schedule.id]);
|
|
30
30
|
const initial = () => ({
|
|
31
31
|
scope: { identity },
|
|
32
32
|
busy: false,
|
|
@@ -72,32 +72,32 @@ function ThinkRoutineActionsRoot({ routine, sourceKey, onRun, onEnabledChange, o
|
|
|
72
72
|
};
|
|
73
73
|
return {
|
|
74
74
|
scope: state.scope,
|
|
75
|
-
name:
|
|
75
|
+
name: schedule.name,
|
|
76
76
|
busy: state.busy,
|
|
77
77
|
error: state.action === "delete" ? null : state.error,
|
|
78
78
|
deleteError: state.action === "delete" ? state.error : null,
|
|
79
79
|
announcement: state.announcement,
|
|
80
|
-
run: onRun ? () => perform("run", () => onRun(
|
|
81
|
-
remove: onDelete ? () => perform("delete", () => onDelete(
|
|
80
|
+
run: onRun ? () => perform("run", () => onRun(schedule), `Started ${schedule.name}.`) : void 0,
|
|
81
|
+
remove: onDelete ? () => perform("delete", () => onDelete(schedule), `Deleted ${schedule.name}.`) : void 0,
|
|
82
82
|
onEnabledChange: onEnabledChange ? (enabled) => {
|
|
83
|
-
perform("enable", () => onEnabledChange(
|
|
83
|
+
perform("enable", () => onEnabledChange(schedule, enabled), `${schedule.name} ${enabled ? "activated" : "paused"}.`);
|
|
84
84
|
} : void 0
|
|
85
85
|
};
|
|
86
86
|
}, [
|
|
87
87
|
state,
|
|
88
|
-
|
|
88
|
+
schedule,
|
|
89
89
|
onRun,
|
|
90
90
|
onDelete,
|
|
91
91
|
onEnabledChange
|
|
92
92
|
]);
|
|
93
|
-
return /* @__PURE__ */ jsx(
|
|
93
|
+
return /* @__PURE__ */ jsx(ScheduleActionsContext.Provider, {
|
|
94
94
|
value,
|
|
95
95
|
children
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
/** Explicit run control; preserves the complete shared button composition contract. */
|
|
99
|
-
function
|
|
100
|
-
const { busy, run } =
|
|
99
|
+
function ThinkScheduleRun({ label = "Run now", tooltip = label, children, ...props }) {
|
|
100
|
+
const { busy, run } = useScheduleActions();
|
|
101
101
|
if (!run) return null;
|
|
102
102
|
return /* @__PURE__ */ jsx(AppTopBar.Button, {
|
|
103
103
|
...mergeProps({
|
|
@@ -113,8 +113,8 @@ function ThinkRoutineRun({ label = "Run now", tooltip = label, children, ...prop
|
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
/** Delete confirmation stays open on failure; only its source-scoped action can settle it. */
|
|
116
|
-
function
|
|
117
|
-
const { scope, name, busy, deleteError: error, remove } =
|
|
116
|
+
function ThinkScheduleDelete(props) {
|
|
117
|
+
const { scope, name, busy, deleteError: error, remove } = useScheduleActions();
|
|
118
118
|
const [dialog, setDialog] = React.useState({
|
|
119
119
|
scope,
|
|
120
120
|
open: false
|
|
@@ -174,16 +174,16 @@ function ThinkRoutineDelete(props) {
|
|
|
174
174
|
}) })] })
|
|
175
175
|
})] });
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
const { error } =
|
|
177
|
+
function ThinkScheduleError(props) {
|
|
178
|
+
const { error } = useScheduleActions();
|
|
179
179
|
return error ? /* @__PURE__ */ jsx("div", {
|
|
180
180
|
role: "alert",
|
|
181
181
|
...props,
|
|
182
182
|
children: error
|
|
183
183
|
}) : null;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
const { announcement } =
|
|
185
|
+
function ThinkScheduleStatus(props) {
|
|
186
|
+
const { announcement } = useScheduleActions();
|
|
187
187
|
return /* @__PURE__ */ jsx("div", {
|
|
188
188
|
role: "status",
|
|
189
189
|
"aria-atomic": "true",
|
|
@@ -192,12 +192,12 @@ function ThinkRoutineStatus(props) {
|
|
|
192
192
|
children: announcement
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
const
|
|
196
|
-
Root:
|
|
197
|
-
Run:
|
|
198
|
-
Delete:
|
|
199
|
-
Error:
|
|
200
|
-
Status:
|
|
195
|
+
const ThinkScheduleActions = {
|
|
196
|
+
Root: ThinkScheduleActionsRoot,
|
|
197
|
+
Run: ThinkScheduleRun,
|
|
198
|
+
Delete: ThinkScheduleDelete,
|
|
199
|
+
Error: ThinkScheduleError,
|
|
200
|
+
Status: ThinkScheduleStatus
|
|
201
201
|
};
|
|
202
202
|
//#endregion
|
|
203
|
-
export {
|
|
203
|
+
export { ThinkScheduleActions, useThinkScheduleActions };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { t as ThinkSchedule } from "../../ThinkSchedule-CSuDGrZ9.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
//#region src/components/agents-sdk/ThinkScheduleBrowser.d.ts
|
|
4
|
+
export interface ThinkScheduleBrowserProps<TSchedule extends ThinkSchedule = ThinkSchedule> extends Omit<React.HTMLAttributes<HTMLElement>, "onSelect"> {
|
|
5
|
+
schedules: readonly TSchedule[];
|
|
6
|
+
/** Schedule selected by the current application route. */
|
|
7
|
+
selectedScheduleId?: string | null;
|
|
8
|
+
/** Whether owner names are displayed and included in search. Defaults to true. */
|
|
9
|
+
showOwner?: boolean;
|
|
10
|
+
/** App-authored TanStack Router Link for each durable schedule destination. */
|
|
11
|
+
renderScheduleLink: (schedule: TSchedule) => React.ReactElement;
|
|
12
|
+
/** App-authored TanStack Router Link to the new-schedule route. */
|
|
13
|
+
newScheduleLink?: React.ReactElement;
|
|
14
|
+
/** UI-only response to ordinary same-tab activation, including keyboard clicks.
|
|
15
|
+
* Modified, non-primary, download, and other-target clicks leave this UI unchanged.
|
|
16
|
+
* Receives the original React anchor event; routing remains with the rendered link.
|
|
17
|
+
*/
|
|
18
|
+
onScheduleLinkClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
19
|
+
}
|
|
20
|
+
/** Searchable, filterable navigation for an app-owned collection of Think schedules. */
|
|
21
|
+
export declare function ThinkScheduleBrowser<TSchedule extends ThinkSchedule = ThinkSchedule>({ className, schedules, selectedScheduleId, showOwner, renderScheduleLink, newScheduleLink, onScheduleLinkClick, ref, ...props }: ThinkScheduleBrowserProps<TSchedule> & {
|
|
22
|
+
ref?: React.Ref<HTMLElement>;
|
|
23
|
+
}): React.JSX.Element;
|
|
24
|
+
//#endregion
|
|
@@ -1,33 +1,38 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { W as PlusIcon } from "../../icons-Yp99gmMC.js";
|
|
3
3
|
import { buttonVariants } from "../foundations/Button.js";
|
|
4
4
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
5
5
|
import { t as capitalize } from "../../format-CWaZEp5o.js";
|
|
6
|
-
import { EmptyState } from "../foundations/EmptyState.js";
|
|
7
6
|
import { n as isPlainPrimaryLinkActivation, t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
7
|
+
import { getThinkScheduleNextRun } from "./ThinkSchedule.js";
|
|
8
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
8
9
|
import { SearchField } from "../foundations/SearchField.js";
|
|
9
10
|
import { ToggleGroup } from "../foundations/ToggleGroup.js";
|
|
10
|
-
import { getThinkRoutineNextRun } from "./ThinkRoutine.js";
|
|
11
11
|
import * as React from "react";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
//#region src/components/agents-sdk/
|
|
14
|
-
|
|
13
|
+
//#region src/components/agents-sdk/ThinkScheduleBrowser.tsx
|
|
14
|
+
const SCHEDULE_FILTERS = [
|
|
15
|
+
"all",
|
|
16
|
+
"active",
|
|
17
|
+
"paused"
|
|
18
|
+
];
|
|
19
|
+
function filterSchedules(schedules, filter, query, showOwner) {
|
|
15
20
|
const normalizedQuery = query.trim().toLocaleLowerCase();
|
|
16
|
-
return
|
|
17
|
-
if (filter === "active" && !
|
|
18
|
-
if (filter === "paused" &&
|
|
21
|
+
return schedules.filter((schedule) => {
|
|
22
|
+
if (filter === "active" && !schedule.enabled) return false;
|
|
23
|
+
if (filter === "paused" && schedule.enabled) return false;
|
|
19
24
|
if (!normalizedQuery) return true;
|
|
20
|
-
return `${
|
|
25
|
+
return `${schedule.name} ${schedule.description ?? ""}${showOwner ? ` ${schedule.owner.name}` : ""}`.toLocaleLowerCase().includes(normalizedQuery);
|
|
21
26
|
});
|
|
22
27
|
}
|
|
23
|
-
/** Searchable, filterable navigation for an app-owned collection of Think
|
|
24
|
-
function
|
|
28
|
+
/** Searchable, filterable navigation for an app-owned collection of Think schedules. */
|
|
29
|
+
function ThinkScheduleBrowser({ className, schedules, selectedScheduleId, showOwner = true, renderScheduleLink, newScheduleLink, onScheduleLinkClick, ref, ...props }) {
|
|
25
30
|
const [filter, setFilter] = React.useState("all");
|
|
26
31
|
const [query, setQuery] = React.useState("");
|
|
27
|
-
const
|
|
32
|
+
const visibleSchedules = filterSchedules(schedules, filter, query, showOwner);
|
|
28
33
|
return /* @__PURE__ */ jsxs("nav", {
|
|
29
34
|
ref,
|
|
30
|
-
className: cx("think-
|
|
35
|
+
className: cx("think-schedule__browser", className),
|
|
31
36
|
...props,
|
|
32
37
|
children: [
|
|
33
38
|
/* @__PURE__ */ jsx("h2", {
|
|
@@ -35,10 +40,10 @@ function ThinkRoutineBrowser({ className, routines, selectedRoutineId, showOwner
|
|
|
35
40
|
children: "Schedules"
|
|
36
41
|
}),
|
|
37
42
|
/* @__PURE__ */ jsxs("div", {
|
|
38
|
-
className: "think-
|
|
43
|
+
className: "think-schedule__browser-toolbar",
|
|
39
44
|
children: [/* @__PURE__ */ jsx(ToggleGroup.Root, {
|
|
40
45
|
segmented: true,
|
|
41
|
-
className: "think-
|
|
46
|
+
className: "think-schedule__filters",
|
|
42
47
|
size: "sm",
|
|
43
48
|
"aria-label": "Filter schedules",
|
|
44
49
|
value: [filter],
|
|
@@ -47,18 +52,14 @@ function ThinkRoutineBrowser({ className, routines, selectedRoutineId, showOwner
|
|
|
47
52
|
if (!nextFilter) return;
|
|
48
53
|
setFilter(nextFilter);
|
|
49
54
|
},
|
|
50
|
-
children:
|
|
51
|
-
"all",
|
|
52
|
-
"active",
|
|
53
|
-
"paused"
|
|
54
|
-
].map((value) => /* @__PURE__ */ jsx(ToggleGroup.Item, {
|
|
55
|
+
children: SCHEDULE_FILTERS.map((value) => /* @__PURE__ */ jsx(ToggleGroup.Item, {
|
|
55
56
|
type: "button",
|
|
56
57
|
value,
|
|
57
58
|
children: capitalize(value)
|
|
58
59
|
}, value))
|
|
59
|
-
}),
|
|
60
|
+
}), newScheduleLink ? /* @__PURE__ */ jsxs(Tooltip.Root, { children: [/* @__PURE__ */ jsx(Tooltip.Trigger, {
|
|
60
61
|
render: /* @__PURE__ */ jsx(NavigationLink, {
|
|
61
|
-
render:
|
|
62
|
+
render: newScheduleLink,
|
|
62
63
|
className: buttonVariants({
|
|
63
64
|
variant: "ghost",
|
|
64
65
|
color: "neutral",
|
|
@@ -75,8 +76,8 @@ function ThinkRoutineBrowser({ className, routines, selectedRoutineId, showOwner
|
|
|
75
76
|
}) })] }) : null]
|
|
76
77
|
}),
|
|
77
78
|
/* @__PURE__ */ jsxs(SearchField.Root, {
|
|
78
|
-
className: "think-
|
|
79
|
-
name: "
|
|
79
|
+
className: "think-schedule__search",
|
|
80
|
+
name: "schedule-search",
|
|
80
81
|
children: [/* @__PURE__ */ jsx(SearchField.Label, {
|
|
81
82
|
className: "sigvelo-visually-hidden",
|
|
82
83
|
children: "Search schedules"
|
|
@@ -91,56 +92,57 @@ function ThinkRoutineBrowser({ className, routines, selectedRoutineId, showOwner
|
|
|
91
92
|
role: "status",
|
|
92
93
|
"aria-atomic": "true",
|
|
93
94
|
children: [
|
|
94
|
-
|
|
95
|
+
visibleSchedules.length,
|
|
95
96
|
" ",
|
|
96
|
-
|
|
97
|
+
visibleSchedules.length === 1 ? "schedule" : "schedules",
|
|
97
98
|
" shown."
|
|
98
99
|
]
|
|
99
100
|
}),
|
|
100
|
-
|
|
101
|
-
className: "think-
|
|
101
|
+
visibleSchedules.length ? /* @__PURE__ */ jsx("ul", {
|
|
102
|
+
className: "think-schedule__schedule-list",
|
|
102
103
|
role: "list",
|
|
103
|
-
children:
|
|
104
|
-
const selected =
|
|
104
|
+
children: visibleSchedules.map((schedule) => {
|
|
105
|
+
const selected = schedule.id === selectedScheduleId;
|
|
106
|
+
const nextRun = schedule.enabled ? getThinkScheduleNextRun(schedule) : null;
|
|
105
107
|
return /* @__PURE__ */ jsx("li", {
|
|
106
108
|
"data-selected": selected || void 0,
|
|
107
109
|
children: /* @__PURE__ */ jsxs(NavigationLink, {
|
|
108
|
-
render:
|
|
110
|
+
render: renderScheduleLink(schedule),
|
|
109
111
|
className: buttonVariants({
|
|
110
112
|
variant: "ghost",
|
|
111
113
|
color: "neutral",
|
|
112
114
|
size: "sm",
|
|
113
|
-
className: "think-
|
|
115
|
+
className: "think-schedule__schedule-link"
|
|
114
116
|
}),
|
|
115
117
|
"aria-current": selected ? "page" : void 0,
|
|
116
118
|
onClick: (event) => {
|
|
117
|
-
if (isPlainPrimaryLinkActivation(event))
|
|
119
|
+
if (isPlainPrimaryLinkActivation(event)) onScheduleLinkClick?.(event);
|
|
118
120
|
},
|
|
119
121
|
children: [
|
|
120
122
|
/* @__PURE__ */ jsx("span", {
|
|
121
|
-
className: "think-
|
|
122
|
-
"data-enabled":
|
|
123
|
+
className: "think-schedule__schedule-status",
|
|
124
|
+
"data-enabled": schedule.enabled || void 0,
|
|
123
125
|
"aria-hidden": "true"
|
|
124
126
|
}),
|
|
125
127
|
/* @__PURE__ */ jsx("span", {
|
|
126
128
|
className: "sigvelo-visually-hidden",
|
|
127
|
-
children:
|
|
129
|
+
children: schedule.enabled ? "Active" : "Paused"
|
|
128
130
|
}),
|
|
129
131
|
/* @__PURE__ */ jsxs("span", {
|
|
130
|
-
className: "think-
|
|
132
|
+
className: "think-schedule__schedule-copy",
|
|
131
133
|
children: [
|
|
132
|
-
/* @__PURE__ */ jsx("strong", { children:
|
|
133
|
-
/* @__PURE__ */ jsx("span", { children:
|
|
134
|
-
showOwner ||
|
|
135
|
-
showOwner ?
|
|
136
|
-
showOwner &&
|
|
137
|
-
|
|
134
|
+
/* @__PURE__ */ jsx("strong", { children: schedule.name }),
|
|
135
|
+
/* @__PURE__ */ jsx("span", { children: schedule.task.schedule }),
|
|
136
|
+
showOwner || nextRun ? /* @__PURE__ */ jsxs("small", { children: [
|
|
137
|
+
showOwner ? schedule.owner.name : null,
|
|
138
|
+
showOwner && nextRun ? " · " : null,
|
|
139
|
+
nextRun ? /* @__PURE__ */ jsxs(Fragment, { children: ["Next ", nextRun] }) : null
|
|
138
140
|
] }) : null
|
|
139
141
|
]
|
|
140
142
|
})
|
|
141
143
|
]
|
|
142
144
|
})
|
|
143
|
-
},
|
|
145
|
+
}, schedule.id);
|
|
144
146
|
})
|
|
145
147
|
}) : /* @__PURE__ */ jsx(EmptyState, {
|
|
146
148
|
title: "No matching schedules",
|
|
@@ -150,4 +152,4 @@ function ThinkRoutineBrowser({ className, routines, selectedRoutineId, showOwner
|
|
|
150
152
|
});
|
|
151
153
|
}
|
|
152
154
|
//#endregion
|
|
153
|
-
export {
|
|
155
|
+
export { ThinkScheduleBrowser };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as WorkspaceAutomation } from "../../WorkspaceAutomation-CMvICi-p.js";
|
|
2
|
+
import { r as ThinkScheduleRunOf, t as ThinkSchedule } from "../../ThinkSchedule-CSuDGrZ9.js";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
//#region src/components/agents-sdk/ThinkScheduleDetail.d.ts
|
|
5
|
+
export interface ThinkScheduleDetailProps<TSchedule extends ThinkSchedule = ThinkSchedule> extends React.HTMLAttributes<HTMLElement> {
|
|
6
|
+
schedule: TSchedule;
|
|
7
|
+
/** Saved automation metadata, including friendly input labels. */
|
|
8
|
+
automation?: WorkspaceAutomation;
|
|
9
|
+
busy?: boolean;
|
|
10
|
+
showOwner?: boolean;
|
|
11
|
+
onEnabledChange?: (enabled: boolean) => void;
|
|
12
|
+
/** App-authored TanStack Router Link for each recent run. */
|
|
13
|
+
renderRunLink?: (run: ThinkScheduleRunOf<TSchedule>) => React.ReactElement;
|
|
14
|
+
}
|
|
15
|
+
/** Readable definition, schedule settings, and recent runs for one schedule. */
|
|
16
|
+
export declare function ThinkScheduleDetail<TSchedule extends ThinkSchedule = ThinkSchedule>({ busy, className, schedule, automation, showOwner, onEnabledChange, renderRunLink, ref, ...props }: ThinkScheduleDetailProps<TSchedule> & {
|
|
17
|
+
ref?: React.Ref<HTMLElement>;
|
|
18
|
+
}): React.JSX.Element;
|
|
19
|
+
//#endregion
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
+
import { buttonVariants } from "../foundations/Button.js";
|
|
3
|
+
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
4
|
+
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
5
|
+
import { getThinkExecutionRunAccessibleName, getThinkExecutionRunId, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
|
|
6
|
+
import { getThinkScheduleNextRun } from "./ThinkSchedule.js";
|
|
7
|
+
import { n as executionResultLabel, t as ExecutionResult } from "../../ExecutionResult-DmC21cll.js";
|
|
8
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
9
|
+
import { Switch } from "../foundations/Switch.js";
|
|
10
|
+
import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
|
|
11
|
+
import * as React from "react";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
//#region src/components/agents-sdk/ThinkScheduleDetail.tsx
|
|
14
|
+
function ScheduleRuns({ runs, renderRunLink }) {
|
|
15
|
+
const titleId = React.useId();
|
|
16
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
17
|
+
className: "think-schedule__runs",
|
|
18
|
+
"aria-labelledby": titleId,
|
|
19
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
20
|
+
className: "think-schedule__section-heading",
|
|
21
|
+
children: /* @__PURE__ */ jsx("h2", {
|
|
22
|
+
id: titleId,
|
|
23
|
+
children: "Recent runs"
|
|
24
|
+
})
|
|
25
|
+
}), runs.length ? /* @__PURE__ */ jsx("ol", {
|
|
26
|
+
className: "think-schedule__run-list",
|
|
27
|
+
children: runs.map((run) => {
|
|
28
|
+
const kind = isThinkSubmissionRun(run) ? "submission" : "workflow";
|
|
29
|
+
const content = /* @__PURE__ */ jsx(ThinkExecutionRunSummary, { run });
|
|
30
|
+
const runClassName = buttonVariants({
|
|
31
|
+
variant: "ghost",
|
|
32
|
+
color: "neutral",
|
|
33
|
+
size: "sm",
|
|
34
|
+
className: "think-schedule__run"
|
|
35
|
+
});
|
|
36
|
+
return /* @__PURE__ */ jsx("li", { children: renderRunLink ? /* @__PURE__ */ jsx(NavigationLink, {
|
|
37
|
+
render: renderRunLink(run),
|
|
38
|
+
className: runClassName,
|
|
39
|
+
"aria-label": getThinkExecutionRunAccessibleName(run),
|
|
40
|
+
children: content
|
|
41
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
42
|
+
className: "think-schedule__run",
|
|
43
|
+
children: content
|
|
44
|
+
}) }, `${kind}:${getThinkExecutionRunId(run)}`);
|
|
45
|
+
})
|
|
46
|
+
}) : /* @__PURE__ */ jsx(EmptyState, {
|
|
47
|
+
className: "think-schedule__empty-runs",
|
|
48
|
+
description: "Run this schedule now or wait for its next occurrence."
|
|
49
|
+
})]
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/** Readable definition, schedule settings, and recent runs for one schedule. */
|
|
53
|
+
function ThinkScheduleDetail({ busy = false, className, schedule, automation, showOwner = true, onEnabledChange, renderRunLink, ref, ...props }) {
|
|
54
|
+
const titleId = React.useId();
|
|
55
|
+
const definitionId = React.useId();
|
|
56
|
+
const settingsId = React.useId();
|
|
57
|
+
const enabledLabelId = React.useId();
|
|
58
|
+
return /* @__PURE__ */ jsxs("article", {
|
|
59
|
+
ref,
|
|
60
|
+
className: cx("think-schedule__detail", className),
|
|
61
|
+
"aria-labelledby": titleId,
|
|
62
|
+
...props,
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ jsx("header", {
|
|
65
|
+
className: "think-schedule__detail-header",
|
|
66
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
67
|
+
className: "think-schedule__detail-heading",
|
|
68
|
+
children: [/* @__PURE__ */ jsx("h1", {
|
|
69
|
+
id: titleId,
|
|
70
|
+
children: schedule.name
|
|
71
|
+
}), schedule.description ? /* @__PURE__ */ jsx("p", { children: schedule.description }) : null]
|
|
72
|
+
})
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ jsxs("div", {
|
|
75
|
+
className: "think-schedule__detail-grid",
|
|
76
|
+
children: [/* @__PURE__ */ jsxs("section", {
|
|
77
|
+
className: "think-schedule__definition",
|
|
78
|
+
"aria-labelledby": definitionId,
|
|
79
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
80
|
+
className: "think-schedule__section-heading",
|
|
81
|
+
children: /* @__PURE__ */ jsx("h2", {
|
|
82
|
+
id: definitionId,
|
|
83
|
+
children: "automation" in schedule.task ? automation?.name ?? "Automation" : "Instructions"
|
|
84
|
+
})
|
|
85
|
+
}), "automation" in schedule.task ? /* @__PURE__ */ jsx(DescriptionList.Root, {
|
|
86
|
+
align: "start",
|
|
87
|
+
variant: "divided",
|
|
88
|
+
children: Object.entries(schedule.task.automation.args ?? {}).map(([name, value]) => /* @__PURE__ */ jsxs(DescriptionList.Item, { children: [/* @__PURE__ */ jsx(DescriptionList.Term, { children: automation?.parameters.find((parameter) => parameter.name === name)?.label ?? executionResultLabel(name) }), /* @__PURE__ */ jsx(DescriptionList.Details, { children: /* @__PURE__ */ jsx(ExecutionResult, {
|
|
89
|
+
result: value,
|
|
90
|
+
showSummary: false
|
|
91
|
+
}) })] }, name))
|
|
92
|
+
}) : /* @__PURE__ */ jsx("p", {
|
|
93
|
+
className: "think-schedule__instructions",
|
|
94
|
+
children: typeof schedule.task.prompt === "string" ? schedule.task.prompt : "Runs an app-defined scheduled handler."
|
|
95
|
+
})]
|
|
96
|
+
}), /* @__PURE__ */ jsxs("aside", {
|
|
97
|
+
className: "think-schedule__settings",
|
|
98
|
+
"aria-labelledby": settingsId,
|
|
99
|
+
children: [
|
|
100
|
+
/* @__PURE__ */ jsx("div", {
|
|
101
|
+
className: "think-schedule__section-heading",
|
|
102
|
+
children: /* @__PURE__ */ jsx("h2", {
|
|
103
|
+
id: settingsId,
|
|
104
|
+
children: "Schedule"
|
|
105
|
+
})
|
|
106
|
+
}),
|
|
107
|
+
/* @__PURE__ */ jsxs("dl", {
|
|
108
|
+
className: "think-schedule__facts",
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Repeats" }), /* @__PURE__ */ jsx("dd", { children: schedule.task.schedule })] }),
|
|
111
|
+
schedule.alarm ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Next run" }), /* @__PURE__ */ jsx("dd", { children: getThinkScheduleNextRun(schedule) })] }) : null,
|
|
112
|
+
showOwner ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Agent" }), /* @__PURE__ */ jsx("dd", { children: schedule.owner.name })] }) : null
|
|
113
|
+
]
|
|
114
|
+
}),
|
|
115
|
+
/* @__PURE__ */ jsxs("div", {
|
|
116
|
+
className: "think-schedule__status-control",
|
|
117
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
118
|
+
id: enabledLabelId,
|
|
119
|
+
children: /* @__PURE__ */ jsx("strong", { children: "Enabled" })
|
|
120
|
+
}), onEnabledChange ? /* @__PURE__ */ jsx(Switch.Root, {
|
|
121
|
+
"aria-labelledby": enabledLabelId,
|
|
122
|
+
checked: schedule.enabled,
|
|
123
|
+
disabled: busy,
|
|
124
|
+
onCheckedChange: onEnabledChange,
|
|
125
|
+
children: /* @__PURE__ */ jsx(Switch.Thumb, {})
|
|
126
|
+
}) : /* @__PURE__ */ jsx("span", { children: schedule.enabled ? "On" : "Off" })]
|
|
127
|
+
})
|
|
128
|
+
]
|
|
129
|
+
})]
|
|
130
|
+
}),
|
|
131
|
+
/* @__PURE__ */ jsx(ScheduleRuns, {
|
|
132
|
+
runs: schedule.runs,
|
|
133
|
+
renderRunLink
|
|
134
|
+
})
|
|
135
|
+
]
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
//#endregion
|
|
139
|
+
export { ThinkScheduleDetail };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { i as WorkspaceAutomationInvocation, t as WorkspaceAutomation } from "../../WorkspaceAutomation-CMvICi-p.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { ThinkScheduledTaskSchedule } from "@cloudflare/think";
|
|
4
|
+
//#region src/components/agents-sdk/ThinkScheduleForm.d.ts
|
|
5
|
+
/** Parsed schedule fields required to prefill the editor. */
|
|
6
|
+
export type ThinkScheduleFormTiming = {
|
|
7
|
+
kind: "interval";
|
|
8
|
+
intervalMs: number;
|
|
9
|
+
} | {
|
|
10
|
+
kind: "wall-clock";
|
|
11
|
+
timezone: string;
|
|
12
|
+
hour: number;
|
|
13
|
+
minute: number;
|
|
14
|
+
days: "daily" | "weekday" | readonly number[];
|
|
15
|
+
};
|
|
16
|
+
/** Existing schedule fields required by the edit form. */
|
|
17
|
+
export interface ThinkScheduleFormSchedule {
|
|
18
|
+
name: string;
|
|
19
|
+
task: {
|
|
20
|
+
prompt: string;
|
|
21
|
+
} | {
|
|
22
|
+
automation: WorkspaceAutomationInvocation;
|
|
23
|
+
};
|
|
24
|
+
parsedSchedule: ThinkScheduleFormTiming;
|
|
25
|
+
}
|
|
26
|
+
/** Schedule draft emitted by the schedule form. */
|
|
27
|
+
export type ThinkScheduleFormValue = {
|
|
28
|
+
name: string;
|
|
29
|
+
schedule: ThinkScheduledTaskSchedule;
|
|
30
|
+
} & ({
|
|
31
|
+
prompt: string;
|
|
32
|
+
} | {
|
|
33
|
+
automation: WorkspaceAutomationInvocation;
|
|
34
|
+
});
|
|
35
|
+
export interface ThinkScheduleFormProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onSubmit"> {
|
|
36
|
+
/** Existing schedule projected through Think's schedule parser. Omit when creating. */
|
|
37
|
+
schedule?: ThinkScheduleFormSchedule;
|
|
38
|
+
/** Selects an automation when creating a schedule. Existing schedules take precedence. */
|
|
39
|
+
initialAutomation?: WorkspaceAutomationInvocation;
|
|
40
|
+
/** Saved automations with the same input metadata used by the execution board. */
|
|
41
|
+
automations?: readonly WorkspaceAutomation[];
|
|
42
|
+
/** Keeps the automation chooser unavailable while its catalog loads. */
|
|
43
|
+
automationsLoading?: boolean;
|
|
44
|
+
/** Readable catalog loading failure; existing schedule values remain available. */
|
|
45
|
+
automationsError?: string;
|
|
46
|
+
/** App-authored link back to the schedule or automation that opened this form. */
|
|
47
|
+
cancelLink?: React.ReactElement;
|
|
48
|
+
/** Accessible name for the back link, matching its actual destination. */
|
|
49
|
+
cancelLabel?: string;
|
|
50
|
+
/** Receives the validated schedule fields when the user creates or updates the schedule. */
|
|
51
|
+
onSubmit: (value: ThinkScheduleFormValue) => void | Promise<void>;
|
|
52
|
+
}
|
|
53
|
+
/** Create/edit surface for scheduled instructions or an automation. */
|
|
54
|
+
export declare function ThinkScheduleForm({ cancelLink, cancelLabel, className, schedule, initialAutomation, automations, automationsLoading, automationsError, onSubmit, ref, ...props }: ThinkScheduleFormProps & {
|
|
55
|
+
/** Ref forwarded to the component's rendered root element. */
|
|
56
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
57
|
+
}): React.JSX.Element;
|
|
58
|
+
//#endregion
|