@mcp-b/react-components 0.71.1 → 0.72.1

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 (154) hide show
  1. package/dist/{AgentComputer-CpS9R2KG.d.ts → AgentComputer-BI8RsGzq.d.ts} +11 -1
  2. package/dist/{AgentComputer-CsWDnHwj.js → AgentComputer-KhPwXwh8.js} +256 -247
  3. package/dist/{ChatGptSignInScreen-CmbBe09G.js → ChatGptSignInScreen-CLq5cetL.js} +1 -1
  4. package/dist/{CodeBlock-dt0L8md0.js → CodeBlock-ZG47S5e4.js} +1 -1
  5. package/dist/{ComputerCalendar-Z6k_DVJF.js → ComputerCalendar-B3xdMl90.js} +565 -478
  6. package/dist/{ComputerPresentation-BEQKYAjc.js → ComputerPresentation-rzx6n36S.js} +26 -4
  7. package/dist/{ExecutionResult-CXnGcmM4.js → ExecutionResult-BojdvFEY.js} +2 -2
  8. package/dist/{FileTree-CjfzpN6X.js → FileTree-C7fh3_H5.js} +1 -1
  9. package/dist/{ManagerOffice-BJ2vs-Lr.js → ManagerOffice-80ZkVjSt.js} +1 -1
  10. package/dist/{SetupChecklist-DwscX3Bw.js → SetupChecklist-BKCMkUuh.js} +1 -1
  11. package/dist/{ThinkSchedule-9nzxIoX1.d.ts → ThinkSchedule-C9vErgZQ.d.ts} +2 -3
  12. package/dist/{WorkspaceBrowser-mRScUczT.js → WorkspaceBrowser-BFdnZrm7.js} +2 -2
  13. package/dist/components/agents-sdk/AIProviderDialog.js +1 -1
  14. package/dist/components/agents-sdk/AgentActivity.js +1 -1
  15. package/dist/components/agents-sdk/AgentChat.js +1 -1
  16. package/dist/components/agents-sdk/AgentComputer.d.ts +1 -1
  17. package/dist/components/agents-sdk/AgentComputer.js +1 -1
  18. package/dist/components/agents-sdk/AgentScreenSwitcher.js +1 -1
  19. package/dist/components/agents-sdk/BrowserLiveScreen.js +1 -1
  20. package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
  21. package/dist/components/agents-sdk/BrowserReplay.js +1 -1
  22. package/dist/components/agents-sdk/BrowserRunPanel.js +1 -1
  23. package/dist/components/agents-sdk/ComputerAutomations.d.ts +13 -3
  24. package/dist/components/agents-sdk/ComputerAutomations.js +77 -80
  25. package/dist/components/agents-sdk/ComputerCalendar.d.ts +22 -2
  26. package/dist/components/agents-sdk/ComputerCalendar.js +1 -1
  27. package/dist/components/agents-sdk/ComputerChannels.d.ts +51 -0
  28. package/dist/components/agents-sdk/ComputerChannels.js +311 -0
  29. package/dist/components/agents-sdk/ComputerFiles.d.ts +1 -1
  30. package/dist/components/agents-sdk/ComputerFiles.js +4 -4
  31. package/dist/components/agents-sdk/ComputerHome.js +1 -1
  32. package/dist/components/agents-sdk/ComputerLayout.d.ts +1 -1
  33. package/dist/components/agents-sdk/ComputerNotifications.js +1 -1
  34. package/dist/components/agents-sdk/ComputerPresentation.d.ts +2 -2
  35. package/dist/components/agents-sdk/ComputerPresentation.js +2 -2
  36. package/dist/components/agents-sdk/ComputerScreen.d.ts +1 -1
  37. package/dist/components/agents-sdk/ComputerScreen.js +3 -3
  38. package/dist/components/agents-sdk/ComputerSettings.d.ts +1 -1
  39. package/dist/components/agents-sdk/ComputerSettings.js +4 -4
  40. package/dist/components/agents-sdk/ComputerSpotlight.js +1 -1
  41. package/dist/components/agents-sdk/ComputerViewer.js +1 -1
  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 +2 -2
  45. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +1 -1
  46. package/dist/components/agents-sdk/EmployeeSchedules.js +1 -1
  47. package/dist/components/agents-sdk/EmployeeStartScreen.js +2 -2
  48. package/dist/components/agents-sdk/ExecutionBoard.js +3 -3
  49. package/dist/components/agents-sdk/ManagerAccountActions.js +1 -1
  50. package/dist/components/agents-sdk/ManagerOffice.d.ts +2 -2
  51. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  52. package/dist/components/agents-sdk/ManagerOfficeScreens.js +2 -2
  53. package/dist/components/agents-sdk/McpConnectionRequest.js +1 -1
  54. package/dist/components/agents-sdk/McpPluginCatalog.js +1 -1
  55. package/dist/components/agents-sdk/McpServerPicker.js +1 -1
  56. package/dist/components/agents-sdk/ModelSelector.js +1 -1
  57. package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
  58. package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
  59. package/dist/components/agents-sdk/SubagentRunPanel.js +1 -1
  60. package/dist/components/agents-sdk/ThinkChatToolPanels.js +2 -2
  61. package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
  62. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +1 -1
  63. package/dist/components/agents-sdk/ThinkSchedule.d.ts +1 -1
  64. package/dist/components/agents-sdk/ThinkSchedule.js +2 -2
  65. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +1 -1
  66. package/dist/components/agents-sdk/ThinkScheduleActions.js +1 -1
  67. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
  68. package/dist/components/agents-sdk/ThinkScheduleBrowser.js +1 -1
  69. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +1 -1
  70. package/dist/components/agents-sdk/ThinkScheduleDetail.js +2 -2
  71. package/dist/components/agents-sdk/ThinkScheduleForm.js +4 -4
  72. package/dist/components/agents-sdk/ThinkThreadPicker.js +1 -1
  73. package/dist/components/agents-sdk/WorkbenchBack.js +1 -1
  74. package/dist/components/agents-sdk/WorkspaceAutomation.js +5 -5
  75. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +4 -4
  76. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  77. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +3 -3
  78. package/dist/components/agents-sdk/WorkspaceDesktop.js +326 -162
  79. package/dist/components/agents-sdk/WorkspaceExplorer.js +2 -2
  80. package/dist/components/agents-sdk/WorkspaceFileDetails.js +2 -2
  81. package/dist/components/agents-sdk/WorkspaceFileView.js +5 -5
  82. package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
  83. package/dist/components/agents-sdk/WorkspacePerson.js +3 -3
  84. package/dist/components/agents-sdk/WorkspaceProject.js +4 -4
  85. package/dist/components/ai-sdk/Activity.js +1 -1
  86. package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
  87. package/dist/components/ai-sdk/Approval.js +1 -1
  88. package/dist/components/ai-sdk/Artifact.js +1 -1
  89. package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
  90. package/dist/components/ai-sdk/ChainOfThought.js +1 -1
  91. package/dist/components/ai-sdk/Checkpoint.js +1 -1
  92. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  93. package/dist/components/ai-sdk/ComposerLink.js +1 -1
  94. package/dist/components/ai-sdk/ConnectedAppCards.js +2 -2
  95. package/dist/components/ai-sdk/Conversation.js +1 -1
  96. package/dist/components/ai-sdk/Goal.js +1 -1
  97. package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
  98. package/dist/components/ai-sdk/Message.js +2 -2
  99. package/dist/components/ai-sdk/MessageScroller.js +1 -1
  100. package/dist/components/ai-sdk/MessageScrollerVirtual.js +1 -1
  101. package/dist/components/ai-sdk/Plan.js +1 -1
  102. package/dist/components/ai-sdk/PromptInput.js +1 -1
  103. package/dist/components/ai-sdk/Queue.js +1 -1
  104. package/dist/components/ai-sdk/Reasoning.js +1 -1
  105. package/dist/components/ai-sdk/Sources.js +1 -1
  106. package/dist/components/ai-sdk/Task.js +1 -1
  107. package/dist/components/extension/ChatGptSignInScreen.js +1 -1
  108. package/dist/components/extension/CodexModelSelector.js +1 -1
  109. package/dist/components/extension/ConversationTabPicker.js +1 -1
  110. package/dist/components/extension/FirstRunSetup.d.ts +1 -1
  111. package/dist/components/extension/FirstRunSetup.js +1 -1
  112. package/dist/components/foundations/Checkbox.js +1 -1
  113. package/dist/components/foundations/ContextMenu.js +1 -1
  114. package/dist/components/foundations/Favicon.js +1 -1
  115. package/dist/components/foundations/Menubar.js +1 -1
  116. package/dist/components/foundations/SearchField.js +1 -1
  117. package/dist/components/foundations/Select.js +1 -1
  118. package/dist/components/foundations/Stepper.js +1 -1
  119. package/dist/components/foundations/Toast.js +1 -1
  120. package/dist/components/foundations/icons.d.ts +2 -2
  121. package/dist/components/foundations/icons.js +2 -2
  122. package/dist/components/general-purpose/CommandPalette.js +1 -1
  123. package/dist/components/general-purpose/Commit.js +2 -2
  124. package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
  125. package/dist/components/general-purpose/FileTree.js +1 -1
  126. package/dist/components/general-purpose/PricingPlanCard.js +1 -1
  127. package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
  128. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  129. package/dist/components/general-purpose/TestResults.js +1 -1
  130. package/dist/components/general-purpose/ThemeModeControl.js +1 -1
  131. package/dist/components/general-purpose/WallpaperPicker.js +1 -1
  132. package/dist/components/general-purpose/WebPreview.js +1 -1
  133. package/dist/components/nanites/AgentConnection.js +2 -2
  134. package/dist/components/nanites/AgentToolDetail.js +1 -1
  135. package/dist/{connected-app-drafts-C49343p9.js → connected-app-drafts-D2ijldOR.js} +2 -2
  136. package/dist/{copy-button-DWBVJR6D.js → copy-button-UNBY7oXF.js} +1 -1
  137. package/dist/{icons-B3n7zvU7.d.ts → icons-CMPZtOxO.d.ts} +2 -1
  138. package/dist/{icons-nLTnB9kd.js → icons-CNwk7DEu.js} +3 -2
  139. package/dist/{parts-BFK5iocu.js → parts-Bb1aZP2y.js} +1 -1
  140. package/dist/{scheduled-table-source-gGpVJ1TN.js → scheduled-table-source-6YdnC3Sh.js} +1 -1
  141. package/dist/styles/app-top-bar.css +1 -1
  142. package/dist/styles/computer-calendar.css +12 -0
  143. package/dist/styles/computer-channels.css +87 -0
  144. package/dist/styles/index.css +1 -0
  145. package/dist/styles/list-detail.css +1 -2
  146. package/dist/styles/recipes.css +2 -2
  147. package/dist/styles/search-field.css +1 -1
  148. package/dist/styles/workspace-desktop.css +11 -7
  149. package/dist/{workspace-assets-DdtnBDU3.js → workspace-assets-CadpUKoz.js} +1 -1
  150. package/dist/{workspace-concept-panel-VkjvFCY_.js → workspace-concept-panel-CzxPyGpN.js} +1 -1
  151. package/dist/{workspace-delete-BOY6CMBf.js → workspace-delete-D9ZesEdu.js} +1 -1
  152. package/dist/{workspace-media-preview-B4iB5Tvi.js → workspace-media-preview-kXaEY4AN.js} +1 -1
  153. package/dist/{workspace-quick-look-8cbGu1Xf.js → workspace-quick-look-BDD-jXn3.js} +2 -2
  154. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { O as FileIcon, d as BrainIcon, et as RefreshIcon, g as ChevronRightIcon, h as ChevronLeftIcon, it as SpinnerIcon, k as FolderIcon, mt as WarningIcon, n as ArrowDownIcon, o as ArrowUpIcon, u as BoxIcon } from "./icons-nLTnB9kd.js";
