@mcp-b/react-components 0.59.2 → 0.61.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-Bs_Z03eC.js → CodeBlock-CNvOYR0Q.js} +1 -1
- package/dist/{EmployeeChrome-QSki0QT4.d.ts → EmployeeChrome-D3IgFX22.d.ts} +12 -34
- package/dist/{ExecutionBoard-DHfMvKlB.d.ts → ExecutionBoard-DvPGdn4F.d.ts} +2 -2
- package/dist/{ExecutionResult-BSZsUbrL.js → ExecutionResult-DmC21cll.js} +4 -4
- package/dist/{FileTree-DyLBn7O_.js → FileTree-H31EVRv_.js} +1 -1
- package/dist/{IconButton-43ggXEuf.d.ts → IconButton-FWsa9562.d.ts} +1 -1
- package/dist/{ManagerOffice-BxBKEb_j.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-CKQ-mKYt.js → SetupChecklist-Wo4akaSG.js} +1 -1
- 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-5S834QKW.d.ts +34 -0
- package/dist/{Workspace-iCkXvQRJ.d.ts → Workspace-42LA9Zrb.d.ts} +1 -1
- package/dist/WorkspaceAutomation-B2Pdz_SU.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-CsWwQA1U.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-CReSIBpd.d.ts → codex-model-catalog-CFEGgUAj.d.ts} +68 -20
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/components/agents-sdk/EmployeeChat.d.ts +9 -2
- package/dist/components/agents-sdk/EmployeeChat.js +13 -9
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +2 -2
- package/dist/components/agents-sdk/EmployeeChrome.js +42 -30
- 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 +3 -3
- package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
- package/dist/components/agents-sdk/ExecutionBoard.js +6 -32
- 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 +3 -3
- 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/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 +143 -188
- package/dist/components/agents-sdk/SubagentRunSelector.d.ts +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 +12 -27
- 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 +3 -3
- 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} +46 -44
- 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/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 +2 -2
- 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 +2 -2
- 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 +13 -5
- 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 +4 -4
- package/dist/components/ai-sdk/Queue.d.ts +1 -1
- package/dist/components/ai-sdk/Queue.js +2 -2
- 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/ai-sdk/ToolInvocation.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 +1 -1
- package/dist/components/extension/ConversationTabPicker.js +1 -1
- 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 +2 -2
- 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 +2 -4
- package/dist/components/foundations/ToggleGroup.js +4 -16
- package/dist/components/foundations/icons.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- 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 +3 -3
- 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 +2 -2
- package/dist/components/general-purpose/PricingUsageCalculator.js +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +2 -2
- package/dist/components/general-purpose/SettingsFormDialog.js +1 -1
- 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 +3 -3
- 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-M4sAp9xS.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-DvlrWt54.js → icons-Yp99gmMC.js} +8 -2
- 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/codex-model-catalog.js +51 -19
- 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-DVn0d-fN.js → workspace-assets-Dq5toMQc.js} +34 -38
- package/dist/workspace-concept-panel-CxZfmFkP.js +66 -0
- package/dist/workspace-concept-panel-CxuqDi4m.d.ts +21 -0
- package/dist/{workspace-delete-CMY1kPkq.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 +28 -28
- 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,2 +1,2 @@
|
|
|
1
|
-
import { a as CodeBlockCopyButton, c as CodeBlockLanguageSelector, d as CodeBlockLanguageSelectorTrigger, f as CodeBlockLanguageSelectorValue, i as CodeBlockContent, l as CodeBlockLanguageSelectorContent, m as CODE_BLOCK_LANGUAGES, n as CodeBlockActions, o as CodeBlockFilename, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock, u as CodeBlockLanguageSelectorItem } from "../../CodeBlock-
|
|
1
|
+
import { a as CodeBlockCopyButton, c as CodeBlockLanguageSelector, d as CodeBlockLanguageSelectorTrigger, f as CodeBlockLanguageSelectorValue, i as CodeBlockContent, l as CodeBlockLanguageSelectorContent, m as CODE_BLOCK_LANGUAGES, n as CodeBlockActions, o as CodeBlockFilename, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock, u as CodeBlockLanguageSelectorItem } from "../../CodeBlock-CNvOYR0Q.js";
|
|
2
2
|
export { CODE_BLOCK_LANGUAGES, CodeBlock, CodeBlockActions, CodeBlockContainer, CodeBlockContent, CodeBlockCopyButton, CodeBlockFilename, CodeBlockHeader, CodeBlockLanguageSelector, CodeBlockLanguageSelectorContent, CodeBlockLanguageSelectorItem, CodeBlockLanguageSelectorTrigger, CodeBlockLanguageSelectorValue, CodeBlockTitle };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { brandHexFromIconSrc, parseComposerHref, sampleImageAccent } from "../../utils/composer-link.js";
|
|
2
2
|
import { findCatalogMcpServerCard, getMcpServerIconSrc } from "../../utils/mcp-server-catalog.js";
|
|
3
3
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
4
|
-
import { c as BoxIcon } from "../../icons-
|
|
4
|
+
import { c as BoxIcon } from "../../icons-Yp99gmMC.js";
|
|
5
5
|
import { n as mergeRefs } from "../../merge-refs-DAh6reu8.js";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,35 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as ConceptCardProps } from "../../workspace-entity-card-2TC3RPKh.js";
|
|
2
|
+
import { AnyToolUIPart } from "./ToolPart.js";
|
|
3
|
+
import { t as WorkspacePerson } from "../../workspace-person-BSgvRjZE.js";
|
|
3
4
|
import * as React from "react";
|
|
4
5
|
//#region src/components/ai-sdk/ConnectedAppCards.d.ts
|
|
5
|
-
export type ConnectedAppCardState = "pending" | "sent" | "denied";
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* content the backing store does not hold.
|
|
7
|
+
* Where a draft stands: waiting on the person's approval in the composer,
|
|
8
|
+
* pending while the host sends it, or settled as sent, denied, or failed after
|
|
9
|
+
* approval.
|
|
11
10
|
*/
|
|
12
|
-
export type
|
|
13
|
-
status: "saving";
|
|
14
|
-
} | {
|
|
15
|
-
status: "error";
|
|
16
|
-
message: string;
|
|
17
|
-
onRetry?: () => void;
|
|
18
|
-
};
|
|
19
|
-
type ConnectedAppCardProps = Omit<CardProps, "children" | "hover" | "size" | "title" | "onChange"> & {
|
|
20
|
-
/** Lifecycle of the draft. Pending can be edited; sent and denied are settled. */
|
|
21
|
-
state?: ConnectedAppCardState;
|
|
22
|
-
/** Persistence lifecycle of the visible draft. Absent means saved. */
|
|
23
|
-
saveState?: ConnectedAppCardSaveState;
|
|
24
|
-
/** Optional provider mark. The domain's generic icon is used by default. */
|
|
25
|
-
icon?: React.ReactNode;
|
|
26
|
-
/**
|
|
27
|
-
* File-level controls rendered beside the status in the header, such as Open
|
|
28
|
-
* and Delete. The header grid owns exactly one action cell, so these share it
|
|
29
|
-
* with the status rather than competing for a second one.
|
|
30
|
-
*/
|
|
31
|
-
headerActions?: React.ReactNode;
|
|
32
|
-
};
|
|
11
|
+
export type ConnectedAppCardState = "approval-requested" | "pending" | "sent" | "denied" | "failed";
|
|
33
12
|
export interface EmailMessageDraft {
|
|
34
13
|
/** Sender label or address shown in the draft header. */
|
|
35
14
|
from?: string;
|
|
@@ -37,45 +16,53 @@ export interface EmailMessageDraft {
|
|
|
37
16
|
to?: string;
|
|
38
17
|
/** Visible message subject, required even while the draft body is empty. */
|
|
39
18
|
subject: string;
|
|
40
|
-
/**
|
|
19
|
+
/** Plain-text message body. */
|
|
41
20
|
body?: string;
|
|
42
21
|
}
|
|
43
|
-
export interface EmailMessageCardProps extends ConnectedAppCardProps, EmailMessageDraft {
|
|
44
|
-
/** Person-shaped To. The address string remains the route. */
|
|
45
|
-
correspondent?: Correspondent;
|
|
46
|
-
/** Receives the complete draft after an editable field changes. */
|
|
47
|
-
onChange?: (next: EmailMessageDraft) => void;
|
|
48
|
-
/** Discards the pending draft. */
|
|
49
|
-
onDiscard?: () => void | Promise<void>;
|
|
50
|
-
/** Rejects the draft with human-authored feedback. */
|
|
51
|
-
onReject?: (reason: string) => void | Promise<void>;
|
|
52
|
-
/** Releases the pending draft for delivery. */
|
|
53
|
-
onSend?: () => void | Promise<void>;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Email draft or result. Pending cards can be edited and released; send,
|
|
57
|
-
* discard, and reject-with-reason stay application-owned.
|
|
58
|
-
*/
|
|
59
|
-
export declare function EmailMessageCard({ body, correspondent, from, icon, onChange, onDiscard, onReject, onSend, state, subject, to, ref, ...props }: EmailMessageCardProps & {
|
|
60
|
-
/** Ref forwarded to the component's rendered root element. */
|
|
61
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
62
|
-
}): React.JSX.Element;
|
|
63
22
|
export interface SlackMessageDraft {
|
|
23
|
+
/** Slack workspace shown in the draft header. */
|
|
64
24
|
workspace?: string;
|
|
25
|
+
/** Channel or member ID the message goes to. */
|
|
65
26
|
to: string;
|
|
27
|
+
/** Thread the message replies in. */
|
|
66
28
|
thread?: string;
|
|
29
|
+
/** Plain-text message body. */
|
|
67
30
|
message: string;
|
|
68
31
|
}
|
|
32
|
+
type ConnectedAppCardProps = Omit<ConceptCardProps, "onChange"> & {
|
|
33
|
+
/** Where the draft stands. Map a tool call's part with `connectedAppCardState`. */
|
|
34
|
+
state?: ConnectedAppCardState;
|
|
35
|
+
/** Optional provider mark. The domain's generic icon is used by default. */
|
|
36
|
+
icon?: React.ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* Controls for the draft's file, such as Delete, beside the status on the
|
|
39
|
+
* name's row.
|
|
40
|
+
*/
|
|
41
|
+
actions?: React.ReactNode;
|
|
42
|
+
/** Opens the draft's source, such as its workspace file. The name becomes the button. */
|
|
43
|
+
onOpen?: () => void;
|
|
44
|
+
};
|
|
45
|
+
export interface EmailMessageCardProps extends ConnectedAppCardProps, EmailMessageDraft {
|
|
46
|
+
/**
|
|
47
|
+
* The workspace's people. A recipient whose address matches one of their
|
|
48
|
+
* handles shows as that person; any other shows as written. `to` stays the route.
|
|
49
|
+
*/
|
|
50
|
+
people?: readonly WorkspacePerson[];
|
|
51
|
+
}
|
|
52
|
+
/** Email draft or result, read-only: sending it is approved in the composer. */
|
|
53
|
+
export declare function EmailMessageCard({ body, from, state, subject, to, ...props }: EmailMessageCardProps & {
|
|
54
|
+
/** Ref forwarded to the component's rendered root element. */
|
|
55
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
56
|
+
}): React.JSX.Element;
|
|
69
57
|
export interface SlackMessageCardProps extends ConnectedAppCardProps, SlackMessageDraft {
|
|
70
|
-
/**
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
onSend?: () => void | Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* The workspace's people. A member ID that matches one of their Slack
|
|
60
|
+
* handles shows as that person; rooms and anything else show as written.
|
|
61
|
+
*/
|
|
62
|
+
people?: readonly WorkspacePerson[];
|
|
76
63
|
}
|
|
77
64
|
/** Slack draft or posted message with workspace, destination, and thread fields. */
|
|
78
|
-
export declare function SlackMessageCard({
|
|
65
|
+
export declare function SlackMessageCard({ message, state, thread, to, workspace, ...props }: SlackMessageCardProps & {
|
|
79
66
|
ref?: React.Ref<HTMLDivElement>;
|
|
80
67
|
}): React.JSX.Element;
|
|
81
68
|
export interface CalendarEventDraft {
|
|
@@ -85,17 +72,18 @@ export interface CalendarEventDraft {
|
|
|
85
72
|
location?: string;
|
|
86
73
|
attendees?: string;
|
|
87
74
|
}
|
|
88
|
-
export interface CalendarEventCardProps extends ConnectedAppCardProps, CalendarEventDraft {
|
|
89
|
-
onChange?: (next: CalendarEventDraft) => void;
|
|
90
|
-
onDiscard?: () => void | Promise<void>;
|
|
91
|
-
onReject?: (reason: string) => void | Promise<void>;
|
|
92
|
-
onSend?: () => void | Promise<void>;
|
|
93
|
-
}
|
|
75
|
+
export interface CalendarEventCardProps extends ConnectedAppCardProps, CalendarEventDraft {}
|
|
94
76
|
/**
|
|
95
77
|
* Calendar draft or settled event. Pass `whenDateTime` for a semantic `time`
|
|
96
78
|
* element; the application owns locale and timezone formatting.
|
|
97
79
|
*/
|
|
98
|
-
export declare function CalendarEventCard({ attendees, eventTitle, icon, location,
|
|
80
|
+
export declare function CalendarEventCard({ attendees, eventTitle, icon, location, state, when, whenDateTime, ...props }: CalendarEventCardProps & {
|
|
99
81
|
ref?: React.Ref<HTMLDivElement>;
|
|
100
82
|
}): React.JSX.Element;
|
|
83
|
+
/**
|
|
84
|
+
* How a tool call's part reads on the card that shows its draft. A denial
|
|
85
|
+
* reads as denied as soon as the person answers, before the tool settles; a
|
|
86
|
+
* tool that errors after approval reads as failed.
|
|
87
|
+
*/
|
|
88
|
+
export declare function connectedAppCardState(part: AnyToolUIPart): ConnectedAppCardState;
|
|
101
89
|
//#endregion
|
|
@@ -1,389 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Textarea } from "../foundations/Textarea.js";
|
|
6
|
-
import { Card, CardAction, CardContent, CardFooter, CardHeader, CardTitle } from "../foundations/Card.js";
|
|
7
|
-
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
8
|
-
import { Input } from "../foundations/Input.js";
|
|
9
|
-
import { CorrespondentName, emailDestinationCorrespondent, slackDestinationCorrespondent } from "./Correspondent.js";
|
|
10
|
-
import * as React from "react";
|
|
11
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { u as CalendarIcon } from "../../icons-Yp99gmMC.js";
|
|
2
|
+
import { isToolPartWorking } from "./ToolPart.js";
|
|
3
|
+
import { i as FieldList, n as SlackDraftCard, r as ConnectedAppCardFrame, t as EmailDraftCard } from "../../connected-app-drafts-B9i69bkj.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
12
5
|
//#region src/components/ai-sdk/ConnectedAppCards.tsx
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
denied: XIcon
|
|
17
|
-
};
|
|
18
|
-
function fieldItem(name, term, value, display) {
|
|
19
|
-
return display === void 0 ? {
|
|
20
|
-
name,
|
|
21
|
-
term,
|
|
22
|
-
value
|
|
23
|
-
} : {
|
|
24
|
-
name,
|
|
25
|
-
term,
|
|
26
|
-
value,
|
|
27
|
-
display
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
function createDraftUpdater(draft, onChange) {
|
|
31
|
-
let current = draft;
|
|
32
|
-
return (patch) => {
|
|
33
|
-
const next = {
|
|
34
|
-
...current,
|
|
35
|
-
...patch
|
|
36
|
-
};
|
|
37
|
-
current = next;
|
|
38
|
-
onChange?.(next);
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function useDecision(handlers) {
|
|
42
|
-
const [reason, setReason] = React.useState("");
|
|
43
|
-
const [busy, setBusy] = React.useState(false);
|
|
44
|
-
const [errorMessage, setErrorMessage] = React.useState("");
|
|
45
|
-
const run = async (work) => {
|
|
46
|
-
if (busy) return;
|
|
47
|
-
setBusy(true);
|
|
48
|
-
setErrorMessage("");
|
|
49
|
-
try {
|
|
50
|
-
await work();
|
|
51
|
-
} catch (error) {
|
|
52
|
-
setErrorMessage(error instanceof Error && error.message.trim() ? error.message : "The decision could not be submitted. Try again.");
|
|
53
|
-
} finally {
|
|
54
|
-
setBusy(false);
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
return {
|
|
58
|
-
busy,
|
|
59
|
-
errorMessage,
|
|
60
|
-
reason,
|
|
61
|
-
setReason,
|
|
62
|
-
discard: handlers.onDiscard ? () => run(handlers.onDiscard) : void 0,
|
|
63
|
-
reject: handlers.onReject ? () => run(() => handlers.onReject(reason.trim())) : void 0,
|
|
64
|
-
send: handlers.onSend ? () => run(handlers.onSend) : void 0
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
function FieldList({ children, editing, items, onFieldChange }) {
|
|
68
|
-
const fieldId = React.useId();
|
|
69
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [items.length > 0 ? /* @__PURE__ */ jsx(DescriptionList.Root, {
|
|
70
|
-
align: "start",
|
|
71
|
-
variant: "divided",
|
|
72
|
-
children: items.map((item) => {
|
|
73
|
-
const inputId = `${fieldId}-${item.name}`;
|
|
74
|
-
return /* @__PURE__ */ jsxs(DescriptionList.Item, { children: [/* @__PURE__ */ jsx(DescriptionList.Term, { children: editing ? /* @__PURE__ */ jsx("label", {
|
|
75
|
-
htmlFor: inputId,
|
|
76
|
-
children: item.term
|
|
77
|
-
}) : item.term }), /* @__PURE__ */ jsx(DescriptionList.Details, { children: editing ? /* @__PURE__ */ jsx(Input, {
|
|
78
|
-
id: inputId,
|
|
79
|
-
name: item.name,
|
|
80
|
-
value: item.value,
|
|
81
|
-
autoComplete: "off",
|
|
82
|
-
onChange: (event) => onFieldChange?.(item.name, event.currentTarget.value)
|
|
83
|
-
}) : item.display ?? item.value })] }, item.name);
|
|
84
|
-
})
|
|
85
|
-
}) : null, children] });
|
|
86
|
-
}
|
|
87
|
-
function ConnectedAppCardFrame({ children, className, headerActions, icon, kind, sendLabel, slot, state = "pending", saveState, stateLabels, onDiscard, onReject, onSend, ref, ...props }) {
|
|
88
|
-
const StateIcon = STATE_ICON[state];
|
|
89
|
-
const titleId = React.useId();
|
|
90
|
-
const ariaLabel = props["aria-label"];
|
|
91
|
-
const ariaLabelledBy = props["aria-labelledby"] ?? (ariaLabel ? void 0 : titleId);
|
|
92
|
-
const hasDecision = state === "pending" && Boolean(onSend || onDiscard || onReject);
|
|
93
|
-
const decision = useDecision({
|
|
94
|
-
onDiscard,
|
|
95
|
-
onReject,
|
|
96
|
-
onSend
|
|
97
|
-
});
|
|
98
|
-
return /* @__PURE__ */ jsxs(Card, {
|
|
99
|
-
render: /* @__PURE__ */ jsx("article", {}),
|
|
100
|
-
...props,
|
|
101
|
-
ref,
|
|
102
|
-
"aria-labelledby": ariaLabelledBy,
|
|
103
|
-
"data-slot": slot,
|
|
104
|
-
"data-state": state,
|
|
105
|
-
size: "sm",
|
|
106
|
-
className: cx("connected-app-card", className),
|
|
107
|
-
children: [
|
|
108
|
-
/* @__PURE__ */ jsxs(CardHeader, {
|
|
109
|
-
render: /* @__PURE__ */ jsx("header", {}),
|
|
110
|
-
children: [/* @__PURE__ */ jsxs(CardTitle, {
|
|
111
|
-
id: titleId,
|
|
112
|
-
className: "connected-app-card__title",
|
|
113
|
-
render: (props) => /* @__PURE__ */ jsx("h3", {
|
|
114
|
-
...props,
|
|
115
|
-
children: props.children
|
|
116
|
-
}),
|
|
117
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
118
|
-
className: "connected-app-card__icon",
|
|
119
|
-
"aria-hidden": "true",
|
|
120
|
-
children: icon
|
|
121
|
-
}), kind]
|
|
122
|
-
}), /* @__PURE__ */ jsxs(CardAction, {
|
|
123
|
-
className: "sigvelo-cluster",
|
|
124
|
-
children: [/* @__PURE__ */ jsxs("span", {
|
|
125
|
-
className: "connected-app-card__status",
|
|
126
|
-
"data-state": state,
|
|
127
|
-
children: [/* @__PURE__ */ jsx(StateIcon, { size: 14 }), state === "pending" && !hasDecision ? "Sending" : stateLabels[state]]
|
|
128
|
-
}), headerActions]
|
|
129
|
-
})]
|
|
130
|
-
}),
|
|
131
|
-
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
132
|
-
children,
|
|
133
|
-
hasDecision && decision.reject ? /* @__PURE__ */ jsxs(Field.Root, { children: [/* @__PURE__ */ jsx(Field.Label, { children: "Tell the agent what to do differently" }), /* @__PURE__ */ jsx(Field.Control, {
|
|
134
|
-
name: "reject-reason",
|
|
135
|
-
value: decision.reason,
|
|
136
|
-
disabled: decision.busy,
|
|
137
|
-
autoComplete: "off",
|
|
138
|
-
placeholder: "Shorter, and skip the recap",
|
|
139
|
-
onChange: (event) => decision.setReason(event.currentTarget.value),
|
|
140
|
-
onKeyDown: (event) => {
|
|
141
|
-
if (event.key === "Enter" && !event.nativeEvent.isComposing && event.nativeEvent.keyCode !== 229) {
|
|
142
|
-
event.preventDefault();
|
|
143
|
-
decision.reject?.();
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
})] }) : null,
|
|
147
|
-
/* @__PURE__ */ jsx(ConnectedAppCardSaveError, { saveState }),
|
|
148
|
-
decision.errorMessage ? /* @__PURE__ */ jsx(Field.Errors, { errors: [decision.errorMessage] }) : null,
|
|
149
|
-
/* @__PURE__ */ jsx("span", {
|
|
150
|
-
className: "sigvelo-visually-hidden",
|
|
151
|
-
role: "status",
|
|
152
|
-
"aria-atomic": "true",
|
|
153
|
-
children: connectedAppCardAnnouncement(saveState, decision)
|
|
154
|
-
})
|
|
155
|
-
] }),
|
|
156
|
-
hasDecision ? /* @__PURE__ */ jsx(ConnectedAppCardDecisions, {
|
|
157
|
-
decision,
|
|
158
|
-
sendLabel,
|
|
159
|
-
saveBlocked: saveState !== void 0
|
|
160
|
-
}) : null
|
|
161
|
-
]
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
/** A failed save stays visible, with its retry, until the store holds the draft. */
|
|
165
|
-
function ConnectedAppCardSaveError({ saveState }) {
|
|
166
|
-
if (saveState?.status !== "error" || !saveState.message) return null;
|
|
167
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
168
|
-
className: "connected-app-card__save-error",
|
|
169
|
-
children: [/* @__PURE__ */ jsx(Field.Errors, { errors: [saveState.message] }), saveState.onRetry ? /* @__PURE__ */ jsx(Button, {
|
|
170
|
-
type: "button",
|
|
171
|
-
size: "sm",
|
|
172
|
-
variant: "ghost",
|
|
173
|
-
color: "neutral",
|
|
174
|
-
onClick: saveState.onRetry,
|
|
175
|
-
children: "Retry save"
|
|
176
|
-
}) : null]
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
/** One polite announcement: errors first, then the action in flight. */
|
|
180
|
-
function connectedAppCardAnnouncement(saveState, decision) {
|
|
181
|
-
if (saveState?.status === "error" && saveState.message) return saveState.message;
|
|
182
|
-
if (decision.errorMessage) return decision.errorMessage;
|
|
183
|
-
if (saveState?.status === "saving") return "Saving";
|
|
184
|
-
return decision.busy ? "Submitting" : "";
|
|
185
|
-
}
|
|
186
|
-
/** The pending draft's release decisions; an unsaved draft cannot be sent. */
|
|
187
|
-
function ConnectedAppCardDecisions({ decision, sendLabel, saveBlocked }) {
|
|
188
|
-
return /* @__PURE__ */ jsxs(CardFooter, {
|
|
189
|
-
render: /* @__PURE__ */ jsx("footer", {}),
|
|
190
|
-
className: "connected-app-card__footer",
|
|
191
|
-
children: [
|
|
192
|
-
decision.send ? /* @__PURE__ */ jsx(Button, {
|
|
193
|
-
type: "button",
|
|
194
|
-
size: "sm",
|
|
195
|
-
disabled: decision.busy || saveBlocked,
|
|
196
|
-
onClick: () => void decision.send?.(),
|
|
197
|
-
children: sendLabel
|
|
198
|
-
}) : null,
|
|
199
|
-
decision.discard ? /* @__PURE__ */ jsx(Button, {
|
|
200
|
-
type: "button",
|
|
201
|
-
size: "sm",
|
|
202
|
-
variant: "outline",
|
|
203
|
-
color: "neutral",
|
|
204
|
-
disabled: decision.busy,
|
|
205
|
-
onClick: () => void decision.discard?.(),
|
|
206
|
-
children: "Discard"
|
|
207
|
-
}) : null,
|
|
208
|
-
decision.reject ? /* @__PURE__ */ jsx(Button, {
|
|
209
|
-
type: "button",
|
|
210
|
-
size: "sm",
|
|
211
|
-
variant: "ghost",
|
|
212
|
-
color: "neutral",
|
|
213
|
-
disabled: decision.busy,
|
|
214
|
-
onClick: () => void decision.reject?.(),
|
|
215
|
-
children: "Send feedback"
|
|
216
|
-
}) : null
|
|
217
|
-
]
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* Email draft or result. Pending cards can be edited and released; send,
|
|
222
|
-
* discard, and reject-with-reason stay application-owned.
|
|
223
|
-
*/
|
|
224
|
-
function EmailMessageCard({ body, correspondent, from, icon, onChange, onDiscard, onReject, onSend, state = "pending", subject, to, ref, ...props }) {
|
|
225
|
-
const editing = state === "pending" && onChange != null;
|
|
226
|
-
const draft = {
|
|
227
|
-
from,
|
|
228
|
-
to,
|
|
229
|
-
subject,
|
|
230
|
-
body
|
|
231
|
-
};
|
|
232
|
-
const toCorrespondent = !editing && to ? correspondent ?? emailDestinationCorrespondent(to) : void 0;
|
|
233
|
-
const updateDraft = createDraftUpdater(draft, onChange);
|
|
234
|
-
return /* @__PURE__ */ jsx(ConnectedAppCardFrame, {
|
|
6
|
+
/** Email draft or result, read-only: sending it is approved in the composer. */
|
|
7
|
+
function EmailMessageCard({ body, from, state = "pending", subject, to, ...props }) {
|
|
8
|
+
return /* @__PURE__ */ jsx(EmailDraftCard, {
|
|
235
9
|
...props,
|
|
236
|
-
ref,
|
|
237
|
-
slot: "email-message-card",
|
|
238
|
-
icon: icon ?? /* @__PURE__ */ jsx(MailIcon, {}),
|
|
239
|
-
kind: "New email",
|
|
240
|
-
sendLabel: "Send email",
|
|
241
10
|
state,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
onReject,
|
|
249
|
-
onSend,
|
|
250
|
-
children: /* @__PURE__ */ jsx(FieldList, {
|
|
251
|
-
editing,
|
|
252
|
-
onFieldChange: (name, value) => updateDraft({ [name]: value }),
|
|
253
|
-
items: editing ? [
|
|
254
|
-
fieldItem("from", "From", from ?? ""),
|
|
255
|
-
fieldItem("to", "To", to ?? ""),
|
|
256
|
-
fieldItem("subject", "Subject", subject)
|
|
257
|
-
] : [
|
|
258
|
-
...from ? [fieldItem("from", "From", from)] : [],
|
|
259
|
-
...to ? [fieldItem("to", "To", to, toCorrespondent ? /* @__PURE__ */ jsx(CorrespondentName, { correspondent: toCorrespondent }) : void 0)] : [],
|
|
260
|
-
fieldItem("subject", "Subject", subject)
|
|
261
|
-
],
|
|
262
|
-
children: editing ? /* @__PURE__ */ jsxs(Field.Root, { children: [/* @__PURE__ */ jsx(Field.Label, { children: "Message" }), /* @__PURE__ */ jsx(Field.Control, {
|
|
263
|
-
render: /* @__PURE__ */ jsx(Textarea, {
|
|
264
|
-
name: "body",
|
|
265
|
-
rows: 4,
|
|
266
|
-
resize: "vertical",
|
|
267
|
-
autoComplete: "off"
|
|
268
|
-
}),
|
|
269
|
-
value: body ?? "",
|
|
270
|
-
onChange: (event) => updateDraft({ body: event.currentTarget.value })
|
|
271
|
-
})] }) : body != null && body !== "" ? /* @__PURE__ */ jsx("p", {
|
|
272
|
-
className: "connected-app-card__body",
|
|
273
|
-
children: body
|
|
274
|
-
}) : null
|
|
275
|
-
})
|
|
11
|
+
draft: {
|
|
12
|
+
from,
|
|
13
|
+
to,
|
|
14
|
+
subject,
|
|
15
|
+
body
|
|
16
|
+
}
|
|
276
17
|
});
|
|
277
18
|
}
|
|
278
19
|
/** Slack draft or posted message with workspace, destination, and thread fields. */
|
|
279
|
-
function SlackMessageCard({
|
|
280
|
-
|
|
281
|
-
const draft = {
|
|
282
|
-
workspace,
|
|
283
|
-
to,
|
|
284
|
-
thread,
|
|
285
|
-
message
|
|
286
|
-
};
|
|
287
|
-
const toCorrespondent = !editing ? correspondent ?? slackDestinationCorrespondent(to) : void 0;
|
|
288
|
-
const updateDraft = createDraftUpdater(draft, onChange);
|
|
289
|
-
return /* @__PURE__ */ jsx(ConnectedAppCardFrame, {
|
|
20
|
+
function SlackMessageCard({ message, state = "pending", thread, to, workspace, ...props }) {
|
|
21
|
+
return /* @__PURE__ */ jsx(SlackDraftCard, {
|
|
290
22
|
...props,
|
|
291
|
-
ref,
|
|
292
|
-
slot: "slack-message-card",
|
|
293
|
-
icon: icon ?? /* @__PURE__ */ jsx(SlackIcon, {}),
|
|
294
|
-
kind: "Slack message",
|
|
295
|
-
sendLabel: "Send message",
|
|
296
23
|
state,
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
onReject,
|
|
304
|
-
onSend,
|
|
305
|
-
children: /* @__PURE__ */ jsx(FieldList, {
|
|
306
|
-
editing,
|
|
307
|
-
onFieldChange: (name, value) => updateDraft({ [name]: value }),
|
|
308
|
-
items: editing ? [
|
|
309
|
-
fieldItem("workspace", "Workspace", workspace ?? ""),
|
|
310
|
-
fieldItem("to", "To", to),
|
|
311
|
-
fieldItem("thread", "Thread", thread ?? "")
|
|
312
|
-
] : [
|
|
313
|
-
...workspace ? [fieldItem("workspace", "Workspace", workspace)] : [],
|
|
314
|
-
fieldItem("to", "To", to, toCorrespondent ? /* @__PURE__ */ jsx(CorrespondentName, { correspondent: toCorrespondent }) : void 0),
|
|
315
|
-
...thread ? [fieldItem("thread", "Thread", thread)] : []
|
|
316
|
-
],
|
|
317
|
-
children: editing ? /* @__PURE__ */ jsxs(Field.Root, { children: [/* @__PURE__ */ jsx(Field.Label, { children: "Message" }), /* @__PURE__ */ jsx(Field.Control, {
|
|
318
|
-
render: /* @__PURE__ */ jsx(Textarea, {
|
|
319
|
-
name: "message",
|
|
320
|
-
rows: 4,
|
|
321
|
-
resize: "vertical",
|
|
322
|
-
autoComplete: "off"
|
|
323
|
-
}),
|
|
324
|
-
value: message,
|
|
325
|
-
onChange: (event) => updateDraft({ message: event.currentTarget.value })
|
|
326
|
-
})] }) : /* @__PURE__ */ jsx("p", {
|
|
327
|
-
className: "connected-app-card__body",
|
|
328
|
-
children: message
|
|
329
|
-
})
|
|
330
|
-
})
|
|
24
|
+
draft: {
|
|
25
|
+
workspace,
|
|
26
|
+
to,
|
|
27
|
+
thread,
|
|
28
|
+
message
|
|
29
|
+
}
|
|
331
30
|
});
|
|
332
31
|
}
|
|
333
32
|
/**
|
|
334
33
|
* Calendar draft or settled event. Pass `whenDateTime` for a semantic `time`
|
|
335
34
|
* element; the application owns locale and timezone formatting.
|
|
336
35
|
*/
|
|
337
|
-
function CalendarEventCard({ attendees, eventTitle, icon, location,
|
|
338
|
-
const editing = state === "pending" && onChange != null;
|
|
339
|
-
const updateDraft = createDraftUpdater({
|
|
340
|
-
eventTitle,
|
|
341
|
-
when,
|
|
342
|
-
whenDateTime,
|
|
343
|
-
location,
|
|
344
|
-
attendees
|
|
345
|
-
}, onChange);
|
|
36
|
+
function CalendarEventCard({ attendees, eventTitle, icon, location, state = "pending", when, whenDateTime, ...props }) {
|
|
346
37
|
return /* @__PURE__ */ jsx(ConnectedAppCardFrame, {
|
|
347
38
|
...props,
|
|
348
|
-
|
|
349
|
-
slot: "calendar-event-card",
|
|
39
|
+
"data-slot": "calendar-event-card",
|
|
350
40
|
icon: icon ?? /* @__PURE__ */ jsx(CalendarIcon, {}),
|
|
351
|
-
|
|
352
|
-
sendLabel: "Save event",
|
|
41
|
+
name: "Calendar event",
|
|
353
42
|
state,
|
|
354
43
|
stateLabels: {
|
|
355
|
-
|
|
44
|
+
"approval-requested": "Awaiting approval",
|
|
45
|
+
pending: "Saving",
|
|
356
46
|
sent: "Saved",
|
|
357
|
-
denied: "Denied"
|
|
47
|
+
denied: "Denied",
|
|
48
|
+
failed: "Not saved"
|
|
358
49
|
},
|
|
359
|
-
onDiscard,
|
|
360
|
-
onReject,
|
|
361
|
-
onSend,
|
|
362
50
|
children: /* @__PURE__ */ jsx(FieldList, {
|
|
363
|
-
editing,
|
|
364
|
-
|
|
365
|
-
items: editing ? [
|
|
366
|
-
{
|
|
367
|
-
name: "eventTitle",
|
|
368
|
-
term: "Title",
|
|
369
|
-
value: eventTitle
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
name: "when",
|
|
373
|
-
term: "When",
|
|
374
|
-
value: when
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
name: "location",
|
|
378
|
-
term: "Location",
|
|
379
|
-
value: location ?? ""
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
name: "attendees",
|
|
383
|
-
term: "Attendees",
|
|
384
|
-
value: attendees ?? ""
|
|
385
|
-
}
|
|
386
|
-
] : [
|
|
51
|
+
editing: false,
|
|
52
|
+
items: [
|
|
387
53
|
{
|
|
388
54
|
name: "eventTitle",
|
|
389
55
|
term: "Title",
|
|
@@ -412,5 +78,16 @@ function CalendarEventCard({ attendees, eventTitle, icon, location, onChange, on
|
|
|
412
78
|
})
|
|
413
79
|
});
|
|
414
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* How a tool call's part reads on the card that shows its draft. A denial
|
|
83
|
+
* reads as denied as soon as the person answers, before the tool settles; a
|
|
84
|
+
* tool that errors after approval reads as failed.
|
|
85
|
+
*/
|
|
86
|
+
function connectedAppCardState(part) {
|
|
87
|
+
if (part.state === "approval-requested") return "approval-requested";
|
|
88
|
+
if (part.state === "output-error") return "failed";
|
|
89
|
+
if (part.state === "output-denied" || part.state === "approval-responded" && !part.approval.approved) return "denied";
|
|
90
|
+
return isToolPartWorking(part) ? "pending" : "sent";
|
|
91
|
+
}
|
|
415
92
|
//#endregion
|
|
416
|
-
export { CalendarEventCard, EmailMessageCard, SlackMessageCard };
|
|
93
|
+
export { CalendarEventCard, EmailMessageCard, SlackMessageCard, connectedAppCardState };
|
|
@@ -260,8 +260,8 @@ function getUsageTokens(usage, key) {
|
|
|
260
260
|
if (!usage) return void 0;
|
|
261
261
|
if (key === "input") return usage.inputTokens;
|
|
262
262
|
if (key === "output") return usage.outputTokens;
|
|
263
|
-
if (key === "reasoning") return usage.outputTokenDetails?.reasoningTokens
|
|
264
|
-
return usage.inputTokenDetails?.cacheReadTokens
|
|
263
|
+
if (key === "reasoning") return usage.outputTokenDetails?.reasoningTokens;
|
|
264
|
+
return usage.inputTokenDetails?.cacheReadTokens;
|
|
265
265
|
}
|
|
266
266
|
/**
|
|
267
267
|
* Latest `metadata.usage` in a transcript — the AI SDK convention for token
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as IconButtonProps } from "../../IconButton-
|
|
1
|
+
import { n as IconButtonProps } from "../../IconButton-FWsa9562.js";
|
|
2
2
|
import { MessageScrollerButtonProps, MessageScrollerItemProps } from "./MessageScroller.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { UIMessage } from "ai";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { n as ArrowDownIcon, v as DownloadIcon } from "../../icons-
|
|
2
|
+
import { n as ArrowDownIcon, v as DownloadIcon } from "../../icons-Yp99gmMC.js";
|
|
3
3
|
import { IconButton } from "../foundations/IconButton.js";
|
|
4
4
|
import { t as assignRef } from "../../merge-refs-DAh6reu8.js";
|
|
5
5
|
import { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport } from "./MessageScroller.js";
|
|
@@ -87,7 +87,7 @@ function ConversationItem({ className, scrollAnchor = false, ...props }) {
|
|
|
87
87
|
* Floating button that scrolls the conversation to the latest message.
|
|
88
88
|
* Hidden from view and tab order while the viewport is already at the end.
|
|
89
89
|
*/
|
|
90
|
-
function ConversationScrollButton({ className, variant = "
|
|
90
|
+
function ConversationScrollButton({ className, variant = "surface", color = "neutral", size = "sm", label = "Scroll to latest", children, ...props }) {
|
|
91
91
|
return /* @__PURE__ */ jsx(MessageScrollerButton, {
|
|
92
92
|
variant,
|
|
93
93
|
color,
|
|
@@ -122,7 +122,7 @@ function messagesToMarkdown(messages, formatMessage = defaultFormatMessage) {
|
|
|
122
122
|
* Skipped when `messages` is empty. For custom export flows, use
|
|
123
123
|
* {@link messagesToMarkdown} directly.
|
|
124
124
|
*/
|
|
125
|
-
function ConversationDownload({ className, messages, filename = "conversation.md", formatMessage, label = "Download conversation", variant = "
|
|
125
|
+
function ConversationDownload({ className, messages, filename = "conversation.md", formatMessage, label = "Download conversation", variant = "surface", color = "neutral", size = "sm", children, ref, ...props }) {
|
|
126
126
|
if (messages.length === 0) return null;
|
|
127
127
|
const handleClick = () => {
|
|
128
128
|
const markdown = messagesToMarkdown(messages, formatMessage);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as formatErrorMessage } from "../../format-CWaZEp5o.js";
|
|
2
|
+
import { B as PauseIcon, U as PlayIcon, it as TrashIcon, nt as TargetIcon } from "../../icons-Yp99gmMC.js";
|
|
4
3
|
import { IconButton } from "../foundations/IconButton.js";
|
|
4
|
+
import { a as formatErrorMessage } from "../../format-CWaZEp5o.js";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/ai-sdk/Goal.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as CardProps } from "../../Card-
|
|
1
|
+
import { f as CardProps } from "../../Card-DkGZ3jKQ.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
//#region src/components/ai-sdk/MediaPreviewCard.d.ts
|
|
4
4
|
export interface MediaPreviewCardProps extends Omit<CardProps, "hover"> {}
|