@mcp-b/react-components 0.68.0 → 0.69.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.
Files changed (64) hide show
  1. package/dist/{AgentComputer-BP9ixGGE.js → AgentComputer-CFJxjMFE.js} +32 -3
  2. package/dist/ComputerFileThumbnail-CXHy127c.js +393 -0
  3. package/dist/{ThinkSchedule-D4Ulsa0-.d.ts → ThinkSchedule-9nzxIoX1.d.ts} +1 -1
  4. package/dist/{Workspace-B9nuTfIi.d.ts → Workspace-mZddFyvP.d.ts} +7 -3
  5. package/dist/{WorkspaceAutomation-C0fghGLi.d.ts → WorkspaceAutomation-hwl6C1aX.d.ts} +2 -2
  6. package/dist/{WorkspaceBrowser-Dz48H-7X.d.ts → WorkspaceBrowser-CNVAKXXZ.d.ts} +4 -11
  7. package/dist/{WorkspaceBrowser-oBJv-Dac.js → WorkspaceBrowser-ojoZy0uO.js} +202 -210
  8. package/dist/{WorkspaceConcept-D46cYerS.d.ts → WorkspaceConcept-DqzfZWws.d.ts} +1 -1
  9. package/dist/{WorkspaceFileCommands-1s9Ol8CG.d.ts → WorkspaceFileCommands-CN2oVUzx.d.ts} +5 -2
  10. package/dist/{WorkspaceFileTransfer-BRD22nW-.d.ts → WorkspaceFileTransfer-D--dVla2.d.ts} +1 -1
  11. package/dist/components/agents-sdk/AgentComputer.d.ts +1 -1
  12. package/dist/components/agents-sdk/AgentComputer.js +1 -1
  13. package/dist/components/agents-sdk/ComputerAppIds.d.ts +15 -0
  14. package/dist/components/agents-sdk/ComputerAppIds.js +14 -0
  15. package/dist/components/agents-sdk/ComputerAutomations.d.ts +23 -14
  16. package/dist/components/agents-sdk/ComputerAutomations.js +437 -354
  17. package/dist/components/agents-sdk/ComputerCalendar.js +16 -15
  18. package/dist/components/agents-sdk/ComputerCustomWallpaper.js +186 -171
  19. package/dist/components/agents-sdk/ComputerFileThumbnail.d.ts +5 -3
  20. package/dist/components/agents-sdk/ComputerFileThumbnail.js +1 -132
  21. package/dist/components/agents-sdk/ComputerFiles.d.ts +4 -6
  22. package/dist/components/agents-sdk/ComputerFiles.js +337 -316
  23. package/dist/components/agents-sdk/ComputerHome.js +1 -1
  24. package/dist/components/agents-sdk/ComputerLayout.d.ts +9 -0
  25. package/dist/components/agents-sdk/ComputerLayout.js +66 -0
  26. package/dist/components/agents-sdk/ComputerNotifications.js +60 -83
  27. package/dist/components/agents-sdk/ComputerScreen.d.ts +12 -6
  28. package/dist/components/agents-sdk/ComputerScreen.js +49 -36
  29. package/dist/components/agents-sdk/ComputerSettings.d.ts +10 -4
  30. package/dist/components/agents-sdk/ComputerSettings.js +92 -72
  31. package/dist/components/agents-sdk/ComputerSpotlight.js +1 -1
  32. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +2 -2
  33. package/dist/components/agents-sdk/ManagerOffice.d.ts +1 -1
  34. package/dist/components/agents-sdk/ThinkSchedule.d.ts +1 -1
  35. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +1 -1
  36. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
  37. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
  38. package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +1 -1
  39. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  40. package/dist/components/agents-sdk/Workspace.js +197 -190
  41. package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
  42. package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
  43. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
  44. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  45. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
  46. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
  47. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +6 -6
  48. package/dist/components/agents-sdk/WorkspaceDesktop.js +126 -101
  49. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +2 -10
  50. package/dist/components/agents-sdk/WorkspaceExplorer.js +67 -71
  51. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +1 -1
  52. package/dist/components/agents-sdk/WorkspaceFileCommands.js +11 -6
  53. package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +1 -1
  54. package/dist/components/agents-sdk/WorkspaceLive.d.ts +1 -1
  55. package/dist/components/agents-sdk/WorkspaceLive.js +7 -5
  56. package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +1 -1
  57. package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
  58. package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
  59. package/dist/components/extension/FirstRunSetup.d.ts +2 -2
  60. package/dist/minute-clock-CXpRGCMF.js +35 -0
  61. package/dist/{parts-RXV6GGdB.js → parts-CPVz9l31.js} +1 -1
  62. package/dist/{workspace-concept-panel-BDTBISNO.d.ts → workspace-concept-panel-D1czupvi.d.ts} +1 -1
  63. package/dist/{workspace-quick-look-9V-UFpjj.js → workspace-quick-look-DODjsfhH.js} +79 -251
  64. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  import { tt as SearchIcon } from "../../icons-nLTnB9kd.js";