1
+ import { O as FileIcon, at as SpinnerIcon, d as BrainIcon, g as ChevronRightIcon, h as ChevronLeftIcon, ht as WarningIcon, k as FolderIcon, n as ArrowDownIcon, o as ArrowUpIcon, tt as RefreshIcon, u as BoxIcon } from "./icons-CNwk7DEu.js";
2
2
  import { Checkbox } from "./components/foundations/Checkbox.js";
3
3
  import { Button } from "./components/foundations/Button.js";
4
4
  import { IconButton } from "./components/foundations/IconButton.js";
@@ -838,10 +838,13 @@ const DEFAULT_COMPUTER_PRESENTATION = {
838
838
  order: [],
839
839
  hidden: []
840
840
  },
841
- folders: {}
841
+ folders: {},
842
+ desktop: {}
842
843
  };
843
844
  /** The most folder views a computer keeps; older ones fall back to their ancestors'. */
844
845
  const MAX_FOLDER_VIEWS = 200;
846
+ /** The most desktop icon positions a computer keeps; a larger saved map reads as none. */
847
+ const MAX_DESKTOP_ICONS = 500;
845
848
  function object(value) {
846
849
  return typeof value === "object" && value !== null && !Array.isArray(value);
847
850
  }
@@ -869,6 +872,24 @@ function readFolderViews(value) {
869
872
  }
