@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,20 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Button } from "../foundations/Button.js";
|
|
3
|
-
import { S as FileIcon, d as CheckIcon } from "../../icons-DvlrWt54.js";
|
|
1
|
+
import { C as FileIcon } from "../../icons-Yp99gmMC.js";
|
|
4
2
|
import { a as formatErrorMessage } from "../../format-CWaZEp5o.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { IconButton } from "../foundations/IconButton.js";
|
|
8
|
-
import { Card, CardAction, CardContent, CardFooter, CardHeader, CardTitle } from "../foundations/Card.js";
|
|
9
|
-
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
10
|
-
import { Input } from "../foundations/Input.js";
|
|
11
|
-
import { EmailMessageCard, SlackMessageCard } from "../ai-sdk/ConnectedAppCards.js";
|
|
12
|
-
import { a as httpUrl, t as FaviconMark } from "../../workspace-assets-DVn0d-fN.js";
|
|
13
|
-
import { t as WorkspaceDeleteControl } from "../../workspace-delete-CMY1kPkq.js";
|
|
3
|
+
import { a as MessageBody, i as FieldList, n as SlackDraftCard, r as ConnectedAppCardFrame, t as EmailDraftCard } from "../../connected-app-drafts-B9i69bkj.js";
|
|
4
|
+
import { t as WorkspaceDeleteControl } from "../../workspace-delete-CoB0l6ZU.js";
|
|
14
5
|
import * as React from "react";
|
|
15
6
|
import { createElement } from "react";
|
|
16
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
-
import { hashKey, useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
8
|
+
import { hashKey, useMutation, useQueries, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
18
9
|
//#region src/components/agents-sdk/WorkspaceCorrespondence.tsx
|
|
19
10
|
const SAVE_DEBOUNCE_MS = 400;
|
|
20
11
|
const SEND_BLOCKED_MESSAGE = "Your edit has not saved, so nothing was sent. Retry the save first.";
|
|
@@ -48,162 +39,31 @@ function replaceFields(fields, values) {
|
|
|
48
39
|
function displayKind(kind) {
|
|
49
40
|
return kind.trim().split(/[-_\s]+/u).filter(Boolean).map((word) => word[0].toUpperCase() + word.slice(1)).join(" ");
|
|
50
41
|
}
|
|
51
|
-
/**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
const editing = onChange != null;
|
|
77
|
-
const [busy, setBusy] = React.useState(false);
|
|
78
|
-
const [errorMessage, setErrorMessage] = React.useState("");
|
|
79
|
-
const draft = {
|
|
80
|
-
fields,
|
|
81
|
-
body
|
|
82
|
-
};
|
|
83
|
-
const ariaLabel = props["aria-label"];
|
|
84
|
-
const ariaLabelledBy = props["aria-labelledby"] ?? (ariaLabel ? void 0 : titleId);
|
|
85
|
-
const saveBlocked = saveState !== void 0;
|
|
86
|
-
const saveErrorMessage = saveState?.status === "error" ? saveState.message : "";
|
|
87
|
-
const send = async () => {
|
|
88
|
-
if (!onSend || busy) return;
|
|
89
|
-
setBusy(true);
|
|
90
|
-
setErrorMessage("");
|
|
91
|
-
try {
|
|
92
|
-
await onSend();
|
|
93
|
-
} catch (error) {
|
|
94
|
-
setErrorMessage(error instanceof Error && error.message.trim() ? error.message : "The action could not be completed. Try again.");
|
|
95
|
-
} finally {
|
|
96
|
-
setBusy(false);
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
return /* @__PURE__ */ jsxs(Card, {
|
|
100
|
-
...props,
|
|
101
|
-
ref,
|
|
102
|
-
role: props.role ?? "article",
|
|
103
|
-
"aria-labelledby": ariaLabelledBy,
|
|
104
|
-
"data-slot": "workspace-correspondence-card",
|
|
105
|
-
"data-state": state,
|
|
106
|
-
size: "sm",
|
|
107
|
-
className: cx("connected-app-card", className),
|
|
108
|
-
children: [
|
|
109
|
-
/* @__PURE__ */ jsxs(CardHeader, { children: [/* @__PURE__ */ jsxs(CardTitle, {
|
|
110
|
-
id: titleId,
|
|
111
|
-
className: "connected-app-card__title",
|
|
112
|
-
render: (props) => /* @__PURE__ */ jsx("h3", {
|
|
113
|
-
...props,
|
|
114
|
-
children: props.children
|
|
115
|
-
}),
|
|
116
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
117
|
-
className: "connected-app-card__icon",
|
|
118
|
-
"aria-hidden": "true",
|
|
119
|
-
children: icon ?? /* @__PURE__ */ jsx(FileIcon, {})
|
|
120
|
-
}), displayKind(kind)]
|
|
121
|
-
}), state === "sent" || onOpen || onDelete ? /* @__PURE__ */ jsxs(CardAction, {
|
|
122
|
-
className: "sigvelo-cluster",
|
|
123
|
-
children: [state === "sent" ? /* @__PURE__ */ jsxs("span", {
|
|
124
|
-
className: "connected-app-card__status",
|
|
125
|
-
"data-state": "sent",
|
|
126
|
-
children: [/* @__PURE__ */ jsx(CheckIcon, { size: 14 }), "Sent"]
|
|
127
|
-
}) : null, /* @__PURE__ */ jsx(CorrespondenceHeaderActions, {
|
|
128
|
-
kind,
|
|
129
|
-
path,
|
|
130
|
-
onDelete,
|
|
131
|
-
onOpen
|
|
132
|
-
})]
|
|
133
|
-
}) : null] }),
|
|
134
|
-
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
135
|
-
fields.length > 0 ? /* @__PURE__ */ jsx(DescriptionList.Root, {
|
|
136
|
-
align: "start",
|
|
137
|
-
variant: "divided",
|
|
138
|
-
children: fields.map((field) => {
|
|
139
|
-
const inputId = `${fieldId}-${field.name}`;
|
|
140
|
-
const href = httpUrl(field.value);
|
|
141
|
-
return /* @__PURE__ */ jsxs(DescriptionList.Item, { children: [/* @__PURE__ */ jsxs(DescriptionList.Term, { children: [href ? /* @__PURE__ */ jsx(FaviconMark, { href }) : null, editing ? /* @__PURE__ */ jsx("label", {
|
|
142
|
-
htmlFor: inputId,
|
|
143
|
-
children: field.label
|
|
144
|
-
}) : field.label] }), /* @__PURE__ */ jsx(DescriptionList.Details, { children: editing ? /* @__PURE__ */ jsx(Input, {
|
|
145
|
-
id: inputId,
|
|
146
|
-
name: field.name,
|
|
147
|
-
type: href ? "url" : void 0,
|
|
148
|
-
value: field.value,
|
|
149
|
-
autoComplete: "off",
|
|
150
|
-
onChange: (event) => onChange({
|
|
151
|
-
...draft,
|
|
152
|
-
fields: fields.map((item) => item.name === field.name ? {
|
|
153
|
-
...item,
|
|
154
|
-
value: event.currentTarget.value
|
|
155
|
-
} : item)
|
|
156
|
-
})
|
|
157
|
-
}) : field.value })] }, field.name);
|
|
158
|
-
})
|
|
159
|
-
}) : null,
|
|
160
|
-
editing ? /* @__PURE__ */ jsxs(Field.Root, { children: [/* @__PURE__ */ jsx(Field.Label, { children: "Message" }), /* @__PURE__ */ jsx(Field.Control, {
|
|
161
|
-
render: /* @__PURE__ */ jsx(Textarea, {
|
|
162
|
-
name: "body",
|
|
163
|
-
rows: 4,
|
|
164
|
-
resize: "vertical",
|
|
165
|
-
autoComplete: "off"
|
|
166
|
-
}),
|
|
167
|
-
value: body,
|
|
168
|
-
onChange: (event) => onChange({
|
|
169
|
-
...draft,
|
|
170
|
-
body: event.currentTarget.value
|
|
171
|
-
})
|
|
172
|
-
})] }) : body ? /* @__PURE__ */ jsx("p", {
|
|
173
|
-
className: "connected-app-card__body",
|
|
174
|
-
children: body
|
|
175
|
-
}) : null,
|
|
176
|
-
saveErrorMessage ? /* @__PURE__ */ jsxs("div", {
|
|
177
|
-
className: "connected-app-card__save-error",
|
|
178
|
-
children: [/* @__PURE__ */ jsx(Field.Errors, { errors: [saveErrorMessage] }), saveState?.status === "error" && saveState.onRetry ? /* @__PURE__ */ jsx(Button, {
|
|
179
|
-
type: "button",
|
|
180
|
-
size: "sm",
|
|
181
|
-
variant: "ghost",
|
|
182
|
-
color: "neutral",
|
|
183
|
-
onClick: saveState.onRetry,
|
|
184
|
-
children: "Retry save"
|
|
185
|
-
}) : null]
|
|
186
|
-
}) : null,
|
|
187
|
-
errorMessage ? /* @__PURE__ */ jsx(Field.Errors, { errors: [errorMessage] }) : null,
|
|
188
|
-
/* @__PURE__ */ jsx("span", {
|
|
189
|
-
className: "sigvelo-visually-hidden",
|
|
190
|
-
role: "status",
|
|
191
|
-
"aria-atomic": "true",
|
|
192
|
-
children: saveErrorMessage || errorMessage || (saveState?.status === "saving" ? "Saving" : busy ? "Submitting" : "")
|
|
193
|
-
})
|
|
194
|
-
] }),
|
|
195
|
-
onSend ? /* @__PURE__ */ jsx(CardFooter, {
|
|
196
|
-
className: "connected-app-card__footer",
|
|
197
|
-
children: /* @__PURE__ */ jsx(Button, {
|
|
198
|
-
type: "button",
|
|
199
|
-
size: "sm",
|
|
200
|
-
disabled: busy || saveBlocked,
|
|
201
|
-
onClick: () => void send(),
|
|
202
|
-
children: "Send"
|
|
203
|
-
})
|
|
204
|
-
}) : null
|
|
205
|
-
]
|
|
206
|
-
});
|
|
42
|
+
/** The fields and body of a kind without a richer card, edited as written. */
|
|
43
|
+
function CorrespondenceFields({ body, fields, onChange }) {
|
|
44
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(FieldList, {
|
|
45
|
+
editing: onChange != null,
|
|
46
|
+
items: fields.map((field) => ({
|
|
47
|
+
name: field.name,
|
|
48
|
+
term: field.label,
|
|
49
|
+
value: field.value
|
|
50
|
+
})),
|
|
51
|
+
onFieldChange: (name, value) => onChange?.({
|
|
52
|
+
fields: fields.map((field) => field.name === name ? {
|
|
53
|
+
...field,
|
|
54
|
+
value
|
|
55
|
+
} : field),
|
|
56
|
+
body
|
|
57
|
+
})
|
|
58
|
+
}), /* @__PURE__ */ jsx(MessageBody, {
|
|
59
|
+
editing: onChange != null,
|
|
60
|
+
name: "body",
|
|
61
|
+
value: body,
|
|
62
|
+
onChange: (value) => onChange?.({
|
|
63
|
+
fields,
|
|
64
|
+
body: value
|
|
65
|
+
})
|
|
66
|
+
})] });
|
|
207
67
|
}
|
|
208
68
|
/**
|
|
209
69
|
* Reviewed workspace correspondence. The host passes one normalized file
|
|
@@ -211,88 +71,72 @@ function GenericWorkspaceCorrespondenceCard({ className, body, fields, kind, pat
|
|
|
211
71
|
* snapshot, and falls back to the generic card for kinds without a richer
|
|
212
72
|
* design-system surface.
|
|
213
73
|
*/
|
|
214
|
-
function WorkspaceCorrespondenceCard({ body, fields, kind,
|
|
215
|
-
const normalizedKind = kind.trim().toLowerCase();
|
|
74
|
+
function WorkspaceCorrespondenceCard({ body, fields, kind, icon, people, saveState, state = "draft", onChange, onDelete, onOpen, onSend, ...props }) {
|
|
216
75
|
const settled = state === "sent";
|
|
217
76
|
const change = settled ? void 0 : onChange;
|
|
218
|
-
const
|
|
219
|
-
const
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
77
|
+
const channel = kind.trim().toLowerCase();
|
|
78
|
+
const frame = {
|
|
79
|
+
...props,
|
|
80
|
+
actions: onDelete ? /* @__PURE__ */ jsx(WorkspaceDeleteControl, {
|
|
81
|
+
name: `${channel === "email" ? "email" : displayKind(kind)} draft`,
|
|
82
|
+
onDelete
|
|
83
|
+
}) : void 0,
|
|
84
|
+
state: settled ? "sent" : void 0,
|
|
85
|
+
saveState: settled ? void 0 : saveState,
|
|
86
|
+
onOpen,
|
|
87
|
+
onSend: settled ? void 0 : onSend
|
|
88
|
+
};
|
|
89
|
+
switch (channel) {
|
|
90
|
+
case "email": return /* @__PURE__ */ jsx(EmailDraftCard, {
|
|
91
|
+
...frame,
|
|
92
|
+
draft: {
|
|
93
|
+
from: fieldValue(fields, "from"),
|
|
94
|
+
to: fieldValue(fields, "to"),
|
|
95
|
+
subject: fieldValue(fields, "subject") ?? "",
|
|
96
|
+
body
|
|
97
|
+
},
|
|
236
98
|
icon,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}),
|
|
247
|
-
body: next.body ?? ""
|
|
248
|
-
});
|
|
249
|
-
} : void 0,
|
|
250
|
-
onSend: send
|
|
99
|
+
people,
|
|
100
|
+
onChange: change ? (next) => change({
|
|
101
|
+
fields: replaceFields(fields, {
|
|
102
|
+
from: next.from,
|
|
103
|
+
to: next.to,
|
|
104
|
+
subject: next.subject
|
|
105
|
+
}),
|
|
106
|
+
body: next.body ?? ""
|
|
107
|
+
}) : void 0
|
|
251
108
|
});
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
return /* @__PURE__ */ jsx(SlackMessageCard, {
|
|
261
|
-
...props,
|
|
262
|
-
...draft,
|
|
263
|
-
ref,
|
|
109
|
+
case "slack": return /* @__PURE__ */ jsx(SlackDraftCard, {
|
|
110
|
+
...frame,
|
|
111
|
+
draft: {
|
|
112
|
+
workspace: fieldValue(fields, "workspace"),
|
|
113
|
+
to: fieldValue(fields, "to") ?? "",
|
|
114
|
+
thread: fieldValue(fields, "thread"),
|
|
115
|
+
message: body
|
|
116
|
+
},
|
|
264
117
|
icon,
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
118
|
+
people,
|
|
119
|
+
onChange: change ? (next) => change({
|
|
120
|
+
fields: replaceFields(fields, {
|
|
121
|
+
workspace: next.workspace,
|
|
122
|
+
to: next.to,
|
|
123
|
+
thread: next.thread
|
|
124
|
+
}),
|
|
125
|
+
body: next.message
|
|
126
|
+
}) : void 0
|
|
127
|
+
});
|
|
128
|
+
default: return /* @__PURE__ */ jsx(ConnectedAppCardFrame, {
|
|
129
|
+
...frame,
|
|
130
|
+
"data-slot": "workspace-correspondence-card",
|
|
131
|
+
icon: icon ?? /* @__PURE__ */ jsx(FileIcon, {}),
|
|
132
|
+
name: displayKind(kind),
|
|
133
|
+
children: /* @__PURE__ */ jsx(CorrespondenceFields, {
|
|
134
|
+
body,
|
|
135
|
+
fields,
|
|
136
|
+
onChange: change
|
|
137
|
+
})
|
|
279
138
|
});
|
|
280
139
|
}
|
|
281
|
-
return /* @__PURE__ */ jsx(GenericWorkspaceCorrespondenceCard, {
|
|
282
|
-
...props,
|
|
283
|
-
ref,
|
|
284
|
-
body,
|
|
285
|
-
fields,
|
|
286
|
-
kind,
|
|
287
|
-
path,
|
|
288
|
-
icon,
|
|
289
|
-
state,
|
|
290
|
-
saveState: settled ? void 0 : saveState,
|
|
291
|
-
onChange: change,
|
|
292
|
-
onDelete,
|
|
293
|
-
onOpen,
|
|
294
|
-
onSend: send
|
|
295
|
-
});
|
|
296
140
|
}
|
|
297
141
|
/**
|
|
298
142
|
* Query-backed reviewed correspondence. The host supplies normalized reads
|
|
@@ -317,7 +161,10 @@ function WorkspaceCorrespondenceFile(props) {
|
|
|
317
161
|
}
|
|
318
162
|
function WorkspaceCorrespondenceFileSession({ fallback = null, source, ...props }) {
|
|
319
163
|
const queryClient = useQueryClient();
|
|
320
|
-
const
|
|
164
|
+
const query = useQuery(source.queryOptions);
|
|
165
|
+
const peopleQueries = source.people ? [source.people] : [];
|
|
166
|
+
const [people] = useQueries({ queries: peopleQueries });
|
|
167
|
+
const persisted = query.data ?? null;
|
|
321
168
|
const path = persisted?.path;
|
|
322
169
|
const [draft, setDraft] = React.useState(null);
|
|
323
170
|
const [sessionSent, setSessionSent] = React.useState(false);
|
|
@@ -371,15 +218,19 @@ function WorkspaceCorrespondenceFileSession({ fallback = null, source, ...props
|
|
|
371
218
|
})
|
|
372
219
|
});
|
|
373
220
|
const canSave = source.onChange != null;
|
|
374
|
-
const
|
|
375
|
-
const
|
|
376
|
-
|
|
221
|
+
const shown = persisted ?? (sessionSent ? lastShownRef.current : null);
|
|
222
|
+
const state = shown?.state ?? (sessionSent ? "sent" : "draft");
|
|
223
|
+
const settled = state === "sent";
|
|
224
|
+
/** The visible edit no save has carried to the file yet. */
|
|
225
|
+
const unsavedDraft = React.useEffectEvent(() => !canSave || path === void 0 || settled || draft === null || draft === savedDraftRef.current || draft === attemptedDraftRef.current ? null : draft);
|
|
226
|
+
const saveUnsaved = React.useEffectEvent(() => {
|
|
227
|
+
const next = unsavedDraft();
|
|
228
|
+
if (next !== null) runSave(next);
|
|
377
229
|
});
|
|
378
230
|
React.useEffect(() => {
|
|
379
|
-
if (!canSave || path === void 0 || settled || draft === null) return;
|
|
380
|
-
if (draft === savedDraftRef.current || draft === attemptedDraftRef.current) return;
|
|
381
231
|
if (savePending) return;
|
|
382
|
-
|
|
232
|
+
if (unsavedDraft() === null) return;
|
|
233
|
+
const timer = setTimeout(saveUnsaved, SAVE_DEBOUNCE_MS);
|
|
383
234
|
return () => clearTimeout(timer);
|
|
384
235
|
}, [
|
|
385
236
|
canSave,
|
|
@@ -388,6 +239,7 @@ function WorkspaceCorrespondenceFileSession({ fallback = null, source, ...props
|
|
|
388
239
|
savePending,
|
|
389
240
|
settled
|
|
390
241
|
]);
|
|
242
|
+
React.useEffect(() => () => saveUnsaved(), []);
|
|
391
243
|
const send = React.useCallback(async () => {
|
|
392
244
|
if (savePromiseRef.current !== null && !await savePromiseRef.current) throw new Error(SEND_BLOCKED_MESSAGE);
|
|
393
245
|
const outstanding = draft;
|
|
@@ -406,10 +258,8 @@ function WorkspaceCorrespondenceFileSession({ fallback = null, source, ...props
|
|
|
406
258
|
persisted,
|
|
407
259
|
runSave
|
|
408
260
|
]);
|
|
409
|
-
const shown = persisted ?? (sessionSent ? lastShownRef.current : null);
|
|
410
261
|
if (!shown) return fallback;
|
|
411
262
|
const visible = draft ?? shown;
|
|
412
|
-
const state = shown.state ?? (sessionSent ? "sent" : "draft");
|
|
413
263
|
const saveState = saveMutation.isPending ? { status: "saving" } : saveMutation.isError ? {
|
|
414
264
|
status: "error",
|
|
415
265
|
message: formatErrorMessage(saveMutation.error),
|
|
@@ -420,7 +270,7 @@ function WorkspaceCorrespondenceFileSession({ fallback = null, source, ...props
|
|
|
420
270
|
body: visible.body,
|
|
421
271
|
fields: visible.fields,
|
|
422
272
|
kind: shown.kind,
|
|
423
|
-
|
|
273
|
+
people: people?.data,
|
|
424
274
|
state,
|
|
425
275
|
saveState,
|
|
426
276
|
onChange: source.onChange ? setDraft : void 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as WorkspaceNavigationAdapter } from "../../WorkspaceLink-
|
|
1
|
+
import { l as WorkspaceNavigationAdapter } from "../../WorkspaceLink-C8HH2fMT.js";
|
|
2
2
|
import { r as WorkspaceMountManagerProps } from "../../WorkspaceMountManager-DM384Cn6.js";
|
|
3
|
-
import { b as WorkspaceState } from "../../Workspace-
|
|
3
|
+
import { b as WorkspaceState } from "../../Workspace-42LA9Zrb.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
//#region src/components/agents-sdk/WorkspaceExplorer.d.ts
|
|
6
6
|
export interface WorkspaceExplorerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { w as FolderIcon } from "../../icons-Yp99gmMC.js";
|
|
3
3
|
import { n as mergeRefs } from "../../merge-refs-DAh6reu8.js";
|
|
4
|
-
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
5
|
-
import { WorkspaceMountManager } from "./WorkspaceMountManager.js";
|
|
6
4
|
import { n as WorkspaceNavigationProvider, r as resolveWorkspaceLink } from "../../WorkspaceLink-BeFAXpbI.js";
|
|
7
5
|
import { WorkspaceNavigationRestorationBoundary, useRequiredWorkspaceNavigationRestoration } from "./WorkspaceNavigationRestoration.js";
|
|
6
|
+
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
7
|
+
import { WorkspaceMountManager } from "./WorkspaceMountManager.js";
|
|
8
8
|
import { WorkspaceBrowser } from "./WorkspaceBrowser.js";
|
|
9
|
-
import { t as WorkspaceFileView } from "../../WorkspaceFileView-
|
|
9
|
+
import { t as WorkspaceFileView } from "../../WorkspaceFileView-BWI_AJlV.js";
|
|
10
10
|
import * as React from "react";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
//#region src/components/agents-sdk/WorkspaceExplorer.tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as isWorkspaceTextPath, a as WorkspaceMediaInfo, c as WorkspaceMediaTrackKind, d as inferWorkspaceLanguage, f as inferWorkspaceMedia, g as isWorkspaceSkillPath, h as isWorkspaceMediaPath, i as WorkspaceFileState, l as WorkspaceSkillDocument, m as isWorkspaceMarkdownPath, n as WorkspaceFileAssetRequest, o as WorkspaceMediaKind, p as inferWorkspaceMimeType, r as WorkspaceFileAssetResolver, s as WorkspaceMediaTrack, t as WorkspaceFileAsset, u as getWorkspaceBasename, v as parseWorkspaceSkill } from "../../WorkspaceFile-
|
|
1
|
+
import { _ as isWorkspaceTextPath, a as WorkspaceMediaInfo, c as WorkspaceMediaTrackKind, d as inferWorkspaceLanguage, f as inferWorkspaceMedia, g as isWorkspaceSkillPath, h as isWorkspaceMediaPath, i as WorkspaceFileState, l as WorkspaceSkillDocument, m as isWorkspaceMarkdownPath, n as WorkspaceFileAssetRequest, o as WorkspaceMediaKind, p as inferWorkspaceMimeType, r as WorkspaceFileAssetResolver, s as WorkspaceMediaTrack, t as WorkspaceFileAsset, u as getWorkspaceBasename, v as parseWorkspaceSkill } from "../../WorkspaceFile-nK2n0i4S.js";
|
|
2
2
|
export { WorkspaceFileAsset, WorkspaceFileAssetRequest, WorkspaceFileAssetResolver, WorkspaceFileState, WorkspaceMediaInfo, WorkspaceMediaKind, WorkspaceMediaTrack, WorkspaceMediaTrackKind, WorkspaceSkillDocument, getWorkspaceBasename, inferWorkspaceLanguage, inferWorkspaceMedia, inferWorkspaceMimeType, isWorkspaceMarkdownPath, isWorkspaceMediaPath, isWorkspaceSkillPath, isWorkspaceTextPath, parseWorkspaceSkill };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as WorkspaceFileState } from "../../WorkspaceFile-
|
|
1
|
+
import { i as WorkspaceFileState } from "../../WorkspaceFile-nK2n0i4S.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
//#region src/components/agents-sdk/WorkspaceFileView.d.ts
|
|
4
4
|
export interface WorkspaceFileViewProps {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as WorkspaceFileView } from "../../WorkspaceFileView-
|
|
1
|
+
import { t as WorkspaceFileView } from "../../WorkspaceFileView-BWI_AJlV.js";
|
|
2
2
|
export { WorkspaceFileView };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as RefreshIcon } from "../../icons-Yp99gmMC.js";
|
|
2
2
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
3
3
|
import { ResponsiveSidebarAppBar } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
4
4
|
import "react";
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { n as isPlainPrimaryLinkActivation } from "../../navigation-link-zK6z8Gn3.js";
|
|
2
|
+
import { a as WorkspaceFileLinkProps, c as WorkspaceLinkResolution, d as WorkspaceNavigationProvider, f as WorkspaceNavigationProviderProps, i as WorkspaceFileLink, l as WorkspaceNavigationAdapter, n as WorkspaceDestination, o as WorkspaceInvalidDestination, p as resolveWorkspaceLink, r as WorkspaceExternalDestination, s as WorkspaceLinkBase, t as ResolveWorkspaceLinkOptions, u as WorkspaceNavigationEntry } from "../../WorkspaceLink-C8HH2fMT.js";
|
|
3
|
+
export { ResolveWorkspaceLinkOptions, WorkspaceDestination, WorkspaceExternalDestination, WorkspaceFileLink, WorkspaceFileLinkProps, WorkspaceInvalidDestination, WorkspaceLinkBase, WorkspaceLinkResolution, WorkspaceNavigationAdapter, WorkspaceNavigationEntry, WorkspaceNavigationProvider, WorkspaceNavigationProviderProps, isPlainPrimaryLinkActivation, resolveWorkspaceLink };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { n as isPlainPrimaryLinkActivation } from "../../navigation-link-kqMa81v5.js";
|
|
1
2
|
import { n as WorkspaceNavigationProvider, r as resolveWorkspaceLink, t as WorkspaceFileLink } from "../../WorkspaceLink-BeFAXpbI.js";
|
|
2
|
-
export { WorkspaceFileLink, WorkspaceNavigationProvider, resolveWorkspaceLink };
|
|
3
|
+
export { WorkspaceFileLink, WorkspaceNavigationProvider, isPlainPrimaryLinkActivation, resolveWorkspaceLink };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as WorkspaceFileAssetResolver } from "../../WorkspaceFile-
|
|
2
|
-
import { y as WorkspaceSource } from "../../Workspace-
|
|
1
|
+
import { r as WorkspaceFileAssetResolver } from "../../WorkspaceFile-nK2n0i4S.js";
|
|
2
|
+
import { y as WorkspaceSource } from "../../Workspace-42LA9Zrb.js";
|
|
3
3
|
import { QueryClient } from "@tanstack/react-query";
|
|
4
4
|
//#region src/components/agents-sdk/WorkspaceLive.d.ts
|
|
5
5
|
export type WorkspaceChange = {
|
|
@@ -13,6 +13,12 @@ export type WorkspaceChange = {
|
|
|
13
13
|
export interface WorkspaceChangeSource {
|
|
14
14
|
start?(): void | Promise<void>;
|
|
15
15
|
subscribe(listener: (change: WorkspaceChange) => void): () => void;
|
|
16
|
+
/**
|
|
17
|
+
* Whether events are flowing right now. While it answers true, `revision`
|
|
18
|
+
* ticks are skipped because events already cover the writes they stand for.
|
|
19
|
+
* Omit it when the source cannot tell, and both refresh.
|
|
20
|
+
*/
|
|
21
|
+
live?(): boolean;
|
|
16
22
|
}
|
|
17
23
|
export declare function invalidateWorkspaceDirectories(queryClient: QueryClient, sourceKey: string, directories: Iterable<string>, root: string): void;
|
|
18
24
|
export interface UseWorkspaceLiveQueriesOptions {
|
|
@@ -32,10 +38,11 @@ export interface UseWorkspaceLiveQueriesOptions {
|
|
|
32
38
|
resolveFileAsset?: WorkspaceFileAssetResolver;
|
|
33
39
|
maxInlineAssetBytes?: number;
|
|
34
40
|
/**
|
|
35
|
-
* Disposable freshness tick for
|
|
36
|
-
* example a serialization of settled-turn state. Every change of
|
|
37
|
-
* value invalidates the source's concept queries
|
|
38
|
-
*
|
|
41
|
+
* Disposable freshness tick for when native observation is absent or not
|
|
42
|
+
* live — for example a serialization of settled-turn state. Every change of
|
|
43
|
+
* a defined value invalidates the source's concept queries, unless
|
|
44
|
+
* `changes.live()` answers true. It never enters query identity, so data,
|
|
45
|
+
* mutation state, and form drafts survive the refresh.
|
|
39
46
|
*/
|
|
40
47
|
revision?: string;
|
|
41
48
|
}
|
|
@@ -50,10 +50,12 @@ function useWorkspaceLiveQueries({ changes, maxInlineAssetBytes, resolveFileAsse
|
|
|
50
50
|
revision
|
|
51
51
|
};
|
|
52
52
|
if (previous?.sourceKey === sourceKey && previous.root === root && previous.revision === revision) return;
|
|
53
|
+
if (changes?.live?.()) return;
|
|
53
54
|
queryClient.invalidateQueries({ queryKey: workspaceDirectoryQueryPrefix(sourceKey, root) });
|
|
54
55
|
invalidateWorkspaceConceptQueries(queryClient, sourceKey, root);
|
|
55
56
|
refreshResources();
|
|
56
57
|
}, [
|
|
58
|
+
changes,
|
|
57
59
|
queryClient,
|
|
58
60
|
revision,
|
|
59
61
|
root,
|
|
@@ -1,2 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { O as MessageResponseProps } from "../../Message-BUedRDN1.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
//#region src/components/agents-sdk/WorkspaceMessageResponse.d.ts
|
|
4
|
+
export interface WorkspaceFileRenderInput {
|
|
5
|
+
label: string;
|
|
6
|
+
path: string;
|
|
7
|
+
/** Shared workspace link element; hosts pass it through to the preview unchanged. */
|
|
8
|
+
sourceLink: React.ReactElement;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Host callback for one standalone workspace file link in an assistant
|
|
12
|
+
* paragraph. Return a node to replace the link, or `null` to keep it.
|
|
13
|
+
*/
|
|
14
|
+
export type WorkspaceFileRenderer = (file: WorkspaceFileRenderInput) => React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Ambient workspace-file renderer for every `WorkspaceMessageResponse` below,
|
|
17
|
+
* and the only way to supply one. The value is read inside the promoted
|
|
18
|
+
* paragraph, not by the response component, so a host handing down a fresh
|
|
19
|
+
* callback every render re-renders only the paragraphs — the memoized Markdown
|
|
20
|
+
* pipeline is untouched and promoted cards keep their state.
|
|
21
|
+
* `EmployeeTranscript` provides it from its `renderWorkspaceFile` prop; hosts
|
|
22
|
+
* composing their own transcript provide it once at their conversation root.
|
|
23
|
+
*/
|
|
24
|
+
export declare function WorkspaceFileRendererProvider({ children, renderWorkspaceFile }: {
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
renderWorkspaceFile: WorkspaceFileRenderer | undefined;
|
|
27
|
+
}): React.JSX.Element;
|
|
28
|
+
export interface WorkspaceMessageResponseProps extends MessageResponseProps {
|
|
29
|
+
/**
|
|
30
|
+
* Whether standalone workspace file links may be promoted. `ThinkChat`
|
|
31
|
+
* passes `false` for user messages: user links remain ordinary navigation.
|
|
32
|
+
*/
|
|
33
|
+
promoteWorkspaceFiles?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/** Adds workspace-aware Markdown links when rendered inside a workspace provider. */
|
|
36
|
+
export declare const WorkspaceMessageResponse: React.MemoExoticComponent<({ components, rehypePlugins, promoteWorkspaceFiles, ...props }: WorkspaceMessageResponseProps) => React.JSX.Element>;
|
|
37
|
+
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as WorkspaceMessageResponse, t as WorkspaceFileRendererProvider } from "../../WorkspaceMessageResponse-
|
|
1
|
+
import { n as WorkspaceMessageResponse, t as WorkspaceFileRendererProvider } from "../../WorkspaceMessageResponse-BZ-_I18b.js";
|
|
2
2
|
export { WorkspaceFileRendererProvider, WorkspaceMessageResponse };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as WorkspaceDestination } from "../../WorkspaceLink-
|
|
1
|
+
import { n as WorkspaceDestination } from "../../WorkspaceLink-C8HH2fMT.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
//#region src/components/agents-sdk/WorkspaceNavigationRestoration.d.ts
|
|
4
4
|
export interface WorkspaceNavigationRestoration {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { t as WorkspaceConceptQueryOptions } from "../../WorkspaceConcept-BjrgGE1w.js";
|
|
2
|
+
import { n as WorkspaceConceptPanelProps, t as WorkspaceConceptFileProps } from "../../workspace-concept-panel-CxuqDi4m.js";
|
|
3
|
+
import { t as WorkspacePerson } from "../../workspace-person-BSgvRjZE.js";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
//#region src/components/agents-sdk/WorkspacePerson.d.ts
|
|
6
|
+
export interface WorkspacePersonSource {
|
|
7
|
+
/** The workspace's people, shared by the panel and every inline card. */
|
|
8
|
+
queryOptions: WorkspaceConceptQueryOptions<readonly WorkspacePerson[]>;
|
|
9
|
+
/** Opens a person's file. Without it the name is plain text. */
|
|
10
|
+
onOpen?: (path: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export type WorkspacePersonFileProps = WorkspaceConceptFileProps<WorkspacePersonSource>;
|
|
13
|
+
export type WorkspacePeoplePanelProps = WorkspaceConceptPanelProps<WorkspacePersonSource>;
|
|
14
|
+
/** The People destination in the workbench navigation; the panel's heading and mark. */
|
|
15
|
+
export declare const peopleWorkbenchItem: {
|
|
16
|
+
readonly id: "people";
|
|
17
|
+
readonly label: "People";
|
|
18
|
+
readonly description: "Who they are to you and how to write to each.";
|
|
19
|
+
readonly icon: React.JSX.Element;
|
|
20
|
+
};
|
|
21
|
+
/** Compact inline card for one queried person file. */
|
|
22
|
+
export declare function WorkspacePersonFile({ fallback, path, source, ...props }: WorkspacePersonFileProps): string | number | bigint | boolean | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
|
|
23
|
+
/**
|
|
24
|
+
* Workbench list of queried people, by name. Once anyone has a circle, the list
|
|
25
|
+
* splits into Family, Team, Friends, and Others, skipping empty sections. Same
|
|
26
|
+
* card as the inline placement.
|
|
27
|
+
*/
|
|
28
|
+
export declare function WorkspacePeoplePanel({ source, ...props }: WorkspacePeoplePanelProps): React.JSX.Element;
|
|
29
|
+
//#endregion
|
|
30
|
+
export type { WorkspacePerson };
|