@mcp-b/react-components 0.70.0 → 0.71.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 (96) hide show
  1. package/dist/AgentComputer-CpS9R2KG.d.ts +305 -0
  2. package/dist/{AgentComputer-CFJxjMFE.js → AgentComputer-CsWDnHwj.js} +1859 -478
  3. package/dist/CommandPalette-DDctKdpC.d.ts +53 -0
  4. package/dist/ComputerCalendar-Z6k_DVJF.js +1360 -0
  5. package/dist/ComputerCustomWallpaper-CnGQYHp0.js +518 -0
  6. package/dist/ComputerCustomWallpaper-D4lgwj2k.d.ts +18 -0
  7. package/dist/ComputerNotifications-q7eeELZ8.d.ts +41 -0
  8. package/dist/ComputerPresentation-BEQKYAjc.js +888 -0
  9. package/dist/{ExecutionResult-C7SzVquo.js → ExecutionResult-CXnGcmM4.js} +1 -1
  10. package/dist/{WorkspaceBrowser-ojoZy0uO.js → WorkspaceBrowser-mRScUczT.js} +5 -5
  11. package/dist/WorkspaceFileTransfer-D2cOoVyO.js +1625 -0
  12. package/dist/{WorkspaceMessageResponse-BoeeltJM.js → WorkspaceMessageResponse-CXGOQgpo.js} +1 -1
  13. package/dist/components/agents-sdk/AgentComputer.d.ts +2 -276
  14. package/dist/components/agents-sdk/AgentComputer.js +1 -1
  15. package/dist/components/agents-sdk/BrowserReplay.js +1 -1
  16. package/dist/components/agents-sdk/ComputerAutomations.d.ts +5 -15
  17. package/dist/components/agents-sdk/ComputerAutomations.js +164 -145
  18. package/dist/components/agents-sdk/ComputerCalendar.d.ts +1 -1
  19. package/dist/components/agents-sdk/ComputerCalendar.js +1 -1344
  20. package/dist/components/agents-sdk/ComputerCustomWallpaper.d.ts +2 -39
  21. package/dist/components/agents-sdk/ComputerCustomWallpaper.js +2 -522
  22. package/dist/components/agents-sdk/ComputerFiles.d.ts +18 -81
  23. package/dist/components/agents-sdk/ComputerFiles.js +386 -98
  24. package/dist/components/agents-sdk/ComputerHome.d.ts +6 -11
  25. package/dist/components/agents-sdk/ComputerHome.js +1 -89
  26. package/dist/components/agents-sdk/ComputerHost.d.ts +43 -0
  27. package/dist/components/agents-sdk/ComputerHost.js +97 -0
  28. package/dist/components/agents-sdk/ComputerLayout.d.ts +1 -1
  29. package/dist/components/agents-sdk/ComputerNotifications.d.ts +2 -54
  30. package/dist/components/agents-sdk/ComputerNotifications.js +1 -668
  31. package/dist/components/agents-sdk/ComputerPresentation.d.ts +2 -0
  32. package/dist/components/agents-sdk/ComputerPresentation.js +2 -0
  33. package/dist/components/agents-sdk/ComputerScreen.d.ts +14 -14
  34. package/dist/components/agents-sdk/ComputerScreen.js +109 -50
  35. package/dist/components/agents-sdk/ComputerSettings.d.ts +12 -40
  36. package/dist/components/agents-sdk/ComputerSettings.js +249 -1038
  37. package/dist/components/agents-sdk/ComputerSpotlight.d.ts +13 -15
  38. package/dist/components/agents-sdk/ComputerSpotlight.js +1 -231
  39. package/dist/components/agents-sdk/ComputerViewer.d.ts +13 -17
  40. package/dist/components/agents-sdk/ComputerViewer.js +176 -187
  41. package/dist/components/agents-sdk/ComputerWallpapers.d.ts +1 -1
  42. package/dist/components/agents-sdk/EmployeeChat.js +2 -2
  43. package/dist/components/agents-sdk/EmployeeChrome.js +3 -3
  44. package/dist/components/agents-sdk/EmployeeSchedules.js +2 -2
  45. package/dist/components/agents-sdk/ExecutionBoard.js +1 -1
  46. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  47. package/dist/components/agents-sdk/ManagerOfficeScreens.js +2 -2
  48. package/dist/components/agents-sdk/McpPluginCatalog.js +1 -1
  49. package/dist/components/agents-sdk/ThinkChat.js +1 -1
  50. package/dist/components/agents-sdk/ThinkChatToolPanels.js +3 -3
  51. package/dist/components/agents-sdk/ThinkExecutionDetail.js +1 -1
  52. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +2 -2
  53. package/dist/components/agents-sdk/ThinkScheduleActions.js +1 -1
  54. package/dist/components/agents-sdk/ThinkScheduleBrowser.js +1 -1
  55. package/dist/components/agents-sdk/ThinkScheduleDetail.js +4 -4
  56. package/dist/components/agents-sdk/ThinkScheduleForm.js +3 -3
  57. package/dist/components/agents-sdk/WorkspaceAutomation.js +3 -3
  58. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1 -1
  59. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  60. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +1 -5
  61. package/dist/components/agents-sdk/WorkspaceDesktop.js +53 -41
  62. package/dist/components/agents-sdk/WorkspaceExplorer.js +3 -3
  63. package/dist/components/agents-sdk/WorkspaceFileCommands.js +1 -924
  64. package/dist/components/agents-sdk/WorkspaceFileDetails.js +1 -1
  65. package/dist/components/agents-sdk/WorkspaceFileTransfer.js +1 -504
  66. package/dist/components/agents-sdk/WorkspaceFileView.js +6 -6
  67. package/dist/components/agents-sdk/WorkspaceLink.js +1 -1
  68. package/dist/components/agents-sdk/WorkspaceLive.d.ts +9 -0
  69. package/dist/components/agents-sdk/WorkspaceLive.js +2 -177
  70. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  71. package/dist/components/agents-sdk/WorkspaceMountManager.js +1 -1
  72. package/dist/components/ai-sdk/Context.js +1 -1
  73. package/dist/components/ai-sdk/PromptInput.js +1 -1
  74. package/dist/components/extension/FirstRunSetup.js +2 -2
  75. package/dist/components/foundations/ThemeProvider.d.ts +2 -0
  76. package/dist/components/foundations/ThemeProvider.js +2 -1
  77. package/dist/components/general-purpose/CommandPalette.d.ts +2 -52
  78. package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
  79. package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -2
  80. package/dist/components/nanites/AgentConnection.js +1 -1
  81. package/dist/components/nanites/AgentToolDetail.js +1 -1
  82. package/dist/context-BWJpR084.js +94 -0
  83. package/dist/{parts-CPVz9l31.js → parts-BFK5iocu.js} +1 -1
  84. package/dist/styles/agent-computer.css +16 -0
  85. package/dist/styles/computer-files.css +5 -0
  86. package/dist/styles/computer-notifications.css +1 -0
  87. package/dist/{workspace-drag-B6hMXUNt.js → workspace-drag-BNhZIN8F.js} +1 -1
  88. package/dist/{workspace-quick-look-DODjsfhH.js → workspace-quick-look-8cbGu1Xf.js} +2 -2
  89. package/package.json +2 -2
  90. package/dist/WallpaperPicker-C-FItmDS.d.ts +0 -34
  91. package/dist/automations-host-DPORjdc7.js +0 -17
  92. package/dist/context-Ddsp8HgD.js +0 -43
  93. package/dist/minute-clock-CXpRGCMF.js +0 -35
  94. package/dist/{Context-DQDumCV8.js → Context-CYUxZrwW.js} +1 -1
  95. package/dist/{ManagerOffice-kSK7vTBl.js → ManagerOffice-BJ2vs-Lr.js} +2 -2
  96. package/dist/{WorkspaceLink-DK9kdMUH.js → WorkspaceLink-DDkj-Tq5.js} +1 -1
