@mcp-b/react-components 0.69.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/Context-CYUxZrwW.js +918 -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 -842
- package/dist/components/ai-sdk/Plan.d.ts +33 -9
- package/dist/components/ai-sdk/Plan.js +336 -107
- 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/styles/plan.css +160 -23
- 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/progress-ring-BO649JA9.js +0 -79
- package/dist/{ManagerOffice-kSK7vTBl.js → ManagerOffice-BJ2vs-Lr.js} +2 -2
- package/dist/{WorkspaceLink-DK9kdMUH.js → WorkspaceLink-DDkj-Tq5.js} +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { W as MonitorIcon, gt as XIcon } from "../../icons-nLTnB9kd.js";
|
|
1
|
+
import { V as MessageSquareIcon, W as MonitorIcon, gt as XIcon } from "../../icons-nLTnB9kd.js";
|
|
2
2
|
import { Button } from "../foundations/Button.js";
|
|
3
|
+
import { m as useComputerHost } from "../../context-BWJpR084.js";
|
|
3
4
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
4
5
|
import { c } from "react/compiler-runtime";
|
|
5
6
|
import * as React from "react";
|
|
@@ -16,7 +17,7 @@ function computerFocusTarget(toggle, computer) {
|
|
|
16
17
|
return toggle?.getClientRects().length ? toggle : computer?.querySelector("[data-slot=\"computer-window\"][data-active]");
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
|
-
* The computer and its conversation, side by side above 74.75rem of viewer
|
|
20
|
+
* The computer and its conversation, inside a `ComputerHost`, side by side above 74.75rem of viewer
|
|
20
21
|
* (a 48rem computer, a `--sigvelo-layout-conversation` column and their
|
|
21
22
|
* insets), one over the other below it. CSS owns that breakpoint; the viewer
|
|
22
23
|
* observes the same decision for inert, ARIA and focus. The viewer owns focus
|
|
@@ -24,8 +25,10 @@ function computerFocusTarget(toggle, computer) {
|
|
|
24
25
|
* returns focus to what opened it.
|
|
25
26
|
*/
|
|
26
27
|
function ComputerViewer(t0) {
|
|
27
|
-
const $ = c(
|
|
28
|
-
const {
|
|
28
|
+
const $ = c(43);
|
|
29
|
+
const { computer, conversation, defaultOpen: t1, actionsRef } = t0;
|
|
30
|
+
const defaultOpen = t1 === void 0 ? true : t1;
|
|
31
|
+
const host = useComputerHost("ComputerViewer");
|
|
29
32
|
const id = React.useId();
|
|
30
33
|
const layoutRef = React.useRef(null);
|
|
31
34
|
const computerRef = React.useRef(null);
|
|
@@ -33,94 +36,94 @@ function ComputerViewer(t0) {
|
|
|
33
36
|
const toggleRef = React.useRef(null);
|
|
34
37
|
const opener = React.useRef(null);
|
|
35
38
|
const [split, setSplit] = React.useState(false);
|
|
36
|
-
const [computerInFront, setComputerInFront] = React.useState(
|
|
37
|
-
const [
|
|
38
|
-
if (open !== wasOpen) {
|
|
39
|
-
setWasOpen(open);
|
|
40
|
-
setComputerInFront(false);
|
|
41
|
-
}
|
|
39
|
+
const [computerInFront, setComputerInFront] = React.useState(true);
|
|
40
|
+
const [open, setOpen] = React.useState(defaultOpen);
|
|
42
41
|
const visible = open && (split || !computerInFront);
|
|
43
|
-
let
|
|
44
|
-
if ($[0]
|
|
45
|
-
|
|
42
|
+
let t2;
|
|
43
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44
|
+
t2 = (next) => {
|
|
46
45
|
setComputerInFront(false);
|
|
47
|
-
|
|
46
|
+
setOpen(next);
|
|
48
47
|
};
|
|
49
|
-
$[0] =
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
$[0] = t2;
|
|
49
|
+
} else t2 = $[0];
|
|
50
|
+
const onOpenChange = t2;
|
|
51
|
+
let t3;
|
|
52
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
53
|
+
t3 = () => onOpenChange(true);
|
|
54
|
+
$[1] = t3;
|
|
55
|
+
} else t3 = $[1];
|
|
56
|
+
const showConversation = t3;
|
|
57
|
+
let t4;
|
|
58
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
59
|
+
t4 = () => ({
|
|
56
60
|
showComputer: () => setComputerInFront(true),
|
|
57
61
|
showConversation
|
|
58
62
|
});
|
|
59
|
-
$[2] =
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
React.useImperativeHandle(actionsRef, t2);
|
|
63
|
+
$[2] = t4;
|
|
64
|
+
} else t4 = $[2];
|
|
65
|
+
React.useImperativeHandle(actionsRef, t4);
|
|
63
66
|
const resizeFocus = React.useRef(null);
|
|
64
|
-
let
|
|
65
|
-
if ($[
|
|
66
|
-
|
|
67
|
-
const
|
|
68
|
-
if (
|
|
69
|
-
const conversationShown = open && (
|
|
67
|
+
let t5;
|
|
68
|
+
if ($[3] !== computerInFront || $[4] !== open || $[5] !== split) {
|
|
69
|
+
t5 = (layout) => {
|
|
70
|
+
const next_0 = getComputedStyle(layout).getPropertyValue("--computer-viewer-split").trim() === "1";
|
|
71
|
+
if (next_0 === split) return;
|
|
72
|
+
const conversationShown = open && (next_0 || !computerInFront);
|
|
70
73
|
const focused = document.activeElement;
|
|
71
|
-
if (focused && (!conversationShown && conversationRef.current?.contains(focused) || !
|
|
74
|
+
if (focused && (!conversationShown && conversationRef.current?.contains(focused) || !next_0 && conversationShown && computerRef.current?.contains(focused))) resizeFocus.current = {
|
|
72
75
|
previous: focused,
|
|
73
76
|
conversation: conversationShown
|
|
74
77
|
};
|
|
75
|
-
setSplit(
|
|
78
|
+
setSplit(next_0);
|
|
76
79
|
};
|
|
77
|
-
$[
|
|
78
|
-
$[
|
|
79
|
-
$[
|
|
80
|
-
$[
|
|
81
|
-
} else
|
|
82
|
-
const syncLayout = React.useEffectEvent(
|
|
83
|
-
let
|
|
84
|
-
if ($[
|
|
85
|
-
|
|
80
|
+
$[3] = computerInFront;
|
|
81
|
+
$[4] = open;
|
|
82
|
+
$[5] = split;
|
|
83
|
+
$[6] = t5;
|
|
84
|
+
} else t5 = $[6];
|
|
85
|
+
const syncLayout = React.useEffectEvent(t5);
|
|
86
|
+
let t6;
|
|
87
|
+
if ($[7] !== syncLayout) {
|
|
88
|
+
t6 = () => {
|
|
86
89
|
const layout_0 = layoutRef.current;
|
|
87
90
|
syncLayout(layout_0);
|
|
88
91
|
const observer = new ResizeObserver(() => syncLayout(layout_0));
|
|
89
92
|
observer.observe(layout_0);
|
|
90
93
|
return () => observer.disconnect();
|
|
91
94
|
};
|
|
92
|
-
$[
|
|
93
|
-
$[
|
|
94
|
-
} else
|
|
95
|
-
let
|
|
95
|
+
$[7] = syncLayout;
|
|
96
|
+
$[8] = t6;
|
|
97
|
+
} else t6 = $[8];
|
|
98
|
+
let t7;
|
|
99
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
100
|
+
t7 = [];
|
|
101
|
+
$[9] = t7;
|
|
102
|
+
} else t7 = $[9];
|
|
103
|
+
React.useLayoutEffect(t6, t7);
|
|
104
|
+
let t8;
|
|
96
105
|
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
97
|
-
|
|
98
|
-
$[10] = t5;
|
|
99
|
-
} else t5 = $[10];
|
|
100
|
-
React.useLayoutEffect(t4, t5);
|
|
101
|
-
let t6;
|
|
102
|
-
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
103
|
-
t6 = () => {
|
|
106
|
+
t8 = () => {
|
|
104
107
|
const pending = resizeFocus.current;
|
|
105
108
|
resizeFocus.current = null;
|
|
106
109
|
if (!pending || document.activeElement !== pending.previous && document.activeElement !== document.body) return;
|
|
107
110
|
(pending.conversation ? conversationRef.current?.querySelector("[role=\"textbox\"]") : computerFocusTarget(toggleRef.current, computerRef.current))?.focus({ preventScroll: true });
|
|
108
111
|
};
|
|
109
|
-
$[
|
|
110
|
-
} else
|
|
111
|
-
let
|
|
112
|
-
if ($[
|
|
113
|
-
|
|
114
|
-
$[
|
|
115
|
-
$[
|
|
116
|
-
} else
|
|
117
|
-
React.useLayoutEffect(
|
|
112
|
+
$[10] = t8;
|
|
113
|
+
} else t8 = $[10];
|
|
114
|
+
let t9;
|
|
115
|
+
if ($[11] !== split) {
|
|
116
|
+
t9 = [split];
|
|
117
|
+
$[11] = split;
|
|
118
|
+
$[12] = t9;
|
|
119
|
+
} else t9 = $[12];
|
|
120
|
+
React.useLayoutEffect(t8, t9);
|
|
118
121
|
const wasVisible = React.useRef(visible);
|
|
119
122
|
const wasSplit = React.useRef(split);
|
|
120
|
-
let
|
|
121
|
-
let
|
|
122
|
-
if ($[
|
|
123
|
-
|
|
123
|
+
let t10;
|
|
124
|
+
let t11;
|
|
125
|
+
if ($[13] !== split || $[14] !== visible) {
|
|
126
|
+
t10 = () => {
|
|
124
127
|
const resized = split !== wasSplit.current;
|
|
125
128
|
wasSplit.current = split;
|
|
126
129
|
if (visible === wasVisible.current) return;
|
|
@@ -141,19 +144,19 @@ function ComputerViewer(t0) {
|
|
|
141
144
|
});
|
|
142
145
|
return () => cancelAnimationFrame(frame_0);
|
|
143
146
|
};
|
|
144
|
-
|
|
145
|
-
$[
|
|
146
|
-
$[
|
|
147
|
-
$[
|
|
148
|
-
$[
|
|
147
|
+
t11 = [visible, split];
|
|
148
|
+
$[13] = split;
|
|
149
|
+
$[14] = visible;
|
|
150
|
+
$[15] = t10;
|
|
151
|
+
$[16] = t11;
|
|
149
152
|
} else {
|
|
150
|
-
|
|
151
|
-
|
|
153
|
+
t10 = $[15];
|
|
154
|
+
t11 = $[16];
|
|
152
155
|
}
|
|
153
|
-
React.useLayoutEffect(
|
|
154
|
-
let
|
|
155
|
-
if ($[
|
|
156
|
-
|
|
156
|
+
React.useLayoutEffect(t10, t11);
|
|
157
|
+
let t12;
|
|
158
|
+
if ($[17] !== id || $[18] !== split || $[19] !== visible) {
|
|
159
|
+
t12 = {
|
|
157
160
|
id,
|
|
158
161
|
split,
|
|
159
162
|
visible,
|
|
@@ -161,155 +164,141 @@ function ComputerViewer(t0) {
|
|
|
161
164
|
onOpenChange,
|
|
162
165
|
showConversation
|
|
163
166
|
};
|
|
164
|
-
$[
|
|
165
|
-
$[
|
|
166
|
-
$[
|
|
167
|
-
$[
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
if ($[24] !== computer || $[25] !== t12) {
|
|
175
|
-
t13 = /* @__PURE__ */ jsx("div", {
|
|
167
|
+
$[17] = id;
|
|
168
|
+
$[18] = split;
|
|
169
|
+
$[19] = visible;
|
|
170
|
+
$[20] = t12;
|
|
171
|
+
} else t12 = $[20];
|
|
172
|
+
const t13 = open ? "" : void 0;
|
|
173
|
+
const t14 = !split && visible;
|
|
174
|
+
let t15;
|
|
175
|
+
if ($[21] !== computer || $[22] !== t14) {
|
|
176
|
+
t15 = /* @__PURE__ */ jsx("div", {
|
|
176
177
|
ref: computerRef,
|
|
177
178
|
className: "computer-viewer__computer",
|
|
178
|
-
inert:
|
|
179
|
+
inert: t14,
|
|
179
180
|
children: computer
|
|
180
181
|
});
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
} else
|
|
185
|
-
const
|
|
186
|
-
const
|
|
187
|
-
let
|
|
188
|
-
if ($[
|
|
189
|
-
|
|
182
|
+
$[21] = computer;
|
|
183
|
+
$[22] = t14;
|
|
184
|
+
$[23] = t15;
|
|
185
|
+
} else t15 = $[23];
|
|
186
|
+
const t16 = !visible;
|
|
187
|
+
const t17 = !visible;
|
|
188
|
+
let t18;
|
|
189
|
+
if ($[24] !== split) {
|
|
190
|
+
t18 = (event) => {
|
|
190
191
|
if (event.key !== "Escape" || event.defaultPrevented || split || !event.currentTarget.contains(event.target)) return;
|
|
191
192
|
event.preventDefault();
|
|
192
193
|
onOpenChange(false);
|
|
193
194
|
};
|
|
194
|
-
$[
|
|
195
|
-
$[
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
t17 = /* @__PURE__ */ jsx("button", {
|
|
195
|
+
$[24] = split;
|
|
196
|
+
$[25] = t18;
|
|
197
|
+
} else t18 = $[25];
|
|
198
|
+
let t19;
|
|
199
|
+
if ($[26] !== host.computer.current) {
|
|
200
|
+
t19 = /* @__PURE__ */ jsx("button", {
|
|
201
201
|
type: "button",
|
|
202
202
|
className: "computer-viewer__home-indicator",
|
|
203
203
|
"aria-label": "Show home",
|
|
204
204
|
onPointerDown: _temp,
|
|
205
205
|
onClick: () => {
|
|
206
|
-
|
|
206
|
+
host.computer.current?.showHome();
|
|
207
207
|
onOpenChange(false);
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
|
-
$[
|
|
211
|
-
$[
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
t18 = /* @__PURE__ */ jsxs("section", {
|
|
210
|
+
$[26] = host.computer.current;
|
|
211
|
+
$[27] = t19;
|
|
212
|
+
} else t19 = $[27];
|
|
213
|
+
let t20;
|
|
214
|
+
if ($[28] !== conversation || $[29] !== host.employee.name || $[30] !== id || $[31] !== t16 || $[32] !== t17 || $[33] !== t18 || $[34] !== t19) {
|
|
215
|
+
t20 = /* @__PURE__ */ jsxs("section", {
|
|
217
216
|
ref: conversationRef,
|
|
218
217
|
id,
|
|
219
218
|
className: "computer-viewer__conversation",
|
|
220
|
-
"aria-label":
|
|
221
|
-
hidden:
|
|
222
|
-
inert:
|
|
223
|
-
onKeyDown:
|
|
224
|
-
children: [conversation,
|
|
219
|
+
"aria-label": host.employee.name,
|
|
220
|
+
hidden: t16,
|
|
221
|
+
inert: t17,
|
|
222
|
+
onKeyDown: t18,
|
|
223
|
+
children: [conversation, t19]
|
|
225
224
|
});
|
|
226
|
-
$[
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
$[
|
|
230
|
-
$[
|
|
231
|
-
$[
|
|
232
|
-
$[
|
|
233
|
-
$[
|
|
234
|
-
} else
|
|
235
|
-
let
|
|
236
|
-
if ($[
|
|
237
|
-
|
|
225
|
+
$[28] = conversation;
|
|
226
|
+
$[29] = host.employee.name;
|
|
227
|
+
$[30] = id;
|
|
228
|
+
$[31] = t16;
|
|
229
|
+
$[32] = t17;
|
|
230
|
+
$[33] = t18;
|
|
231
|
+
$[34] = t19;
|
|
232
|
+
$[35] = t20;
|
|
233
|
+
} else t20 = $[35];
|
|
234
|
+
let t21;
|
|
235
|
+
if ($[36] !== t13 || $[37] !== t15 || $[38] !== t20) {
|
|
236
|
+
t21 = /* @__PURE__ */ jsx("div", {
|
|
238
237
|
className: "computer-viewer",
|
|
239
238
|
children: /* @__PURE__ */ jsxs("div", {
|
|
240
239
|
ref: layoutRef,
|
|
241
240
|
className: "computer-viewer__layout",
|
|
242
|
-
"data-conversation-open":
|
|
243
|
-
children: [
|
|
241
|
+
"data-conversation-open": t13,
|
|
242
|
+
children: [t15, t20]
|
|
244
243
|
})
|
|
245
244
|
});
|
|
246
|
-
$[
|
|
247
|
-
$[
|
|
248
|
-
$[
|
|
249
|
-
$[
|
|
250
|
-
} else
|
|
251
|
-
let
|
|
252
|
-
if ($[
|
|
253
|
-
|
|
254
|
-
value:
|
|
255
|
-
children:
|
|
245
|
+
$[36] = t13;
|
|
246
|
+
$[37] = t15;
|
|
247
|
+
$[38] = t20;
|
|
248
|
+
$[39] = t21;
|
|
249
|
+
} else t21 = $[39];
|
|
250
|
+
let t22;
|
|
251
|
+
if ($[40] !== t12 || $[41] !== t21) {
|
|
252
|
+
t22 = /* @__PURE__ */ jsx(ViewerContext, {
|
|
253
|
+
value: t12,
|
|
254
|
+
children: t21
|
|
256
255
|
});
|
|
257
|
-
$[
|
|
258
|
-
$[
|
|
259
|
-
$[
|
|
260
|
-
} else
|
|
261
|
-
return
|
|
256
|
+
$[40] = t12;
|
|
257
|
+
$[41] = t21;
|
|
258
|
+
$[42] = t22;
|
|
259
|
+
} else t22 = $[42];
|
|
260
|
+
return t22;
|
|
262
261
|
}
|
|
263
262
|
function _temp(event_0) {
|
|
264
263
|
return event_0.currentTarget.setPointerCapture(event_0.pointerId);
|
|
265
264
|
}
|
|
266
265
|
/**
|
|
267
|
-
* The
|
|
268
|
-
* shows the conversation, over a narrow computer or
|
|
269
|
-
* conversation's own top bar hides it.
|
|
270
|
-
*
|
|
266
|
+
* The menu bar's control for the conversation, which the computer draws
|
|
267
|
+
* inside a viewer. It shows the conversation, over a narrow computer or
|
|
268
|
+
* beside a wide one; the conversation's own top bar hides it. Focus returns
|
|
269
|
+
* here when the conversation hides.
|
|
271
270
|
*/
|
|
272
|
-
function ComputerViewerToggle(
|
|
273
|
-
const $ = c(
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
271
|
+
function ComputerViewerToggle() {
|
|
272
|
+
const $ = c(6);
|
|
273
|
+
const viewer = React.use(ViewerContext);
|
|
274
|
+
if (!viewer) return null;
|
|
275
|
+
const { id, visible, toggleRef, showConversation } = viewer;
|
|
276
|
+
let t0;
|
|
277
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
278
|
+
t0 = /* @__PURE__ */ jsx(MessageSquareIcon, {});
|
|
278
279
|
$[0] = t0;
|
|
279
|
-
|
|
280
|
-
$[2] = props;
|
|
281
|
-
} else {
|
|
282
|
-
onClick = $[1];
|
|
283
|
-
props = $[2];
|
|
284
|
-
}
|
|
285
|
-
const { id, visible, toggleRef, showConversation } = useViewer();
|
|
280
|
+
} else t0 = $[0];
|
|
286
281
|
let t1;
|
|
287
|
-
if ($[3] !==
|
|
288
|
-
t1 = (
|
|
289
|
-
onClick?.(event);
|
|
290
|
-
if (!event.defaultPrevented) showConversation();
|
|
291
|
-
};
|
|
292
|
-
$[3] = onClick;
|
|
293
|
-
$[4] = showConversation;
|
|
294
|
-
$[5] = t1;
|
|
295
|
-
} else t1 = $[5];
|
|
296
|
-
let t2;
|
|
297
|
-
if ($[6] !== id || $[7] !== props || $[8] !== t1 || $[9] !== toggleRef || $[10] !== visible) {
|
|
298
|
-
t2 = /* @__PURE__ */ jsx(Button, {
|
|
299
|
-
...props,
|
|
282
|
+
if ($[1] !== id || $[2] !== showConversation || $[3] !== toggleRef || $[4] !== visible) {
|
|
283
|
+
t1 = /* @__PURE__ */ jsx(Button, {
|
|
300
284
|
ref: toggleRef,
|
|
285
|
+
className: "agent-computer__conversation-toggle",
|
|
286
|
+
variant: "ghost",
|
|
287
|
+
size: "xs",
|
|
288
|
+
iconOnly: true,
|
|
289
|
+
"aria-label": "Open conversation",
|
|
301
290
|
"aria-expanded": visible,
|
|
302
291
|
"aria-controls": id,
|
|
303
|
-
onClick:
|
|
292
|
+
onClick: showConversation,
|
|
293
|
+
children: t0
|
|
304
294
|
});
|
|
305
|
-
$[
|
|
306
|
-
$[
|
|
307
|
-
$[
|
|
308
|
-
$[
|
|
309
|
-
$[
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
return t2;
|
|
295
|
+
$[1] = id;
|
|
296
|
+
$[2] = showConversation;
|
|
297
|
+
$[3] = toggleRef;
|
|
298
|
+
$[4] = visible;
|
|
299
|
+
$[5] = t1;
|
|
300
|
+
} else t1 = $[5];
|
|
301
|
+
return t1;
|
|
313
302
|
}
|
|
314
303
|
/**
|
|
315
304
|
* The conversation's own way out, for its top bar: "Hide conversation" beside
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WallpaperOption } from "../general-purpose/WallpaperPicker.js";
|
|
2
2
|
//#region src/components/agents-sdk/ComputerWallpapers.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* The computer's own backgrounds: original pictures, the same in light and
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PromptInputActionAddAttachments, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuTrigger, PromptInputAttachments, PromptInputBody, PromptInputCommandComposer, PromptInputContextSelector, PromptInputFooter, PromptInputFooterEnd, PromptInputTools } from "../ai-sdk/PromptInput.js";
|
|
2
2
|
import { AgentChat, useAgentChatCompaction } from "./AgentChat.js";
|
|
3
|
-
import { t as WorkspaceFileRendererProvider } from "../../WorkspaceMessageResponse-
|
|
3
|
+
import { t as WorkspaceFileRendererProvider } from "../../WorkspaceMessageResponse-CXGOQgpo.js";
|
|
4
4
|
import { ConversationTabPicker } from "../extension/ConversationTabPicker.js";
|
|
5
5
|
import { n as SetupChecklistGroup } from "../../SetupChecklist-DwscX3Bw.js";
|
|
6
6
|
import { McpServerPickerItems } from "./McpServerPicker.js";
|
|
7
7
|
import { EmployeeStartScreen } from "./EmployeeStartScreen.js";
|
|
8
|
-
import {
|
|
8
|
+
import { a as ContextContentFooter, i as ContextContentBody, o as ContextContentHeader, r as ContextContent, t as Context, u as ContextTrigger } from "../../Context-CYUxZrwW.js";
|
|
9
9
|
import { CodexModelSelector } from "../extension/CodexModelSelector.js";
|
|
10
10
|
import { ThinkChat } from "./ThinkChat.js";
|
|
11
11
|
import { c } from "react/compiler-runtime";
|
|
@@ -9,13 +9,13 @@ import { SubagentRunLabel, getSubagentRunName } from "./SubagentRunIndicator.js"
|
|
|
9
9
|
import { Menu } from "../foundations/Menu.js";
|
|
10
10
|
import { BrandLoading } from "../general-purpose/BrandLoading.js";
|
|
11
11
|
import { AgentChat } from "./AgentChat.js";
|
|
12
|
+
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
13
|
+
import { useTheme } from "../foundations/ThemeProvider.js";
|
|
12
14
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
13
15
|
import { Avatar } from "../foundations/Avatar.js";
|
|
14
|
-
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
15
16
|
import { n as isPlainPrimaryLinkActivation } from "../../navigation-link-DMmtdqsM.js";
|
|
16
|
-
import {
|
|
17
|
+
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
17
18
|
import { ResponsiveSidebarShell, useResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
18
|
-
import { useTheme } from "../foundations/ThemeProvider.js";
|
|
19
19
|
import { AgentChatStartScreen, AgentChatStartScreenComposer, AgentChatStartScreenPrimary, AgentChatStartScreenSuggestions, AgentChatStartScreenTray, AgentChatStarterList } from "../ai-sdk/AgentChatStartScreen.js";
|
|
20
20
|
import { t as ChatGptSignInScreen } from "../../ChatGptSignInScreen-CmbBe09G.js";
|
|
21
21
|
import { ActionGuide, ActionGuideAction, ActionGuideList, ActionGuideSection } from "../general-purpose/ActionGuide.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { J as PencilIcon, r as ArrowLeftIcon } from "../../icons-nLTnB9kd.js";
|
|
2
|
-
import { getThinkExecutionRunId } from "./ThinkExecutionRun.js";
|
|
3
2
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
4
|
-
import {
|
|
3
|
+
import { getThinkExecutionRunId } from "./ThinkExecutionRun.js";
|
|
5
4
|
import { LinkButton } from "../foundations/LinkButton.js";
|
|
5
|
+
import { ResponsiveSidebarShell, useResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
6
6
|
import { StatusScreen } from "../general-purpose/StatusScreen.js";
|
|
7
7
|
import { ThinkScheduleActions, useThinkScheduleActions } from "./ThinkScheduleActions.js";
|
|
8
8
|
import { ThinkScheduleBrowser } from "./ThinkScheduleBrowser.js";
|
|
@@ -7,7 +7,7 @@ import { Favicon } from "../foundations/Favicon.js";
|
|
|
7
7
|
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
8
8
|
import { a as executionResultSummary, n as executionErrorSummary, s as stepState, t as boardNotice } from "../../execution-result-DAuW4VWv.js";
|
|
9
9
|
import { i as httpUrl, t as Hint } from "../../workspace-assets-DdtnBDU3.js";
|
|
10
|
-
import { t as ExecutionResult } from "../../ExecutionResult-
|
|
10
|
+
import { t as ExecutionResult } from "../../ExecutionResult-CXnGcmM4.js";
|
|
11
11
|
import { c } from "react/compiler-runtime";
|
|
12
12
|
import * as React from "react";
|
|
13
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ManagerOfficeSidebar, r as ManagerOfficeSidebarAlert, t as ManagerOffice } from "../../ManagerOffice-
|
|
1
|
+
import { n as ManagerOfficeSidebar, r as ManagerOfficeSidebarAlert, t as ManagerOffice } from "../../ManagerOffice-BJ2vs-Lr.js";
|
|
2
2
|
export { ManagerOffice, ManagerOfficeSidebar, ManagerOfficeSidebarAlert };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { J as PencilIcon, W as MonitorIcon, Z as PlusIcon, k as FolderIcon, mt as WarningIcon, r as ArrowLeftIcon, rt as SlackIcon } from "../../icons-nLTnB9kd.js";
|
|
2
|
-
import { EmptyState } from "../foundations/EmptyState.js";
|
|
3
2
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
3
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
4
4
|
import { ResponsiveSidebarShell, useResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
5
5
|
import { ThinkThreadPicker } from "./ThinkThreadPicker.js";
|
|
6
6
|
import { EmployeeChrome } from "./EmployeeChrome.js";
|
|
7
|
-
import { n as ManagerOfficeSidebar, r as ManagerOfficeSidebarAlert, t as ManagerOffice } from "../../ManagerOffice-
|
|
7
|
+
import { n as ManagerOfficeSidebar, r as ManagerOfficeSidebarAlert, t as ManagerOffice } from "../../ManagerOffice-BJ2vs-Lr.js";
|
|
8
8
|
import { c } from "react/compiler-runtime";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
//#region src/components/agents-sdk/ManagerOfficeScreens.tsx
|
|
@@ -8,8 +8,8 @@ import { Dialog } from "../foundations/Dialog.js";
|
|
|
8
8
|
import { IconButton } from "../foundations/IconButton.js";
|
|
9
9
|
import { AppIcon } from "../foundations/AppIcon.js";
|
|
10
10
|
import { AgentAttention, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
|
|
11
|
-
import { Separator } from "../foundations/Separator.js";
|
|
12
11
|
import { SearchField } from "../foundations/SearchField.js";
|
|
12
|
+
import { Separator } from "../foundations/Separator.js";
|
|
13
13
|
import { McpServerIcon } from "./McpServerIcon.js";
|
|
14
14
|
import { t as getMcpServerProjection } from "../../mcp-server-mAErsxHU.js";
|
|
15
15
|
import { McpServerSetupDialog } from "./McpServerPicker.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { composerDraftToPrompt, parseComposerLinks } from "../../utils/composer-link.js";
|
|
2
2
|
import { AgentChat, useAgentChatControls } from "./AgentChat.js";
|
|
3
|
-
import { n as WorkspaceMessageResponse } from "../../WorkspaceMessageResponse-
|
|
3
|
+
import { n as WorkspaceMessageResponse } from "../../WorkspaceMessageResponse-CXGOQgpo.js";
|
|
4
4
|
import { ThinkChatContext, ThinkChatLiveContext, useThinkChatContext } from "./ThinkChatContext.js";
|
|
5
5
|
import { ThinkChatActivity, createThinkChatActivityRenderer, renderThinkChatActivityPart } from "./ThinkChatActivity.js";
|
|
6
6
|
import { ThinkRecoveryNotice } from "./ThinkRecoveryNotice.js";
|
|
@@ -2,12 +2,12 @@ import { ActivityOutput, ActivityPanel } from "../ai-sdk/Activity.js";
|
|
|
2
2
|
import { ToolInvocationDetails } from "../ai-sdk/ToolInvocation.js";
|
|
3
3
|
import { Tabs } from "../foundations/Tabs.js";
|
|
4
4
|
import { i as workspaceBasename } from "../../workspace-path-TZggP-u4.js";
|
|
5
|
+
import { inferWorkspaceLanguage } from "./WorkspaceFile.js";
|
|
5
6
|
import { BrowserLiveView } from "./BrowserLiveView.js";
|
|
6
7
|
import { formatThinkExecutionShortTimestamp } from "./ThinkExecutionRun.js";
|
|
7
8
|
import { n as executionErrorSummary } from "../../execution-result-DAuW4VWv.js";
|
|
8
|
-
import { t as WorkspaceFileLink } from "../../WorkspaceLink-
|
|
9
|
-
import { t as ExecutionResult } from "../../ExecutionResult-
|
|
10
|
-
import { inferWorkspaceLanguage } from "./WorkspaceFile.js";
|
|
9
|
+
import { t as WorkspaceFileLink } from "../../WorkspaceLink-DDkj-Tq5.js";
|
|
10
|
+
import { t as ExecutionResult } from "../../ExecutionResult-CXnGcmM4.js";
|
|
11
11
|
import { i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "../../CodeBlock-dt0L8md0.js";
|
|
12
12
|
import { displayUrl, isSessionContextToolFailure, readFollowUpReceipt, thinkToolOutcome } from "./ThinkChatToolParts.js";
|
|
13
13
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
3
|
-
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
4
3
|
import { formatThinkExecutionTimestamp, getThinkExecutionRunError, getThinkExecutionRunProgressedAt, getThinkExecutionRunProgressedLabel, getThinkExecutionRunTitle } from "./ThinkExecutionRun.js";
|
|
4
|
+
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
5
5
|
import { ThinkExecutionStatus } from "./ThinkExecutionStatus.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -4,12 +4,12 @@ import { a as formatErrorMessage } from "../../format-DL7f2rqp.js";
|
|
|
4
4
|
import { buttonVariants } from "../foundations/Button.js";
|
|
5
5
|
import { IconButton } from "../foundations/IconButton.js";
|
|
6
6
|
import { Menu } from "../foundations/Menu.js";
|
|
7
|
+
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
7
8
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
8
9
|
import { getThinkExecutionRunAccessibleName, getThinkExecutionRunId, getThinkExecutionRunStatus, getThinkExecutionRunStatusTone, getThinkExecutionRunTitle, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
|
|
9
|
-
import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
|
|
10
10
|
import { t as NavigationLink } from "../../navigation-link-DMmtdqsM.js";
|
|
11
|
-
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
12
11
|
import { ResponsiveSidebarAppBar } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
12
|
+
import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
|
|
13
13
|
import { c } from "react/compiler-runtime";
|
|
14
14
|
import * as React from "react";
|
|
15
15
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -4,8 +4,8 @@ import { a as formatErrorMessage } from "../../format-DL7f2rqp.js";
|
|
|
4
4
|
import { Button } from "../foundations/Button.js";
|
|
5
5
|
import { n as mergeRefs } from "../../merge-refs-DTX97mLp.js";
|
|
6
6
|
import { AlertDialog } from "../foundations/AlertDialog.js";
|
|
7
|
-
import { n as executionErrorSummary } from "../../execution-result-DAuW4VWv.js";
|
|
8
7
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
8
|
+
import { n as executionErrorSummary } from "../../execution-result-DAuW4VWv.js";
|
|
9
9
|
import { c } from "react/compiler-runtime";
|
|
10
10
|
import * as React from "react";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -4,10 +4,10 @@ import { t as capitalize } from "../../format-DL7f2rqp.js";
|
|
|
4
4
|
import { buttonVariants } from "../foundations/Button.js";
|
|
5
5
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
6
6
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
7
|
+
import { formatThinkScheduleRepeat, getThinkScheduleNextRun } from "./ThinkSchedule.js";
|
|
7
8
|
import { n as isPlainPrimaryLinkActivation, t as NavigationLink } from "../../navigation-link-DMmtdqsM.js";
|
|
8
9
|
import { SearchField } from "../foundations/SearchField.js";
|
|
9
10
|
import { ToggleGroup } from "../foundations/ToggleGroup.js";
|
|
10
|
-
import { formatThinkScheduleRepeat, getThinkScheduleNextRun } from "./ThinkSchedule.js";
|
|
11
11
|
import { c } from "react/compiler-runtime";
|
|
12
12
|
import * as React from "react";
|
|
13
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|