@mcp-b/react-components 0.65.0 → 0.67.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 (107) hide show
  1. package/dist/AgentComputer-BP9ixGGE.js +8093 -0
  2. package/dist/{ExecutionResult-CXnGcmM4.js → ExecutionResult-C7SzVquo.js} +1 -1
  3. package/dist/WallpaperPicker-C-FItmDS.d.ts +34 -0
  4. package/dist/WorkspaceBrowser-Dz48H-7X.d.ts +89 -0
  5. package/dist/{WorkspaceFileCommands-SNIjRgtU.d.ts → WorkspaceFileCommands-1s9Ol8CG.d.ts} +11 -3
  6. package/dist/{WorkspaceMessageResponse-CXGOQgpo.js → WorkspaceMessageResponse-BoeeltJM.js} +1 -1
  7. package/dist/assets/wallpapers/README.md +31 -0
  8. package/dist/assets/wallpapers/alpine.webp +0 -0
  9. package/dist/assets/wallpapers/dusk.webp +0 -0
  10. package/dist/assets/wallpapers/ember.webp +0 -0
  11. package/dist/assets/wallpapers/graphite.webp +0 -0
  12. package/dist/assets/wallpapers/sigvelo.webp +0 -0
  13. package/dist/assets/wallpapers/tide.webp +0 -0
  14. package/dist/automations-host-DPORjdc7.js +17 -0
  15. package/dist/components/agents-sdk/AgentComputer.d.ts +7 -1
  16. package/dist/components/agents-sdk/AgentComputer.js +1 -8044
  17. package/dist/components/agents-sdk/AgentScreenSwitcher.js +1 -0
  18. package/dist/components/agents-sdk/BrowserLiveScreen.d.ts +7 -1
  19. package/dist/components/agents-sdk/BrowserLiveScreen.js +259 -257
  20. package/dist/components/agents-sdk/BrowserRunPanel.d.ts +2 -0
  21. package/dist/components/agents-sdk/BrowserRunPanel.js +1 -0
  22. package/dist/components/agents-sdk/ComputerAutomations.d.ts +70 -0
  23. package/dist/components/agents-sdk/ComputerAutomations.js +1410 -0
  24. package/dist/components/agents-sdk/ComputerCalendar.d.ts +7 -0
  25. package/dist/components/agents-sdk/ComputerCalendar.js +1344 -0
  26. package/dist/components/agents-sdk/ComputerFiles.d.ts +153 -0
  27. package/dist/components/agents-sdk/ComputerFiles.js +2401 -0
  28. package/dist/components/agents-sdk/ComputerHome.d.ts +15 -0
  29. package/dist/components/agents-sdk/ComputerHome.js +90 -0
  30. package/dist/components/agents-sdk/ComputerNotifications.d.ts +54 -0
  31. package/dist/components/agents-sdk/ComputerNotifications.js +692 -0
  32. package/dist/components/agents-sdk/ComputerScreen.d.ts +78 -0
  33. package/dist/components/agents-sdk/ComputerScreen.js +750 -0
  34. package/dist/components/agents-sdk/ComputerSettings.d.ts +69 -0
  35. package/dist/components/agents-sdk/ComputerSettings.js +1371 -0
  36. package/dist/components/agents-sdk/ComputerSpotlight.d.ts +29 -0
  37. package/dist/components/agents-sdk/ComputerSpotlight.js +232 -0
  38. package/dist/components/agents-sdk/ComputerViewer.d.ts +51 -0
  39. package/dist/components/agents-sdk/ComputerViewer.js +339 -0
  40. package/dist/components/agents-sdk/ComputerWallpapers.d.ts +11 -0
  41. package/dist/components/agents-sdk/ComputerWallpapers.js +43 -0
  42. package/dist/components/agents-sdk/EmployeeApp.js +1 -1
  43. package/dist/components/agents-sdk/EmployeeChat.js +1 -1
  44. package/dist/components/agents-sdk/EmployeeChrome.js +4 -4
  45. package/dist/components/agents-sdk/EmployeeSchedules.js +3 -3
  46. package/dist/components/agents-sdk/EmployeeStartScreen.js +1 -1
  47. package/dist/components/agents-sdk/ExecutionBoard.js +1 -1
  48. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  49. package/dist/components/agents-sdk/ManagerOfficeScreens.js +1 -1
  50. package/dist/components/agents-sdk/McpPluginCatalog.js +1 -1
  51. package/dist/components/agents-sdk/ModelSelector.js +1 -1
  52. package/dist/components/agents-sdk/ThinkChat.js +1 -1
  53. package/dist/components/agents-sdk/ThinkChatActivitySummary.js +1 -1
  54. package/dist/components/agents-sdk/ThinkChatToolPanels.js +5 -5
  55. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +3 -3
  56. package/dist/components/agents-sdk/ThinkFullApp.d.ts +13 -0
  57. package/dist/components/agents-sdk/ThinkFullApp.js +13 -0
  58. package/dist/components/agents-sdk/ThinkScheduleActions.js +1 -1
  59. package/dist/components/agents-sdk/ThinkScheduleDetail.js +3 -3
  60. package/dist/components/agents-sdk/ThinkScheduleForm.js +4 -4
  61. package/dist/components/agents-sdk/WorkspaceAutomation.js +4 -4
  62. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1 -1
  63. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +2 -88
  64. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +1 -1
  65. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +1 -1
  66. package/dist/components/agents-sdk/WorkspaceDocumentFrame.d.ts +17 -0
  67. package/dist/components/agents-sdk/WorkspaceDocumentFrame.js +90 -0
  68. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +4 -1
  69. package/dist/components/agents-sdk/WorkspaceExplorer.js +70 -66
  70. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -2
  71. package/dist/components/agents-sdk/WorkspaceFileCommands.js +346 -316
  72. package/dist/components/agents-sdk/WorkspaceFileView.d.ts +7 -1
  73. package/dist/components/agents-sdk/WorkspaceFileView.js +83 -71
  74. package/dist/components/agents-sdk/WorkspaceLink.js +1 -1
  75. package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -4
  76. package/dist/components/agents-sdk/WorkspaceLive.js +18 -11
  77. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  78. package/dist/components/ai-sdk/ConnectedAppCards.js +1 -1
  79. package/dist/components/ai-sdk/Goal.d.ts +1 -2
  80. package/dist/components/ai-sdk/Goal.js +1 -2
  81. package/dist/components/extension/FirstRunSetup.js +5 -5
  82. package/dist/components/general-purpose/CommandPalette.d.ts +6 -1
  83. package/dist/components/general-purpose/CommandPalette.js +90 -82
  84. package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
  85. package/dist/components/general-purpose/ThemeModeControl.js +1 -1
  86. package/dist/components/general-purpose/WallpaperPicker.d.ts +2 -33
  87. package/dist/components/nanites/AgentConnection.js +1 -1
  88. package/dist/parts-RXV6GGdB.js +112 -0
  89. package/dist/styles/agent-computer.css +35 -0
  90. package/dist/styles/base.css +6 -0
  91. package/dist/styles/computer-app-tile.css +20 -0
  92. package/dist/styles/computer-automations.css +454 -0
  93. package/dist/styles/computer-calendar.css +648 -0
  94. package/dist/styles/computer-files.css +566 -0
  95. package/dist/styles/computer-home.css +90 -0
  96. package/dist/styles/computer-notifications.css +242 -0
  97. package/dist/styles/computer-screen.css +89 -0
  98. package/dist/styles/computer-settings.css +550 -0
  99. package/dist/styles/computer-spotlight.css +7 -0
  100. package/dist/styles/computer-viewer.css +130 -0
  101. package/dist/styles/index.css +11 -0
  102. package/dist/styles/recipes.css +42 -0
  103. package/dist/styles/workspace-document-frame.css +31 -0
  104. package/package.json +2 -2
  105. package/dist/{ManagerOffice-T79utm-P.js → ManagerOffice-kSK7vTBl.js} +1 -1
  106. package/dist/{WorkspaceLink-DDkj-Tq5.js → WorkspaceLink-DK9kdMUH.js} +1 -1
  107. package/dist/{connected-app-drafts-Bocdg3Z-.js → connected-app-drafts-C49343p9.js} +1 -1