@@ -5,26 +5,26 @@ 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 { n as useAgentComputerActions } from "../../AgentComputer-CFJxjMFE.js";
9
- import { Menubar } from "../foundations/Menubar.js";
8
+ import { p as useMinuteClock } from "../../AgentComputer-CsWDnHwj.js";
9
+ import { f as useAppHosts, m as useComputerHost, n as AppHostsContext } from "../../context-BWJpR084.js";
10
+ import { AppTopBar } from "../general-purpose/AppTopBar.js";
11
+ import { ScreenStack } from "../general-purpose/ScreenStack.js";
10
12
  import { COMPUTER_APP_IDS } from "./ComputerAppIds.js";
13
+ import { Menubar } from "../foundations/Menubar.js";
11
14
  import { getThinkExecutionRunId } from "./ThinkExecutionRun.js";
12
- import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
13
- import { ThinkExecutionDetail } from "./ThinkExecutionDetail.js";
15
+ import { LinkButton } from "../foundations/LinkButton.js";
14
16
  import { r as createAppBarOutlet, t as ContentAppBarOutletContext } from "../../app-bar-outlet-BEIGl9iF.js";
15
- import { AppTopBar } from "../general-purpose/AppTopBar.js";
16
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";
20
+ import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
21
+ import { ThinkExecutionDetail } from "./ThinkExecutionDetail.js";
17
22
  import { WorkspaceAutomationsPanel } from "./WorkspaceAutomation.js";