870
873
  return folders;
871
874
  }
875
+ function cell(value) {
876
+ return Number.isInteger(value) && value >= 0;
877
+ }
878
+ function readDesktopIcons(value) {
879
+ if (!object(value)) return null;
880
+ const entries = Object.entries(value);
881
+ if (entries.length > 500) return null;
882
+ const icons = {};
883
+ for (const [path, icon] of entries) {
884
+ if (!object(icon) || !cell(icon.column) || !cell(icon.row)) return null;
885
+ if (!path.startsWith("/") || path.length > 1024) return null;
886
+ icons[path] = {
887
+ column: icon.column,
888
+ row: icon.row
889
+ };
890
+ }
891
+ return icons;
892
+ }
872
893
  /**
873
894
  * A saved presentation, rebuilt part by part from storage: a part that is not
874
895
  * one falls back to its default alone, so a bad background never costs the
@@ -881,8 +902,9 @@ function readComputerPresentation(value) {
881
902
  layout: readComputerLayout(saved.layout),
882
903
  wallpaper: readWallpaper(saved.wallpaper) ?? defaults.wallpaper,
883
904
  dock: readDockArrangement(saved.dock) ?? defaults.dock,
884
- folders: readFolderViews(saved.folders) ?? defaults.folders
905
+ folders: readFolderViews(saved.folders) ?? defaults.folders,
906
+ desktop: readDesktopIcons(saved.desktop) ?? defaults.desktop
885
907
  };
886
908
  }
887
909
  //#endregion
888
- export { EmployeeWorkspaceRows as a, SettingsToolbar as c, DockSettings as i, arrangeDock as l, MAX_FOLDER_VIEWS as n, SettingsLayout as o, readComputerPresentation as r, SettingsRow as s, DEFAULT_COMPUTER_PRESENTATION as t };
910
+ export { DockSettings as a, SettingsRow as c, readComputerPresentation as i, SettingsToolbar as l, MAX_DESKTOP_ICONS as n, EmployeeWorkspaceRows as o, MAX_FOLDER_VIEWS as r, SettingsLayout as s, DEFAULT_COMPUTER_PRESENTATION as t, arrangeDock as u };
@@ -1,8 +1,8 @@
1
- import { g as ChevronRightIcon } from "./icons-nLTnB9kd.js";
1
+ import { g as ChevronRightIcon } from "./icons-CNwk7DEu.js";
2
2
  import { IconButton } from "./components/foundations/IconButton.js";
3
3
  import { DescriptionList } from "./components/foundations/DescriptionList.js";
4
4
  import { a as executionResultSummary, i as executionResultPath, o as readExecutionResult, r as executionResultFiles } from "./execution-result-DAuW4VWv.js";
5
- import { i as httpUrl, n as OutboundLink, r as WorkspaceComposerLink } from "./workspace-assets-DdtnBDU3.js";
5
+ import { i as httpUrl, n as OutboundLink, r as WorkspaceComposerLink } from "./workspace-assets-CadpUKoz.js";
6
6
  import { t as WorkspaceFileLink } from "./WorkspaceLink-DDkj-Tq5.js";
7
7
  import { c } from "react/compiler-runtime";
8
8
  import { useId, useState } from "react";
@@ -1,6 +1,6 @@
1
1
  import { desktopArtwork } from "./utils/desktop-artwork.js";
2
2
  import { t as cx } from "./class-names-BiMDVpUo.js";
3
- import { g as ChevronRightIcon } from "./icons-nLTnB9kd.js";
3
+ import { g as ChevronRightIcon } from "./icons-CNwk7DEu.js";
4
4
  import { AppIcon } from "./components/foundations/AppIcon.js";
5
5
  import { t as NavigationLink } from "./navigation-link-DMmtdqsM.js";
6
6
  import { c } from "react/compiler-runtime";
@@ -1,6 +1,6 @@
1
1
  import { findCatalogMcpServerCard, getMcpServerIconSrc, providerCardForHref } from "./utils/mcp-server-catalog.js";
2
2
  import { t as cx } from "./class-names-BiMDVpUo.js";
3
- import { F as LinkIcon, M as InfoIcon, O as FileIcon, S as DotIcon, V as MessageSquareIcon, W as MonitorIcon, f as CalendarIcon, g as ChevronRightIcon, gt as XIcon, it as SpinnerIcon, k as FolderIcon, m as ChevronDownIcon, mt as WarningIcon, p as CheckIcon, q as PauseIcon } from "./icons-nLTnB9kd.js";
3
+ import { F as LinkIcon, G as MonitorIcon, H as MessageSquareIcon, J as PauseIcon, M as InfoIcon, O as FileIcon, S as DotIcon, _t as XIcon, at as SpinnerIcon, f as CalendarIcon, g as ChevronRightIcon, ht as WarningIcon, k as FolderIcon, m as ChevronDownIcon, p as CheckIcon } from "./icons-CNwk7DEu.js";
4
4
  import { Button } from "./components/foundations/Button.js";
5
5
  import { Collapsible } from "./components/foundations/Collapsible.js";
6
6
  import { Tooltip } from "./components/foundations/Tooltip.js";
@@ -1,5 +1,5 @@
1
1
  import { n as mergeBaseClassName } from "./class-names-BiMDVpUo.js";
2
- import { Z as PlusIcon, m as ChevronDownIcon, mt as WarningIcon, p as CheckIcon } from "./icons-nLTnB9kd.js";
2
+ import { Q as PlusIcon, ht as WarningIcon, m as ChevronDownIcon, p as CheckIcon } from "./icons-CNwk7DEu.js";
3
3
  import { IconButton } from "./components/foundations/IconButton.js";
4
4
  import { Menu } from "./components/foundations/Menu.js";
5
5
  import { c } from "react/compiler-runtime";
@@ -1,7 +1,6 @@
1
1
  import { t as ThinkExecutionRun } from "./ThinkExecutionRun-QzZVWX75.js";
2
2
  import { i as WorkspaceAutomationInvocation } from "./WorkspaceAutomation-hwl6C1aX.js";
3
3
  import { ParsedDeclaredSchedule, ThinkScheduledTask, ThinkScheduledTaskSchedule } from "@cloudflare/think";
4
- import { Schedule } from "agents";
5
4
  //#region src/components/agents-sdk/ThinkSchedule.d.ts
6
5
  /** App-owned identity for the Think agent that owns a schedule. */
