@mcp-b/react-components 0.69.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 (100) 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/Context-CYUxZrwW.js +918 -0
  10. package/dist/{ExecutionResult-C7SzVquo.js → ExecutionResult-CXnGcmM4.js} +1 -1
  11. package/dist/{WorkspaceBrowser-ojoZy0uO.js → WorkspaceBrowser-mRScUczT.js} +5 -5
  12. package/dist/WorkspaceFileTransfer-D2cOoVyO.js +1625 -0
  13. package/dist/{WorkspaceMessageResponse-BoeeltJM.js → WorkspaceMessageResponse-CXGOQgpo.js} +1 -1
  14. package/dist/components/agents-sdk/AgentComputer.d.ts +2 -276
  15. package/dist/components/agents-sdk/AgentComputer.js +1 -1
  16. package/dist/components/agents-sdk/BrowserReplay.js +1 -1
  17. package/dist/components/agents-sdk/ComputerAutomations.d.ts +5 -15
  18. package/dist/components/agents-sdk/ComputerAutomations.js +164 -145
  19. package/dist/components/agents-sdk/ComputerCalendar.d.ts +1 -1
  20. package/dist/components/agents-sdk/ComputerCalendar.js +1 -1344
  21. package/dist/components/agents-sdk/ComputerCustomWallpaper.d.ts +2 -39
  22. package/dist/components/agents-sdk/ComputerCustomWallpaper.js +2 -522
  23. package/dist/components/agents-sdk/ComputerFiles.d.ts +18 -81
  24. package/dist/components/agents-sdk/ComputerFiles.js +365 -89
  25. package/dist/components/agents-sdk/ComputerHome.d.ts +6 -11
  26. package/dist/components/agents-sdk/ComputerHome.js +1 -89
  27. package/dist/components/agents-sdk/ComputerHost.d.ts +43 -0
  28. package/dist/components/agents-sdk/ComputerHost.js +97 -0
  29. package/dist/components/agents-sdk/ComputerLayout.d.ts +1 -1
  30. package/dist/components/agents-sdk/ComputerNotifications.d.ts +2 -54
  31. package/dist/components/agents-sdk/ComputerNotifications.js +1 -668
  32. package/dist/components/agents-sdk/ComputerPresentation.d.ts +2 -0
  33. package/dist/components/agents-sdk/ComputerPresentation.js +2 -0
  34. package/dist/components/agents-sdk/ComputerScreen.d.ts +14 -14
  35. package/dist/components/agents-sdk/ComputerScreen.js +109 -50
  36. package/dist/components/agents-sdk/ComputerSettings.d.ts +12 -40
  37. package/dist/components/agents-sdk/ComputerSettings.js +249 -1038
  38. package/dist/components/agents-sdk/ComputerSpotlight.d.ts +13 -15
  39. package/dist/components/agents-sdk/ComputerSpotlight.js +1 -231
  40. package/dist/components/agents-sdk/ComputerViewer.d.ts +13 -17
  41. package/dist/components/agents-sdk/ComputerViewer.js +176 -187
  42. package/dist/components/agents-sdk/ComputerWallpapers.d.ts +1 -1
  43. package/dist/components/agents-sdk/EmployeeChat.js +2 -2
  44. package/dist/components/agents-sdk/EmployeeChrome.js +3 -3
  45. package/dist/components/agents-sdk/EmployeeSchedules.js +2 -2
  46. package/dist/components/agents-sdk/ExecutionBoard.js +1 -1
  47. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  48. package/dist/components/agents-sdk/ManagerOfficeScreens.js +2 -2
  49. package/dist/components/agents-sdk/McpPluginCatalog.js +1 -1
  50. package/dist/components/agents-sdk/ThinkChat.js +1 -1
  51. package/dist/components/agents-sdk/ThinkChatToolPanels.js +3 -3
  52. package/dist/components/agents-sdk/ThinkExecutionDetail.js +1 -1
  53. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +2 -2
  54. package/dist/components/agents-sdk/ThinkScheduleActions.js +1 -1
  55. package/dist/components/agents-sdk/ThinkScheduleBrowser.js +1 -1
  56. package/dist/components/agents-sdk/ThinkScheduleDetail.js +4 -4
  57. package/dist/components/agents-sdk/ThinkScheduleForm.js +3 -3
  58. package/dist/components/agents-sdk/WorkspaceAutomation.js +3 -3
  59. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1 -1
  60. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  61. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +1 -5
  62. package/dist/components/agents-sdk/WorkspaceDesktop.js +53 -41
  63. package/dist/components/agents-sdk/WorkspaceExplorer.js +3 -3
  64. package/dist/components/agents-sdk/WorkspaceFileCommands.js +1 -924
  65. package/dist/components/agents-sdk/WorkspaceFileDetails.js +1 -1
  66. package/dist/components/agents-sdk/WorkspaceFileTransfer.js +1 -504
  67. package/dist/components/agents-sdk/WorkspaceFileView.js +6 -6
  68. package/dist/components/agents-sdk/WorkspaceLink.js +1 -1
  69. package/dist/components/agents-sdk/WorkspaceLive.d.ts +9 -0
  70. package/dist/components/agents-sdk/WorkspaceLive.js +2 -177
  71. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  72. package/dist/components/agents-sdk/WorkspaceMountManager.js +1 -1
  73. package/dist/components/ai-sdk/Context.js +1 -842
  74. package/dist/components/ai-sdk/Plan.d.ts +33 -9
  75. package/dist/components/ai-sdk/Plan.js +336 -107
  76. package/dist/components/ai-sdk/PromptInput.js +1 -1
  77. package/dist/components/extension/FirstRunSetup.js +2 -2
  78. package/dist/components/foundations/ThemeProvider.d.ts +2 -0
  79. package/dist/components/foundations/ThemeProvider.js +2 -1
  80. package/dist/components/general-purpose/CommandPalette.d.ts +2 -52
  81. package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
  82. package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -2
  83. package/dist/components/nanites/AgentConnection.js +1 -1
  84. package/dist/components/nanites/AgentToolDetail.js +1 -1
  85. package/dist/context-BWJpR084.js +94 -0
  86. package/dist/{parts-CPVz9l31.js → parts-DuT5-rDz.js} +1 -1
  87. package/dist/styles/agent-computer.css +16 -0
  88. package/dist/styles/computer-files.css +5 -0
  89. package/dist/styles/computer-notifications.css +1 -0
  90. package/dist/styles/plan.css +160 -23
  91. package/dist/{workspace-drag-B6hMXUNt.js → workspace-drag-BNhZIN8F.js} +1 -1
  92. package/dist/{workspace-quick-look-DODjsfhH.js → workspace-quick-look-8cbGu1Xf.js} +2 -2
  93. package/package.json +2 -2
  94. package/dist/WallpaperPicker-C-FItmDS.d.ts +0 -34
  95. package/dist/automations-host-DPORjdc7.js +0 -17
  96. package/dist/context-Ddsp8HgD.js +0 -43
  97. package/dist/minute-clock-CXpRGCMF.js +0 -35
  98. package/dist/progress-ring-BO649JA9.js +0 -79
  99. package/dist/{ManagerOffice-kSK7vTBl.js → ManagerOffice-BJ2vs-Lr.js} +2 -2
  100. package/dist/{WorkspaceLink-DK9kdMUH.js → WorkspaceLink-DDkj-Tq5.js} +1 -1
