@mcp-b/react-components 0.70.0 → 0.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AgentComputer-CpS9R2KG.d.ts +305 -0
- package/dist/{AgentComputer-CFJxjMFE.js → AgentComputer-DZCyQkcE.js} +1850 -478
- package/dist/CommandPalette-DDctKdpC.d.ts +53 -0
- package/dist/ComputerCalendar-Ci7tLASe.js +1360 -0
- package/dist/ComputerCustomWallpaper-CnGQYHp0.js +518 -0
- package/dist/ComputerCustomWallpaper-D4lgwj2k.d.ts +18 -0
- package/dist/ComputerNotifications-q7eeELZ8.d.ts +41 -0
- package/dist/ComputerPresentation-BEQKYAjc.js +888 -0
- package/dist/{ExecutionResult-C7SzVquo.js → ExecutionResult-CXnGcmM4.js} +1 -1
- package/dist/{WorkspaceBrowser-ojoZy0uO.js → WorkspaceBrowser-mRScUczT.js} +5 -5
- package/dist/WorkspaceFileTransfer-D2cOoVyO.js +1625 -0
- package/dist/{WorkspaceMessageResponse-BoeeltJM.js → WorkspaceMessageResponse-CXGOQgpo.js} +1 -1
- package/dist/components/agents-sdk/AgentComputer.d.ts +2 -276
- package/dist/components/agents-sdk/AgentComputer.js +1 -1
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/ComputerAutomations.d.ts +5 -15
- package/dist/components/agents-sdk/ComputerAutomations.js +164 -145
- package/dist/components/agents-sdk/ComputerCalendar.d.ts +1 -1
- package/dist/components/agents-sdk/ComputerCalendar.js +1 -1344
- package/dist/components/agents-sdk/ComputerCustomWallpaper.d.ts +2 -39
- package/dist/components/agents-sdk/ComputerCustomWallpaper.js +2 -522
- package/dist/components/agents-sdk/ComputerFiles.d.ts +18 -81
- package/dist/components/agents-sdk/ComputerFiles.js +365 -89
- package/dist/components/agents-sdk/ComputerHome.d.ts +6 -11
- package/dist/components/agents-sdk/ComputerHome.js +1 -89
- package/dist/components/agents-sdk/ComputerHost.d.ts +43 -0
- package/dist/components/agents-sdk/ComputerHost.js +97 -0
- package/dist/components/agents-sdk/ComputerLayout.d.ts +1 -1
- package/dist/components/agents-sdk/ComputerNotifications.d.ts +2 -54
- package/dist/components/agents-sdk/ComputerNotifications.js +1 -668
- package/dist/components/agents-sdk/ComputerPresentation.d.ts +2 -0
- package/dist/components/agents-sdk/ComputerPresentation.js +2 -0
- package/dist/components/agents-sdk/ComputerScreen.d.ts +14 -14
- package/dist/components/agents-sdk/ComputerScreen.js +109 -50
- package/dist/components/agents-sdk/ComputerSettings.d.ts +12 -40
- package/dist/components/agents-sdk/ComputerSettings.js +249 -1038
- package/dist/components/agents-sdk/ComputerSpotlight.d.ts +13 -15
- package/dist/components/agents-sdk/ComputerSpotlight.js +1 -231
- package/dist/components/agents-sdk/ComputerViewer.d.ts +13 -17
- package/dist/components/agents-sdk/ComputerViewer.js +176 -187
- package/dist/components/agents-sdk/ComputerWallpapers.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +2 -2
- package/dist/components/agents-sdk/EmployeeChrome.js +3 -3
- package/dist/components/agents-sdk/EmployeeSchedules.js +2 -2
- package/dist/components/agents-sdk/ExecutionBoard.js +1 -1
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +2 -2
- package/dist/components/agents-sdk/McpPluginCatalog.js +1 -1
- package/dist/components/agents-sdk/ThinkChat.js +1 -1
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +3 -3
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +2 -2
- package/dist/components/agents-sdk/ThinkScheduleActions.js +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.js +1 -1
- package/dist/components/agents-sdk/ThinkScheduleDetail.js +4 -4
- package/dist/components/agents-sdk/ThinkScheduleForm.js +3 -3
- package/dist/components/agents-sdk/WorkspaceAutomation.js +3 -3
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +1 -5
- package/dist/components/agents-sdk/WorkspaceDesktop.js +53 -41
- package/dist/components/agents-sdk/WorkspaceExplorer.js +3 -3
- package/dist/components/agents-sdk/WorkspaceFileCommands.js +1 -924
- package/dist/components/agents-sdk/WorkspaceFileDetails.js +1 -1
- package/dist/components/agents-sdk/WorkspaceFileTransfer.js +1 -504
- package/dist/components/agents-sdk/WorkspaceFileView.js +6 -6
- package/dist/components/agents-sdk/WorkspaceLink.js +1 -1
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +9 -0
- package/dist/components/agents-sdk/WorkspaceLive.js +2 -177
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +1 -1
- package/dist/components/ai-sdk/Context.js +1 -1
- package/dist/components/ai-sdk/PromptInput.js +1 -1
- package/dist/components/extension/FirstRunSetup.js +2 -2
- package/dist/components/foundations/ThemeProvider.d.ts +2 -0
- package/dist/components/foundations/ThemeProvider.js +2 -1
- package/dist/components/general-purpose/CommandPalette.d.ts +2 -52
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
- package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -2
- package/dist/components/nanites/AgentConnection.js +1 -1
- package/dist/components/nanites/AgentToolDetail.js +1 -1
- package/dist/context-BWJpR084.js +94 -0
- package/dist/{parts-CPVz9l31.js → parts-DuT5-rDz.js} +1 -1
- package/dist/styles/agent-computer.css +16 -0
- package/dist/styles/computer-files.css +5 -0
- package/dist/styles/computer-notifications.css +1 -0
- package/dist/{workspace-drag-B6hMXUNt.js → workspace-drag-BNhZIN8F.js} +1 -1
- package/dist/{workspace-quick-look-DODjsfhH.js → workspace-quick-look-8cbGu1Xf.js} +2 -2
- package/package.json +2 -2
- package/dist/WallpaperPicker-C-FItmDS.d.ts +0 -34
- package/dist/automations-host-DPORjdc7.js +0 -17
- package/dist/context-Ddsp8HgD.js +0 -43
- package/dist/minute-clock-CXpRGCMF.js +0 -35
- package/dist/{Context-DQDumCV8.js → Context-CYUxZrwW.js} +1 -1
- package/dist/{ManagerOffice-kSK7vTBl.js → ManagerOffice-BJ2vs-Lr.js} +2 -2
- package/dist/{WorkspaceLink-DK9kdMUH.js → WorkspaceLink-DDkj-Tq5.js} +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MessageResponse } from "./components/ai-sdk/Message.js";
|
|
2
|
-
import { i as useWorkspaceNavigationContext, r as resolveWorkspaceLink, t as WorkspaceFileLink } from "./WorkspaceLink-
|
|
2
|
+
import { i as useWorkspaceNavigationContext, r as resolveWorkspaceLink, t as WorkspaceFileLink } from "./WorkspaceLink-DDkj-Tq5.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,276 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
//#region src/components/agents-sdk/AgentComputer.d.ts
|
|
5
|
-
/** The window an app part is rendered in, from {@link useAgentComputerWindow}. */
|
|
6
|
-
export interface AgentComputerWindow {
|
|
7
|
-
/** The app's id. */
|
|
8
|
-
id: string;
|
|
9
|
-
/** The computer is a phone (48rem or narrower): one app fills the screen. */
|
|
10
|
-
phone: boolean;
|
|
11
|
-
}
|
|
12
|
-
/** What a running app tells the shell, through {@link useAgentComputerAppHandlers}. */
|
|
13
|
-
export interface AgentComputerAppHandlers {
|
|
14
|
-
/** Keyboard commands for the key window. Respect prevented events and IME composition. */
|
|
15
|
-
onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
|
|
16
|
-
/**
|
|
17
|
-
* Confirm unsaved work before the app quits: from its app menu, ⌘Q, or a
|
|
18
|
-
* phone's App Switcher. Return false to keep it running. Rejections also
|
|
19
|
-
* keep it running and are announced. Closing a window never asks: the app
|
|
20
|
-
* keeps running, with its state, until it quits.
|
|
21
|
-
*/
|
|
22
|
-
beforeQuit?: () => boolean | Promise<boolean>;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* An app the computer can run. Its parts are component types, defined at
|
|
26
|
-
* module level: a new type each render remounts the part and loses its state.
|
|
27
|
-
* Parts read their window with {@link useAgentComputerWindow} and
|
|
28
|
-
* {@link useAgentComputerWindowActive}, and open other
|
|
29
|
-
* apps with {@link useAgentComputerActions}.
|
|
30
|
-
*
|
|
31
|
-
* An app runs from its first launch until it quits. Closing its window hides
|
|
32
|
-
* it, keeping its state and its Dock dot, as macOS does; quitting unmounts it.
|
|
33
|
-
* A phone's background apps are hidden the same way.
|
|
34
|
-
*/
|
|
35
|
-
export interface AgentComputerApp {
|
|
36
|
-
/** Stable app identity, shared by its window and launcher. */
|
|
37
|
-
id: string;
|
|
38
|
-
/** Visible window title and accessible launcher name. */
|
|
39
|
-
label: string;
|
|
40
|
-
/** Finished decorative artwork, preserving its own silhouette. The launcher supplies size and an accessible name, without adding a tile or clipping mask. */
|
|
41
|
-
icon: React.ReactNode;
|
|
42
|
-
/** Favorites appear in both docks; standard apps appear in the desktop dock only.
|
|
43
|
-
* Hidden apps launch from their owning content. Defaults to standard. */
|
|
44
|
-
launcher?: "favorite" | "standard" | "hidden";
|
|
45
|
-
/**
|
|
46
|
-
* Opens workspace files dropped on the app's desktop Dock tile, as macOS
|
|
47
|
-
* opens a file dropped on an app; the app then comes forward. A tile
|
|
48
|
-
* without it refuses the drop.
|
|
49
|
-
*/
|
|
50
|
-
onWorkspaceDrop?: (drop: WorkspaceDragSource) => void;
|
|
51
|
-
/**
|
|
52
|
-
* Warms the app's first screen when someone shows intent to open it: the
|
|
53
|
-
* pointer entering or focus reaching its Dock tile. The shell calls it
|
|
54
|
-
* without rendering, so it may run often; fetch through a cache, such as
|
|
55
|
-
* TanStack Query's `prefetchQuery`, that makes a repeat call free.
|
|
56
|
-
*/
|
|
57
|
-
preload?: () => void;
|
|
58
|
-
/**
|
|
59
|
-
* Initial floating size in CSS pixels, centered and clamped to the desktop.
|
|
60
|
-
* Home on the move/resize controls resets to this geometry. Saved bounds
|
|
61
|
-
* take precedence, and phone apps still fill the screen.
|
|
62
|
-
*/
|
|
63
|
-
defaultWindowSize?: AgentComputerWindowSize;
|
|
64
|
-
/**
|
|
65
|
-
* The Dock app this window belongs to, as a per-thread browser window belongs
|
|
66
|
-
* to Screen: the menu bar names that app, its Dock tile shows the dot, and
|
|
67
|
-
* quitting that app quits this window too. It has no Dock tile of its own.
|
|
68
|
-
*/
|
|
69
|
-
owner?: string;
|
|
70
|
-
/**
|
|
71
|
-
* A utility window of its `owner`, as Finder's Get Info is: fixed at
|
|
72
|
-
* `defaultWindowSize`, with a close button only — no minimize, zoom,
|
|
73
|
-
* tiling or full screen — and gone when closed rather than kept running.
|
|
74
|
-
* Open one per subject, each under an id of its own; opening one that is
|
|
75
|
-
* already open brings it forward.
|
|
76
|
-
*/
|
|
77
|
-
panel?: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* The app paints one unified title-bar toolbar, as a Tahoe app with
|
|
80
|
-
* controls does: the bar is the window frame and the app's title part fills
|
|
81
|
-
* it with its tabs or toolbar items, instead of a plain 28pt title band.
|
|
82
|
-
*/
|
|
83
|
-
titleBar?: "unified";
|
|
84
|
-
/**
|
|
85
|
-
* Wraps every part while the app runs: the place for state its title,
|
|
86
|
-
* actions, menus and content share, and for {@link useAgentComputerAppHandlers}.
|
|
87
|
-
*/
|
|
88
|
-
Provider?: React.ComponentType<{
|
|
89
|
-
children: React.ReactNode;
|
|
90
|
-
}>;
|
|
91
|
-
/** Title-bar content in place of the label, such as a browser's tab strip. The label stays the accessible name.
|
|
92
|
-
* A control marked `data-nav-back` becomes the phone navigation bar's leading
|
|
93
|
-
* Back, in place of the shell's Home control. */
|
|
94
|
-
Title?: React.ComponentType;
|
|
95
|
-
/** Trailing title-bar controls, such as a browser's tab search. A phone keeps
|
|
96
|
-
* them in the navigation bar's trailing slot, as iOS does, unless the app
|
|
97
|
-
* paints its own bar — then they become its bottom toolbar. Render nothing
|
|
98
|
-
* to leave the slot out. */
|
|
99
|
-
Actions?: React.ComponentType;
|
|
100
|
-
/** App-owned Menubar.Item elements atop the app menu, above Hide, such as Finder's Empty Trash. */
|
|
101
|
-
AppMenu?: React.ComponentType;
|
|
102
|
-
/** App-owned Menubar.Menu elements, between the app menu and Window; shown only for the active desktop app. */
|
|
103
|
-
Menus?: React.ComponentType;
|
|
104
|
-
/**
|
|
105
|
-
* The window's content. An app whose content paints its own navigation bar
|
|
106
|
-
* (Slack's channel header, a file view's top bar) marks it `data-nav-bar`,
|
|
107
|
-
* and the phone shell's window bar yields to it so a phone screen never
|
|
108
|
-
* stacks two bars. Domain state belongs above the computer; quitting an app
|
|
109
|
-
* unmounts its view, never cancels the underlying work.
|
|
110
|
-
*/
|
|
111
|
-
Content: React.ComponentType;
|
|
112
|
-
}
|
|
113
|
-
/** A window's size in CSS pixels. */
|
|
114
|
-
export interface AgentComputerWindowSize {
|
|
115
|
-
width: number;
|
|
116
|
-
height: number;
|
|
117
|
-
}
|
|
118
|
-
/** A window's free-floating rectangle in CSS pixels relative to the desktop stage. */
|
|
119
|
-
export interface AgentComputerWindowBounds extends AgentComputerWindowSize {
|
|
120
|
-
x: number;
|
|
121
|
-
y: number;
|
|
122
|
-
}
|
|
123
|
-
/** Placement keeps the floating bounds intact while the window occupies a tile. */
|
|
124
|
-
export interface AgentComputerWindowLayout {
|
|
125
|
-
id: string;
|
|
126
|
-
/** Null until a new window has been measured on a desktop. */
|
|
127
|
-
bounds: AgentComputerWindowBounds | null;
|
|
128
|
-
/** Floating, or one of macOS's tiles: Fill (the whole desktop), a half, or a quarter. */
|
|
129
|
-
placement: "floating" | "fill" | "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
130
|
-
minimized: boolean;
|
|
131
|
-
}
|
|
132
|
-
/** Presentation only: apps and unsaved work are owned by the host, never serialized here. */
|
|
133
|
-
export interface AgentComputerLayout {
|
|
134
|
-
/** Open windows, ordered back to front. */
|
|
135
|
-
windows: readonly AgentComputerWindowLayout[];
|
|
136
|
-
activeAppId: string | null;
|
|
137
|
-
/** One full-screen window; exiting returns to its existing placement. */
|
|
138
|
-
expandedAppId: string | null;
|
|
139
|
-
/** Desktop inspection preserves visible windows without an active app. */
|
|
140
|
-
surface: "desktop" | "home";
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Who is opening an app, and from where. The person is the default: their
|
|
144
|
-
* window comes forward and takes the keyboard. The agent's window yields to
|
|
145
|
-
* someone who is working — it opens behind the key window, its Dock tile (a
|
|
146
|
-
* phone's Home icon) is marked until it is brought forward, and nothing takes
|
|
147
|
-
* focus — and it plays a brief highlight once it is on screen either way.
|
|
148
|
-
*/
|
|
149
|
-
export type AgentComputerOpenOptions = {
|
|
150
|
-
/**
|
|
151
|
-
* What the window grows out of: a Dock tile, a notification, the tool row in
|
|
152
|
-
* the conversation that opened it. Measured when `openApp` is called and
|
|
153
|
-
* never saved, so an element that unmounts afterwards is fine.
|
|
154
|
-
*/
|
|
155
|
-
from?: Element | DOMRect;
|
|
156
|
-
} & ({
|
|
157
|
-
by?: "user";
|
|
158
|
-
step?: never;
|
|
159
|
-
} | {
|
|
160
|
-
by: "agent";
|
|
161
|
-
/**
|
|
162
|
-
* The step that opened the window, in the conversation's words, read as
|
|
163
|
-
* the window's accessible description until the person opens it again.
|
|
164
|
-
*/
|
|
165
|
-
step?: string;
|
|
166
|
-
});
|
|
167
|
-
/** The computer's actions: one object for the computer's lifetime. */
|
|
168
|
-
export interface AgentComputerActions {
|
|
169
|
-
/**
|
|
170
|
-
* Open or raise an application using the same focus and window lifecycle as
|
|
171
|
-
* the Dock. Resolves to its window once it is laid out on screen, or null
|
|
172
|
-
* when it was not within two seconds: an app the host never adds, a window
|
|
173
|
-
* left in the Dock, or an open a later one for the same app superseded.
|
|
174
|
-
*/
|
|
175
|
-
openApp: (id: string, options?: AgentComputerOpenOptions) => Promise<HTMLElement | null>;
|
|
176
|
-
}
|
|
177
|
-
/** The window an app part is rendered in. Throws outside an app's parts. */
|
|
178
|
-
export declare function useAgentComputerWindow(): AgentComputerWindow;
|
|
179
|
-
/**
|
|
180
|
-
* Whether the window an app part is rendered in is key (frontmost); mount
|
|
181
|
-
* expensive live viewers only while it is. Focus moves on every window action,
|
|
182
|
-
* so read it in the part that draws it, not at the top of the app.
|
|
183
|
-
*/
|
|
184
|
-
export declare function useAgentComputerWindowActive(): boolean;
|
|
185
|
-
/**
|
|
186
|
-
* The computer's actions, for anything rendered inside it: app parts, Home,
|
|
187
|
-
* the desktop, the status items and the Home widget. The object never changes,
|
|
188
|
-
* so reading it re-renders nothing.
|
|
189
|
-
*/
|
|
190
|
-
export declare function useAgentComputerActions(): AgentComputerActions;
|
|
191
|
-
/**
|
|
192
|
-
* Where an overlay rendered inside the computer portals — Quick Look, a
|
|
193
|
-
* notification banner — so it sits on the computer's screen, above its
|
|
194
|
-
* windows, rather than on the page. Pass it as a Base UI portal's `container`:
|
|
195
|
-
* it is null until the computer has mounted it, which the portal waits for,
|
|
196
|
-
* and undefined outside a computer, where the portal keeps its default.
|
|
197
|
-
*/
|
|
198
|
-
export declare function useAgentComputerPortalContainer(): HTMLElement | null | undefined;
|
|
199
|
-
/**
|
|
200
|
-
* Registers the running app's keyboard commands and quit guard. Call it once
|
|
201
|
-
* per app, from its Provider or its Content; the latest handlers are always
|
|
202
|
-
* the ones called.
|
|
203
|
-
*/
|
|
204
|
-
export declare function useAgentComputerAppHandlers(handlers: AgentComputerAppHandlers): void;
|
|
205
|
-
/** The Dock's Trash: where deleted workspace files wait until it is emptied. */
|
|
206
|
-
export interface AgentComputerTrash {
|
|
207
|
-
/** It holds something: the Dock shows the full bin. */
|
|
208
|
-
full: boolean;
|
|
209
|
-
/**
|
|
210
|
-
* The app the Trash opens in, as the Finder's: pressing it brings that app
|
|
211
|
-
* forward the way its own Dock tile does, keyboard focus included.
|
|
212
|
-
*/
|
|
213
|
-
app: string;
|
|
214
|
-
/** Shows the Trash in `app`, once it is coming forward. */
|
|
215
|
-
onOpen: () => void;
|
|
216
|
-
/** Workspace objects dropped on it, to move to the Trash. */
|
|
217
|
-
onDrop: (drop: WorkspaceDragSource) => void;
|
|
218
|
-
}
|
|
219
|
-
export interface AgentComputerProps extends Omit<React.ComponentPropsWithRef<"div">, "children"> {
|
|
220
|
-
/**
|
|
221
|
-
* Employee identity, the first of the menu bar's trailing status items, and
|
|
222
|
-
* on a phone the label under Home's current-work widget — iOS names a
|
|
223
|
-
* widget's owning app there and nothing else.
|
|
224
|
-
*/
|
|
225
|
-
name: string;
|
|
226
|
-
/** The same actions outside the computer, such as a conversation's file links beside it. */
|
|
227
|
-
actionsRef?: React.Ref<AgentComputerActions>;
|
|
228
|
-
/**
|
|
229
|
-
* The remaining status items, after the employee: connection, appearance, model, and a
|
|
230
|
-
* clock if the host knows the employee's timezone. Text and 16px symbols,
|
|
231
|
-
* never a fabricated indicator. A phone has no menu bar to carry them: what
|
|
232
|
-
* the widget is reporting belongs in the widget, and anything iOS keeps in
|
|
233
|
-
* its own status bar, such as the clock, drops out. A status control opens
|
|
234
|
-
* its owning app with {@link useAgentComputerActions}.
|
|
235
|
-
*/
|
|
236
|
-
status?: React.ReactNode;
|
|
237
|
-
/** A phone-only Home widget. The shell chooses the responsive surface, so
|
|
238
|
-
* hosts do not need a second breakpoint. */
|
|
239
|
-
homeWidget?: React.ReactNode;
|
|
240
|
-
/** Route-selected application. Null selects Home on a phone; desktop
|
|
241
|
-
* inspection may keep windows visible without a key window. Omit for local
|
|
242
|
-
* presentation. Changes retain already-open app views and their drafts. */
|
|
243
|
-
activeAppId?: string | null;
|
|
244
|
-
/** Explicit app activation, or null when inspecting the desktop, hiding a
|
|
245
|
-
* window, or showing Home. A host can commit this selection to its Router. */
|
|
246
|
-
onActiveAppChange?: (id: string | null) => void;
|
|
247
|
-
/** App views and launchers composed from existing design-system controls. */
|
|
248
|
-
apps: readonly AgentComputerApp[];
|
|
249
|
-
/** Initial desktop presentation. Omit it to start on Home. */
|
|
250
|
-
defaultLayout?: AgentComputerLayout;
|
|
251
|
-
/** Save a presentation snapshot in the host; app content and drafts stay outside it. */
|
|
252
|
-
onLayoutChange?: (layout: AgentComputerLayout) => void;
|
|
253
|
-
/** Home's content. Its icons open apps with {@link useAgentComputerActions}
|
|
254
|
-
* and carry `data-app-id`, which the phone's app zoom flies from. */
|
|
255
|
-
home: React.ReactNode;
|
|
256
|
-
/** Persistent desktop content, such as workspace files, behind windows. Hidden on narrow hosts. */
|
|
257
|
-
desktop?: React.ReactNode;
|
|
258
|
-
/** The Trash at the Dock's trailing end, past the divider, as on macOS. A phone has none. */
|
|
259
|
-
trash?: AgentComputerTrash;
|
|
260
|
-
/**
|
|
261
|
-
* The desktop and Home background, dimmed so the white labels on it stay
|
|
262
|
-
* readable; one of `COMPUTER_WALLPAPERS` or the host's own. Defaults to Sigvelo.
|
|
263
|
-
*/
|
|
264
|
-
wallpaper?: WallpaperOption;
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* One employee's desktop, reflowing to full-screen apps on a narrow host.
|
|
268
|
-
* Composes AppFrame; owns only ephemeral window order, placement, minimize,
|
|
269
|
-
* expand, and focus state.
|
|
270
|
-
* Supply Files, Chrome, Automations, and provider apps using their existing
|
|
271
|
-
* components; the employee conversation stays outside, beside the computer.
|
|
272
|
-
* There is no simulated filesystem or agent runtime.
|
|
273
|
-
* Use a key when changing employee identity to reset their presentation state.
|
|
274
|
-
*/
|
|
275
|
-
export declare function AgentComputer({ name, actionsRef, status, homeWidget, activeAppId: selected, onActiveAppChange, apps, defaultLayout, onLayoutChange, home, desktop, trash, wallpaper, style, ...props }: AgentComputerProps): React.JSX.Element;
|
|
276
|
-
//#endregion
|
|
1
|
+
import { a as AgentComputerLayout, c as AgentComputerWindow, d as AgentComputerWindowSize, f as useAgentComputerActions, g as useAgentComputerWindowActive, h as useAgentComputerWindow, i as AgentComputerAppHandlers, l as AgentComputerWindowBounds, m as useAgentComputerPortalContainer, n as AgentComputerActions, o as AgentComputerOpenOptions, p as useAgentComputerAppHandlers, r as AgentComputerApp, s as AgentComputerProps, t as AgentComputer, u as AgentComputerWindowLayout } from "../../AgentComputer-CpS9R2KG.js";
|
|
2
|
+
export { AgentComputer, AgentComputerActions, AgentComputerApp, AgentComputerAppHandlers, AgentComputerLayout, AgentComputerOpenOptions, AgentComputerProps, AgentComputerWindow, AgentComputerWindowBounds, AgentComputerWindowLayout, AgentComputerWindowSize, useAgentComputerActions, useAgentComputerAppHandlers, useAgentComputerPortalContainer, useAgentComputerWindow, useAgentComputerWindowActive };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as useAgentComputerWindow, i as useAgentComputerPortalContainer, n as useAgentComputerActions, o as useAgentComputerWindowActive, r as useAgentComputerAppHandlers, t as AgentComputer } from "../../AgentComputer-
|
|
1
|
+
import { a as useAgentComputerWindow, i as useAgentComputerPortalContainer, n as useAgentComputerActions, o as useAgentComputerWindowActive, r as useAgentComputerAppHandlers, t as AgentComputer } from "../../AgentComputer-DZCyQkcE.js";
|
|
2
2
|
export { AgentComputer, useAgentComputerActions, useAgentComputerAppHandlers, useAgentComputerPortalContainer, useAgentComputerWindow, useAgentComputerWindowActive };
|
|
@@ -2,8 +2,8 @@ import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
|
2
2
|
import { X as PlayIcon, q as PauseIcon } from "../../icons-nLTnB9kd.js";
|
|
3
3
|
import { i as formatClock } from "../../format-DL7f2rqp.js";
|
|
4
4
|
import { IconButton } from "../foundations/IconButton.js";
|
|
5
|
-
import { EmptyState } from "../foundations/EmptyState.js";
|
|
6
5
|
import { Slider } from "../foundations/Slider.js";
|
|
6
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
7
7
|
import { c } from "react/compiler-runtime";
|
|
8
8
|
import * as React from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentComputerApp } from "
|
|
1
|
+
import { r as AgentComputerApp } from "../../AgentComputer-CpS9R2KG.js";
|
|
2
2
|
import { l as WorkspaceAutomationSource } from "../../WorkspaceAutomation-hwl6C1aX.js";
|
|
3
3
|
import { t as ThinkSchedule } from "../../ThinkSchedule-9nzxIoX1.js";
|
|
4
4
|
import { ThinkScheduleFormSchedule, ThinkScheduleFormValue } from "./ThinkScheduleForm.js";
|
|
@@ -29,8 +29,6 @@ export interface ComputerAutomationsSelection {
|
|
|
29
29
|
* apps place runs on.
|
|
30
30
|
*/
|
|
31
31
|
export interface ComputerAutomationsHost<TSchedule extends ComputerSchedule = ComputerSchedule> {
|
|
32
|
-
/** Stable non-secret identity of the source backing these schedules. */
|
|
33
|
-
sourceKey: string;
|
|
34
32
|
/** Saved automations; Automations itself opens a workflow and starts its schedule, single or per table row. */
|
|
35
33
|
automations: Omit<WorkspaceAutomationSource, "onOpen" | "onSchedule" | "onScheduleTable">;
|
|
36
34
|
/** Every schedule, each carrying its next alarm and retained runs. */
|
|
@@ -48,19 +46,8 @@ export interface ComputerAutomationsHost<TSchedule extends ComputerSchedule = Co
|
|
|
48
46
|
onNavigate: (next: Partial<ComputerAutomationsSelection>) => void | Promise<void>;
|
|
49
47
|
/** A router link that merges `next` into the current selection. */
|
|
50
48
|
renderLink: (next: Partial<ComputerAutomationsSelection>) => React.ReactElement;
|
|
51
|
-
/** Selects a workspace file in Files; Automations then opens Files. */
|
|
52
|
-
onOpenFile: (path: string) => void;
|
|
53
49
|
/** The conversation a run took place in, or null when it has none. */
|
|
54
50
|
conversationForRun: (run: TSchedule["runs"][number]) => string | null;
|
|
55
|
-
onOpenConversation: (threadId: string) => void;
|
|
56
|
-
/** The employee's working IANA timezone; dates and times read in it. The reader's own zone by default. */
|
|
57
|
-
timeZone?: string;
|
|
58
|
-
/**
|
|
59
|
-
* The current instant in epoch milliseconds, read on each minute: Calendar's
|
|
60
|
-
* today and its Dock icon follow it. `Date.now` by default; a host on its
|
|
61
|
-
* own clock passes it.
|
|
62
|
-
*/
|
|
63
|
-
now?: () => number;
|
|
64
51
|
}
|
|
65
52
|
/**
|
|
66
53
|
* The shared state Automations and Calendar read, mounted above the computer
|
|
@@ -71,7 +58,10 @@ declare function Host<TSchedule extends ComputerSchedule>({ value, children }: {
|
|
|
71
58
|
value: ComputerAutomationsHost<TSchedule>;
|
|
72
59
|
children: React.ReactNode;
|
|
73
60
|
}): React.JSX.Element;
|
|
74
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* Automations in the Dock, and the Host it shares with Calendar. The Host,
|
|
63
|
+
* inside a `ComputerHost` and above the computer, adds both apps to it.
|
|
64
|
+
*/
|
|
75
65
|
export declare const ComputerAutomations: {
|
|
76
66
|
Host: typeof Host;
|
|
77
67
|
app: AgentComputerApp;
|