7
6
  interface ThinkScheduleOwner {
@@ -23,8 +22,8 @@ interface ThinkSchedule {
23
22
  schedule: ThinkScheduledTaskSchedule;
24
23
  automation: WorkspaceAutomationInvocation;
25
24
  };
26
- /** The Agents SDK alarm for the next occurrence. */
27
- alarm?: Schedule<unknown> | null;
25
+ /** The next occurrence, in milliseconds since the epoch, as `runs[].createdAt`. */
26
+ nextRunAt?: number | null;
28
27
  runs: readonly ThinkExecutionRun[];
29
28
  }
30
29
  /** Preserves an app-enriched native run type carried by a schedule subtype. */
@@ -7,10 +7,10 @@ import { FormattedDate } from "./components/foundations/FormattedDate.js";
7
7
  import { t as NavigationLink } from "./navigation-link-DMmtdqsM.js";
8
8
  import { SearchField } from "./components/foundations/SearchField.js";
9
9
  import { i as fileGridOption, n as FileGrid } from "./ComputerFileThumbnail-CXHy127c.js";
10
- import { i as FileTreeFolder, r as FileTreeFile, t as FileTree } from "./FileTree-CjfzpN6X.js";
10
+ import { i as FileTreeFolder, r as FileTreeFile, t as FileTree } from "./FileTree-C7fh3_H5.js";
11
11
  import { WorkspaceHeader } from "./components/agents-sdk/WorkspaceHeader.js";
12
12
  import { ContextMenu } from "./components/foundations/ContextMenu.js";
13
- import { n as useWorkspaceSelection, r as WorkspaceFileTile, t as WorkspaceQuickLook } from "./workspace-quick-look-8cbGu1Xf.js";
13
+ import { n as useWorkspaceSelection, r as WorkspaceFileTile, t as WorkspaceQuickLook } from "./workspace-quick-look-BDD-jXn3.js";
14
14
  import { c } from "react/compiler-runtime";
15
15
  import * as React from "react";
16
16
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { M as InfoIcon, mt as WarningIcon, p as CheckIcon } from "../../icons-nLTnB9kd.js";
1
+ import { M as InfoIcon, ht as WarningIcon, p as CheckIcon } from "../../icons-CNwk7DEu.js";
2
2
  import { Checkbox } from "../foundations/Checkbox.js";
3
3
  import { Select } from "../foundations/Select.js";
4
4
  import { Field } from "../foundations/Field.js";
@@ -1,4 +1,4 @@
1
- import { F as LinkIcon, J as PencilIcon, M as InfoIcon, O as FileIcon, W as MonitorIcon, ht as WrenchIcon, mt as WarningIcon, tt as SearchIcon, ut as TerminalIcon } from "../../icons-nLTnB9kd.js";
1
+ import { F as LinkIcon, G as MonitorIcon, M as InfoIcon, O as FileIcon, Y as PencilIcon, dt as TerminalIcon, gt as WrenchIcon, ht as WarningIcon, nt as SearchIcon } from "../../icons-CNwk7DEu.js";
2
2
  import { c } from "react/compiler-runtime";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  //#region src/components/agents-sdk/AgentActivity.tsx
@@ -1,5 +1,5 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { J as PencilIcon, dt as TrashIcon, et as RefreshIcon, it as SpinnerIcon, t as ArchiveIcon } from "../../icons-nLTnB9kd.js";
2
+ import { Y as PencilIcon, at as SpinnerIcon, ft as TrashIcon, t as ArchiveIcon, tt as RefreshIcon } from "../../icons-CNwk7DEu.js";
3
3
  import { ExpansionStateProvider } from "../ai-sdk/ExpansionState.js";
4
4
  import { Message, MessageAction, MessageActions, MessageCopyAction, MessageMeta, MessageTimestamp } from "../ai-sdk/Message.js";
5
5
  import { AgentEventRow, getAgentEvent } from "./AgentEvent.js";
@@ -1,2 +1,2 @@
1
- import { a as AgentComputerLayout, c as AgentComputerWindow, d as AgentComputerWindowSize, f as useAgentComputerActions, g as useAgentComputerWindowActive, h as useAgentComputerWindow, i as AgentComputerAppHandlers, l as AgentComputerWindowBounds, m as useAgentComputerPortalContainer, n as AgentComputerActions, o as AgentComputerOpenOptions, p as useAgentComputerAppHandlers, r as AgentComputerApp, s as AgentComputerProps, t as AgentComputer, u as AgentComputerWindowLayout } from "../../AgentComputer-CpS9R2KG.js";
1
+ import { a as AgentComputerLayout, c as AgentComputerWindow, d as AgentComputerWindowSize, f as useAgentComputerActions, g as useAgentComputerWindowActive, h as useAgentComputerWindow, i as AgentComputerAppHandlers, l as AgentComputerWindowBounds, m as useAgentComputerPortalContainer, n as AgentComputerActions, o as AgentComputerOpenOptions, p as useAgentComputerAppHandlers, r as AgentComputerApp, s as AgentComputerProps, t as AgentComputer, u as AgentComputerWindowLayout } from "../../AgentComputer-BI8RsGzq.js";
2
2
  export { AgentComputer, AgentComputerActions, AgentComputerApp, AgentComputerAppHandlers, AgentComputerLayout, AgentComputerOpenOptions, AgentComputerProps, AgentComputerWindow, AgentComputerWindowBounds, AgentComputerWindowLayout, AgentComputerWindowSize, useAgentComputerActions, useAgentComputerAppHandlers, useAgentComputerPortalContainer, useAgentComputerWindow, useAgentComputerWindowActive };
@@ -1,2 +1,2 @@
1
- import { a as useAgentComputerWindow, i as useAgentComputerPortalContainer, n as useAgentComputerActions, o as useAgentComputerWindowActive, r as useAgentComputerAppHandlers, t as AgentComputer } from "../../AgentComputer-CsWDnHwj.js";
1
+ import { a as useAgentComputerWindow, i as useAgentComputerPortalContainer, n as useAgentComputerActions, o as useAgentComputerWindowActive, r as useAgentComputerAppHandlers, t as AgentComputer } from "../../AgentComputer-KhPwXwh8.js";
2
2
  export { AgentComputer, useAgentComputerActions, useAgentComputerAppHandlers, useAgentComputerPortalContainer, useAgentComputerWindow, useAgentComputerWindowActive };