2
2
  import { Button } from "../foundations/Button.js";
3
3
  import { AppIcon } from "../foundations/AppIcon.js";
4
- import { n as useAgentComputerActions } from "../../AgentComputer-BP9ixGGE.js";
4
+ import { n as useAgentComputerActions } from "../../AgentComputer-CFJxjMFE.js";
5
5
  import { c } from "react/compiler-runtime";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region src/components/agents-sdk/ComputerHome.tsx
@@ -0,0 +1,9 @@
1
+ import { AgentComputerLayout } from "./AgentComputer.js";
2
+ //#region src/components/agents-sdk/ComputerLayout.d.ts
3
+ /**
4
+ * A saved `AgentComputer` layout, as `onLayoutChange` reported it, or null when
5
+ * it is not one. Only presentation fields are rebuilt; storage never carries
6
+ * app data or drafts.
7
+ */
8
+ export declare function readComputerLayout(value: unknown): AgentComputerLayout | null;
9
+ //#endregion
@@ -0,0 +1,66 @@
1
+ //#region src/components/agents-sdk/ComputerLayout.ts
2
+ /** Every placement the shell reports, checked against the public type both ways. */
3
+ const placements = {
4
+ floating: true,
5
+ fill: true,
6
+ left: true,
7
+ right: true,
8
+ top: true,
9
+ bottom: true,
10
+ topLeft: true,
11
+ topRight: true,
12
+ bottomLeft: true,
13
+ bottomRight: true
14
+ };
15
+ function isPlacement(value) {
16
+ return typeof value === "string" && Object.hasOwn(placements, value);
17
+ }
18
+ function object(value) {
19
+ return typeof value === "object" && value !== null && !Array.isArray(value);
20
+ }
21
+ /**
22
+ * A saved `AgentComputer` layout, as `onLayoutChange` reported it, or null when
23
+ * it is not one. Only presentation fields are rebuilt; storage never carries
24
+ * app data or drafts.
25
+ */
26
+ function readComputerLayout(value) {
27
+ if (!object(value) || !Array.isArray(value.windows)) return null;
28
+ if (value.surface !== "home" && value.surface !== "desktop") return null;
29
+ const windows = [];
30
+ const ids = /* @__PURE__ */ new Set();
31
+ for (const window of value.windows) {
32
+ if (!object(window) || typeof window.id !== "string" || !window.id.trim() || ids.has(window.id)) return null;
33
+ if (!isPlacement(window.placement)) return null;
34
+ if (typeof window.minimized !== "boolean") return null;
35
+ let bounds = null;
36
+ if (window.bounds !== null) {
37
+ if (!object(window.bounds)) return null;
38
+ const { x, y, width, height } = window.bounds;
39
+ if (typeof x !== "number" || !Number.isFinite(x) || x < 0 || typeof y !== "number" || !Number.isFinite(y) || y < 0 || typeof width !== "number" || !Number.isFinite(width) || width <= 0 || typeof height !== "number" || !Number.isFinite(height) || height <= 0) return null;
40
+ bounds = {
41
+ x,
42
+ y,
43
+ width,
44
+ height
45
+ };
46
+ }
47
+ windows.push({
48
+ id: window.id,
49
+ bounds,
50
+ placement: window.placement,
51
+ minimized: window.minimized
52
+ });
53
+ ids.add(window.id);
54
+ }
55
+ const available = (id) => id === null || typeof id === "string" && windows.some((window) => window.id === id && !window.minimized);
56
+ if (!available(value.activeAppId) || !available(value.expandedAppId)) return null;
57
+ if (value.surface === "home" && value.activeAppId !== null) return null;
58
+ return {
59
+ windows,
60
+ activeAppId: value.activeAppId,
61
+ expandedAppId: value.expandedAppId,
62
+ surface: value.surface
63
+ };
64
+ }
65
+ //#endregion
66
+ export { readComputerLayout };
@@ -2,7 +2,8 @@ import { W as MonitorIcon, c as BellIcon, g as ChevronRightIcon, p as CheckIcon
2
2
  import { Button } from "../foundations/Button.js";
3
3
  import { IconButton } from "../foundations/IconButton.js";
4
4
  import { AppIcon } from "../foundations/AppIcon.js";
5
- import { i as useAgentComputerPortalContainer } from "../../AgentComputer-BP9ixGGE.js";
5
+ import { i as useAgentComputerPortalContainer } from "../../AgentComputer-CFJxjMFE.js";
6
+ import { t as useMinuteClock } from "../../minute-clock-CXpRGCMF.js";
6
7
  import { Popover } from "../foundations/Popover.js";
7
8
  import { Toast } from "../foundations/Toast.js";
8
9
  import { c } from "react/compiler-runtime";
@@ -294,108 +295,84 @@ function NotificationBanners(t0) {
294
295
  * child of `ComputerNotifications`.
295
296
  */
296
297
  function ComputerClock(t0) {
297
- const $ = c(26);
298
+ const $ = c(23);
298
299
  const { now: t1, timeZone } = t0;
299
300
  const now = t1 === void 0 ? Date.now : t1;
300
- const [instant, setInstant] = useState(now);
301
+ const instant = useMinuteClock(now);
301
302
  let t2;
302
- let t3;
303
- if ($[0] !== now) {
304
- t2 = () => {
305
- let timer;
306
- const schedule = (current) => {
307
- timer = setTimeout(() => {
308
- const next = now();
309
- setInstant(next);
310
- schedule(next);
311
- }, 6e4 - current % 6e4);
312
- };
313
- schedule(now());
314
- return () => clearTimeout(timer);
315
- };
316
- t3 = [now];
317
- $[0] = now;
318
- $[1] = t2;
319
- $[2] = t3;
320
- } else {
321
- t2 = $[1];
322
- t3 = $[2];
323
- }
324
- useEffect(t2, t3);
325
- let t4;
326
- if ($[3] !== timeZone) {
327
- t4 = new Intl.DateTimeFormat(void 0, {
303
+ if ($[0] !== timeZone) {
304
+ t2 = new Intl.DateTimeFormat(void 0, {
328
305
  weekday: "short",
329
306
  month: "short",
330
307
  day: "numeric",
331
308
  timeZone
332
309
  });
333
- $[3] = timeZone;
334
- $[4] = t4;
335
- } else t4 = $[4];
336
- let t5;
337
- if ($[5] !== timeZone) {
338
- t5 = new Intl.DateTimeFormat(void 0, {
310
+ $[0] = timeZone;
311
+ $[1] = t2;
312
+ } else t2 = $[1];
313
+ let t3;
314
+ if ($[2] !== timeZone) {
315
+ t3 = new Intl.DateTimeFormat(void 0, {
339
316
  hour: "numeric",
340
317
  minute: "2-digit",
341
318
  timeZone
342
319
  });
343
- $[5] = timeZone;
344
- $[6] = t5;
345
- } else t5 = $[6];
346
- let t6;
347
- if ($[7] !== t4 || $[8] !== t5) {
348
- t6 = [t4, t5];
349
- $[7] = t4;
320
+ $[2] = timeZone;
321
+ $[3] = t3;
322
+ } else t3 = $[3];
323
+ let t4;
324
+ if ($[4] !== t2 || $[5] !== t3) {
325
+ t4 = [t2, t3];
326
+ $[4] = t2;
327
+ $[5] = t3;
328
+ $[6] = t4;
329
+ } else t4 = $[6];
330
+ const [date, time] = t4;
331
+ let t5;
332
+ if ($[7] !== instant) {
333
+ t5 = new Date(instant).toISOString();
334
+ $[7] = instant;
350
335
  $[8] = t5;
351
- $[9] = t6;
352
- } else t6 = $[9];
353
- const [date, time] = t6;
354
- let t7;
355
- if ($[10] !== instant) {
356
- t7 = new Date(instant).toISOString();
336
+ } else t5 = $[8];
337
+ let t6;
338
+ if ($[9] !== date || $[10] !== instant) {
339
+ t6 = date.format(instant).replace(",", "");
340
+ $[9] = date;
357
341
  $[10] = instant;
358
- $[11] = t7;
359
- } else t7 = $[11];
342
+ $[11] = t6;
343
+ } else t6 = $[11];
344
+ let t7;
345
+ if ($[12] !== t6) {
346
+ t7 = /* @__PURE__ */ jsx("span", { children: t6 });
347
+ $[12] = t6;
348
+ $[13] = t7;
349
+ } else t7 = $[13];
360
350
  let t8;
361
- if ($[12] !== date || $[13] !== instant) {
362
- t8 = date.format(instant).replace(",", "");
363
- $[12] = date;
364
- $[13] = instant;
365
- $[14] = t8;
366
- } else t8 = $[14];
351
+ if ($[14] !== instant || $[15] !== time) {
352
+ t8 = time.format(instant);
353
+ $[14] = instant;
354
+ $[15] = time;
355
+ $[16] = t8;
356
+ } else t8 = $[16];
367
357
  let t9;
368
- if ($[15] !== t8) {
358
+ if ($[17] !== t8) {
369
359
  t9 = /* @__PURE__ */ jsx("span", { children: t8 });
370
- $[15] = t8;
371
- $[16] = t9;
372
- } else t9 = $[16];
360
+ $[17] = t8;
361
+ $[18] = t9;
362
+ } else t9 = $[18];
373
363
  let t10;
374
- if ($[17] !== instant || $[18] !== time) {
375
- t10 = time.format(instant);
376
- $[17] = instant;
377
- $[18] = time;
378
- $[19] = t10;
379
- } else t10 = $[19];
380
- let t11;
381
- if ($[20] !== t10) {
382
- t11 = /* @__PURE__ */ jsx("span", { children: t10 });
383
- $[20] = t10;
384
- $[21] = t11;
385
- } else t11 = $[21];
386
- let t12;
387
- if ($[22] !== t11 || $[23] !== t7 || $[24] !== t9) {
388
- t12 = /* @__PURE__ */ jsxs("time", {
364
+ if ($[19] !== t5 || $[20] !== t7 || $[21] !== t9) {
365
+ t10 = /* @__PURE__ */ jsxs("time", {
389
366
  className: "computer-clock",
390
- dateTime: t7,
391
- children: [t9, t11]
367
+ dateTime: t5,
368
+ children: [t7, t9]
392
369
  });
393
- $[22] = t11;
394
- $[23] = t7;
395
- $[24] = t9;
396
- $[25] = t12;
397
- } else t12 = $[25];
398
- return t12;
370
+ $[19] = t5;
371
+ $[20] = t7;
372
+ $[21] = t9;
373
+ $[22] = t10;
374
+ } else t10 = $[22];
375
+ return t10;
399
376
  }
400
377
  /**
401
378
  * Notification Center behind the menu-bar clock, and the banners that
@@ -17,7 +17,7 @@ export interface ComputerScreenBrowser {
17
17
  title: string;
18
18
  /** The conversation's current work, shown under its card in Chrome's screen list. */
19
19
  status?: string;
20
- /** The browser profile the window is signed in as; one of the host's `profiles`. */
20
+ /** The browser profile the window is signed in as; one of the host's `profileMenu` profiles. */
21
21
  profileId: string;
22
22
  /** Open pages in strip order. A browser with none has no window. */
23
23
  tabs: readonly AgentScreenSwitcherTab[];
@@ -32,12 +32,17 @@ export interface ComputerScreenHost {
32
32
  employeeName: string;
33
33
  /** The employee has no live state: windows show their last observed page. */
34
34
  offline: boolean;
35
- /** Every browser identity the profile menu offers. */
36
- profiles: readonly BrowserProfile[];
35
+ /**
36
+ * The windows' profile menu: every browser identity it offers, and the
37
+ * choice, on which the host brings that profile's window forward. A host
38
+ * with one profile omits it, and the windows show no profile control.
39
+ */
40
+ profileMenu?: {
41
+ profiles: readonly BrowserProfile[];
42
+ onSelect: (profileId: string) => void;
43
+ };
37
44
  /** Every browser, in Chrome's screen-list order. Only conversations are listed there. */
38
45
  browsers: readonly ComputerScreenBrowser[];
39
- /** A profile was chosen in a window's profile menu; the host brings that profile's window forward. */
40
- onSelectProfile: (profileId: string) => void;
41
46
  onSelectTab: (browser: ComputerScreenBrowser, tabId: string) => void;
42
47
  /**
43
48
  * Close this exact page. Closing the last one leaves the browser with no
@@ -56,6 +61,7 @@ export interface ComputerScreenHost {
56
61
  */
57
62
  renderLiveScreen: (browser: ComputerScreenBrowser, tab: AgentScreenSwitcherTab) => React.ReactNode;
58
63
  }
64
+ declare function windowFor(browser: Pick<ComputerScreenBrowser, "id" | "title">): AgentComputerApp;
59
65
  /**
60
66
  * Chrome on the computer. `app` is the Dock's Chrome, whose window lists every
61
67
  * conversation's screens; `windowFor(browser)` is that browser's own window,
@@ -73,6 +79,6 @@ export interface ComputerScreenHost {
73
79
  export declare const ComputerScreen: {
74
80
  Host: React.Context<ComputerScreenHost | null>;
75
81
  app: AgentComputerApp;
76
- windowFor: (browser: Pick<ComputerScreenBrowser, "id" | "title">) => AgentComputerApp;
82
+ windowFor: typeof windowFor;
77
83
  };
78
84
  //#endregion
@@ -1,13 +1,14 @@
1
1
  import { V as MessageSquareIcon, W as MonitorIcon, _ as ChromeIcon, i as ArrowRightIcon, m as ChevronDownIcon, r as ArrowLeftIcon } from "../../icons-nLTnB9kd.js";
2
2
  import { Button } from "../foundations/Button.js";
3
3
  import { IconButton } from "../foundations/IconButton.js";
4
- import { a as useAgentComputerWindow, n as useAgentComputerActions, o as useAgentComputerWindowActive } from "../../AgentComputer-BP9ixGGE.js";
4
+ import { a as useAgentComputerWindow, n as useAgentComputerActions, o as useAgentComputerWindowActive } from "../../AgentComputer-CFJxjMFE.js";
5
5
  import { Menubar } from "../foundations/Menubar.js";
6
6
  import { FormattedDate } from "../foundations/FormattedDate.js";
7
7
  import { AgentScreenSwitcher } from "./AgentScreenSwitcher.js";
8
8
  import { WebPreviewNavigationButton } from "../general-purpose/WebPreview.js";
9
9
  import { BrowserProfileMenu, BrowserRunPanel, BrowserTabStrip } from "./BrowserRunPanel.js";
10
- import { n as computerAppTile } from "../../parts-RXV6GGdB.js";
10
+ import { COMPUTER_APP_IDS } from "./ComputerAppIds.js";
11
+ import { n as computerAppTile } from "../../parts-CPVz9l31.js";
11
12
  import { c } from "react/compiler-runtime";
12
13
  import * as React from "react";
13
14
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -85,7 +86,7 @@ function AllScreensButton(t0) {
85
86
  const { openApp } = useAgentComputerActions();
86
87
  let t1;
87
88
  if ($[0] !== openApp) {
88
- t1 = () => void openApp("screen");
89
+ t1 = () => void openApp(COMPUTER_APP_IDS.screen);
89
90
  $[0] = openApp;
90
91
  $[1] = t1;
91
92
  } else t1 = $[1];
@@ -271,24 +272,24 @@ function WindowTitle() {
271
272
  }
272
273
  /** The window's own controls: the profile and, for a conversation's browser, the way back to it. */
273
274
  function WindowControls(t0) {
274
- const $ = c(10);
275
+ const $ = c(9);
275
276
  const { browser } = t0;
276
277
  const host = useHost();
277
278
  const { threadId } = browser;
279
+ const { profileMenu } = host;
278
280
  let t1;
279
- if ($[0] !== browser.profileId || $[1] !== host.onSelectProfile || $[2] !== host.profiles) {
280
- t1 = /* @__PURE__ */ jsx(BrowserProfileMenu, {
281
- profiles: host.profiles,
281
+ if ($[0] !== browser.profileId || $[1] !== profileMenu) {
282
+ t1 = profileMenu ? /* @__PURE__ */ jsx(BrowserProfileMenu, {
283
+ profiles: profileMenu.profiles,
282
284
  profileId: browser.profileId,
283
- onSelectProfile: host.onSelectProfile
284
- });
285
+ onSelectProfile: profileMenu.onSelect
286
+ }) : null;
285
287
  $[0] = browser.profileId;
286
- $[1] = host.onSelectProfile;
287
- $[2] = host.profiles;
288
- $[3] = t1;
289
- } else t1 = $[3];
288
+ $[1] = profileMenu;
289
+ $[2] = t1;
290
+ } else t1 = $[2];
290
291
  let t2;
291
- if ($[4] !== host || $[5] !== threadId) {
292
+ if ($[3] !== host || $[4] !== threadId) {
292
293
  t2 = threadId !== null ? /* @__PURE__ */ jsx(IconButton, {
293
294
  label: "Open conversation",
294
295
  variant: "ghost",
@@ -297,17 +298,17 @@ function WindowControls(t0) {
297
298
  onClick: () => host.onOpenConversation(threadId),
298
299
  children: /* @__PURE__ */ jsx(MessageSquareIcon, {})
299
300
  }) : null;
300
- $[4] = host;
301
- $[5] = threadId;
302
- $[6] = t2;
303
- } else t2 = $[6];
301
+ $[3] = host;
302
+ $[4] = threadId;
303
+ $[5] = t2;
304
+ } else t2 = $[5];
304
305
  let t3;
305
- if ($[7] !== t1 || $[8] !== t2) {
306
+ if ($[6] !== t1 || $[7] !== t2) {
306
307
  t3 = /* @__PURE__ */ jsxs(Fragment, { children: [t1, t2] });
307
- $[7] = t1;
308
- $[8] = t2;
309
- $[9] = t3;
310
- } else t3 = $[9];
308
+ $[6] = t1;
309
+ $[7] = t2;
310
+ $[8] = t3;
311
+ } else t3 = $[8];
311
312
  return t3;
312
313
  }
313
314
  /**
@@ -711,6 +712,29 @@ function _temp(browser) {
711
712
  return browser.threadId !== null;
712
713
  }
713
714
  /**
715
+ * Each browser's window app, kept per id while its title holds, so the
716
+ * computer sees the same app from one host render to the next.
717
+ */
718
+ const windows = /* @__PURE__ */ new Map();
719
+ function windowFor(browser) {
720
+ const cached = windows.get(browser.id);
721
+ if (cached?.label === browser.title) return cached;
722
+ const app = {
723
+ id: browser.id,
724
+ label: browser.title,
725
+ icon: ARTWORK,
726
+ owner: COMPUTER_APP_IDS.screen,
727
+ titleBar: "unified",
728
+ Provider: WindowProvider,
729
+ Title: WindowTitle,
730
+ Actions: WindowActions,
731
+ Menus: WindowMenus,
732
+ Content: WindowContent
733
+ };
734
+ windows.set(browser.id, app);
735
+ return app;
736
+ }
737
+ /**
714
738
  * Chrome on the computer. `app` is the Dock's Chrome, whose window lists every
715
739
  * conversation's screens; `windowFor(browser)` is that browser's own window,
716
740
  * under Chrome in the Dock. Both read the host's browsers from `Host`, which
@@ -727,24 +751,13 @@ function _temp(browser) {
727
751
  const ComputerScreen = {
728
752
  Host: HostContext,
729
753
  app: {
730
- id: "screen",
754
+ id: COMPUTER_APP_IDS.screen,
731
755
  label: "Chrome",
732
756
  icon: ARTWORK,
733
757
  launcher: "favorite",
734
758
  Content: ScreensContent
735
759
  },
736
- windowFor: (browser) => ({
737
- id: browser.id,
738
- label: browser.title,
739
- icon: ARTWORK,
740
- owner: "screen",
741
- titleBar: "unified",
742
- Provider: WindowProvider,
743
- Title: WindowTitle,
744
- Actions: WindowActions,
745
- Menus: WindowMenus,
746
- Content: WindowContent
747
- })
760
+ windowFor
748
761
  };
749
762
  //#endregion
750
763
  export { ComputerScreen };
@@ -1,5 +1,5 @@
1
1
  import { t as WallpaperOption } from "../../WallpaperPicker-C-FItmDS.js";
2
- import { y as WorkspaceSource } from "../../Workspace-B9nuTfIi.js";
2
+ import { y as WorkspaceSource } from "../../Workspace-mZddFyvP.js";
3
3
  import { AgentComputerApp } from "./AgentComputer.js";
4
4
  import { c as EmployeeLocalAgents, d as EmployeePasskeyVault, r as EmployeeCompanion, s as EmployeeIdentity } from "../../EmployeeChrome-kegSASjC.js";
5
5
  import * as React from "react";
@@ -10,9 +10,17 @@ interface DockArrangement {
10
10
  order: readonly string[];
11
11
  hidden: readonly string[];
12
12
  }
13
+ /**
14
+ * A saved Dock arrangement, or null when it is not one. Ids the catalog no
15
+ * longer has are kept; the Dock drops them when it arranges.
16
+ */
17
+ export declare function readDockArrangement(value: unknown): DockArrangement | null;
13
18
  //#endregion
14
19
  //#region src/components/agents-sdk/ComputerSettings.d.ts
15
- export type ComputerSettingsView = "employee" | "appearance" | "dock" | "shortcuts" | "connections";
20
+ /** Settings' panes, in sidebar order. */
21
+ export declare const COMPUTER_SETTINGS_VIEWS: readonly ["employee", "appearance", "dock", "shortcuts", "connections"];
22
+ /** One of Settings' panes. */
23
+ export type ComputerSettingsView = (typeof COMPUTER_SETTINGS_VIEWS)[number];
16
24
  /** The employee Settings describes: who it is, its model, its switches and its workspace. */
17
25
  export interface ComputerSettingsEmployee {
18
26
  name: string;
@@ -50,8 +58,6 @@ export interface ComputerSettingsHost {
50
58
  apps: readonly AgentComputerApp[];
51
59
  dockPreferences: ComputerDockPreferences;
52
60
  onDockPreferencesChange: (next: ComputerDockPreferences) => void;
53
- /** Host additions under the computer's own shortcut list. */
54
- shortcuts?: React.ReactNode;
55
61
  /** The connections the employee uses, and their status. */
56
62
  connections: React.ReactNode;
57
63
  }