@mcp-b/react-components 0.64.1 → 0.66.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.
Files changed (116) hide show
  1. package/dist/AgentComputer-2uYB8kmu.js +8084 -0
  2. package/dist/{ExecutionResult-CXnGcmM4.js → ExecutionResult-C7SzVquo.js} +1 -1
  3. package/dist/WallpaperPicker-C-FItmDS.d.ts +34 -0
  4. package/dist/WorkspaceBrowser-Dz48H-7X.d.ts +89 -0
  5. package/dist/{WorkspaceFileCommands-SNIjRgtU.d.ts → WorkspaceFileCommands-1s9Ol8CG.d.ts} +11 -3
  6. package/dist/{WorkspaceMessageResponse-CXGOQgpo.js → WorkspaceMessageResponse-BoeeltJM.js} +1 -1
  7. package/dist/assets/wallpapers/README.md +31 -0
  8. package/dist/assets/wallpapers/alpine.webp +0 -0
  9. package/dist/assets/wallpapers/dusk.webp +0 -0
  10. package/dist/assets/wallpapers/ember.webp +0 -0
  11. package/dist/assets/wallpapers/graphite.webp +0 -0
  12. package/dist/assets/wallpapers/sigvelo.webp +0 -0
  13. package/dist/assets/wallpapers/tide.webp +0 -0
  14. package/dist/automations-host-DPORjdc7.js +17 -0
  15. package/dist/components/agents-sdk/AgentComputer.d.ts +7 -1
  16. package/dist/components/agents-sdk/AgentComputer.js +1 -8044
  17. package/dist/components/agents-sdk/AgentScreenSwitcher.js +1 -0
  18. package/dist/components/agents-sdk/BrowserLiveScreen.d.ts +7 -1
  19. package/dist/components/agents-sdk/BrowserLiveScreen.js +259 -257
  20. package/dist/components/agents-sdk/BrowserRunPanel.d.ts +2 -0
  21. package/dist/components/agents-sdk/BrowserRunPanel.js +1 -0
  22. package/dist/components/agents-sdk/ComputerAutomations.d.ts +70 -0
  23. package/dist/components/agents-sdk/ComputerAutomations.js +1410 -0
  24. package/dist/components/agents-sdk/ComputerCalendar.d.ts +7 -0
  25. package/dist/components/agents-sdk/ComputerCalendar.js +1344 -0
  26. package/dist/components/agents-sdk/ComputerFiles.d.ts +153 -0
  27. package/dist/components/agents-sdk/ComputerFiles.js +2401 -0
  28. package/dist/components/agents-sdk/ComputerHome.d.ts +15 -0
  29. package/dist/components/agents-sdk/ComputerHome.js +90 -0
  30. package/dist/components/agents-sdk/ComputerNotifications.d.ts +54 -0
  31. package/dist/components/agents-sdk/ComputerNotifications.js +692 -0
  32. package/dist/components/agents-sdk/ComputerScreen.d.ts +78 -0
  33. package/dist/components/agents-sdk/ComputerScreen.js +750 -0
  34. package/dist/components/agents-sdk/ComputerSettings.d.ts +69 -0
  35. package/dist/components/agents-sdk/ComputerSettings.js +1371 -0
  36. package/dist/components/agents-sdk/ComputerSpotlight.d.ts +29 -0
  37. package/dist/components/agents-sdk/ComputerSpotlight.js +232 -0
  38. package/dist/components/agents-sdk/ComputerViewer.d.ts +51 -0
  39. package/dist/components/agents-sdk/ComputerViewer.js +339 -0
  40. package/dist/components/agents-sdk/ComputerWallpapers.d.ts +11 -0
  41. package/dist/components/agents-sdk/ComputerWallpapers.js +43 -0
  42. package/dist/components/agents-sdk/EmployeeApp.js +1 -1
  43. package/dist/components/agents-sdk/EmployeeChat.js +1 -1
  44. package/dist/components/agents-sdk/EmployeeChrome.js +4 -4
  45. package/dist/components/agents-sdk/EmployeeSchedules.js +3 -3
  46. package/dist/components/agents-sdk/EmployeeStartScreen.js +1 -1
  47. package/dist/components/agents-sdk/ExecutionBoard.js +1 -1
  48. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  49. package/dist/components/agents-sdk/ManagerOfficeScreens.js +1 -1
  50. package/dist/components/agents-sdk/McpPluginCatalog.js +1 -1
  51. package/dist/components/agents-sdk/ModelSelector.js +1 -1
  52. package/dist/components/agents-sdk/ThinkChat.js +1 -1
  53. package/dist/components/agents-sdk/ThinkChatActivitySummary.js +1 -1
  54. package/dist/components/agents-sdk/ThinkChatToolPanels.js +5 -5
  55. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +3 -3
  56. package/dist/components/agents-sdk/ThinkFullApp.d.ts +13 -0
  57. package/dist/components/agents-sdk/ThinkFullApp.js +13 -0
  58. package/dist/components/agents-sdk/ThinkScheduleActions.js +1 -1
  59. package/dist/components/agents-sdk/ThinkScheduleDetail.js +3 -3
  60. package/dist/components/agents-sdk/ThinkScheduleForm.js +4 -4
  61. package/dist/components/agents-sdk/WorkspaceAutomation.js +4 -4
  62. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1 -1
  63. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +2 -88
  64. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +1 -1
  65. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +1 -1
  66. package/dist/components/agents-sdk/WorkspaceDocumentFrame.d.ts +17 -0
  67. package/dist/components/agents-sdk/WorkspaceDocumentFrame.js +90 -0
  68. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +4 -1
  69. package/dist/components/agents-sdk/WorkspaceExplorer.js +70 -66
  70. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -2
  71. package/dist/components/agents-sdk/WorkspaceFileCommands.js +346 -316
  72. package/dist/components/agents-sdk/WorkspaceFileView.d.ts +7 -1
  73. package/dist/components/agents-sdk/WorkspaceFileView.js +83 -71
  74. package/dist/components/agents-sdk/WorkspaceLink.js +1 -1
  75. package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -4
  76. package/dist/components/agents-sdk/WorkspaceLive.js +18 -11
  77. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  78. package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -1
  79. package/dist/components/agents-sdk/WorkspaceProject.js +7 -4
  80. package/dist/components/ai-sdk/ConnectedAppCards.js +1 -1
  81. package/dist/components/ai-sdk/Goal.d.ts +1 -2
  82. package/dist/components/ai-sdk/Goal.js +1 -2
  83. package/dist/components/extension/FirstRunSetup.d.ts +132 -37
  84. package/dist/components/extension/FirstRunSetup.js +1920 -1567
  85. package/dist/components/general-purpose/CommandPalette.d.ts +6 -1
  86. package/dist/components/general-purpose/CommandPalette.js +90 -82
  87. package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
  88. package/dist/components/general-purpose/StatusScreen.d.ts +6 -1
  89. package/dist/components/general-purpose/StatusScreen.js +44 -36
  90. package/dist/components/general-purpose/ThemeModeControl.js +1 -1
  91. package/dist/components/general-purpose/WallpaperPicker.d.ts +2 -33
  92. package/dist/components/nanites/AgentConnection.js +1 -1
  93. package/dist/parts-BxJC0QVb.js +112 -0
  94. package/dist/styles/agent-computer.css +28 -0
  95. package/dist/styles/base.css +6 -0
  96. package/dist/styles/chatgpt-sign-in-screen.css +2 -0
  97. package/dist/styles/computer-app-tile.css +20 -0
  98. package/dist/styles/computer-automations.css +454 -0
  99. package/dist/styles/computer-calendar.css +648 -0
  100. package/dist/styles/computer-files.css +566 -0
  101. package/dist/styles/computer-home.css +90 -0
  102. package/dist/styles/computer-notifications.css +242 -0
  103. package/dist/styles/computer-screen.css +89 -0
  104. package/dist/styles/computer-settings.css +550 -0
  105. package/dist/styles/computer-spotlight.css +7 -0
  106. package/dist/styles/computer-viewer.css +130 -0
  107. package/dist/styles/first-run-setup.css +107 -96
  108. package/dist/styles/index.css +11 -0
  109. package/dist/styles/recipes.css +42 -0
  110. package/dist/styles/select.css +2 -1
  111. package/dist/styles/switch.css +20 -5
  112. package/dist/styles/workspace-document-frame.css +31 -0
  113. package/package.json +2 -2
  114. package/dist/{ManagerOffice-T79utm-P.js → ManagerOffice-kSK7vTBl.js} +1 -1
  115. package/dist/{WorkspaceLink-DDkj-Tq5.js → WorkspaceLink-DK9kdMUH.js} +1 -1
  116. package/dist/{connected-app-drafts-Bocdg3Z-.js → connected-app-drafts-C49343p9.js} +1 -1