@@ -1,5 +1,5 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { F as LinkIcon, M as InfoIcon, W as MonitorIcon, Z as PlusIcon, s as ArrowUpRightIcon } from "../../icons-nLTnB9kd.js";
2
+ import { F as LinkIcon, G as MonitorIcon, M as InfoIcon, Q as PlusIcon, s as ArrowUpRightIcon } from "../../icons-CNwk7DEu.js";
3
3
  import { IconButton } from "../foundations/IconButton.js";
4
4
  import { n as mergeRefs } from "../../merge-refs-DTX97mLp.js";
5
5
  import { Tabs } from "../foundations/Tabs.js";
@@ -1,4 +1,4 @@
1
- import { N as KeyboardIcon, et as RefreshIcon, r as ArrowLeftIcon } from "../../icons-nLTnB9kd.js";
1
+ import { N as KeyboardIcon, r as ArrowLeftIcon, tt as RefreshIcon } from "../../icons-CNwk7DEu.js";
2
2
  import { Button } from "../foundations/Button.js";
3
3
  import { WebPreviewNavigationButton } from "../general-purpose/WebPreview.js";
4
4
  import { BrowserLiveView } from "./BrowserLiveView.js";
@@ -1,5 +1,5 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { S as DotIcon, it as SpinnerIcon, z as MaximizeIcon } from "../../icons-nLTnB9kd.js";
2
+ import { S as DotIcon, at as SpinnerIcon, z as MaximizeIcon } from "../../icons-CNwk7DEu.js";
3
3
  import { Button } from "../foundations/Button.js";
4
4
  import { Dialog } from "../foundations/Dialog.js";
5
5
  import { TransitionSurface } from "../foundations/TransitionSurface.js";
@@ -1,5 +1,5 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { X as PlayIcon, q as PauseIcon } from "../../icons-nLTnB9kd.js";
2
+ import { J as PauseIcon, Z as PlayIcon } from "../../icons-CNwk7DEu.js";
3
3
  import { i as formatClock } from "../../format-DL7f2rqp.js";
4
4
  import { IconButton } from "../foundations/IconButton.js";
5
5
  import { Slider } from "../foundations/Slider.js";
@@ -1,5 +1,5 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { A as GlobeIcon, Z as PlusIcon, gt as XIcon, it as SpinnerIcon } from "../../icons-nLTnB9kd.js";
2
+ import { A as GlobeIcon, Q as PlusIcon, _t as XIcon, at as SpinnerIcon } from "../../icons-CNwk7DEu.js";
3
3
  import { IconButton } from "../foundations/IconButton.js";
4
4
  import { Menu } from "../foundations/Menu.js";
5
5
  import { Tabs } from "../foundations/Tabs.js";
@@ -1,6 +1,8 @@
1
- import { r as AgentComputerApp } from "../../AgentComputer-CpS9R2KG.js";
1
+ import { r as AgentComputerApp } from "../../AgentComputer-BI8RsGzq.js";
2
+ import { a as ExecutionTrace, r as ExecutionGraph } from "../../ExecutionBoard-DBj1Aiva.js";
2
3
  import { l as WorkspaceAutomationSource } from "../../WorkspaceAutomation-hwl6C1aX.js";
3
- import { t as ThinkSchedule } from "../../ThinkSchedule-9nzxIoX1.js";
4
+ import { t as ThinkSchedule } from "../../ThinkSchedule-C9vErgZQ.js";
5
+ import { ComputerCalendarEvent, ComputerCalendarRange } from "./ComputerCalendar.js";
4
6
  import { ThinkScheduleFormSchedule, ThinkScheduleFormValue } from "./ThinkScheduleForm.js";
5
7
  import * as React from "react";
6
8
  //#region src/components/agents-sdk/ComputerAutomations.d.ts
