@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
@@ -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(48);
28
- const { label, computer, conversation, open, onOpenChange, onHome, actionsRef } = t0;
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(false);
37
- const [wasOpen, setWasOpen] = React.useState(open);
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 t1;
44
- if ($[0] !== onOpenChange) {
45
- t1 = () => {
42
+ let t2;
43
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44
+ t2 = (next) => {
46
45
  setComputerInFront(false);
47
- onOpenChange(true);
46
+ setOpen(next);
48
47
  };
49
- $[0] = onOpenChange;
50
- $[1] = t1;
51
- } else t1 = $[1];
52
- const showConversation = t1;
53
- let t2;
54
- if ($[2] !== showConversation) {
55
- t2 = () => ({
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] = showConversation;
60
- $[3] = t2;
61
- } else t2 = $[3];
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 t3;
65
- if ($[4] !== computerInFront || $[5] !== open || $[6] !== split) {
66
- t3 = (layout) => {
67
- const next = getComputedStyle(layout).getPropertyValue("--computer-viewer-split").trim() === "1";
68
- if (next === split) return;
69
- const conversationShown = open && (next || !computerInFront);
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) || !next && conversationShown && computerRef.current?.contains(focused))) resizeFocus.current = {
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(next);
78
+ setSplit(next_0);
76
79
  };
77
- $[4] = computerInFront;
78
- $[5] = open;
79
- $[6] = split;
80
- $[7] = t3;
81
- } else t3 = $[7];
82
- const syncLayout = React.useEffectEvent(t3);
83
- let t4;
84
- if ($[8] !== syncLayout) {
85
- t4 = () => {
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
- $[8] = syncLayout;
93
- $[9] = t4;
94
- } else t4 = $[9];
95
- let t5;
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
- t5 = [];
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
- $[11] = t6;
110
- } else t6 = $[11];
111
- let t7;
112
- if ($[12] !== split) {
113
- t7 = [split];
114
- $[12] = split;
115
- $[13] = t7;
116
- } else t7 = $[13];
117
- React.useLayoutEffect(t6, t7);
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 t8;
121
- let t9;
122
- if ($[14] !== split || $[15] !== visible) {
123
- t8 = () => {
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
- t9 = [visible, split];
145
- $[14] = split;
146
- $[15] = visible;
147
- $[16] = t8;
148
- $[17] = t9;
147
+ t11 = [visible, split];
148
+ $[13] = split;
149
+ $[14] = visible;
150
+ $[15] = t10;
151
+ $[16] = t11;
149
152
  } else {
150
- t8 = $[16];
151
- t9 = $[17];
153
+ t10 = $[15];
154
+ t11 = $[16];
152
155
  }
153
- React.useLayoutEffect(t8, t9);
154
- let t10;
155
- if ($[18] !== id || $[19] !== onOpenChange || $[20] !== showConversation || $[21] !== split || $[22] !== visible) {
156
- t10 = {
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
- $[18] = id;
165
- $[19] = onOpenChange;
166
- $[20] = showConversation;
167
- $[21] = split;
168
- $[22] = visible;
169
- $[23] = t10;
170
- } else t10 = $[23];
171
- const t11 = open ? "" : void 0;
172
- const t12 = !split && visible;
173
- let t13;
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: t12,
179
+ inert: t14,
179
180
  children: computer
180
181
  });
181
- $[24] = computer;
182
- $[25] = t12;
183
- $[26] = t13;
184
- } else t13 = $[26];
185
- const t14 = !visible;
186
- const t15 = !visible;
187
- let t16;
188
- if ($[27] !== onOpenChange || $[28] !== split) {
189
- t16 = (event) => {
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
- $[27] = onOpenChange;
195
- $[28] = split;
196
- $[29] = t16;
197
- } else t16 = $[29];
198
- let t17;
199
- if ($[30] !== onHome || $[31] !== onOpenChange) {
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
- onHome();
206
+ host.computer.current?.showHome();
207
207
  onOpenChange(false);
208
208
  }
209
209
  });
210
- $[30] = onHome;
211
- $[31] = onOpenChange;
212
- $[32] = t17;
213
- } else t17 = $[32];
214
- let t18;
215
- if ($[33] !== conversation || $[34] !== id || $[35] !== label || $[36] !== t14 || $[37] !== t15 || $[38] !== t16 || $[39] !== t17) {
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": label,
221
- hidden: t14,
222
- inert: t15,
223
- onKeyDown: t16,
224
- children: [conversation, t17]
219
+ "aria-label": host.employee.name,
220
+ hidden: t16,
221
+ inert: t17,
222
+ onKeyDown: t18,
223
+ children: [conversation, t19]
225
224
  });
226
- $[33] = conversation;
227
- $[34] = id;
228
- $[35] = label;
229
- $[36] = t14;
230
- $[37] = t15;
231
- $[38] = t16;
232
- $[39] = t17;
233
- $[40] = t18;
234
- } else t18 = $[40];
235
- let t19;
236
- if ($[41] !== t11 || $[42] !== t13 || $[43] !== t18) {
237
- t19 = /* @__PURE__ */ jsx("div", {
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": t11,
243
- children: [t13, t18]
241
+ "data-conversation-open": t13,
242
+ children: [t15, t20]
244
243
  })
245
244
  });
246
- $[41] = t11;
247
- $[42] = t13;
248
- $[43] = t18;
249
- $[44] = t19;
250
- } else t19 = $[44];
251
- let t20;
252
- if ($[45] !== t10 || $[46] !== t19) {
253
- t20 = /* @__PURE__ */ jsx(ViewerContext, {
254
- value: t10,
255
- children: t19
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
- $[45] = t10;
258
- $[46] = t19;
259
- $[47] = t20;
260
- } else t20 = $[47];
261
- return t20;
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 computer's control for the conversation, typically a menu-bar extra. It
268
- * shows the conversation, over a narrow computer or beside a wide one; the
269
- * conversation's own top bar hides it. The viewer fills in what it controls and
270
- * whether that is showing, and returns focus here when the conversation hides.
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(t0) {
273
- const $ = c(12);
274
- let onClick;
275
- let props;
276
- if ($[0] !== t0) {
277
- ({onClick, ...props} = t0);
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
- $[1] = onClick;
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] !== onClick || $[4] !== showConversation) {
288
- t1 = (event) => {
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: t1
292
+ onClick: showConversation,
293
+ children: t0
304
294
  });
305
- $[6] = id;
306
- $[7] = props;
307
- $[8] = t1;
308
- $[9] = toggleRef;
309
- $[10] = visible;
310
- $[11] = t2;
311
- } else t2 = $[11];
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 { t as WallpaperOption } from "../../WallpaperPicker-C-FItmDS.js";
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-BoeeltJM.js";
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 { a as ContextContentFooter, i as ContextContentBody, o as ContextContentHeader, r as ContextContent, t as Context, u as ContextTrigger } from "../../Context-DQDumCV8.js";
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 { AppTopBar } from "../general-purpose/AppTopBar.js";
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 { ResponsiveSidebarShell, useResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
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-C7SzVquo.js";
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-kSK7vTBl.js";
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-kSK7vTBl.js";
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-BoeeltJM.js";
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-DK9kdMUH.js";
9
- import { t as ExecutionResult } from "../../ExecutionResult-C7SzVquo.js";
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";