@@ -1,177 +1,2 @@
1
- import { a as workspaceDirname } from "../../workspace-path-TZggP-u4.js";
2
- import { refreshWorkspaceFileQueries, workspaceFileQueryKey } from "./Workspace.js";
3
- import "./WorkspaceFileCommands.js";
4
- import { invalidateWorkspaceConceptQueries, workspacePathsOverlap } from "./WorkspaceConcept.js";
5
- import { c } from "react/compiler-runtime";
6
- import * as React from "react";
7
- import { useQueryClient } from "@tanstack/react-query";
8
- //#region src/components/agents-sdk/WorkspaceLive.ts
9
- const DEFAULT_DEBOUNCE_MS = 200;
10
- /**
11
- * Listings the host's root does not own: a Finder folder, Recents and a
12
- * search each read under a root of their own (a dot root for the queries), so
13
- * a change refreshes the source's info (the volume's and each Get Info
14
- * file's), the listings of the changed folders, every query root's listings
15
- * since any change can move them, and whether the Trash is full when the
16
- * Trash changed. Without `directories`, every listing of the source and the
17
- * Trash refresh.
18
- */
19
- function invalidateEveryRoot(queryClient, sourceKey, directories) {
20
- return queryClient.invalidateQueries({
21
- queryKey: ["workspace", sourceKey],
22
- predicate: ({ queryKey: [, , root, segment, path] }) => root === "info" || root === "trash" && (!directories || directories.has("/.Trash")) || segment === "directory" && (!directories || typeof root === "string" && root.startsWith("/.") || typeof path === "string" && directories.has(path))
23
- });
24
- }
25
- async function invalidateWorkspaceResources(queryClient, sourceKey, root, source, selectedPath, resolveFileAsset, maxInlineAssetBytes, paths) {
26
- if (!source || !selectedPath || paths && !paths.some((path) => workspacePathsOverlap(selectedPath, path))) return;
27
- await queryClient.cancelQueries({ queryKey: workspaceFileQueryKey(sourceKey, root, selectedPath) });
28
- await refreshWorkspaceFileQueries(queryClient, {
29
- source,
30
- sourceKey,
31
- root,
32
- selectedPath,
33
- resolveFileAsset,
34
- maxInlineAssetBytes
35
- }).catch(() => {});
36
- }
37
- /**
38
- * Synchronize external workspace freshness with the design system's Query
39
- * resources. This is the one external-system effect: native observer events
40
- * and host revision ticks both land here as targeted invalidation against
41
- * stable query keys. Hosts only supply events; neither layer adds another
42
- * watcher.
43
- */
44
- function useWorkspaceLiveQueries(t0) {
45
- const $ = c(32);
46
- const { changes, maxInlineAssetBytes, resolveFileAsset, selectedPath, source, sourceKey, root, revision } = t0;
47
- const queryClient = useQueryClient();
48
- let t1;
49
- if ($[0] !== maxInlineAssetBytes || $[1] !== queryClient || $[2] !== resolveFileAsset || $[3] !== root || $[4] !== selectedPath || $[5] !== source || $[6] !== sourceKey) {
50
- t1 = (paths) => {
51
- if (!sourceKey) return;
52
- invalidateWorkspaceResources(queryClient, sourceKey, root, source, selectedPath, resolveFileAsset, maxInlineAssetBytes, paths);
53
- };
54
- $[0] = maxInlineAssetBytes;
55
- $[1] = queryClient;
56
- $[2] = resolveFileAsset;
57
- $[3] = root;
58
- $[4] = selectedPath;
59
- $[5] = source;
60
- $[6] = sourceKey;
61
- $[7] = t1;
62
- } else t1 = $[7];
63
- const refreshResources = React.useEffectEvent(t1);
64
- const previousRevisionRef = React.useRef(void 0);
65
- let t2;
66
- if ($[8] !== changes || $[9] !== queryClient || $[10] !== refreshResources || $[11] !== revision || $[12] !== root || $[13] !== sourceKey) {
67
- t2 = () => {
68
- if (!sourceKey || revision === void 0) return;
69
- const previous = previousRevisionRef.current;
70
- previousRevisionRef.current = {
71
- sourceKey,
72
- root,
73
- revision
74
- };
75
- if (previous?.sourceKey === sourceKey && previous.root === root && previous.revision === revision) return;
76
- if (changes?.live?.()) return;
77
- invalidateEveryRoot(queryClient, sourceKey);
78
- invalidateWorkspaceConceptQueries(queryClient, sourceKey, root);
79
- refreshResources();
80
- };
81
- $[8] = changes;
82
- $[9] = queryClient;
83
- $[10] = refreshResources;
84
- $[11] = revision;
85
- $[12] = root;
86
- $[13] = sourceKey;
87
- $[14] = t2;
88
- } else t2 = $[14];
89
- let t3;
90
- if ($[15] !== changes || $[16] !== queryClient || $[17] !== revision || $[18] !== root || $[19] !== sourceKey) {
91
- t3 = [
92
- changes,
93
- queryClient,
94
- revision,
95
- root,
96
- sourceKey
97
- ];
98
- $[15] = changes;
99
- $[16] = queryClient;
100
- $[17] = revision;
101
- $[18] = root;
102
- $[19] = sourceKey;
103
- $[20] = t3;
104
- } else t3 = $[20];
105
- React.useEffect(t2, t3);
106
- let t4;
107
- if ($[21] !== changes || $[22] !== queryClient || $[23] !== refreshResources || $[24] !== root || $[25] !== sourceKey) {
108
- t4 = () => {
109
- if (!changes || !sourceKey) return;
110
- Promise.resolve().then(() => changes.start?.()).catch(_temp);
111
- const pendingDirectories = /* @__PURE__ */ new Set();
112
- const pendingPaths = /* @__PURE__ */ new Set();
113
- let refreshAll = false;
114
- let timer;
115
- const flush = () => {
116
- timer = void 0;
117
- if (refreshAll) {
118
- refreshAll = false;
119
- pendingDirectories.clear();
120
- pendingPaths.clear();
121
- invalidateEveryRoot(queryClient, sourceKey);
122
- invalidateWorkspaceConceptQueries(queryClient, sourceKey, root);
123
- refreshResources();
124
- return;
125
- }
126
- invalidateEveryRoot(queryClient, sourceKey, new Set(pendingDirectories));
127
- const paths_0 = [...pendingPaths];
128
- pendingDirectories.clear();
129
- pendingPaths.clear();
130
- invalidateWorkspaceConceptQueries(queryClient, sourceKey, root, paths_0);
131
- refreshResources(paths_0);
132
- };
133
- const unsubscribe = changes.subscribe((change) => {
134
- if (change.type === "unknown") refreshAll = true;
135
- else {
136
- pendingDirectories.add(workspaceDirname(change.path));
137
- pendingPaths.add(change.path);
138
- if (change.movedFrom) {
139
- pendingDirectories.add(workspaceDirname(change.movedFrom));
140
- pendingPaths.add(change.movedFrom);
141
- }
142
- }
143
- if (timer === void 0) timer = setTimeout(flush, DEFAULT_DEBOUNCE_MS);
144
- });
145
- return () => {
146
- unsubscribe();
147
- if (timer !== void 0) clearTimeout(timer);
148
- };
149
- };
150
- $[21] = changes;
151
- $[22] = queryClient;
152
- $[23] = refreshResources;
153
- $[24] = root;
154
- $[25] = sourceKey;
155
- $[26] = t4;
156
- } else t4 = $[26];
157
- let t5;
158
- if ($[27] !== changes || $[28] !== queryClient || $[29] !== root || $[30] !== sourceKey) {
159
- t5 = [
160
- changes,
161
- queryClient,
162
- root,
163
- sourceKey
164
- ];
165
- $[27] = changes;
166
- $[28] = queryClient;
167
- $[29] = root;
168
- $[30] = sourceKey;
169
- $[31] = t5;
170
- } else t5 = $[31];
171
- React.useEffect(t4, t5);
172
- }
173
- function _temp(error) {
174
- console.error("The workspace change source failed to start.", error);
175
- }
176
- //#endregion
177
- export { useWorkspaceLiveQueries };
1
+ import { c as invalidateWorkspacePaths, l as useWorkspaceLiveQueries } from "../../WorkspaceFileTransfer-D2cOoVyO.js";
2
+ export { invalidateWorkspacePaths, useWorkspaceLiveQueries };
@@ -1,2 +1,2 @@
1
- import { n as WorkspaceMessageResponse, t as WorkspaceFileRendererProvider } from "../../WorkspaceMessageResponse-BoeeltJM.js";
1
+ import { n as WorkspaceMessageResponse, t as WorkspaceFileRendererProvider } from "../../WorkspaceMessageResponse-CXGOQgpo.js";
2
2
  export { WorkspaceFileRendererProvider, WorkspaceMessageResponse };
@@ -1,7 +1,7 @@
1
1
  import { Button } from "../foundations/Button.js";
2
+ import { Popover } from "../foundations/Popover.js";
2
3
  import { EmptyState } from "../foundations/EmptyState.js";
3
4
  import { Card, CardFooter, CardHeader, CardTitle } from "../foundations/Card.js";
4
- import { Popover } from "../foundations/Popover.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/WorkspaceMountManager.tsx