18
- import { LinkButton } from "../foundations/LinkButton.js";
19
23
  import { StatusScreen } from "../general-purpose/StatusScreen.js";
20
- import { n as useComputerAutomationsContext, r as zonedFormat, t as ComputerAutomationsContext } from "../../automations-host-DPORjdc7.js";
21
- import { n as computerAppTile, t as computerAppParts } from "../../parts-CPVz9l31.js";
22
24
  import { ThinkScheduleActions, useThinkScheduleActions } from "./ThinkScheduleActions.js";
23
25
  import { ThinkScheduleBrowser } from "./ThinkScheduleBrowser.js";
24
26
  import { ThinkScheduleDetail } from "./ThinkScheduleDetail.js";
25
27
  import { ThinkScheduleForm } from "./ThinkScheduleForm.js";
26
- import { ScreenStack } from "../general-purpose/ScreenStack.js";
27
- import { t as useMinuteClock } from "../../minute-clock-CXpRGCMF.js";
28
28
  import { c } from "react/compiler-runtime";
29
29
  import * as React from "react";
30
30
  import { useEffect, useLayoutEffect, useRef, useState } from "react";
@@ -87,8 +87,9 @@ function SelectedSchedule(t0) {
87
87
  * the discard confirmation are the window's own.
88
88
  */
89
89
  function useComputerSchedules(t0) {
90
- const $ = c(91);
90
+ const $ = c(92);
91
91
  const { host, automations, automationsError, automationsLoading } = t0;
92
+ const { sourceKey } = useComputerHost("ComputerAutomations.Host").workspace.volume;
92
93
  const { schedules } = host;
93
94
  const selectedId = host.selection.schedule;
94
95
  let t1;
@@ -431,7 +432,7 @@ function useComputerSchedules(t0) {
431
432
  $[60] = t21;
432
433
  } else t21 = $[60];
433
434
  let t22;
434
- if ($[61] !== automationDraft || $[62] !== automations || $[63] !== automationsError || $[64] !== automationsLoading || $[65] !== confirming || $[66] !== createSchedule || $[67] !== editing || $[68] !== editingSchedule || $[69] !== host || $[70] !== leaveEditor || $[71] !== remove || $[72] !== schedules || $[73] !== selected || $[74] !== selectedId || $[75] !== startNew || $[76] !== submit) {
435
+ if ($[61] !== automationDraft || $[62] !== automations || $[63] !== automationsError || $[64] !== automationsLoading || $[65] !== confirming || $[66] !== createSchedule || $[67] !== editing || $[68] !== editingSchedule || $[69] !== host || $[70] !== leaveEditor || $[71] !== remove || $[72] !== schedules || $[73] !== selected || $[74] !== selectedId || $[75] !== sourceKey || $[76] !== startNew || $[77] !== submit) {
435
436
  t22 = (t23) => {
436
437
  const { phone: phone_0 } = t23;
437
438
  const selectedAutomationPath = selected && "automation" in selected.task ? selected.task.automation.path : void 0;
@@ -500,7 +501,7 @@ function useComputerSchedules(t0) {
500
501
  });
501
502
  const composition = selected ? /* @__PURE__ */ jsx(ThinkScheduleActions.Root, {
502
503
  schedule: selected,
503
- sourceKey: host.sourceKey,
504
+ sourceKey,
504
505
  onRun: async (schedule_4) => void await host.onRunSchedule(schedule_4),
505
506
  onEnabledChange: async (schedule_5, enabled) => void await host.onScheduleEnabledChange(schedule_5, enabled),
506
507
  onDelete: remove,
@@ -566,12 +567,13 @@ function useComputerSchedules(t0) {
566
567
  $[72] = schedules;
567
568
  $[73] = selected;
568
569
  $[74] = selectedId;
569
- $[75] = startNew;
570
- $[76] = submit;
571
- $[77] = t22;
572
- } else t22 = $[77];
570
+ $[75] = sourceKey;
571
+ $[76] = startNew;
572
+ $[77] = submit;
573
+ $[78] = t22;
574
+ } else t22 = $[78];
573
575
  let t23;
574
- if ($[78] !== leaveEditor || $[79] !== t19 || $[80] !== t20 || $[81] !== t21 || $[82] !== t22) {
576
+ if ($[79] !== leaveEditor || $[80] !== t19 || $[81] !== t20 || $[82] !== t21 || $[83] !== t22) {
575
577
  t23 = {
576
578
  beforeQuit: leaveEditor,
577
579
  onKeyDown: t19,
@@ -579,17 +581,17 @@ function useComputerSchedules(t0) {
579
581
  renderTitle: t21,
580
582
  render: t22
581
583
  };
582
- $[78] = leaveEditor;
583
- $[79] = t19;
584
- $[80] = t20;
585
- $[81] = t21;
586
- $[82] = t22;
587
- $[83] = t23;
588
- } else t23 = $[83];
584
+ $[79] = leaveEditor;
585
+ $[80] = t19;
586
+ $[81] = t20;
587
+ $[82] = t21;
588
+ $[83] = t22;
589
+ $[84] = t23;
590
+ } else t23 = $[84];
589
591
  const model = t23;
590
592
  const t24 = editing !== null;
591
593
  let t25;
592
- if ($[84] !== createSchedule || $[85] !== leaveEditor || $[86] !== model || $[87] !== openAutomationSchedule || $[88] !== openSchedule || $[89] !== t24) {
594
+ if ($[85] !== createSchedule || $[86] !== leaveEditor || $[87] !== model || $[88] !== openAutomationSchedule || $[89] !== openSchedule || $[90] !== t24) {
593
595
  t25 = {
594
596
  model,
595
597
  editing: t24,
@@ -598,14 +600,14 @@ function useComputerSchedules(t0) {
598
600
  createSchedule,
599
601
  leaveEditor
600
602
  };
601
- $[84] = createSchedule;
602
- $[85] = leaveEditor;
603
- $[86] = model;
604
- $[87] = openAutomationSchedule;
605
- $[88] = openSchedule;
606
- $[89] = t24;
607
- $[90] = t25;
608
- } else t25 = $[90];
603
+ $[85] = createSchedule;
604
+ $[86] = leaveEditor;
605
+ $[87] = model;
606
+ $[88] = openAutomationSchedule;
607
+ $[89] = openSchedule;
608
+ $[90] = t24;
609
+ $[91] = t25;
610
+ } else t25 = $[91];
609
611
  return t25;
610
612
  }
611
613
  function _temp3$1(parameter) {
@@ -837,6 +839,7 @@ function _temp4(schedule) {
837
839
  function AutomationRuns(t0) {
838
840
  const $ = c(33);
839
841
  const { onBack, onOpenFile, host, recentOutputs, schedules, selectedRun, workflows } = t0;
842
+ const computerHost = useComputerHost("ComputerAutomations");
840
843
  if (selectedRun) {
841
844
  let t1;
842
845
  if ($[0] !== host || $[1] !== selectedRun) {
@@ -862,16 +865,16 @@ function AutomationRuns(t0) {
862
865
  $[5] = t3;
863
866
  } else t3 = $[5];
864
867
  let t4;
865
- if ($[6] !== conversation || $[7] !== host) {
868
+ if ($[6] !== computerHost || $[7] !== conversation) {
866
869
  t4 = conversation ? /* @__PURE__ */ jsx(Button, {
867
870
  size: "sm",
868
871
  variant: "surface",
869
872
  color: "neutral",
870
- onClick: () => host.onOpenConversation(conversation),
873
+ onClick: () => computerHost.onOpenConversation(conversation),
871
874
  children: "Open conversation"
872
875
  }) : null;
873
- $[6] = conversation;
874
- $[7] = host;
876
+ $[6] = computerHost;
877
+ $[7] = conversation;
875
878
  $[8] = t4;
876
879
  } else t4 = $[8];
877
880
  let t5;
@@ -1042,9 +1045,9 @@ function AutomationsToolbar(t0) {
1042
1045
  * runs, as the side panel's Automations and Schedules show them.
1043
1046
  */
1044
1047
  function useAutomationsModel() {
1045
- const $ = c(60);
1048
+ const $ = c(59);
1046
1049
  const { host, clock, schedules } = useComputerAutomationsContext();
1047
- const { openApp } = useAgentComputerActions();
1050
+ const files = React.use(AppHostsContext).files;
1048
1051
  const { section, workflow: selectedWorkflowPath, run: runId } = host.selection;
1049
1052
  const navigate = host.onNavigate;
1050
1053
  let t0;
@@ -1081,46 +1084,44 @@ function useAutomationsModel() {
1081
1084
  } else t3 = $[6];
1082
1085
  const [recentWorkflowOutputs, setRecentWorkflowOutputs] = React.useState(t3);
1083
1086
  let t4;
1084
- if ($[7] !== host || $[8] !== openApp) {
1087
+ if ($[7] !== files) {
1085
1088
  t4 = (path_0) => {
1086
- host.onOpenFile(path_0);
1087
- openApp(COMPUTER_APP_IDS.files);
1089
+ files?.open(path_0, "file");
1088
1090
  };
1089
- $[7] = host;
1090
- $[8] = openApp;
1091
- $[9] = t4;
1092
- } else t4 = $[9];
1091
+ $[7] = files;
1092
+ $[8] = t4;
1093
+ } else t4 = $[8];
1093
1094
  const openWorkspaceFile = t4;
1094
1095
  const { openAutomationSchedule } = schedules;
1095
1096
  const workflows = useQuery(host.automations.queryOptions);
1096
1097
  const { onRun } = host.automations;
1097
1098
  let t5;
1098
- if ($[10] !== openWorkspaceFile || $[11] !== setSelectedWorkflowPath || $[12] !== workflows) {
1099
+ if ($[9] !== openWorkspaceFile || $[10] !== setSelectedWorkflowPath || $[11] !== workflows) {
1099
1100
  t5 = (path_1) => workflows.data?.some((automation) => automation.path === path_1) ? setSelectedWorkflowPath(path_1) : openWorkspaceFile(path_1);
1100
- $[10] = openWorkspaceFile;
1101
- $[11] = setSelectedWorkflowPath;
1102
- $[12] = workflows;
1103
- $[13] = t5;
1104
- } else t5 = $[13];
1101
+ $[9] = openWorkspaceFile;
1102
+ $[10] = setSelectedWorkflowPath;
1103
+ $[11] = workflows;
1104
+ $[12] = t5;
1105
+ } else t5 = $[12];
1105
1106
  let t6;
1106
1107
  let t7;
1107
- if ($[14] !== openAutomationSchedule || $[15] !== setSection) {
1108
+ if ($[13] !== openAutomationSchedule || $[14] !== setSection) {
1108
1109
  t6 = async (path_2) => {
1109
1110
  if (await openAutomationSchedule({ path: path_2 })) setSection("schedules");
1110
1111
  };
1111
1112
  t7 = async (invocation) => {
1112
1113
  if (await openAutomationSchedule(invocation)) setSection("schedules");
1113
1114
  };
1114
- $[14] = openAutomationSchedule;
1115
- $[15] = setSection;
1116
- $[16] = t6;
1117
- $[17] = t7;
1115
+ $[13] = openAutomationSchedule;
1116
+ $[14] = setSection;
1117
+ $[15] = t6;
1118
+ $[16] = t7;
1118
1119
  } else {
1119
- t6 = $[16];
1120
- t7 = $[17];
1120
+ t6 = $[15];
1121
+ t7 = $[16];
1121
1122
  }
1122
1123
  let t8;
1123
- if ($[18] !== onRun) {
1124
+ if ($[17] !== onRun) {
1124
1125
  t8 = onRun ? async (invocation_0) => {
1125
1126
  const outcome = await onRun(invocation_0);
1126
1127
  const [output] = outcome.files;
@@ -1130,11 +1131,11 @@ function useAutomationsModel() {
1130
1131
  }, ...current.filter((candidate) => candidate.workflowPath !== invocation_0.path || candidate.run.path !== output.path)]);
1131
1132
  return outcome;
1132
1133
  } : void 0;
1133
- $[18] = onRun;
1134
- $[19] = t8;
1135
- } else t8 = $[19];
1134
+ $[17] = onRun;
1135
+ $[18] = t8;
1136
+ } else t8 = $[18];
1136
1137
  let t9;
1137
- if ($[20] !== host.automations || $[21] !== t5 || $[22] !== t6 || $[23] !== t7 || $[24] !== t8) {
1138
+ if ($[19] !== host.automations || $[20] !== t5 || $[21] !== t6 || $[22] !== t7 || $[23] !== t8) {
1138
1139
  t9 = {
1139
1140
  ...host.automations,
1140
1141
  onOpen: t5,
@@ -1142,27 +1143,27 @@ function useAutomationsModel() {
1142
1143
  onScheduleTable: t7,
1143
1144
  onRun: t8
1144
1145
  };
1145
- $[20] = host.automations;
1146
- $[21] = t5;
1147
- $[22] = t6;
1148
- $[23] = t7;
1149
- $[24] = t8;
1150
- $[25] = t9;
1151
- } else t9 = $[25];
1146
+ $[19] = host.automations;
1147
+ $[20] = t5;
1148
+ $[21] = t6;
1149
+ $[22] = t7;
1150
+ $[23] = t8;
1151
+ $[24] = t9;
1152
+ } else t9 = $[24];
1152
1153
  const source = t9;
1153
1154
  let t10;
1154
- if ($[26] !== host.schedules || $[27] !== runId) {
1155
+ if ($[25] !== host.schedules || $[26] !== runId) {
1155
1156
  t10 = host.schedules.flatMap(_temp7).find((run_0) => getThinkExecutionRunId(run_0) === runId) ?? null;
1156
- $[26] = host.schedules;
1157
- $[27] = runId;
1158
- $[28] = t10;
1159
- } else t10 = $[28];
1157
+ $[25] = host.schedules;
1158
+ $[26] = runId;
1159
+ $[27] = t10;
1160
+ } else t10 = $[27];
1160
1161
  const selectedRun = t10;
1161
1162
  const scheduleApp = schedules.model;
1162
1163
  const [outlet] = React.useState(createAppBarOutlet);
1163
1164
  const [sections, setSections] = React.useState(null);
1164
1165
  let t11;
1165
- if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
1166
+ if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
1166
1167
  t11 = /* @__PURE__ */ jsxs(Tabs.Tab, {
1167
1168
  unstyled: true,
1168
1169
  value: "workflows",
@@ -1174,10 +1175,10 @@ function useAutomationsModel() {
1174
1175
  }),
1175
1176
  children: [/* @__PURE__ */ jsx(QueueIcon, { "aria-hidden": "true" }), "Automations"]
1176
1177
  });
1177
- $[29] = t11;
1178
- } else t11 = $[29];
1178
+ $[28] = t11;
1179
+ } else t11 = $[28];
1179
1180
  let t12;
1180
- if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
1181
+ if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
1181
1182
  t12 = /* @__PURE__ */ jsxs(Tabs.Tab, {
1182
1183
  unstyled: true,
1183
1184
  value: "schedules",
@@ -1189,10 +1190,10 @@ function useAutomationsModel() {
1189
1190
  }),
1190
1191
  children: [/* @__PURE__ */ jsx(CalendarIcon, { "aria-hidden": "true" }), "Schedules"]
1191
1192
  });
1192
- $[30] = t12;
1193
- } else t12 = $[30];
1193
+ $[29] = t12;
1194
+ } else t12 = $[29];
1194
1195
  let t13;
1195
- if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
1196
+ if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
1196
1197
  t13 = /* @__PURE__ */ jsxs(Tabs.List, {
1197
1198
  unstyled: true,
1198
1199
  className: "computer-automations__tabs",
@@ -1213,12 +1214,12 @@ function useAutomationsModel() {
1213
1214
  })
1214
1215
  ]
1215
1216
  });
1216
- $[31] = t13;
1217
- } else t13 = $[31];
1217
+ $[30] = t13;
1218
+ } else t13 = $[30];
1218
1219
  const sectionList = t13;
1219
1220
  const t14 = section === "schedules" ? scheduleApp.renderMenus : void 0;
1220
1221
  let t15;
1221
- if ($[32] !== outlet || $[33] !== scheduleApp.renderTitle || $[34] !== schedules.editing) {
1222
+ if ($[31] !== outlet || $[32] !== scheduleApp.renderTitle || $[33] !== schedules.editing) {
1222
1223
  t15 = schedules.editing ? scheduleApp.renderTitle : (t16) => {
1223
1224
  const { phone } = t16;
1224
1225
  return phone ? "Automations" : /* @__PURE__ */ jsx(AutomationsToolbar, {
@@ -1226,13 +1227,13 @@ function useAutomationsModel() {
1226
1227
  sections: setSections
1227
1228
  });
1228
1229
  };
1229
- $[32] = outlet;
1230
- $[33] = scheduleApp.renderTitle;
1231
- $[34] = schedules.editing;
1232
- $[35] = t15;
1233
- } else t15 = $[35];
1230
+ $[31] = outlet;
1231
+ $[32] = scheduleApp.renderTitle;
1232
+ $[33] = schedules.editing;
1233
+ $[34] = t15;
1234
+ } else t15 = $[34];
1234
1235
  let t16;
1235
- if ($[36] !== clock || $[37] !== host || $[38] !== openWorkspaceFile || $[39] !== outlet || $[40] !== recentWorkflowOutputs || $[41] !== runId || $[42] !== scheduleApp || $[43] !== schedules.editing || $[44] !== section || $[45] !== sections || $[46] !== selectedRun || $[47] !== selectedWorkflowPath || $[48] !== setSection || $[49] !== setSelectedRun || $[50] !== setSelectedWorkflowPath || $[51] !== source || $[52] !== workflows) {
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) {
1236
1237
  t16 = (context) => {
1237
1238
  const paneOutlet = (pane) => !context.phone && section === pane ? outlet : null;
1238
1239
  return schedules.editing ? scheduleApp.render(context) : /* @__PURE__ */ jsxs(Tabs.Root, {
@@ -1299,27 +1300,27 @@ function useAutomationsModel() {
1299
1300
  })]
1300
1301
  });
1301
1302
  };
1302
- $[36] = clock;
1303
- $[37] = host;
1304
- $[38] = openWorkspaceFile;
1305
- $[39] = outlet;
1306
- $[40] = recentWorkflowOutputs;
1307
- $[41] = runId;
1308
- $[42] = scheduleApp;
1309
- $[43] = schedules.editing;
1310
- $[44] = section;
1311
- $[45] = sections;
1312
- $[46] = selectedRun;
1313
- $[47] = selectedWorkflowPath;
1314
- $[48] = setSection;
1315
- $[49] = setSelectedRun;
1316
- $[50] = setSelectedWorkflowPath;
1317
- $[51] = source;
1318
- $[52] = workflows;
1319
- $[53] = t16;
1320
- } else t16 = $[53];
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];
1321
1322
  let t17;
1322
- if ($[54] !== scheduleApp.beforeQuit || $[55] !== scheduleApp.onKeyDown || $[56] !== t14 || $[57] !== t15 || $[58] !== t16) {
1323
+ if ($[53] !== scheduleApp.beforeQuit || $[54] !== scheduleApp.onKeyDown || $[55] !== t14 || $[56] !== t15 || $[57] !== t16) {
1323
1324
  t17 = {
1324
1325
  beforeQuit: scheduleApp.beforeQuit,
1325
1326
  onKeyDown: scheduleApp.onKeyDown,
@@ -1327,13 +1328,13 @@ function useAutomationsModel() {
1327
1328
  renderTitle: t15,
1328
1329
  render: t16
1329
1330
  };
1330
- $[54] = scheduleApp.beforeQuit;
1331
- $[55] = scheduleApp.onKeyDown;
1332
- $[56] = t14;
1333
- $[57] = t15;
1334
- $[58] = t16;
1335
- $[59] = t17;
1336
- } else t17 = $[59];
1331
+ $[53] = scheduleApp.beforeQuit;
1332
+ $[54] = scheduleApp.onKeyDown;
1333
+ $[55] = t14;
1334
+ $[56] = t15;
1335
+ $[57] = t16;
1336
+ $[58] = t17;
1337
+ } else t17 = $[58];
1337
1338
  return t17;
1338
1339
  }
1339
1340
  function _temp7(schedule) {
@@ -1349,7 +1350,7 @@ const automationsParts = computerAppParts(useAutomationsModel, {
1349
1350
  * once, so Calendar's New and Open land in the editor Automations shows.
1350
1351
  */
1351
1352
  function Host(t0) {
1352
- const $ = c(33);
1353
+ const $ = c(36);
1353
1354
  const { value, children } = t0;
1354
1355
  const host = value;
1355
1356
  const workflows = useQuery(host.automations.queryOptions);
@@ -1382,11 +1383,13 @@ function Host(t0) {
1382
1383
  $[8] = t4;
1383
1384
  } else t4 = $[8];
1384
1385
  const showSchedules = t4;
1385
- const now = useMinuteClock(host.now ?? Date.now);
1386
+ const { clock } = useComputerHost("ComputerAutomations.Host");
1387
+ const now = useMinuteClock(clock?.now ?? Date.now);
1388
+ clock?.timeZone;
1386
1389
  let t5;
1387
- if ($[9] !== host.timeZone) {
1388
- t5 = host.timeZone ?? BROWSER_TIME_ZONE();
1389
- $[9] = host.timeZone;
1390
+ if ($[9] !== clock?.timeZone) {
1391
+ t5 = clock?.timeZone ?? BROWSER_TIME_ZONE();
1392
+ $[9] = clock?.timeZone;
1390
1393
  $[10] = t5;
1391
1394
  } else t5 = $[10];
1392
1395
  const timeZone = t5;
@@ -1462,32 +1465,48 @@ function Host(t0) {
1462
1465
  $[29] = t11;
1463
1466
  } else t11 = $[29];
1464
1467
  const context = t11;
1465
- let t12;
1466
- if ($[30] !== children || $[31] !== context) {
1467
- t12 = /* @__PURE__ */ jsx(ComputerAutomationsContext, {
1468
- value: context,
1468
+ const t12 = useAppHosts("automations", APPS);
1469
+ let t13;
1470
+ if ($[30] !== children || $[31] !== t12) {
1471
+ t13 = /* @__PURE__ */ jsx(AppHostsContext, {
1472
+ value: t12,
1469
1473
  children
1470
1474
  });
1471
1475
  $[30] = children;
1472
- $[31] = context;
1473
- $[32] = t12;
1474
- } else t12 = $[32];
1475
- return t12;
1476
+ $[31] = t12;
1477
+ $[32] = t13;
1478
+ } else t13 = $[32];
1479
+ let t14;
1480
+ if ($[33] !== context || $[34] !== t13) {
1481
+ t14 = /* @__PURE__ */ jsx(ComputerAutomationsContext, {
1482
+ value: context,
1483
+ children: t13
1484
+ });
1485
+ $[33] = context;
1486
+ $[34] = t13;
1487
+ $[35] = t14;
1488
+ } else t14 = $[35];
1489
+ return t14;
1476
1490
  }
1477
- /** Automations in the Dock, and the Host it shares with Calendar. */
1491
+ const app = {
1492
+ id: COMPUTER_APP_IDS.automations,
1493
+ label: "Automations",
1494
+ icon: computerAppTile(/* @__PURE__ */ jsx(AppIcon.Image, {
1495
+ src: desktopArtwork.automations,
1496
+ alt: ""
1497
+ })),
1498
+ launcher: "favorite",
1499
+ titleBar: "unified",
1500
+ ...automationsParts
1501
+ };
1502
+ const APPS = [app, ComputerCalendar.app];
1503
+ /**
1504
+ * Automations in the Dock, and the Host it shares with Calendar. The Host,
1505
+ * inside a `ComputerHost` and above the computer, adds both apps to it.
1506
+ */
1478
1507
  const ComputerAutomations = {
1479
1508
  Host,
1480
- app: {
1481
- id: COMPUTER_APP_IDS.automations,
1482
- label: "Automations",
1483
- icon: computerAppTile(/* @__PURE__ */ jsx(AppIcon.Image, {
1484
- src: desktopArtwork.automations,
1485
- alt: ""
1486
- })),
1487
- launcher: "favorite",
1488
- titleBar: "unified",
1489
- ...automationsParts
1490
- }
1509
+ app
1491
1510
  };
1492
1511
  //#endregion
1493
1512
  export { COMPUTER_AUTOMATIONS_SECTIONS, ComputerAutomations };
@@ -1,4 +1,4 @@
1
- import { AgentComputerApp } from "./AgentComputer.js";
1
+ import { r as AgentComputerApp } from "../../AgentComputer-CpS9R2KG.js";
2
2
  //#region src/components/agents-sdk/ComputerCalendar.d.ts
3
3
  /** Calendar in the Dock. It reads the schedules and runs `ComputerAutomations.Host` keeps. */
4
4
  export declare const ComputerCalendar: {