@mcp-b/react-components 0.70.0 → 0.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/AgentComputer-CpS9R2KG.d.ts +305 -0
  2. package/dist/{AgentComputer-CFJxjMFE.js → AgentComputer-DZCyQkcE.js} +1850 -478
  3. package/dist/CommandPalette-DDctKdpC.d.ts +53 -0
  4. package/dist/ComputerCalendar-Ci7tLASe.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 +365 -89
  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-DuT5-rDz.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,4 +1,4 @@
1
- import { AgentComputerApp } from "./AgentComputer.js";
1
+ import { r as AgentComputerApp } from "../../AgentComputer-CpS9R2KG.js";
2
2
  import { BrowserProfile } from "./BrowserRunPanel.js";
3
3
  import { AgentHandoff } from "./ManagerOffice.js";
4
4
  import { AgentScreenSwitcherTab } from "./AgentScreenSwitcher.js";
@@ -28,8 +28,6 @@ export interface ComputerScreenBrowser {
28
28
  }
29
29
  /** What the host gives Chrome and its browser windows, through {@link ComputerScreen.Host}. */
30
30
  export interface ComputerScreenHost {
31
- /** The employee's name, as the in-page handoff says it. */
32
- employeeName: string;
33
31
  /** The employee has no live state: windows show their last observed page. */
34
32
  offline: boolean;
35
33
  /**
@@ -51,7 +49,6 @@ export interface ComputerScreenHost {
51
49
  onCloseTab?: (browser: ComputerScreenBrowser, tabId: string) => void;
52
50
  /** Open a new page in this browser and select it. Without it, there is no new-tab control. */
53
51
  onNewTab?: (browser: ComputerScreenBrowser) => void;
54
- onOpenConversation: (threadId: string) => void;
55
52
  /** The person says the handoff on this browser is done. */
56
53
  onCompleteHandoff: (browser: ComputerScreenBrowser) => void;
57
54
  /**
@@ -61,24 +58,27 @@ export interface ComputerScreenHost {
61
58
  */
62
59
  renderLiveScreen: (browser: ComputerScreenBrowser, tab: AgentScreenSwitcherTab) => React.ReactNode;
63
60
  }
64
- declare function windowFor(browser: Pick<ComputerScreenBrowser, "id" | "title">): AgentComputerApp;
65
61
  /**
66
- * Chrome on the computer. `app` is the Dock's Chrome, whose window lists every
67
- * conversation's screens; `windowFor(browser)` is that browser's own window,
68
- * under Chrome in the Dock. Both read the host's browsers from `Host`, which
69
- * wraps the computer.
62
+ * Adds Chrome to the computer below it, inside a `ComputerHost`, with one
63
+ * window per browser that has pages, under Chrome in the Dock.
64
+ */
65
+ declare function Host({ value, children }: {
66
+ value: ComputerScreenHost;
67
+ children: React.ReactNode;
68
+ }): React.JSX.Element;
69
+ /**
70
+ * Chrome on the computer. `Host` adds `app`, the Dock's Chrome, whose window
71
+ * lists every conversation's screens, and each browser's own window; they
72
+ * all read the host's browsers from it.
70
73
  *
71
74
  * ```tsx
72
75
  * <ComputerScreen.Host value={screen}>
73
- * <AgentComputer
74
- * apps={[ComputerScreen.app, ...screen.browsers.filter((b) => b.tabs.length).map(ComputerScreen.windowFor)]}
75
- * />
76
+ * <AgentComputer … />
76
77
  * </ComputerScreen.Host>
77
78
  * ```
78
79
  */
79
80
  export declare const ComputerScreen: {
80
- Host: React.Context<ComputerScreenHost | null>;
81
+ Host: typeof Host;
81
82
  app: AgentComputerApp;
82
- windowFor: typeof windowFor;
83
83
  };
84
84
  //#endregion