@@ -31,7 +33,11 @@ export interface ComputerAutomationsSelection {
31
33
  export interface ComputerAutomationsHost<TSchedule extends ComputerSchedule = ComputerSchedule> {
32
34
  /** Saved automations; Automations itself opens a workflow and starts its schedule, single or per table row. */
33
35
  automations: Omit<WorkspaceAutomationSource, "onOpen" | "onSchedule" | "onScheduleTable">;
34
- /** Every schedule, each carrying its next alarm and retained runs. */
36
+ /** The selected automation's step outline, loaded by the host; absent while it loads. */
37
+ selectedGraph?: ExecutionGraph;
38
+ /** The saved run the host loaded for the selected trace file. */
39
+ selectedTrace?: ExecutionTrace;
40
+ /** Every schedule, each carrying its next run and retained runs. */
35
41
  schedules: readonly TSchedule[];
36
42
  /** Creates a schedule and resolves its id. `requestKey` is stable for one editor, so a retried save is idempotent. */
37
43
  onCreateSchedule: (draft: ThinkScheduleFormValue, requestKey: string) => Promise<{
@@ -48,6 +54,10 @@ export interface ComputerAutomationsHost<TSchedule extends ComputerSchedule = Co
48
54
  renderLink: (next: Partial<ComputerAutomationsSelection>) => React.ReactElement;
49
55
  /** The conversation a run took place in, or null when it has none. */
50
56
  conversationForRun: (run: TSchedule["runs"][number]) => string | null;
57
+ /** Events from the employee's own calendars, shown in Calendar beside the schedules. */
58
+ events?: readonly ComputerCalendarEvent[];
59
+ /** The visible range, called on mount and whenever the Calendar's visible dates change. */
60
+ onCalendarRange?: (range: ComputerCalendarRange) => void;
51
61
  }
52
62
  /**
53
63
  * The shared state Automations and Calendar read, mounted above the computer
@@ -1,11 +1,11 @@
1
1
  import { desktopArtwork } from "../../utils/desktop-artwork.js";
2
- import { $ as QueueIcon, I as ListIcon, J as PencilIcon, O as FileIcon, f as CalendarIcon, h as ChevronLeftIcon } from "../../icons-nLTnB9kd.js";
2
+ import { I as ListIcon, O as FileIcon, Y as PencilIcon, et as QueueIcon, f as CalendarIcon, h as ChevronLeftIcon } from "../../icons-CNwk7DEu.js";
3
3
  import { Button } from "../foundations/Button.js";
4
4
  import { IconButton } from "../foundations/IconButton.js";
5
5
  import { AppIcon } from "../foundations/AppIcon.js";
6
6
  import { Tabs } from "../foundations/Tabs.js";
7
7
  import { AlertDialog } from "../foundations/AlertDialog.js";
8
- import { p as useMinuteClock } from "../../AgentComputer-CsWDnHwj.js";
8
+ import { p as useMinuteClock } from "../../AgentComputer-KhPwXwh8.js";
9
9
  import { f as useAppHosts, m as useComputerHost, n as AppHostsContext } from "../../context-BWJpR084.js";
10
10
  import { AppTopBar } from "../general-purpose/AppTopBar.js";
11
11
  import { ScreenStack } from "../general-purpose/ScreenStack.js";
@@ -15,8 +15,8 @@ import { getThinkExecutionRunId } from "./ThinkExecutionRun.js";
15
15
  import { LinkButton } from "../foundations/LinkButton.js";
16
16
  import { r as createAppBarOutlet, t as ContentAppBarOutletContext } from "../../app-bar-outlet-BEIGl9iF.js";
17
17
  import { ResponsiveSidebarAppBar, ResponsiveSidebarShell, useResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
18
- import { i as zonedFormat, n as ComputerAutomationsContext, r as useComputerAutomationsContext, t as ComputerCalendar } from "../../ComputerCalendar-Z6k_DVJF.js";
19
- import { n as computerAppTile, t as computerAppParts } from "../../parts-BFK5iocu.js";
18
+ import { i as zonedFormat, n as ComputerAutomationsContext, r as useComputerAutomationsContext, t as ComputerCalendar } from "../../ComputerCalendar-B3xdMl90.js";
19
+ import { n as computerAppTile, t as computerAppParts } from "../../parts-Bb1aZP2y.js";
20
20
  import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
21
21
  import { ThinkExecutionDetail } from "./ThinkExecutionDetail.js";
22
22
  import { WorkspaceAutomationsPanel } from "./WorkspaceAutomation.js";
@@ -669,7 +669,7 @@ function UpcomingAgenda(t0) {
669
669
  className: "computer-automations__agenda",
670
670
  "aria-labelledby": titleId,
671
671
  children: [t5, upcoming.length ? /* @__PURE__ */ jsx("ol", { children: upcoming.map((schedule_0) => {
672
- const date = /* @__PURE__ */ new Date(schedule_0.alarm.time * 1e3);
672
+ const date = new Date(schedule_0.nextRunAt);
673
673
  return /* @__PURE__ */ jsxs("li", { children: [
674
674
  /* @__PURE__ */ jsxs("div", {
675
675
  className: "computer-automations__agenda-date",
@@ -698,10 +698,10 @@ function UpcomingAgenda(t0) {
698
698
  return t1;
699
699
  }
700
700
  function _temp2(first, second) {
701
- return first.alarm.time - second.alarm.time;
701
+ return first.nextRunAt - second.nextRunAt;
702
702
  }
703
703
  function _temp(schedule) {
704
- return schedule.enabled && schedule.alarm != null;
704
+ return schedule.enabled && schedule.nextRunAt != null;
705
705
  }
706
706
  function WorkflowOutputs(t0) {
707
707
  const $ = c(14);
@@ -1045,7 +1045,7 @@ function AutomationsToolbar(t0) {
1045
1045
  * runs, as the side panel's Automations and Schedules show them.
1046
1046
  */
1047
1047
  function useAutomationsModel() {
1048
- const $ = c(59);
1048
+ const $ = c(58);
1049
1049
  const { host, clock, schedules } = useComputerAutomationsContext();
1050
1050
  const files = React.use(AppHostsContext).files;
1051
1051
  const { section, workflow: selectedWorkflowPath, run: runId } = host.selection;
@@ -1105,23 +1105,18 @@ function useAutomationsModel() {
1105
1105
  } else t5 = $[12];
1106
1106
  let t6;
1107
1107
  let t7;
1108
- if ($[13] !== openAutomationSchedule || $[14] !== setSection) {
1109
- t6 = async (path_2) => {
1110
- if (await openAutomationSchedule({ path: path_2 })) setSection("schedules");
1111
- };
1112
- t7 = async (invocation) => {
1113
- if (await openAutomationSchedule(invocation)) setSection("schedules");
1114
- };
1108
+ if ($[13] !== openAutomationSchedule) {
1109
+ t6 = async (path_2) => void await openAutomationSchedule({ path: path_2 });
1110
+ t7 = async (invocation) => void await openAutomationSchedule(invocation);
1115
1111
  $[13] = openAutomationSchedule;
1116
- $[14] = setSection;
1117
- $[15] = t6;
1118
- $[16] = t7;
1112
+ $[14] = t6;
1113
+ $[15] = t7;
1119
1114
  } else {
1120
- t6 = $[15];
1121
- t7 = $[16];
1115
+ t6 = $[14];
1116
+ t7 = $[15];
1122
1117
  }
1123
1118
  let t8;
1124
- if ($[17] !== onRun) {
1119
+ if ($[16] !== onRun) {
1125
1120
  t8 = onRun ? async (invocation_0) => {
1126
1121
  const outcome = await onRun(invocation_0);
1127
1122
  const [output] = outcome.files;
@@ -1131,11 +1126,11 @@ function useAutomationsModel() {
1131
1126
  }, ...current.filter((candidate) => candidate.workflowPath !== invocation_0.path || candidate.run.path !== output.path)]);
1132
1127
  return outcome;
1133
1128
  } : void 0;
1134
- $[17] = onRun;
1135
- $[18] = t8;
1136
- } else t8 = $[18];
1129
+ $[16] = onRun;
1130
+ $[17] = t8;
1131
+ } else t8 = $[17];
1137
1132
  let t9;
1138
- if ($[19] !== host.automations || $[20] !== t5 || $[21] !== t6 || $[22] !== t7 || $[23] !== t8) {
1133
+ if ($[18] !== host.automations || $[19] !== t5 || $[20] !== t6 || $[21] !== t7 || $[22] !== t8) {
1139
1134
  t9 = {
1140
1135
  ...host.automations,
1141
1136
  onOpen: t5,
@@ -1143,27 +1138,27 @@ function useAutomationsModel() {
1143
1138
  onScheduleTable: t7,
1144
1139
  onRun: t8
1145
1140
  };
1146
- $[19] = host.automations;
1147
- $[20] = t5;
1148
- $[21] = t6;
1149
- $[22] = t7;
1150
- $[23] = t8;
1151
- $[24] = t9;
1152
- } else t9 = $[24];
1141
+ $[18] = host.automations;
1142
+ $[19] = t5;
1143
+ $[20] = t6;
1144
+ $[21] = t7;
1145
+ $[22] = t8;
1146
+ $[23] = t9;
1147
+ } else t9 = $[23];
1153
1148
  const source = t9;
1154
1149
  let t10;
1155
- if ($[25] !== host.schedules || $[26] !== runId) {
1150
+ if ($[24] !== host.schedules || $[25] !== runId) {
1156
1151
  t10 = host.schedules.flatMap(_temp7).find((run_0) => getThinkExecutionRunId(run_0) === runId) ?? null;
1157
- $[25] = host.schedules;
1158
- $[26] = runId;
1159
- $[27] = t10;
1160
- } else t10 = $[27];
1152
+ $[24] = host.schedules;
1153
+ $[25] = runId;
1154
+ $[26] = t10;
1155
+ } else t10 = $[26];
1161
1156
  const selectedRun = t10;
1162
1157
  const scheduleApp = schedules.model;
1163
1158
  const [outlet] = React.useState(createAppBarOutlet);
1164
1159
  const [sections, setSections] = React.useState(null);
1165
1160
  let t11;
1166
- if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
1161
+ if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
1167
1162
  t11 = /* @__PURE__ */ jsxs(Tabs.Tab, {
1168
1163
  unstyled: true,
1169
1164
  value: "workflows",
@@ -1175,10 +1170,10 @@ function useAutomationsModel() {
1175
1170
  }),
1176
1171
  children: [/* @__PURE__ */ jsx(QueueIcon, { "aria-hidden": "true" }), "Automations"]
1177
1172
  });
1178
- $[28] = t11;
1179
- } else t11 = $[28];
1173
+ $[27] = t11;
1174
+ } else t11 = $[27];
1180
1175
  let t12;
1181
- if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
1176
+ if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
1182
1177
  t12 = /* @__PURE__ */ jsxs(Tabs.Tab, {
1183
1178
  unstyled: true,
1184
1179
  value: "schedules",
@@ -1190,10 +1185,10 @@ function useAutomationsModel() {
1190
1185
  }),
1191
1186
  children: [/* @__PURE__ */ jsx(CalendarIcon, { "aria-hidden": "true" }), "Schedules"]
1192
1187
  });
1193
- $[29] = t12;
1194
- } else t12 = $[29];
1188
+ $[28] = t12;
1189
+ } else t12 = $[28];
1195
1190
  let t13;
1196
- if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
1191
+ if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
1197
1192
  t13 = /* @__PURE__ */ jsxs(Tabs.List, {
1198
1193
  unstyled: true,
1199
1194
  className: "computer-automations__tabs",
@@ -1214,12 +1209,12 @@ function useAutomationsModel() {
1214
1209
  })
1215
1210
  ]
1216
1211
  });
1217
- $[30] = t13;
1218
- } else t13 = $[30];
1212
+ $[29] = t13;
1213
+ } else t13 = $[29];
1219
1214
  const sectionList = t13;
1220
1215
  const t14 = section === "schedules" ? scheduleApp.renderMenus : void 0;
1221
1216
  let t15;
1222
- if ($[31] !== outlet || $[32] !== scheduleApp.renderTitle || $[33] !== schedules.editing) {
1217
+ if ($[30] !== outlet || $[31] !== scheduleApp.renderTitle || $[32] !== schedules.editing) {
1223
1218
  t15 = schedules.editing ? scheduleApp.renderTitle : (t16) => {
1224
1219
  const { phone } = t16;
1225
1220
  return phone ? "Automations" : /* @__PURE__ */ jsx(AutomationsToolbar, {
@@ -1227,13 +1222,13 @@ function useAutomationsModel() {
1227
1222
  sections: setSections
1228
1223
  });
1229
1224
  };
1230
- $[31] = outlet;
1231
- $[32] = scheduleApp.renderTitle;
1232
- $[33] = schedules.editing;
1233
- $[34] = t15;
1234
- } else t15 = $[34];
1225
+ $[30] = outlet;
1226
+ $[31] = scheduleApp.renderTitle;
1227
+ $[32] = schedules.editing;
1228
+ $[33] = t15;
1229
+ } else t15 = $[33];
1235
1230
  let t16;
1236
- if ($[35] !== clock || $[36] !== host || $[37] !== openWorkspaceFile || $[38] !== outlet || $[39] !== recentWorkflowOutputs || $[40] !== runId || $[41] !== scheduleApp || $[42] !== schedules.editing || $[43] !== section || $[44] !== sections || $[45] !== selectedRun || $[46] !== selectedWorkflowPath || $[47] !== setSection || $[48] !== setSelectedRun || $[49] !== setSelectedWorkflowPath || $[50] !== source || $[51] !== workflows) {
1231
+ if ($[34] !== clock || $[35] !== host || $[36] !== openWorkspaceFile || $[37] !== outlet || $[38] !== recentWorkflowOutputs || $[39] !== runId || $[40] !== scheduleApp || $[41] !== schedules.editing || $[42] !== section || $[43] !== sections || $[44] !== selectedRun || $[45] !== selectedWorkflowPath || $[46] !== setSection || $[47] !== setSelectedRun || $[48] !== setSelectedWorkflowPath || $[49] !== source || $[50] !== workflows) {
1237
1232
  t16 = (context) => {
1238
1233
  const paneOutlet = (pane) => !context.phone && section === pane ? outlet : null;
1239
1234
  return schedules.editing ? scheduleApp.render(context) : /* @__PURE__ */ jsxs(Tabs.Root, {
@@ -1256,6 +1251,8 @@ function useAutomationsModel() {
1256
1251
  "aria-label": workflows.data?.find((automation_0) => automation_0.path === selectedWorkflowPath)?.name ?? "Automation library",
1257
1252
  source,
1258
1253
  selectedPath: selectedWorkflowPath,
1254
+ selectedGraph: host.selectedGraph,
1255
+ selectedTrace: host.selectedTrace,
1259
1256
  onBack: () => setSelectedWorkflowPath(void 0)
1260
1257
  })
1261
1258
  })
@@ -1300,27 +1297,27 @@ function useAutomationsModel() {
1300
1297
  })]
1301
1298
  });
1302
1299
  };
1303
- $[35] = clock;
1304
- $[36] = host;
1305
- $[37] = openWorkspaceFile;
1306
- $[38] = outlet;
1307
- $[39] = recentWorkflowOutputs;
1308
- $[40] = runId;
1309
- $[41] = scheduleApp;
1310
- $[42] = schedules.editing;
1311
- $[43] = section;
1312
- $[44] = sections;
1313
- $[45] = selectedRun;
1314
- $[46] = selectedWorkflowPath;
1315
- $[47] = setSection;
1316
- $[48] = setSelectedRun;
1317
- $[49] = setSelectedWorkflowPath;
1318
- $[50] = source;
1319
- $[51] = workflows;
1320
- $[52] = t16;
1321
- } else t16 = $[52];
1300
+ $[34] = clock;
1301
+ $[35] = host;
1302
+ $[36] = openWorkspaceFile;
1303
+ $[37] = outlet;
1304
+ $[38] = recentWorkflowOutputs;
1305
+ $[39] = runId;
1306
+ $[40] = scheduleApp;
1307
+ $[41] = schedules.editing;
1308
+ $[42] = section;
1309
+ $[43] = sections;
1310
+ $[44] = selectedRun;
1311
+ $[45] = selectedWorkflowPath;
1312
+ $[46] = setSection;
1313
+ $[47] = setSelectedRun;
1314
+ $[48] = setSelectedWorkflowPath;
1315
+ $[49] = source;
1316
+ $[50] = workflows;
1317
+ $[51] = t16;
1318
+ } else t16 = $[51];
1322
1319
  let t17;