@@ -0,0 +1,43 @@
1
+ //#region src/components/agents-sdk/ComputerWallpapers.ts
2
+ const picture = (url) => `url("${url}") center / cover`;
3
+ /**
4
+ * The computer's own backgrounds: original pictures, the same in light and
5
+ * dark, shipped with the package. Pass one to `AgentComputer`'s `wallpaper`
6
+ * and the list to `ComputerSettings.Host`'s `wallpapers`.
7
+ */
8
+ const COMPUTER_WALLPAPERS = [
9
+ {
10
+ value: "sigvelo",
11
+ label: "Sigvelo",
12
+ background: picture(new URL("../../assets/wallpapers/sigvelo.webp", import.meta.url).href)
13
+ },
14
+ {
15
+ value: "alpine",
16
+ label: "Alpine",
17
+ background: picture(new URL("../../assets/wallpapers/alpine.webp", import.meta.url).href)
18
+ },
19
+ {
20
+ value: "dusk",
21
+ label: "Dusk",
22
+ background: picture(new URL("../../assets/wallpapers/dusk.webp", import.meta.url).href)
23
+ },
24
+ {
25
+ value: "tide",
26
+ label: "Tide",
27
+ background: picture(new URL("../../assets/wallpapers/tide.webp", import.meta.url).href)
28
+ },
29
+ {
30
+ value: "ember",
31
+ label: "Ember",
32
+ background: picture(new URL("../../assets/wallpapers/ember.webp", import.meta.url).href)
33
+ },
34
+ {
35
+ value: "graphite",
36
+ label: "Graphite",
37
+ background: picture(new URL("../../assets/wallpapers/graphite.webp", import.meta.url).href)
38
+ }
39
+ ];
40
+ /** The wallpaper a computer shows until its person chooses another. */
41
+ const DEFAULT_COMPUTER_WALLPAPER = "sigvelo";
42
+ //#endregion
43
+ export { COMPUTER_WALLPAPERS, DEFAULT_COMPUTER_WALLPAPER };
@@ -1,6 +1,6 @@
1
1
  import { mt as WarningIcon } from "../../icons-nLTnB9kd.js";
2
- import { WorkbenchBack } from "./WorkbenchBack.js";
3
2
  import { StatusScreen } from "../general-purpose/StatusScreen.js";
3
+ import { WorkbenchBack } from "./WorkbenchBack.js";
4
4
  import { EmployeeChrome } from "./EmployeeChrome.js";
5
5
  import { ThinkFullApp } from "./ThinkFullApp.js";
6
6
  import { c } from "react/compiler-runtime";
@@ -1,12 +1,12 @@
1
1
  import { PromptInputActionAddAttachments, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuTrigger, PromptInputAttachments, PromptInputBody, PromptInputCommandComposer, PromptInputContextSelector, PromptInputFooter, PromptInputFooterEnd, PromptInputTools } from "../ai-sdk/PromptInput.js";
2
2
  import { AgentChat, useAgentChatCompaction } from "./AgentChat.js";
