@mcp-b/react-components 0.70.0 → 0.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AgentComputer-CpS9R2KG.d.ts +305 -0
- package/dist/{AgentComputer-CFJxjMFE.js → AgentComputer-DZCyQkcE.js} +1850 -478
- package/dist/CommandPalette-DDctKdpC.d.ts +53 -0
- package/dist/ComputerCalendar-Ci7tLASe.js +1360 -0
- package/dist/ComputerCustomWallpaper-CnGQYHp0.js +518 -0
- package/dist/ComputerCustomWallpaper-D4lgwj2k.d.ts +18 -0
- package/dist/ComputerNotifications-q7eeELZ8.d.ts +41 -0
- package/dist/ComputerPresentation-BEQKYAjc.js +888 -0
- package/dist/{ExecutionResult-C7SzVquo.js → ExecutionResult-CXnGcmM4.js} +1 -1
- package/dist/{WorkspaceBrowser-ojoZy0uO.js → WorkspaceBrowser-mRScUczT.js} +5 -5
- package/dist/WorkspaceFileTransfer-D2cOoVyO.js +1625 -0
- package/dist/{WorkspaceMessageResponse-BoeeltJM.js → WorkspaceMessageResponse-CXGOQgpo.js} +1 -1
- package/dist/components/agents-sdk/AgentComputer.d.ts +2 -276
- package/dist/components/agents-sdk/AgentComputer.js +1 -1
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/ComputerAutomations.d.ts +5 -15
- package/dist/components/agents-sdk/ComputerAutomations.js +164 -145
- package/dist/components/agents-sdk/ComputerCalendar.d.ts +1 -1
- package/dist/components/agents-sdk/ComputerCalendar.js +1 -1344
- package/dist/components/agents-sdk/ComputerCustomWallpaper.d.ts +2 -39
- package/dist/components/agents-sdk/ComputerCustomWallpaper.js +2 -522
- package/dist/components/agents-sdk/ComputerFiles.d.ts +18 -81
- package/dist/components/agents-sdk/ComputerFiles.js +365 -89
- package/dist/components/agents-sdk/ComputerHome.d.ts +6 -11
- package/dist/components/agents-sdk/ComputerHome.js +1 -89
- package/dist/components/agents-sdk/ComputerHost.d.ts +43 -0
- package/dist/components/agents-sdk/ComputerHost.js +97 -0
- package/dist/components/agents-sdk/ComputerLayout.d.ts +1 -1
- package/dist/components/agents-sdk/ComputerNotifications.d.ts +2 -54
- package/dist/components/agents-sdk/ComputerNotifications.js +1 -668
- package/dist/components/agents-sdk/ComputerPresentation.d.ts +2 -0
- package/dist/components/agents-sdk/ComputerPresentation.js +2 -0
- package/dist/components/agents-sdk/ComputerScreen.d.ts +14 -14
- package/dist/components/agents-sdk/ComputerScreen.js +109 -50
- package/dist/components/agents-sdk/ComputerSettings.d.ts +12 -40
- package/dist/components/agents-sdk/ComputerSettings.js +249 -1038
- package/dist/components/agents-sdk/ComputerSpotlight.d.ts +13 -15
- package/dist/components/agents-sdk/ComputerSpotlight.js +1 -231
- package/dist/components/agents-sdk/ComputerViewer.d.ts +13 -17
- package/dist/components/agents-sdk/ComputerViewer.js +176 -187
- package/dist/components/agents-sdk/ComputerWallpapers.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +2 -2
- package/dist/components/agents-sdk/EmployeeChrome.js +3 -3
- package/dist/components/agents-sdk/EmployeeSchedules.js +2 -2
- package/dist/components/agents-sdk/ExecutionBoard.js +1 -1
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +2 -2
- package/dist/components/agents-sdk/McpPluginCatalog.js +1 -1
- package/dist/components/agents-sdk/ThinkChat.js +1 -1
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +3 -3
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +2 -2
- package/dist/components/agents-sdk/ThinkScheduleActions.js +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.js +1 -1
- package/dist/components/agents-sdk/ThinkScheduleDetail.js +4 -4
- package/dist/components/agents-sdk/ThinkScheduleForm.js +3 -3
- package/dist/components/agents-sdk/WorkspaceAutomation.js +3 -3
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +1 -5
- package/dist/components/agents-sdk/WorkspaceDesktop.js +53 -41
- package/dist/components/agents-sdk/WorkspaceExplorer.js +3 -3
- package/dist/components/agents-sdk/WorkspaceFileCommands.js +1 -924
- package/dist/components/agents-sdk/WorkspaceFileDetails.js +1 -1
- package/dist/components/agents-sdk/WorkspaceFileTransfer.js +1 -504
- package/dist/components/agents-sdk/WorkspaceFileView.js +6 -6
- package/dist/components/agents-sdk/WorkspaceLink.js +1 -1
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +9 -0
- package/dist/components/agents-sdk/WorkspaceLive.js +2 -177
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +1 -1
- package/dist/components/ai-sdk/Context.js +1 -1
- package/dist/components/ai-sdk/PromptInput.js +1 -1
- package/dist/components/extension/FirstRunSetup.js +2 -2
- package/dist/components/foundations/ThemeProvider.d.ts +2 -0
- package/dist/components/foundations/ThemeProvider.js +2 -1
- package/dist/components/general-purpose/CommandPalette.d.ts +2 -52
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
- package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -2
- package/dist/components/nanites/AgentConnection.js +1 -1
- package/dist/components/nanites/AgentToolDetail.js +1 -1
- package/dist/context-BWJpR084.js +94 -0
- package/dist/{parts-CPVz9l31.js → parts-DuT5-rDz.js} +1 -1
- package/dist/styles/agent-computer.css +16 -0
- package/dist/styles/computer-files.css +5 -0
- package/dist/styles/computer-notifications.css +1 -0
- package/dist/{workspace-drag-B6hMXUNt.js → workspace-drag-BNhZIN8F.js} +1 -1
- package/dist/{workspace-quick-look-DODjsfhH.js → workspace-quick-look-8cbGu1Xf.js} +2 -2
- package/package.json +2 -2
- package/dist/WallpaperPicker-C-FItmDS.d.ts +0 -34
- package/dist/automations-host-DPORjdc7.js +0 -17
- package/dist/context-Ddsp8HgD.js +0 -43
- package/dist/minute-clock-CXpRGCMF.js +0 -35
- package/dist/{Context-DQDumCV8.js → Context-CYUxZrwW.js} +1 -1
- package/dist/{ManagerOffice-kSK7vTBl.js → ManagerOffice-BJ2vs-Lr.js} +2 -2
- 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 {
|
|
9
|
-
import {
|
|
8
|
+
import { p as useMinuteClock } from "../../AgentComputer-DZCyQkcE.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 {
|
|
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-Ci7tLASe.js";
|
|
19
|
+
import { n as computerAppTile, t as computerAppParts } from "../../parts-DuT5-rDz.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(
|
|
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] !==
|
|
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
|
|
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] =
|
|
570
|
-
$[76] =
|
|
571
|
-
$[77] =
|
|
572
|
-
|
|
570
|
+
$[75] = sourceKey;
|
|
571
|
+
$[76] = startNew;
|
|
572
|
+
$[77] = submit;
|
|
573
|
+
$[78] = t22;
|
|
574
|
+
} else t22 = $[78];
|
|
573
575
|
let t23;
|
|
574
|
-
if ($[
|
|
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
|
-
$[
|
|
583
|
-
$[
|
|
584
|
-
$[
|
|
585
|
-
$[
|
|
586
|
-
$[
|
|
587
|
-
$[
|
|
588
|
-
} else t23 = $[
|
|
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 ($[
|
|
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
|
-
$[
|
|
602
|
-
$[
|
|
603
|
-
$[
|
|
604
|
-
$[
|
|
605
|
-
$[
|
|
606
|
-
$[
|
|
607
|
-
$[
|
|
608
|
-
} else t25 = $[
|
|
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] !==
|
|
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: () =>
|
|
873
|
+
onClick: () => computerHost.onOpenConversation(conversation),
|
|
871
874
|
children: "Open conversation"
|
|
872
875
|
}) : null;
|
|
873
|
-
$[6] =
|
|
874
|
-
$[7] =
|
|
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(
|
|
1048
|
+
const $ = c(59);
|
|
1046
1049
|
const { host, clock, schedules } = useComputerAutomationsContext();
|
|
1047
|
-
const
|
|
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] !==
|
|
1087
|
+
if ($[7] !== files) {
|
|
1085
1088
|
t4 = (path_0) => {
|
|
1086
|
-
|
|
1087
|
-
openApp(COMPUTER_APP_IDS.files);
|
|
1089
|
+
files?.open(path_0, "file");
|
|
1088
1090
|
};
|
|
1089
|
-
$[7] =
|
|
1090
|
-
$[8] =
|
|
1091
|
-
|
|
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 ($[
|
|
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
|
-
$[
|
|
1101
|
-
$[
|
|
1102
|
-
$[
|
|
1103
|
-
$[
|
|
1104
|
-
} else t5 = $[
|
|
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 ($[
|
|
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
|
-
$[
|
|
1115
|
-
$[
|
|
1116
|
-
$[
|
|
1117
|
-
$[
|
|
1115
|
+
$[13] = openAutomationSchedule;
|
|
1116
|
+
$[14] = setSection;
|
|
1117
|
+
$[15] = t6;
|
|
1118
|
+
$[16] = t7;
|
|
1118
1119
|
} else {
|
|
1119
|
-
t6 = $[
|
|
1120
|
-
t7 = $[
|
|
1120
|
+
t6 = $[15];
|
|
1121
|
+
t7 = $[16];
|
|
1121
1122
|
}
|
|
1122
1123
|
let t8;
|
|
1123
|
-
if ($[
|
|
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
|
-
$[
|
|
1134
|
-
$[
|
|
1135
|
-
} else t8 = $[
|
|
1134
|
+
$[17] = onRun;
|
|
1135
|
+
$[18] = t8;
|
|
1136
|
+
} else t8 = $[18];
|
|
1136
1137
|
let t9;
|
|
1137
|
-
if ($[
|
|
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
|
-
$[
|
|
1146
|
-
$[
|
|
1147
|
-
$[
|
|
1148
|
-
$[
|
|
1149
|
-
$[
|
|
1150
|
-
$[
|
|
1151
|
-
} else t9 = $[
|
|
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 ($[
|
|
1155
|
+
if ($[25] !== host.schedules || $[26] !== runId) {
|
|
1155
1156
|
t10 = host.schedules.flatMap(_temp7).find((run_0) => getThinkExecutionRunId(run_0) === runId) ?? null;
|
|
1156
|
-
$[
|
|
1157
|
-
$[
|
|
1158
|
-
$[
|
|
1159
|
-
} else t10 = $[
|
|
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 ($[
|
|
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
|
-
$[
|
|
1178
|
-
} else t11 = $[
|
|
1178
|
+
$[28] = t11;
|
|
1179
|
+
} else t11 = $[28];
|
|
1179
1180
|
let t12;
|
|
1180
|
-
if ($[
|
|
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
|
-
$[
|
|
1193
|
-
} else t12 = $[
|
|
1193
|
+
$[29] = t12;
|
|
1194
|
+
} else t12 = $[29];
|
|
1194
1195
|
let t13;
|
|
1195
|
-
if ($[
|
|
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
|
-
$[
|
|
1217
|
-
} else t13 = $[
|
|
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 ($[
|
|
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
|
-
$[
|
|
1230
|
-
$[
|
|
1231
|
-
$[
|
|
1232
|
-
$[
|
|
1233
|
-
} else t15 = $[
|
|
1230
|
+
$[31] = outlet;
|
|
1231
|
+
$[32] = scheduleApp.renderTitle;
|
|
1232
|
+
$[33] = schedules.editing;
|
|
1233
|
+
$[34] = t15;
|
|
1234
|
+
} else t15 = $[34];
|
|
1234
1235
|
let t16;
|
|
1235
|
-
if ($[
|
|
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
|
-
$[
|
|
1303
|
-
$[
|
|
1304
|
-
$[
|
|
1305
|
-
$[
|
|
1306
|
-
$[
|
|
1307
|
-
$[
|
|
1308
|
-
$[
|
|
1309
|
-
$[
|
|
1310
|
-
$[
|
|
1311
|
-
$[
|
|
1312
|
-
$[
|
|
1313
|
-
$[
|
|
1314
|
-
$[
|
|
1315
|
-
$[
|
|
1316
|
-
$[
|
|
1317
|
-
$[
|
|
1318
|
-
$[
|
|
1319
|
-
$[
|
|
1320
|
-
} else t16 = $[
|
|
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 ($[
|
|
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
|
-
$[
|
|
1331
|
-
$[
|
|
1332
|
-
$[
|
|
1333
|
-
$[
|
|
1334
|
-
$[
|
|
1335
|
-
$[
|
|
1336
|
-
} else t17 = $[
|
|
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(
|
|
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
|
|
1386
|
+
const { clock } = useComputerHost("ComputerAutomations.Host");
|
|
1387
|
+
const now = useMinuteClock(clock?.now ?? Date.now);
|
|
1388
|
+
clock?.timeZone;
|
|
1386
1389
|
let t5;
|
|
1387
|
-
if ($[9] !==
|
|
1388
|
-
t5 =
|
|
1389
|
-
$[9] =
|
|
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
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
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] =
|
|
1473
|
-
$[32] =
|
|
1474
|
-
} else
|
|
1475
|
-
|
|
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
|
-
|
|
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 "
|
|
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: {
|