1323
- if ($[53] !== scheduleApp.beforeQuit || $[54] !== scheduleApp.onKeyDown || $[55] !== t14 || $[56] !== t15 || $[57] !== t16) {
1320
+ if ($[52] !== scheduleApp.beforeQuit || $[53] !== scheduleApp.onKeyDown || $[54] !== t14 || $[55] !== t15 || $[56] !== t16) {
1324
1321
  t17 = {
1325
1322
  beforeQuit: scheduleApp.beforeQuit,
1326
1323
  onKeyDown: scheduleApp.onKeyDown,
@@ -1328,13 +1325,13 @@ function useAutomationsModel() {
1328
1325
  renderTitle: t15,
1329
1326
  render: t16
1330
1327
  };
1331
- $[53] = scheduleApp.beforeQuit;
1332
- $[54] = scheduleApp.onKeyDown;
1333
- $[55] = t14;
1334
- $[56] = t15;
1335
- $[57] = t16;
1336
- $[58] = t17;
1337
- } else t17 = $[58];
1328
+ $[52] = scheduleApp.beforeQuit;
1329
+ $[53] = scheduleApp.onKeyDown;
1330
+ $[54] = t14;
1331
+ $[55] = t15;
1332
+ $[56] = t16;
1333
+ $[57] = t17;
1334
+ } else t17 = $[57];
1338
1335
  return t17;
1339
1336
  }