@@ -1,14 +1,15 @@
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-CFJxjMFE.js";
4
+ import { a as useAgentComputerWindow, n as useAgentComputerActions, o as useAgentComputerWindowActive } from "../../AgentComputer-DZCyQkcE.js";
5
+ import { f as useAppHosts, m as useComputerHost, n as AppHostsContext } from "../../context-BWJpR084.js";
6
+ import { COMPUTER_APP_IDS } from "./ComputerAppIds.js";
5
7
  import { Menubar } from "../foundations/Menubar.js";
6
8
  import { FormattedDate } from "../foundations/FormattedDate.js";
7
9
  import { AgentScreenSwitcher } from "./AgentScreenSwitcher.js";
8
10
  import { WebPreviewNavigationButton } from "../general-purpose/WebPreview.js";
9
11
  import { BrowserProfileMenu, BrowserRunPanel, BrowserTabStrip } from "./BrowserRunPanel.js";
10
- import { COMPUTER_APP_IDS } from "./ComputerAppIds.js";
11
- import { n as computerAppTile } from "../../parts-CPVz9l31.js";
12
+ import { n as computerAppTile } from "../../parts-DuT5-rDz.js";
12
13
  import { c } from "react/compiler-runtime";
13
14
  import * as React from "react";
14
15
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -275,6 +276,7 @@ function WindowControls(t0) {
275
276
  const $ = c(9);
276
277
  const { browser } = t0;
277
278
  const host = useHost();
279
+ const computerHost = useComputerHost("ComputerScreen");
278
280
  const { threadId } = browser;
279
281
  const { profileMenu } = host;
280
282
  let t1;
@@ -289,16 +291,16 @@ function WindowControls(t0) {
289
291
  $[2] = t1;
290
292
  } else t1 = $[2];
291
293
  let t2;
292
- if ($[3] !== host || $[4] !== threadId) {
294
+ if ($[3] !== computerHost || $[4] !== threadId) {
293
295
  t2 = threadId !== null ? /* @__PURE__ */ jsx(IconButton, {
294
296
  label: "Open conversation",
295
297
  variant: "ghost",
296
298
  color: "neutral",
297
299
  size: "sm",
298
- onClick: () => host.onOpenConversation(threadId),
300
+ onClick: () => computerHost.onOpenConversation(threadId),
299
301
  children: /* @__PURE__ */ jsx(MessageSquareIcon, {})
300
302
  }) : null;
301
- $[3] = host;
303
+ $[3] = computerHost;
302
304
  $[4] = threadId;
303
305
  $[5] = t2;
304
306
  } else t2 = $[5];
@@ -542,9 +544,10 @@ function stillCaption(capturedAt) {
542
544
  * follows focus.
543
545
  */
544
546
  function WindowScreen(t0) {
545
- const $ = c(25);
547
+ const $ = c(26);
546
548
  const { browser, tab, panelId, phone } = t0;
547
549
  const host = useHost();
550
+ const computerHost = useComputerHost("ComputerScreen");
548
551
  const active = useAgentComputerWindowActive();
549
552
  const live = active && !host.offline;
550
553
  const handoff = browser.handoff && String(browser.handoff.tabId) === tab.id ? browser.handoff : null;
@@ -567,11 +570,11 @@ function WindowScreen(t0) {
567
570
  $[5] = t3;
568
571
  } else t3 = $[5];
569
572
  let t4;
570
- if ($[6] !== browser || $[7] !== handoff || $[8] !== host || $[9] !== live) {
573
+ if ($[6] !== browser || $[7] !== computerHost || $[8] !== handoff || $[9] !== host || $[10] !== live) {
571
574
  t4 = handoff ? /* @__PURE__ */ jsxs("div", {
572
575
  className: "computer-screen__handoff",
573
576
  children: [/* @__PURE__ */ jsxs("p", { children: [
574
- host.employeeName,
577
+ computerHost.employee.name,
575
578
  " needs you: ",
576
579
  handoff.reason
577
580
  ] }), /* @__PURE__ */ jsx(Button, {
@@ -582,13 +585,14 @@ function WindowScreen(t0) {
582
585
  })]
583
586
  }) : null;
584
587
  $[6] = browser;
585
- $[7] = handoff;
586
- $[8] = host;
587
- $[9] = live;
588
- $[10] = t4;
589
- } else t4 = $[10];
588
+ $[7] = computerHost;
589
+ $[8] = handoff;
590
+ $[9] = host;
591
+ $[10] = live;
592
+ $[11] = t4;
593
+ } else t4 = $[11];
590
594
  let t5;
591
- if ($[11] !== browser || $[12] !== host || $[13] !== live || $[14] !== tab) {
595
+ if ($[12] !== browser || $[13] !== host || $[14] !== live || $[15] !== tab) {
592
596
  t5 = live ? host.renderLiveScreen(browser, tab) : tab.thumbnail ? /* @__PURE__ */ jsx("img", {
593
597
  src: tab.thumbnail.src,
594
598
  alt: tab.thumbnail.alt,
@@ -598,14 +602,14 @@ function WindowScreen(t0) {
598
602
  className: "computer-screen__placeholder",
599
603
  children: [/* @__PURE__ */ jsx(MonitorIcon, {}), "No preview yet"]
600
604
  });
601
- $[11] = browser;
602
- $[12] = host;
603
- $[13] = live;
604
- $[14] = tab;
605
- $[15] = t5;
606
- } else t5 = $[15];
605
+ $[12] = browser;
606
+ $[13] = host;
607
+ $[14] = live;
608
+ $[15] = tab;
609
+ $[16] = t5;
610
+ } else t5 = $[16];
607
611
  let t6;
608
- if ($[16] !== panelId || $[17] !== t5 || $[18] !== tab.title) {
612
+ if ($[17] !== panelId || $[18] !== t5 || $[19] !== tab.title) {
609
613
  t6 = /* @__PURE__ */ jsx("div", {
610
614
  className: "computer-screen__page",
611
615
  id: panelId,
@@ -614,13 +618,13 @@ function WindowScreen(t0) {
614
618
  "aria-label": tab.title,
615
619
  children: t5
616
620
  });
617
- $[16] = panelId;
618
- $[17] = t5;
619
- $[18] = tab.title;
620
- $[19] = t6;
621
- } else t6 = $[19];
621
+ $[17] = panelId;
622
+ $[18] = t5;
623
+ $[19] = tab.title;
624
+ $[20] = t6;
625
+ } else t6 = $[20];
622
626
  let t7;
623
- if ($[20] !== t1 || $[21] !== t3 || $[22] !== t4 || $[23] !== t6) {
627
+ if ($[21] !== t1 || $[22] !== t3 || $[23] !== t4 || $[24] !== t6) {
624
628
  t7 = /* @__PURE__ */ jsxs("div", {
625
629
  className: "computer-screen",
626
630
  "data-nav-bar": t1,
@@ -630,12 +634,12 @@ function WindowScreen(t0) {
630
634
  t6
631
635
  ]
632
636
  });
633
- $[20] = t1;
634
- $[21] = t3;
635
- $[22] = t4;
636
- $[23] = t6;
637
- $[24] = t7;
638
- } else t7 = $[24];
637
+ $[21] = t1;
638
+ $[22] = t3;
639
+ $[23] = t4;
640
+ $[24] = t6;
641
+ $[25] = t7;
642
+ } else t7 = $[25];
639
643
  return t7;
640
644
  }
641
645
  /** Chrome's own window: every conversation's screens, as `AgentScreenSwitcher` stills. */
@@ -735,29 +739,84 @@ function windowFor(browser) {
735
739
  return app;
736
740
  }
737
741
  /**
738
- * Chrome on the computer. `app` is the Dock's Chrome, whose window lists every
739
- * conversation's screens; `windowFor(browser)` is that browser's own window,
740
- * under Chrome in the Dock. Both read the host's browsers from `Host`, which
741
- * wraps the computer.
742
+ * Adds Chrome to the computer below it, inside a `ComputerHost`, with one
743
+ * window per browser that has pages, under Chrome in the Dock.
744
+ */
745
+ function Host(t0) {
746
+ const $ = c(10);
747
+ const { value, children } = t0;
748
+ useComputerHost("ComputerScreen.Host");
749
+ let t1;
750
+ if ($[0] !== value.browsers) {
751
+ t1 = JSON.stringify(value.browsers.filter(_temp3).map(_temp4));
752
+ $[0] = value.browsers;
753
+ $[1] = t1;
754
+ } else t1 = $[1];
755
+ const windowKey = t1;
756
+ let t2;
757
+ if ($[2] !== windowKey) {
758
+ t2 = [app, ...JSON.parse(windowKey).map(_temp5)];
759
+ $[2] = windowKey;
760
+ $[3] = t2;
761
+ } else t2 = $[3];
762
+ const t3 = useAppHosts("screen", t2);
763
+ let t4;
764
+ if ($[4] !== children || $[5] !== t3) {
765
+ t4 = /* @__PURE__ */ jsx(AppHostsContext, {
766
+ value: t3,
767
+ children
768
+ });
769
+ $[4] = children;
770
+ $[5] = t3;
771
+ $[6] = t4;
772
+ } else t4 = $[6];
773
+ let t5;
774
+ if ($[7] !== t4 || $[8] !== value) {
775
+ t5 = /* @__PURE__ */ jsx(HostContext, {
776
+ value,
777
+ children: t4
778
+ });
779
+ $[7] = t4;
780
+ $[8] = value;
781
+ $[9] = t5;
782
+ } else t5 = $[9];
783
+ return t5;
784
+ }
785
+ function _temp5(t0) {
786
+ const [id_0, title_0] = t0;
787
+ return windowFor({
788
+ id: id_0,
789
+ title: title_0
790
+ });
791
+ }
792
+ function _temp4(t0) {
793
+ const { id, title } = t0;
794
+ return [id, title];
795
+ }
796
+ function _temp3(browser) {
797
+ return browser.tabs.length;
798
+ }
799
+ const app = {
800
+ id: COMPUTER_APP_IDS.screen,
801
+ label: "Chrome",
802
+ icon: ARTWORK,
803
+ launcher: "favorite",
804
+ Content: ScreensContent
805
+ };
806
+ /**
807
+ * Chrome on the computer. `Host` adds `app`, the Dock's Chrome, whose window
808
+ * lists every conversation's screens, and each browser's own window; they
809
+ * all read the host's browsers from it.
742
810
  *
743
811
  * ```tsx
744
812
  * <ComputerScreen.Host value={screen}>
745
- * <AgentComputer
746
- * apps={[ComputerScreen.app, ...screen.browsers.filter((b) => b.tabs.length).map(ComputerScreen.windowFor)]}
747
- * />
813
+ * <AgentComputer … />
748
814
  * </ComputerScreen.Host>
749
815
  * ```
750
816
  */
751
817
  const ComputerScreen = {
752
- Host: HostContext,
753
- app: {
754
- id: COMPUTER_APP_IDS.screen,
755
- label: "Chrome",
756
- icon: ARTWORK,
757
- launcher: "favorite",
758
- Content: ScreensContent
759
- },
760
- windowFor
818
+ Host,
819
+ app
761
820
  };
762
821
  //#endregion
763
822
  export { ComputerScreen };
@@ -1,29 +1,16 @@
1
- import { t as WallpaperOption } from "../../WallpaperPicker-C-FItmDS.js";
2
- import { y as WorkspaceSource } from "../../Workspace-mZddFyvP.js";
3
- import { AgentComputerApp } from "./AgentComputer.js";
1
+ import { r as AgentComputerApp } from "../../AgentComputer-CpS9R2KG.js";
4
2
  import { c as EmployeeLocalAgents, d as EmployeePasskeyVault, r as EmployeeCompanion, s as EmployeeIdentity } from "../../EmployeeChrome-kegSASjC.js";
5
3
  import * as React from "react";
6
- import { ReactNode } from "react";
7
- //#region src/components/_internal/computer-apps/settings.d.ts
8
- /** The Dock's arrangement: app order, and the apps it leaves out. */
9
- interface DockArrangement {
10
- order: readonly string[];
11
- hidden: readonly string[];
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;
18
- //#endregion
19
4
  //#region src/components/agents-sdk/ComputerSettings.d.ts
20
5
  /** Settings' panes, in sidebar order. */
21
6
  export declare const COMPUTER_SETTINGS_VIEWS: readonly ["employee", "appearance", "dock", "shortcuts", "connections"];
22
7
  /** One of Settings' panes. */
23
8
  export type ComputerSettingsView = (typeof COMPUTER_SETTINGS_VIEWS)[number];
24
- /** The employee Settings describes: who it is, its model, its switches and its workspace. */
9
+ /**
10
+ * The employee Settings describes beyond the `ComputerHost`'s name and
11
+ * workspace: its model and its switches.
12
+ */
25
13
  export interface ComputerSettingsEmployee {
26
- name: string;
27
14
  /** The model's label, or null before one is chosen. */
28
15
  model: string | null;
29
16
  /** Opens the host's model and provider setup. */
@@ -33,40 +20,25 @@ export interface ComputerSettingsEmployee {
33
20
  companion: EmployeeCompanion | null;
34
21
  localAgents: EmployeeLocalAgents | null;
35
22
  passkeys: EmployeePasskeyVault | null;
36
- /** The workspace its instructions and folders live in. */
37
- workspace: WorkspaceSource;
38
- sourceKey: string;
39
- /** Selects a workspace file in Files; Settings then opens Files. */
40
- onOpenFile: (path: string) => void;
41
- /** Opens a workspace folder in Files; Settings then opens Files. */
42
- onOpenFolder: (path: string) => void;
43
23
  }
44
- /** The Dock's arrangement, kept by the host: app order, and the apps it leaves out. */
45
- export type ComputerDockPreferences = DockArrangement;
46
- /** Everything Settings reads from the host. */
24
+ /**
25
+ * Everything Settings reads from the host. The appearance and the Dock are
26
+ * the computer's presentation, and the employee's name and workspace the
27
+ * `ComputerHost`'s.
28
+ */
47
29
  export interface ComputerSettingsHost {
30
+ /** The pane showing, as the host's address keeps it. */
48
31
  view: ComputerSettingsView;
49
32
  onViewChange: (view: ComputerSettingsView) => void;
50
33
  employee: ComputerSettingsEmployee;
51
- wallpapers: readonly WallpaperOption[];
52
- /** The chosen wallpaper's `value`. */
53
- wallpaper: string;
54
- onWallpaperChange: (value: string) => void;
55
- /** Host display controls under the wallpapers, such as a custom image. */
56
- display: React.ReactNode;
57
- /** The computer's whole app catalog, in its default order. */
58
- apps: readonly AgentComputerApp[];
59
- dockPreferences: ComputerDockPreferences;
60
- onDockPreferencesChange: (next: ComputerDockPreferences) => void;
61
34
  /** The connections the employee uses, and their status. */
62
35
  connections: React.ReactNode;
63
36
  }
37
+ /** Adds Settings to the computer below it, inside a `ComputerHost`. */
64
38
  declare function Host({ value, children }: {
65
39
  value: ComputerSettingsHost;
66
40
  children: React.ReactNode;
67
41
  }): React.JSX.Element;
68
- /** The host's catalog in the arranged Dock order; pass it to `AgentComputer` inside the Host. */
69
- export declare function useComputerDockPreferences(): AgentComputerApp[];
70
42
  /** Settings in the Dock, and the Host it reads: employee, appearance, Dock, shortcuts, connections. */
71
43
  export declare const ComputerSettings: {
72
44
  Host: typeof Host;