3
+ import { t as WorkspaceFileRendererProvider } from "../../WorkspaceMessageResponse-BoeeltJM.js";
3
4
  import { ConversationTabPicker } from "../extension/ConversationTabPicker.js";
4
5
  import { n as SetupChecklistGroup } from "../../SetupChecklist-DwscX3Bw.js";
5
6
  import { McpServerPickerItems } from "./McpServerPicker.js";
6
7
  import { EmployeeStartScreen } from "./EmployeeStartScreen.js";
7
8
  import { Context, ContextContent, ContextContentBody, ContextContentFooter, ContextContentHeader, ContextTrigger } from "../ai-sdk/Context.js";
8
9
  import { CodexModelSelector } from "../extension/CodexModelSelector.js";
9
- import { t as WorkspaceFileRendererProvider } from "../../WorkspaceMessageResponse-CXGOQgpo.js";
10
10
  import { ThinkChat } from "./ThinkChat.js";
11
11
  import { c } from "react/compiler-runtime";
12
12
  import * as React from "react";
@@ -11,14 +11,14 @@ import { BrandLoading } from "../general-purpose/BrandLoading.js";
11
11
  import { AgentChat } from "./AgentChat.js";
12
12
  import { EmptyState } from "../foundations/EmptyState.js";
13
13
  import { Avatar } from "../foundations/Avatar.js";
14
- import { AppTopBar } from "../general-purpose/AppTopBar.js";
14
+ import { DescriptionList } from "../foundations/DescriptionList.js";
15
15
  import { n as isPlainPrimaryLinkActivation } from "../../navigation-link-DMmtdqsM.js";