@@ -0,0 +1,153 @@
1
+ import { l as WorkspaceNavigationAdapter, n as WorkspaceDestination } from "../../WorkspaceLink-C8HH2fMT.js";
2
+ import { a as WorkspaceFileState } from "../../WorkspaceFile-BJC6vlp_.js";
3
+ import "../../Workspace-B9nuTfIi.js";
4
+ import { a as WorkspaceDrop, i as WorkspaceDragSource, u as WorkspaceTransferOperation } from "../../WorkspaceFileTransfer-BRD22nW-.js";
5
+ import { AgentComputerApp } from "./AgentComputer.js";
6
+ import { i as WorkspaceFileCommands, s as WorkspaceVolume } from "../../WorkspaceFileCommands-1s9Ol8CG.js";
7
+ import { i as WorkspaceBrowserSort } from "../../WorkspaceBrowser-Dz48H-7X.js";
8
+ import * as React from "react";
9
+ import { ReactNode } from "react";
10
+ import { FileInfo } from "@cloudflare/shell";
11
+ //#region src/components/_internal/computer-files/files.d.ts
12
+ /** One sidebar location the host offers, such as Home or a mounted folder. */
13
+ interface ComputerFilesLocation {
14
+ id: string;
15
+ label: string;
16
+ path: string;
17
+ /** The row's symbol; a folder by default. */
18
+ icon?: React.ReactNode;
19
+ /** Nothing under `path` is trashed, renamed, dropped on or created. */
20
+ readOnly?: boolean;
21
+ }
22
+ /** One Get Info window's subject: a file or folder on a volume. */
23
+ interface InfoSubject {
24
+ volume: WorkspaceVolume;
25
+ path: string;
26
+ }
27
+ /**
28
+ * One computer's files: the design system's file commands over the home
29
+ * volume and its locations, Get Info as computer windows, and the status line
30
+ * every Finder window shows.
31
+ */
32
+ declare function useComputerFiles({ volume: home, locations, openFolder, openApp }: {
33
+ /** The agent's own workspace, which keeps the Trash. */
34
+ volume: WorkspaceVolume;
35
+ /** The sidebar's locations; a `readOnly` one keeps its contents as they are. */
36
+ locations: readonly ComputerFilesLocation[];
37
+ openFolder: (path: string) => void;
38
+ /** Opens a computer window. Without a computer, null: there is no Get Info. */
39
+ openApp: ((id: string) => void) | null;
40
+ }): {
41
+ locations: readonly ComputerFilesLocation[];
42
+ /** The Finder's status line: a transfer's progress, or what a Finder action did. */
43
+ status: string | null;
44
+ setStatus: React.Dispatch<React.SetStateAction<string | null>>;
45
+ /** Get Info's windows: computer apps, and the subjects they read. */
46
+ infoApps: AgentComputerApp[];
47
+ infoPanels: Readonly<Record<string, InfoSubject>>;
48
+ home: WorkspaceVolume;
49
+ commands: (volume: WorkspaceVolume, surface: "desktop" | "browser") => WorkspaceFileCommands;
50
+ drop: (volume: WorkspaceVolume, dropped: WorkspaceDrop, directory: string, requested: WorkspaceTransferOperation, label?: string) => Promise<string[]>;
51
+ undoLabel: string | null;
52
+ redoLabel: string | null;
53
+ undo: () => undefined;
54
+ redo: () => undefined;
55
+ trashFull: boolean;
56
+ emptyTrash: () => undefined;
57
+ openTrash: () => undefined;
58
+ trashDrop: ({ sourceKey, paths }: WorkspaceDragSource) => void;
59
+ transferring: boolean;
60
+ cancelTransfer: () => void;
61
+ dialogs: React.JSX.Element;
62
+ };
63
+ type ComputerFilesCommands = ReturnType<typeof useComputerFiles>;
64
+ //#endregion
65
+ //#region src/components/_internal/computer-files/finder.d.ts
66
+ /** A project the sidebar lists, by its PROJECT.md. */
67
+ interface ComputerFilesProject {
68
+ /** The project's PROJECT.md. */
69
+ path: string;
70
+ name: string;
71
+ /** The conversation the project last opened, while it still exists; null otherwise. */
72
+ conversationId: string | null;
73
+ }
74
+ /** How a Finder window shows one folder, as macOS keeps per folder. */
75
+ interface ComputerFolderView {
76
+ layout: "list" | "grid";
77
+ sort: WorkspaceBrowserSort;
78
+ }
79
+ /**
80
+ * Where the host keeps each folder's view. A folder never arranged opens as
81
+ * its nearest arranged ancestor does; the Finder walks the lineage, so `get`
82
+ * answers for `folder` alone, returning the same object until it changes.
83
+ */
84
+ interface ComputerFolderViews {
85
+ subscribe: (onChange: () => void) => () => void;
86
+ get: (folder: string) => ComputerFolderView | null;
87
+ set: (folder: string, view: ComputerFolderView) => void;
88
+ }
89
+ /** Everything the Files app reads from its host. */
90
+ interface ComputerFilesHost {
91
+ /** The computer's file commands, shared with its desktop: `ComputerFiles.useFiles`. */
92
+ files: ComputerFilesCommands;
93
+ /** The files last written, newest first: the Recents location. */
94
+ recent: (limit: number) => Promise<readonly FileInfo[]>;
95
+ /** Files matching `query`, best first: the toolbar search. */
96
+ search: (query: string, limit: number) => Promise<readonly FileInfo[]>;
97
+ /** The open file, as the host's address keeps it. */
98
+ navigation: WorkspaceNavigationAdapter & {
99
+ navigate: (destination: WorkspaceDestination) => void;
100
+ };
101
+ /** The folder showing, as the host's address keeps it. */
102
+ location: string;
103
+ onLocation: (path: string) => void;
104
+ /** Folder history; null where there is nowhere to go. */
105
+ onBack: (() => void) | null;
106
+ onForward: (() => void) | null;
107
+ /** A file's own artwork for its row, or null for the kind's icon. */
108
+ renderThumbnail: (entry: FileInfo) => ReactNode;
109
+ /**
110
+ * What Quick Look and the file window show for a file they cannot preview,
111
+ * such as a `WorkspaceDocumentFrame`; omit it, or return null, for the
112
+ * default message.
113
+ */
114
+ renderUnsupported?: (file: WorkspaceFileState) => ReactNode;
115
+ projects: readonly ComputerFilesProject[];
116
+ onOpenConversation: (id: string) => void;
117
+ /** Starts a conversation scoped to the project's PROJECT.md. */
118
+ onStartConversation: (projectPath: string, title: string) => void;
119
+ views: ComputerFolderViews;
120
+ }
121
+ //#endregion
122
+ //#region src/components/agents-sdk/ComputerFiles.d.ts
123
+ /** Supplies the Files app, its Get Info windows and its previews with the host's files. */
124
+ declare function Host({ value, children }: {
125
+ value: ComputerFilesHost;
126
+ children: React.ReactNode;
127
+ }): React.JSX.Element;
128
+ /** What a desktop icon opens into, as Quick Look shows it: a folder's contents, or the file. */
129
+ declare function Preview({ entry }: {
130
+ entry: FileInfo;
131
+ }): React.JSX.Element;
132
+ /**
133
+ * Finder for an agent's workspace, as an `AgentComputer` app. The host keeps
134
+ * one `useFiles` per computer — its clipboard, Undo and Trash are the
135
+ * desktop's too — and hands it, with the address and the queries the Finder
136
+ * reads, to `Host` above the computer. Get Info windows are `useFiles`'s
137
+ * `infoApps`, listed beside `app`.
138
+ *
139
+ * ```tsx
140
+ * const files = ComputerFiles.useFiles({ volume, locations, openFolder, openApp });
141
+ * <ComputerFiles.Host value={{ files, recent, search, ...address, ... }}>
142
+ * <AgentComputer apps={[ComputerFiles.app, ...files.infoApps]} … />
143
+ * </ComputerFiles.Host>
144
+ * ```
145
+ */
146
+ export declare const ComputerFiles: {
147
+ app: AgentComputerApp;
148
+ Host: typeof Host;
149
+ useFiles: typeof useComputerFiles;
150
+ Preview: typeof Preview;
151
+ };
152
+ //#endregion
153
+ export type { ComputerFilesCommands, ComputerFilesHost, ComputerFilesLocation, ComputerFilesProject, ComputerFolderView, ComputerFolderViews };