1340
1337
  function _temp7(schedule) {
@@ -1,6 +1,26 @@
1
- import { r as AgentComputerApp } from "../../AgentComputer-CpS9R2KG.js";
1
+ import { r as AgentComputerApp } from "../../AgentComputer-BI8RsGzq.js";
2
2
  //#region src/components/agents-sdk/ComputerCalendar.d.ts
3
- /** Calendar in the Dock. It reads the schedules and runs `ComputerAutomations.Host` keeps. */
3
+ /** An event from one of the host's own calendars, shown beside the schedules. */
4
+ export type ComputerCalendarEvent = {
5
+ id: string;
6
+ title: string;
7
+ /** Milliseconds since the epoch. An all-day event spans whole local days. */
8
+ start: number;
9
+ end: number;
10
+ allDay?: boolean;
11
+ /** Calendar the event belongs to, for the colour swatch and tooltip. */
12
+ calendar?: string;
13
+ /** CSS colour from the source calendar, when it has one. */
14
+ color?: string;
15
+ /** The event at its source; clicking the entry opens it in a new tab. */
16
+ url?: string;
17
+ };
18
+ /** The instants a Calendar view shows, in milliseconds: half-open `[start, end)`. */
19
+ export type ComputerCalendarRange = {
20
+ start: number;
21
+ end: number;
22
+ };
23
+ /** Calendar in the Dock. It reads the schedules, runs and events `ComputerAutomations.Host` keeps. */
4
24
  export declare const ComputerCalendar: {
5
25
  app: AgentComputerApp;
6
26
  };
@@ -1,2 +1,2 @@
1
- import { t as ComputerCalendar } from "../../ComputerCalendar-Z6k_DVJF.js";
1
+ import { t as ComputerCalendar } from "../../ComputerCalendar-B3xdMl90.js";
2
2
  export { ComputerCalendar };
@@ -0,0 +1,51 @@
1
+ import * as React from "react";
2
+ //#region src/components/agents-sdk/ComputerChannels.d.ts
3
+ /** How a channel is connected, as the host's messenger reports it. */
4
+ export type ComputerChannelConnection = {
5
+ configured: boolean;
6
+ phase: "disconnected" | "connecting" | "connected" | "reconnecting" | "auth_failed";
7
+ /** The account the channel is connected as. */
8
+ userName?: string;
9
+ error?: string;
10
+ };
11
+ /** A conversation a channel started. */
12
+ export type ComputerChannelThread = {
13
+ /** Conversation id; `onOpenConversation` from `ComputerHost` opens it. */
14
+ id: string;
15
+ title: string;
16
+ /** Channel or room name on the provider, when known. */
17
+ channel?: string;
18
+ /** Milliseconds since the epoch. */
19
+ updatedAt: number;
20
+ status: "idle" | "running" | "attention" | "error" | "interrupted";
21
+ };
22
+ /** One messaging channel the employee can be reached on. */
23
+ export type ComputerChannel = {
24
+ /** Provider id, also the app id: "slack" | "discord" today; any string allowed. */
25
+ id: string;
26
+ label: string;
27
+ connection: ComputerChannelConnection;
28
+ threads: readonly ComputerChannelThread[];
29
+ /** Opens the host's connection dialog (configure or reconnect). */
30
+ onConnect?: () => void;
31
+ };
32
+ /** What `ComputerChannels.Host` reads: every channel, each one window. */
33
+ export type ComputerChannelsHost = {
34
+ channels: readonly ComputerChannel[];
35
+ };
36
+ /** The channels `ComputerChannels.Host` holds. Throws outside one. */
37
+ export declare function useComputerChannelsContext(): ComputerChannelsHost;
38
+ /**
39
+ * The host's messaging channels, one window each: how the channel is
40
+ * connected and the conversations it started, each opening beside the
41
+ * computer. Mount it inside a `ComputerHost` and above the computer.
42
+ */
43
+ declare function Host({ value, children }: {
44
+ value: ComputerChannelsHost;
45
+ children: React.ReactNode;
46
+ }): React.JSX.Element;
47
+ /** The channel windows' Host. */
48
+ export declare const ComputerChannels: {
49
+ Host: typeof Host;
50
+ };
51
+ //#endregion