16
+ import { AppTopBar } from "../general-purpose/AppTopBar.js";
17
+ import { ResponsiveSidebarShell, useResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
18
+ import { useTheme } from "../foundations/ThemeProvider.js";
16
19
  import { AgentChatStartScreen, AgentChatStartScreenComposer, AgentChatStartScreenPrimary, AgentChatStartScreenSuggestions, AgentChatStartScreenTray, AgentChatStarterList } from "../ai-sdk/AgentChatStartScreen.js";
17
20
  import { t as ChatGptSignInScreen } from "../../ChatGptSignInScreen-CmbBe09G.js";
18
- import { DescriptionList } from "../foundations/DescriptionList.js";
19
- import { useTheme } from "../foundations/ThemeProvider.js";
20
21
  import { ActionGuide, ActionGuideAction, ActionGuideList, ActionGuideSection } from "../general-purpose/ActionGuide.js";
21
- import { ResponsiveSidebarShell, useResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
22
22
  import { McpServerIcon } from "./McpServerIcon.js";
23
23
  import { ThinkThreadPicker, ThinkThreadStatusIndicators, summarizeThinkThreads } from "./ThinkThreadPicker.js";
24
24
  import { c } from "react/compiler-runtime";
@@ -1,13 +1,13 @@
1
1
  import { J as PencilIcon, r as ArrowLeftIcon } from "../../icons-nLTnB9kd.js";
2
+ import { getThinkExecutionRunId } from "./ThinkExecutionRun.js";
2
3
  import { AppTopBar } from "../general-purpose/AppTopBar.js";
3
- import { StatusScreen } from "../general-purpose/StatusScreen.js";
4
4
  import { ResponsiveSidebarShell, useResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
5
5
  import { LinkButton } from "../foundations/LinkButton.js";
6
- import { EmployeeChrome } from "./EmployeeChrome.js";
7
- import { getThinkExecutionRunId } from "./ThinkExecutionRun.js";
6
+ import { StatusScreen } from "../general-purpose/StatusScreen.js";
8
7
  import { ThinkScheduleActions, useThinkScheduleActions } from "./ThinkScheduleActions.js";
9
8
  import { ThinkScheduleBrowser } from "./ThinkScheduleBrowser.js";
10
9
  import { ThinkScheduleDetail } from "./ThinkScheduleDetail.js";
10
+ import { EmployeeChrome } from "./EmployeeChrome.js";
11
11
  import { c } from "react/compiler-runtime";
12
12
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
13
  //#region src/components/agents-sdk/EmployeeSchedules.tsx
@@ -2,11 +2,11 @@ import { K as PaperclipIcon, k as FolderIcon, rt as SlackIcon, u as BoxIcon, x a
2
2
  import { IconButton } from "../foundations/IconButton.js";
3
3
  import { AppIcon } from "../foundations/AppIcon.js";
4
4
  import { Menu } from "../foundations/Menu.js";
5
+ import { WorkspaceMountManager } from "./WorkspaceMountManager.js";
5
6
  import { ActionGuideAction } from "../general-purpose/ActionGuide.js";
6
7
  import { EmployeeChrome } from "./EmployeeChrome.js";
7
8
  import { t as SetupChecklistAction } from "../../SetupChecklist-DwscX3Bw.js";
8
9
  import { McpServerPickerAction, McpServerPickerItems } from "./McpServerPicker.js";
9
- import { WorkspaceMountManager } from "./WorkspaceMountManager.js";
10
10
  import { c } from "react/compiler-runtime";
11
11
  import * as React from "react";
12
12
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -7,7 +7,7 @@ import { Favicon } from "../foundations/Favicon.js";
7
7
  import { DescriptionList } from "../foundations/DescriptionList.js";
8
8
  import { a as executionResultSummary, n as executionErrorSummary, s as stepState, t as boardNotice } from "../../execution-result-DAuW4VWv.js";
9
9
  import { i as httpUrl, t as Hint } from "../../workspace-assets-DdtnBDU3.js";
10
- import { t as ExecutionResult } from "../../ExecutionResult-CXnGcmM4.js";
10
+ import { t as ExecutionResult } from "../../ExecutionResult-C7SzVquo.js";
11
11
  import { c } from "react/compiler-runtime";
12
12
  import * as React from "react";
13
13
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { n as ManagerOfficeSidebar, r as ManagerOfficeSidebarAlert, t as ManagerOffice } from "../../ManagerOffice-T79utm-P.js";
1
+ import { n as ManagerOfficeSidebar, r as ManagerOfficeSidebarAlert, t as ManagerOffice } from "../../ManagerOffice-kSK7vTBl.js";
2
2
  export { ManagerOffice, ManagerOfficeSidebar, ManagerOfficeSidebarAlert };
@@ -4,7 +4,7 @@ import { AppTopBar } from "../general-purpose/AppTopBar.js";
4
4
  import { ResponsiveSidebarShell, useResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
5
5
  import { ThinkThreadPicker } from "./ThinkThreadPicker.js";
6
6
  import { EmployeeChrome } from "./EmployeeChrome.js";
7
- import { n as ManagerOfficeSidebar, r as ManagerOfficeSidebarAlert, t as ManagerOffice } from "../../ManagerOffice-T79utm-P.js";
7
+ import { n as ManagerOfficeSidebar, r as ManagerOfficeSidebarAlert, t as ManagerOffice } from "../../ManagerOffice-kSK7vTBl.js";
8
8
  import { c } from "react/compiler-runtime";
9
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
10
  //#region src/components/agents-sdk/ManagerOfficeScreens.tsx
@@ -9,8 +9,8 @@ import { IconButton } from "../foundations/IconButton.js";
9
9
  import { AppIcon } from "../foundations/AppIcon.js";
10
10
  import { AgentAttention, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
11
11
  import { Separator } from "../foundations/Separator.js";
12
- import { McpServerIcon } from "./McpServerIcon.js";
13
12
  import { SearchField } from "../foundations/SearchField.js";
13
+ import { McpServerIcon } from "./McpServerIcon.js";
14
14
  import { t as getMcpServerProjection } from "../../mcp-server-mAErsxHU.js";
15
15
  import { McpServerSetupDialog } from "./McpServerPicker.js";
16
16
  import { c } from "react/compiler-runtime";
@@ -6,8 +6,8 @@ import { Dialog } from "../foundations/Dialog.js";
6
6
  import { ScrollArea } from "../foundations/ScrollArea.js";
7
7
  import { Autocomplete } from "../foundations/Autocomplete.js";
8
8
  import { EmptyState } from "../foundations/EmptyState.js";
9
- import { t as ProviderLogo } from "../../provider-logos-Ceu7iYFx.js";
10
9
  import { Separator } from "../foundations/Separator.js";
10
+ import { t as ProviderLogo } from "../../provider-logos-Ceu7iYFx.js";
11
11
  import { c } from "react/compiler-runtime";
12
12
  import * as React from "react";
13
13
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,9 +1,9 @@
1
1
  import { composerDraftToPrompt, parseComposerLinks } from "../../utils/composer-link.js";
2
2
  import { AgentChat, useAgentChatControls } from "./AgentChat.js";
3
+ import { n as WorkspaceMessageResponse } from "../../WorkspaceMessageResponse-BoeeltJM.js";
3
4
  import { ThinkChatContext, ThinkChatLiveContext, useThinkChatContext } from "./ThinkChatContext.js";
4
5
  import { ThinkChatActivity, createThinkChatActivityRenderer, renderThinkChatActivityPart } from "./ThinkChatActivity.js";
5
6
  import { ThinkRecoveryNotice } from "./ThinkRecoveryNotice.js";
6
- import { n as WorkspaceMessageResponse } from "../../WorkspaceMessageResponse-CXGOQgpo.js";
7
7
  import { c } from "react/compiler-runtime";
8
8
  import * as React from "react";
9
9
  import { jsx } from "react/jsx-runtime";
@@ -2,8 +2,8 @@ import { t as capitalize } from "../../format-DL7f2rqp.js";
2
2
  import { getToolDisplayName } from "../ai-sdk/ToolPart.js";
3
3
  import { t as summarizeToolInput } from "../../summarize-tool-input-CqTcGRYy.js";
4
4
  import { i as workspaceBasename } from "../../workspace-path-TZggP-u4.js";
5
- import { displayUrl, isBrowserToolPart, isExecuteToolPart, isFetchToolPart, isPartFailed, isPartWorking, isSessionContextToolFailure, isSessionContextToolPart, isSkillToolPart, isWorkspaceToolPart, readFollowUpReceipt, thinkToolOutcome } from "./ThinkChatToolParts.js";
6
5
  import { formatThinkExecutionShortTimestamp } from "./ThinkExecutionRun.js";
6
+ import { displayUrl, isBrowserToolPart, isExecuteToolPart, isFetchToolPart, isPartFailed, isPartWorking, isSessionContextToolFailure, isSessionContextToolPart, isSkillToolPart, isWorkspaceToolPart, readFollowUpReceipt, thinkToolOutcome } from "./ThinkChatToolParts.js";
7
7
  import { getStaticToolName, getToolName, isReasoningUIPart, isStaticToolUIPart, isToolUIPart } from "ai";
8
8
  //#region src/components/agents-sdk/ThinkChatActivitySummary.ts
9
9
  function described(action, detail) {
@@ -3,13 +3,13 @@ import { ToolInvocationDetails } from "../ai-sdk/ToolInvocation.js";
3
3
  import { Tabs } from "../foundations/Tabs.js";
4
4
  import { i as workspaceBasename } from "../../workspace-path-TZggP-u4.js";
5
5
  import { BrowserLiveView } from "./BrowserLiveView.js";
6
- import { i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "../../CodeBlock-dt0L8md0.js";
6
+ import { formatThinkExecutionShortTimestamp } from "./ThinkExecutionRun.js";
7
+ import { n as executionErrorSummary } from "../../execution-result-DAuW4VWv.js";
8
+ import { t as WorkspaceFileLink } from "../../WorkspaceLink-DK9kdMUH.js";
9
+ import { t as ExecutionResult } from "../../ExecutionResult-C7SzVquo.js";
7
10
  import { inferWorkspaceLanguage } from "./WorkspaceFile.js";
11
+ import { i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "../../CodeBlock-dt0L8md0.js";
8
12
  import { displayUrl, isSessionContextToolFailure, readFollowUpReceipt, thinkToolOutcome } from "./ThinkChatToolParts.js";
9
- import { n as executionErrorSummary } from "../../execution-result-DAuW4VWv.js";
10
- import { t as WorkspaceFileLink } from "../../WorkspaceLink-DDkj-Tq5.js";
11
- import { t as ExecutionResult } from "../../ExecutionResult-CXnGcmM4.js";
12
- import { formatThinkExecutionShortTimestamp } from "./ThinkExecutionRun.js";
13
13
  import { c } from "react/compiler-runtime";
14
14
  import * as React from "react";
15
15
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -5,11 +5,11 @@ import { buttonVariants } from "../foundations/Button.js";
5
5
  import { IconButton } from "../foundations/IconButton.js";
6
6
  import { Menu } from "../foundations/Menu.js";
7
7
  import { EmptyState } from "../foundations/EmptyState.js";
8
- import { AppTopBar } from "../general-purpose/AppTopBar.js";
9
- import { t as NavigationLink } from "../../navigation-link-DMmtdqsM.js";
10
- import { ResponsiveSidebarAppBar } from "../general-purpose/ResponsiveSidebarShell.js";
11
8
  import { getThinkExecutionRunAccessibleName, getThinkExecutionRunId, getThinkExecutionRunStatus, getThinkExecutionRunStatusTone, getThinkExecutionRunTitle, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
12
9
  import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
10
+ import { t as NavigationLink } from "../../navigation-link-DMmtdqsM.js";
11
+ import { AppTopBar } from "../general-purpose/AppTopBar.js";
12
+ import { ResponsiveSidebarAppBar } from "../general-purpose/ResponsiveSidebarShell.js";
13
13
  import { c } from "react/compiler-runtime";
14
14
  import * as React from "react";
15
15
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -12,6 +12,19 @@ export interface ThinkFullAppRootProps extends React.ComponentPropsWithRef<"div"
12
12
  * compact layouts show the workbench; ResizableSidePanel owns desktop resizing.
13
13
  * Compact layout follows the width available to this content, including any
14
14
  * space occupied by a surrounding sidebar.
15
+ *
16
+ * Workspace hosts mount `WorkspaceNavigationProvider` and
17
+ * `WorkspaceNavigationRestorationBoundary` around both panes, then place
18
+ * `WorkspaceNavigationFocusRestorer` at the persistent conversation scope.
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * <ThinkFullApp.Root workbenchOpen={selectedOutput !== null}>
23
+ * <ThinkFullApp.Conversation>{conversation}</ThinkFullApp.Conversation>
24
+ * <ThinkFullApp.Workbench>{selectedOutput}</ThinkFullApp.Workbench>
25
+ * <ThinkFullApp.ResizeHandle />
26
+ * </ThinkFullApp.Root>
27
+ * ```
15
28
  */
16
29
  declare function ThinkFullAppRoot({ workbenchOpen, children, className, ...props }: ThinkFullAppRootProps): React.JSX.Element;
17
30
  export interface ThinkFullAppConversationProps extends useRender.ComponentProps<"section"> {}
@@ -19,6 +19,19 @@ function useWorkbenchOpen() {
19
19
  * compact layouts show the workbench; ResizableSidePanel owns desktop resizing.
20
20
  * Compact layout follows the width available to this content, including any
21
21
  * space occupied by a surrounding sidebar.
22
+ *
23
+ * Workspace hosts mount `WorkspaceNavigationProvider` and
24
+ * `WorkspaceNavigationRestorationBoundary` around both panes, then place
25
+ * `WorkspaceNavigationFocusRestorer` at the persistent conversation scope.
26
+ *
27
+ * @example
28
+ * ```tsx
29
+ * <ThinkFullApp.Root workbenchOpen={selectedOutput !== null}>
30
+ * <ThinkFullApp.Conversation>{conversation}</ThinkFullApp.Conversation>
31
+ * <ThinkFullApp.Workbench>{selectedOutput}</ThinkFullApp.Workbench>
32
+ * <ThinkFullApp.ResizeHandle />
33
+ * </ThinkFullApp.Root>
34
+ * ```
22
35
  */
23
36
  function ThinkFullAppRoot(t0) {
24
37
  const $ = c(18);
@@ -4,8 +4,8 @@ import { a as formatErrorMessage } from "../../format-DL7f2rqp.js";
4
4
  import { Button } from "../foundations/Button.js";
5
5
  import { n as mergeRefs } from "../../merge-refs-DTX97mLp.js";
6
6
  import { AlertDialog } from "../foundations/AlertDialog.js";
7
- import { AppTopBar } from "../general-purpose/AppTopBar.js";
8
7
  import { n as executionErrorSummary } from "../../execution-result-DAuW4VWv.js";
8
+ import { AppTopBar } from "../general-purpose/AppTopBar.js";
9
9
  import { c } from "react/compiler-runtime";
10
10
  import * as React from "react";
11
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,13 +1,13 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
2
  import { buttonVariants } from "../foundations/Button.js";
3
3
  import { EmptyState } from "../foundations/EmptyState.js";
4
- import { t as NavigationLink } from "../../navigation-link-DMmtdqsM.js";
5
4
  import { DescriptionList } from "../foundations/DescriptionList.js";
6
- import { n as executionResultLabel, t as ExecutionResult } from "../../ExecutionResult-CXnGcmM4.js";
7
5
  import { getThinkExecutionRunAccessibleName, getThinkExecutionRunId, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
6
+ import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
7
+ import { t as NavigationLink } from "../../navigation-link-DMmtdqsM.js";
8
+ import { n as executionResultLabel, t as ExecutionResult } from "../../ExecutionResult-C7SzVquo.js";
8
9
  import { formatThinkScheduleRepeat, getThinkScheduleNextRun } from "./ThinkSchedule.js";
9
10
  import { Switch } from "../foundations/Switch.js";
10
- import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
11
11
  import { c } from "react/compiler-runtime";
12
12
  import * as React from "react";
13
13
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -10,15 +10,15 @@ import { Form } from "../foundations/Form.js";
10
10
  import { IconButton } from "../foundations/IconButton.js";
11
11
  import { Textarea } from "../foundations/Textarea.js";
12
12
  import { Favicon } from "../foundations/Favicon.js";
13
- import { AppTopBar } from "../general-purpose/AppTopBar.js";
14
- import { Fieldset } from "../foundations/Fieldset.js";
15
13
  import { n as executionErrorSummary } from "../../execution-result-DAuW4VWv.js";
16
14
  import { i as httpUrl } from "../../workspace-assets-DdtnBDU3.js";
17
- import { t as ExecutionResult } from "../../ExecutionResult-CXnGcmM4.js";
15
+ import { t as ExecutionResult } from "../../ExecutionResult-C7SzVquo.js";
16
+ import { AppTopBar } from "../general-purpose/AppTopBar.js";
17
+ import { n as OptionSelect, t as scheduledTableSourceNote } from "../../scheduled-table-source-gGpVJ1TN.js";
18
18
  import { CheckboxGroup } from "../foundations/CheckboxGroup.js";
19
19
  import { Combobox } from "../foundations/Combobox.js";
20
+ import { Fieldset } from "../foundations/Fieldset.js";
20
21
  import { NumberField } from "../foundations/NumberField.js";
21
- import { n as OptionSelect, t as scheduledTableSourceNote } from "../../scheduled-table-source-gGpVJ1TN.js";
22
22
  import { c } from "react/compiler-runtime";
23
23
  import * as React from "react";
24
24
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -11,16 +11,16 @@ import { Tabs } from "../foundations/Tabs.js";
11
11
  import { EmptyState } from "../foundations/EmptyState.js";
12
12
  import { Favicon } from "../foundations/Favicon.js";
13
13
  import { Input } from "../foundations/Input.js";
14
- import { AppTopBar } from "../general-purpose/AppTopBar.js";
15
14
  import { DescriptionList } from "../foundations/DescriptionList.js";
16
- import { ResponsiveSidebarAppBar } from "../general-purpose/ResponsiveSidebarShell.js";
17
15
  import { a as executionResultSummary, n as executionErrorSummary } from "../../execution-result-DAuW4VWv.js";
18
16
  import { i as httpUrl, n as OutboundLink, r as WorkspaceComposerLink } from "../../workspace-assets-DdtnBDU3.js";
19
- import { t as ExecutionResult } from "../../ExecutionResult-CXnGcmM4.js";
20
- import { ExecutionBoard } from "./ExecutionBoard.js";
17
+ import { t as ExecutionResult } from "../../ExecutionResult-C7SzVquo.js";
18
+ import { AppTopBar } from "../general-purpose/AppTopBar.js";
19
+ import { ResponsiveSidebarAppBar } from "../general-purpose/ResponsiveSidebarShell.js";
21
20
  import { n as useConceptEntry, t as WorkspaceConceptPanel } from "../../workspace-concept-panel-VkjvFCY_.js";
22
21
  import { t as WorkspaceDeleteControl } from "../../workspace-delete-BOY6CMBf.js";
23
22
  import { t as WorkspaceEntityCard } from "../../workspace-entity-card-9YcsNiqU.js";
23
+ import { ExecutionBoard } from "./ExecutionBoard.js";
24
24
  import { WorkspaceAutomationTable } from "./WorkspaceAutomationTable.js";
25
25
  import { c } from "react/compiler-runtime";
26
26
  import * as React from "react";
@@ -10,7 +10,7 @@ import { Textarea } from "../foundations/Textarea.js";
10
10
  import { Favicon } from "../foundations/Favicon.js";
11
11
  import { a as executionResultSummary, n as executionErrorSummary, o as readExecutionResult } from "../../execution-result-DAuW4VWv.js";
12
12
  import { i as httpUrl, n as OutboundLink } from "../../workspace-assets-DdtnBDU3.js";
13
- import { n as executionResultLabel, t as ExecutionResult } from "../../ExecutionResult-CXnGcmM4.js";
13
+ import { n as executionResultLabel, t as ExecutionResult } from "../../ExecutionResult-C7SzVquo.js";
14
14
  import { ExecutionBoard } from "./ExecutionBoard.js";
15
15
  import { n as OptionSelect, t as scheduledTableSourceNote } from "../../scheduled-table-source-gGpVJ1TN.js";
16
16
  import { Progress } from "../foundations/Progress.js";
@@ -1,88 +1,2 @@
1
- import { b as WorkspaceState } from "../../Workspace-B9nuTfIi.js";
2
- import { r as WorkspaceDragAndDrop } from "../../WorkspaceFileTransfer-BRD22nW-.js";
3
- import { i as WorkspaceFileCommands, n as WorkspaceFileCommand } from "../../WorkspaceFileCommands-SNIjRgtU.js";
4
- import * as React from "react";
5
- import { FileInfo } from "@cloudflare/shell";
6
- //#region src/components/agents-sdk/WorkspaceBrowser.d.ts
7
- export interface WorkspaceBrowserSort {
8
- /** Metadata field used to order loaded entries. */
9
- by: "name" | "kind" | "modified" | "size";
10
- /** Direction of comparison, with name/path resolving ties consistently. */
11
- direction: "ascending" | "descending";
12
- }
13
- export interface WorkspaceBrowserProps {
14
- workspace: WorkspaceState;
15
- /** Tree branches, or a flat list/grid of the current directory. Flat folder views need onDirectoryOpen. */
16
- layout?: "tree" | "list" | "grid";
17
- /** Sort loaded directory metadata without changing selection, search, or navigation. */
18
- sort?: WorkspaceBrowserSort;
19
- /**
20
- * Which surface carries the folder heading and refresh. "bar" keeps the
21
- * browser's own top bar; "none" hands them to chrome the host already draws,
22
- * such as a window toolbar, so a folder never stacks two bars.
23
- */
24
- header?: "bar" | "none";
25
- title?: React.ReactNode;
26
- /** Leading workspace control, such as a host-owned Back to chat button. */
27
- leading?: React.ReactNode;
28
- actions?: React.ReactNode;
29
- showFilter?: boolean;
30
- filterPlaceholder?: string;
31
- /**
32
- * The file filter's query. Controlled when supplied with `onFilterChange`,
33
- * so host chrome — a window toolbar's search field — can carry the control;
34
- * uncontrolled otherwise.
35
- */
36
- filter?: string;
37
- /** Called when the filter query changes. */
38
- onFilterChange?: (next: string) => void;
39
- /** What an empty folder says. The list and grid say nothing by default, as Finder does. */
40
- emptyState?: React.ReactNode;
41
- /**
42
- * Called when a folder row is activated, where a folder is a screen of its
43
- * own rather than a branch: a phone pushes the folder's listing. Supplying it
44
- * turns the tree's folder rows into pushes — iOS's trailing chevron, no
45
- * disclosure — and leaves the keyboard's ArrowRight to unfold in place.
46
- */
47
- onDirectoryOpen?: (path: string) => void;
48
- /** App-owned anchor or router Link for a file destination. */
49
- renderFileLink?: (path: string) => React.ReactElement;
50
- /**
51
- * An entry's leading mark, when the host can draw the content itself: Finder
52
- * and Files both show an image's own thumbnail there in place of the generic
53
- * page. Returning nothing for an entry leaves it the default icon. The mark
54
- * sits in the row's icon slot, so it takes the row's icon size.
55
- */
56
- renderThumbnail?: (entry: FileInfo) => React.ReactNode;
57
- /**
58
- * In the list and grid layouts, rows drag, and the folder and its folders
59
- * take drops, as a Finder window does. A folder held under a drag opens
60
- * through `onDirectoryOpen`.
61
- */
62
- dragAndDrop?: WorkspaceDragAndDrop;
63
- /**
64
- * The Finder's file commands for the list and grid layouts. With them a
65
- * click selects and a double-click or ⌘O opens; Command, Shift, ⌘A and a
66
- * selection rectangle choose several rows, which then drag as one; Return
67
- * renames; and rows and empty space take the Finder's context menus and
68
- * shortcuts. Without them a click opens, as a phone's tap does. Names that
69
- * begin with a dot are hidden, as the Finder hides them.
70
- */
71
- commands?: WorkspaceFileCommands;
72
- /**
73
- * Quick Look for the list and grid layouts with `commands`: Space, ⌘Y or the
74
- * context menu previews the selection, mounted only while it shows the entry.
75
- * Reuse WorkspaceFileView for file content.
76
- */
77
- renderPreview?: (entry: FileInfo) => React.ReactNode;
78
- /** Receives {@link WorkspaceBrowserActions}, for a host's own menu bar. */
79
- actionsRef?: React.Ref<WorkspaceBrowserActions>;
80
- }
81
- /** What a host's own controls, such as a menu bar, can ask of a {@link WorkspaceBrowser}. */
82
- export interface WorkspaceBrowserActions {
83
- /** Runs a file command on the selection, as its shortcut does; one that does not apply does nothing. */
84
- run(command: WorkspaceFileCommand): void;
85
- }
86
- /** Workspace tree and filter surface, usable independently from the file preview. */
87
- export declare function WorkspaceBrowser({ workspace, header, title, leading, actions, showFilter, filterPlaceholder, filter, onFilterChange, emptyState, onDirectoryOpen, renderFileLink, renderThumbnail, layout, sort, dragAndDrop, commands, renderPreview, actionsRef }: WorkspaceBrowserProps): React.JSX.Element;
88
- //#endregion
1
+ import { i as WorkspaceBrowserSort, n as WorkspaceBrowserActions, r as WorkspaceBrowserProps, t as WorkspaceBrowser } from "../../WorkspaceBrowser-Dz48H-7X.js";
2
+ export { WorkspaceBrowser, WorkspaceBrowserActions, WorkspaceBrowserProps, WorkspaceBrowserSort };
@@ -1,7 +1,7 @@
1
1
  import { O as FileIcon } from "../../icons-nLTnB9kd.js";
2
2
  import { a as formatErrorMessage } from "../../format-DL7f2rqp.js";
3
3
  import { t as WorkspaceDeleteControl } from "../../workspace-delete-BOY6CMBf.js";
4
- import { a as MessageBody, i as FieldList, n as SlackDraftCard, r as ConnectedAppCardFrame, t as EmailDraftCard } from "../../connected-app-drafts-Bocdg3Z-.js";
4
+ import { a as MessageBody, i as FieldList, n as SlackDraftCard, r as ConnectedAppCardFrame, t as EmailDraftCard } from "../../connected-app-drafts-C49343p9.js";
5
5
  import { c } from "react/compiler-runtime";
6
6
  import * as React from "react";
7
7
  import { createElement } from "react";
@@ -1,5 +1,5 @@
1
1
  import { r as WorkspaceDragAndDrop } from "../../WorkspaceFileTransfer-BRD22nW-.js";
2
- import { i as WorkspaceFileCommands } from "../../WorkspaceFileCommands-SNIjRgtU.js";
2
+ import { i as WorkspaceFileCommands } from "../../WorkspaceFileCommands-1s9Ol8CG.js";
3
3
  import * as React from "react";
4
4
  import { FileInfo } from "@cloudflare/shell";
5
5
  //#region src/components/agents-sdk/WorkspaceDesktop.d.ts
@@ -0,0 +1,17 @@
1
+ import * as React from "react";
2
+ //#region src/components/agents-sdk/WorkspaceDocumentFrame.d.ts
3
+ export interface WorkspaceDocumentFrameProps {
4
+ /** The host page that renders the document, such as a same-origin viewer. */
5
+ src: string;
6
+ /** The frame's accessible name: the document's name. */
7
+ title: string;
8
+ /** The link that opens `src` in its own tab, in the host's words. */
9
+ openLabel: string;
10
+ }
11
+ /**
12
+ * A document the design system cannot render itself — a docx, a workbook, a
13
+ * deck — shown through a host page in a frame, with the same page one link
14
+ * away in its own tab. Return it from `WorkspaceFileView`'s `renderUnsupported`.
15
+ */
16
+ export declare function WorkspaceDocumentFrame({ src, title, openLabel }: WorkspaceDocumentFrameProps): React.JSX.Element;
17
+ //#endregion
@@ -0,0 +1,90 @@
1
+ import { LinkButton } from "../foundations/LinkButton.js";
2
+ import { c } from "react/compiler-runtime";
3
+ import * as React from "react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ //#region src/components/agents-sdk/WorkspaceDocumentFrame.tsx
6
+ /**
7
+ * A document the design system cannot render itself — a docx, a workbook, a
8
+ * deck — shown through a host page in a frame, with the same page one link
9
+ * away in its own tab. Return it from `WorkspaceFileView`'s `renderUnsupported`.
10
+ */
11
+ function WorkspaceDocumentFrame(t0) {
12
+ const $ = c(19);
13
+ const { src, title, openLabel } = t0;
14
+ const [loaded, setLoaded] = React.useState(null);
15
+ const loading = loaded !== src;
16
+ const t1 = loading ? "" : void 0;
17
+ let t2;
18
+ if ($[0] !== loading || $[1] !== title) {
19
+ t2 = loading ? /* @__PURE__ */ jsxs("span", {
20
+ role: "status",
21
+ children: [
22
+ "Loading ",
23
+ title,
24
+ "…"
25
+ ]
26
+ }) : null;
27
+ $[0] = loading;
28
+ $[1] = title;
29
+ $[2] = t2;
30
+ } else t2 = $[2];
31
+ let t3;
32
+ if ($[3] !== openLabel || $[4] !== src) {
33
+ t3 = /* @__PURE__ */ jsx(LinkButton, {
34
+ href: src,
35
+ target: "_blank",
36
+ rel: "noreferrer",
37
+ variant: "ghost",
38
+ color: "neutral",
39
+ size: "xs",
40
+ children: openLabel
41
+ });
42
+ $[3] = openLabel;
43
+ $[4] = src;
44
+ $[5] = t3;
45
+ } else t3 = $[5];
46
+ let t4;
47
+ if ($[6] !== t2 || $[7] !== t3) {
48
+ t4 = /* @__PURE__ */ jsxs("div", {
49
+ className: "workspace-document-frame__actions",
50
+ children: [t2, t3]
51
+ });
52
+ $[6] = t2;
53
+ $[7] = t3;
54
+ $[8] = t4;
55
+ } else t4 = $[8];
56
+ let t5;
57
+ if ($[9] !== src) {
58
+ t5 = () => setLoaded(src);
59
+ $[9] = src;
60
+ $[10] = t5;
61
+ } else t5 = $[10];
62
+ let t6;
63
+ if ($[11] !== src || $[12] !== t5 || $[13] !== title) {
64
+ t6 = /* @__PURE__ */ jsx("iframe", {
65
+ className: "workspace-document-frame__frame",
66
+ src,
67
+ title,
68
+ onLoad: t5
69
+ }, src);
70
+ $[11] = src;
71
+ $[12] = t5;
72
+ $[13] = title;
73
+ $[14] = t6;
74
+ } else t6 = $[14];
75
+ let t7;
76
+ if ($[15] !== t1 || $[16] !== t4 || $[17] !== t6) {
77
+ t7 = /* @__PURE__ */ jsxs("div", {
78
+ className: "workspace-document-frame",
79
+ "data-loading": t1,
80
+ children: [t4, t6]
81
+ });
82
+ $[15] = t1;
83
+ $[16] = t4;
84
+ $[17] = t6;
85
+ $[18] = t7;
86
+ } else t7 = $[18];
87
+ return t7;
88
+ }
89
+ //#endregion
90
+ export { WorkspaceDocumentFrame };
@@ -1,7 +1,8 @@
1
1
  import { l as WorkspaceNavigationAdapter } from "../../WorkspaceLink-C8HH2fMT.js";
2
2
  import { b as WorkspaceState } from "../../Workspace-B9nuTfIi.js";
3
+ import { r as WorkspaceBrowserProps } from "../../WorkspaceBrowser-Dz48H-7X.js";
3
4
  import { r as WorkspaceMountManagerProps } from "../../WorkspaceMountManager-DM384Cn6.js";
4
- import { WorkspaceBrowserProps } from "./WorkspaceBrowser.js";
5
+ import { WorkspaceFileViewProps } from "./WorkspaceFileView.js";
5
6
  import * as React from "react";
6
7
  import { FileInfo } from "@cloudflare/shell";
7
8
  //#region src/components/agents-sdk/WorkspaceExplorer.d.ts
@@ -14,6 +15,8 @@ export interface WorkspaceExplorerProps extends Omit<React.HTMLAttributes<HTMLDi
14
15
  sort?: WorkspaceBrowserProps["sort"];
15
16
  /** Semantic preview of the selected file, with access to its source. */
16
17
  preview?: React.ReactNode;
18
+ /** A file the preview cannot show; see `WorkspaceFileView`'s `renderUnsupported`. */
19
+ renderUnsupported?: WorkspaceFileViewProps["renderUnsupported"];
17
20
  /** Host-owned URL/history adapter shared by chat links and the file explorer. */
18
21
  navigation: WorkspaceNavigationAdapter;
19
22
  /**