@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,8 +1,9 @@
1
1
  import { r as useWorkspaceDragAndDrop } from "../../workspace-drag-B6hMXUNt.js";
2
2
  import { i as PortalContext } from "../../context-Ddsp8HgD.js";
3
+ import { a as hasModifier, i as fileGridOption, n as FileGrid } from "../../ComputerFileThumbnail-CXHy127c.js";
3
4
  import { describeWorkspaceFile } from "./WorkspaceFile.js";
4
- import { a as fileGridOption, i as FileGrid, n as useWorkspaceSelection, o as hasModifier, r as WorkspaceFileTile, t as WorkspaceQuickLook } from "../../workspace-quick-look-9V-UFpjj.js";
5
5
  import { ContextMenu } from "../foundations/ContextMenu.js";
6
+ import { i as WorkspaceThumbnailContext, n as useWorkspaceSelection, r as WorkspaceFileTile, t as WorkspaceQuickLook } from "../../workspace-quick-look-DODjsfhH.js";
6
7
  import { isHiddenWorkspaceEntry } from "./WorkspaceFileCommands.js";
7
8
  import { c } from "react/compiler-runtime";
8
9
  import * as React from "react";
@@ -19,8 +20,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
19
20
  * object or on the desktop. Dialog owns dismissal and focus containment.
20
21
  */
21
22
  function WorkspaceDesktop(t0) {
22
- const $ = c(35);
23
- const { entries: listed, directory: t1, onOpen, renderPreview, renderThumbnail, previewFallbackFocus, dragAndDrop, commands, backgroundMenu } = t0;
23
+ const $ = c(42);
24
+ const { entries: listed, directory: t1, onOpen, renderPreview, previewFallbackFocus, dragAndDrop, commands, backgroundMenu } = t0;
24
25
  const directory = t1 === void 0 ? "/" : t1;
25
26
  const entries = listed.filter(_temp);
26
27
  const { dragSource, dropTarget } = useWorkspaceDragAndDrop(dragAndDrop);
@@ -28,6 +29,19 @@ function WorkspaceDesktop(t0) {
28
29
  const listbox = React.useRef(null);
29
30
  const helpId = React.useId();
30
31
  const portalContainer = React.use(PortalContext);
32
+ const thumbnailSource = dragAndDrop?.source;
33
+ const thumbnailKey = dragAndDrop?.sourceKey;
34
+ let t2;
35
+ if ($[0] !== thumbnailKey || $[1] !== thumbnailSource) {
36
+ t2 = thumbnailSource && thumbnailKey !== void 0 ? {
37
+ source: thumbnailSource,
38
+ sourceKey: thumbnailKey
39
+ } : null;
40
+ $[0] = thumbnailKey;
41
+ $[1] = thumbnailSource;
42
+ $[2] = t2;
43
+ } else t2 = $[2];
44
+ const thumbnails = t2;
31
45
  const openPath = (path) => {
32
46
  const entry_0 = entries.find((candidate) => candidate.path === path);
33
47
  if (entry_0) onOpen(entry_0);
@@ -41,50 +55,51 @@ function WorkspaceDesktop(t0) {
41
55
  open: openPath,
42
56
  quickLook: true
43
57
  });
44
- let t2;
45
- if ($[0] !== view.selected) {
46
- t2 = view.selected.at(-1);
47
- $[0] = view.selected;
48
- $[1] = t2;
49
- } else t2 = $[1];
50
- const selectedPath = t2;
51
- const focusablePath = entries.find((entry_2) => entry_2.path === selectedPath)?.path ?? entries[0]?.path;
52
58
  let t3;
53
- if ($[2] !== directory || $[3] !== dragAndDrop || $[4] !== dropTarget) {
54
- t3 = dragAndDrop ? dropTarget(directory) : {};
55
- $[2] = directory;
56
- $[3] = dragAndDrop;
57
- $[4] = dropTarget;
58
- $[5] = t3;
59
- } else t3 = $[5];
59
+ if ($[3] !== view.selected) {
60
+ t3 = view.selected.at(-1);
61
+ $[3] = view.selected;
62
+ $[4] = t3;
63
+ } else t3 = $[4];
64
+ const selectedPath = t3;
65
+ const focusablePath = entries.find((entry_2) => entry_2.path === selectedPath)?.path ?? entries[0]?.path;
60
66
  let t4;
61
- if ($[6] !== view.surfaceProps) {
62
- t4 = (event) => {
67
+ if ($[5] !== directory || $[6] !== dragAndDrop || $[7] !== dropTarget) {
68
+ t4 = dragAndDrop ? dropTarget(directory) : {};
69
+ $[5] = directory;
70
+ $[6] = dragAndDrop;
71
+ $[7] = dropTarget;
72
+ $[8] = t4;
73
+ } else t4 = $[8];
74
+ let t5;
75
+ if ($[9] !== view.surfaceProps) {
76
+ t5 = (event) => {
63
77
  view.surfaceProps.onPointerDown(event);
64
78
  const target = event.target;
65
79
  if ((event.button === 0 || event.button === 2) && target instanceof Element && !target.closest("[role=\"option\"], input")) listbox.current?.focus({ preventScroll: true });
66
80
  };
67
- $[6] = view.surfaceProps;
68
- $[7] = t4;
69
- } else t4 = $[7];
70
- let t5;
71
- if ($[8] !== helpId) {
72
- t5 = /* @__PURE__ */ jsx("p", {
81
+ $[9] = view.surfaceProps;
82
+ $[10] = t5;
83
+ } else t5 = $[10];
84
+ let t6;
85
+ if ($[11] !== helpId) {
86
+ t6 = /* @__PURE__ */ jsx("p", {
73
87
  id: helpId,
74
88
  className: "sigvelo-visually-hidden",
75
89
  children: "Arrow keys to move. Space to preview. Double-click or Command-Down Arrow to open. Return to rename. Escape to clear selection."
76
90
  });
77
- $[8] = helpId;
78
- $[9] = t5;
79
- } else t5 = $[9];
80
- const T0 = FileGrid;
81
- const t6 = "workspace-desktop__files";
82
- const t7 = entries.length ? -1 : 0;
83
- const t8 = "Desktop files";
84
- const t9 = true;
85
- let t10;
86
- if ($[10] !== selectedPath || $[11] !== view) {
87
- t10 = (event_0) => {
91
+ $[11] = helpId;
92
+ $[12] = t6;
93
+ } else t6 = $[12];
94
+ const T0 = WorkspaceThumbnailContext;
95
+ const T1 = FileGrid;
96
+ const t7 = "workspace-desktop__files";
97
+ const t8 = entries.length ? -1 : 0;
98
+ const t9 = "Desktop files";
99
+ const t10 = true;
100
+ let t11;
101
+ if ($[13] !== selectedPath || $[14] !== view) {
102
+ t11 = (event_0) => {
88
103
  if (event_0.target === event_0.currentTarget && (event_0.key === "ContextMenu" || event_0.key === "F10" && event_0.shiftKey)) {
89
104
  event_0.preventDefault();
90
105
  const rect = event_0.currentTarget.getBoundingClientRect();
@@ -104,11 +119,11 @@ function WorkspaceDesktop(t0) {
104
119
  event_0.currentTarget.focus({ preventScroll: true });
105
120
  }
106
121
  };
107
- $[10] = selectedPath;
108
- $[11] = view;
109
- $[12] = t10;
110
- } else t10 = $[12];
111
- const t11 = entries.map((entry_3) => {
122
+ $[13] = selectedPath;
123
+ $[14] = view;
124
+ $[15] = t11;
125
+ } else t11 = $[15];
126
+ const t12 = entries.map((entry_3) => {
112
127
  const isSelected = view.isSelected(entry_3.path);
113
128
  const option = view.optionProps(entry_3.path, (event_1, paths) => dragSource(paths).onPointerDown?.(event_1));
114
129
  return /* @__PURE__ */ jsx(WorkspaceFileTile, {
@@ -118,7 +133,6 @@ function WorkspaceDesktop(t0) {
118
133
  artwork: "workspace-desktop__thumbnail",
119
134
  name: "workspace-desktop__filename"
120
135
  },
121
- renderThumbnail,
122
136
  renaming: view.renaming === entry_3.path,
123
137
  option: /* @__PURE__ */ jsx("button", {
124
138
  type: "button",
@@ -147,28 +161,39 @@ function WorkspaceDesktop(t0) {
147
161
  renameField: view.renameField(entry_3.path, entry_3.name, entry_3.type === "directory")
148
162
  }, entry_3.path);
149
163
  });
150
- let t12;
151
- if ($[13] !== T0 || $[14] !== helpId || $[15] !== t10 || $[16] !== t11 || $[17] !== t7) {
152
- t12 = /* @__PURE__ */ jsx(T0, {
164
+ let t13;
165
+ if ($[16] !== T1 || $[17] !== helpId || $[18] !== t11 || $[19] !== t12 || $[20] !== t8) {
166
+ t13 = /* @__PURE__ */ jsx(T1, {
153
167
  ref: listbox,
154
- className: t6,
155
- tabIndex: t7,
156
- "aria-label": t8,
168
+ className: t7,
169
+ tabIndex: t8,
170
+ "aria-label": t9,
157
171
  "aria-describedby": helpId,
158
- "aria-multiselectable": t9,
159
- onKeyDown: t10,
160
- children: t11
172
+ "aria-multiselectable": t10,
173
+ onKeyDown: t11,
174
+ children: t12
161
175
  });
162
- $[13] = T0;
163
- $[14] = helpId;
164
- $[15] = t10;
165
- $[16] = t11;
166
- $[17] = t7;
167
- $[18] = t12;
168
- } else t12 = $[18];
169
- let t13;
170
- if ($[19] !== entries || $[20] !== onOpen || $[21] !== previewFallbackFocus || $[22] !== renderPreview || $[23] !== root || $[24] !== view.quickLook) {
171
- t13 = /* @__PURE__ */ jsx(WorkspaceQuickLook, {
176
+ $[16] = T1;
177
+ $[17] = helpId;
178
+ $[18] = t11;
179
+ $[19] = t12;
180
+ $[20] = t8;
181
+ $[21] = t13;
182
+ } else t13 = $[21];
183
+ let t14;
184
+ if ($[22] !== T0 || $[23] !== t13 || $[24] !== thumbnails) {
185
+ t14 = /* @__PURE__ */ jsx(T0, {
186
+ value: thumbnails,
187
+ children: t13
188
+ });
189
+ $[22] = T0;
190
+ $[23] = t13;
191
+ $[24] = thumbnails;
192
+ $[25] = t14;
193
+ } else t14 = $[25];
194
+ let t15;
195
+ if ($[26] !== entries || $[27] !== onOpen || $[28] !== previewFallbackFocus || $[29] !== renderPreview || $[30] !== root || $[31] !== view.quickLook) {
196
+ t15 = /* @__PURE__ */ jsx(WorkspaceQuickLook, {
172
197
  quickLook: view.quickLook,
173
198
  entries,
174
199
  renderPreview,
@@ -177,58 +202,58 @@ function WorkspaceDesktop(t0) {
177
202
  surface: root,
178
203
  fallbackFocus: previewFallbackFocus
179
204
  });
180
- $[19] = entries;
181
- $[20] = onOpen;
182
- $[21] = previewFallbackFocus;
183
- $[22] = renderPreview;
184
- $[23] = root;
185
- $[24] = view.quickLook;
186
- $[25] = t13;
187
- } else t13 = $[25];
188
- const t14 = view.menuFinalFocus;
189
- let t15;
190
- if ($[26] !== backgroundMenu || $[27] !== view) {
191
- t15 = view.menuItems(null, backgroundMenu);
192
- $[26] = backgroundMenu;
193
- $[27] = view;
194
- $[28] = t15;
195
- } else t15 = $[28];
196
- let t16;
197
- if ($[29] !== t15 || $[30] !== view.menuFinalFocus) {
198
- t16 = /* @__PURE__ */ jsx(ContextMenu.Positioner, { children: /* @__PURE__ */ jsx(ContextMenu.Popup, {
199
- finalFocus: t14,
200
- children: t15
201
- }) });
202
- $[29] = t15;
203
- $[30] = view.menuFinalFocus;
204
- $[31] = t16;
205
- } else t16 = $[31];
205
+ $[26] = entries;
206
+ $[27] = onOpen;
207
+ $[28] = previewFallbackFocus;
208
+ $[29] = renderPreview;
209
+ $[30] = root;
210
+ $[31] = view.quickLook;
211
+ $[32] = t15;
212
+ } else t15 = $[32];
213
+ const t16 = view.menuFinalFocus;
206
214
  let t17;
207
- if ($[32] !== portalContainer || $[33] !== t16) {
208
- t17 = /* @__PURE__ */ jsx(ContextMenu.Portal, {
215
+ if ($[33] !== backgroundMenu || $[34] !== view) {
216
+ t17 = view.menuItems(null, backgroundMenu);
217
+ $[33] = backgroundMenu;
218
+ $[34] = view;
219
+ $[35] = t17;
220
+ } else t17 = $[35];
221
+ let t18;
222
+ if ($[36] !== t17 || $[37] !== view.menuFinalFocus) {
223
+ t18 = /* @__PURE__ */ jsx(ContextMenu.Positioner, { children: /* @__PURE__ */ jsx(ContextMenu.Popup, {
224
+ finalFocus: t16,
225
+ children: t17
226
+ }) });
227
+ $[36] = t17;
228
+ $[37] = view.menuFinalFocus;
229
+ $[38] = t18;
230
+ } else t18 = $[38];
231
+ let t19;
232
+ if ($[39] !== portalContainer || $[40] !== t18) {
233
+ t19 = /* @__PURE__ */ jsx(ContextMenu.Portal, {
209
234
  container: portalContainer,
210
- children: t16
235
+ children: t18
211
236
  });
212
- $[32] = portalContainer;
213
- $[33] = t16;
214
- $[34] = t17;
215
- } else t17 = $[34];
237
+ $[39] = portalContainer;
238
+ $[40] = t18;
239
+ $[41] = t19;
240
+ } else t19 = $[41];
216
241
  return /* @__PURE__ */ jsxs(ContextMenu.Root, { children: [/* @__PURE__ */ jsxs(ContextMenu.Trigger, {
217
242
  render: /* @__PURE__ */ jsx("div", {
218
- ...t3,
243
+ ...t4,
219
244
  ...view.surfaceProps,
220
245
  ref: root,
221
246
  className: "workspace-desktop",
222
- onPointerDown: t4
247
+ onPointerDown: t5
223
248
  }),
224
249
  children: [
225
- t5,
226
- t12,
250
+ t6,
251
+ t14,
227
252
  view.marqueeElement,
228
253
  view.statusElement,
229
- t13
254
+ t15
230
255
  ]
231
- }), t17] });
256
+ }), t19] });
232
257
  }
233
258
  function _temp2(entry_1) {
234
259
  return entry_1.path;
@@ -1,10 +1,9 @@
1
1
  import { l as WorkspaceNavigationAdapter } from "../../WorkspaceLink-C8HH2fMT.js";
2
- import { b as WorkspaceState } from "../../Workspace-B9nuTfIi.js";
3
- import { r as WorkspaceBrowserProps } from "../../WorkspaceBrowser-Dz48H-7X.js";
2
+ import { b as WorkspaceState } from "../../Workspace-mZddFyvP.js";
3
+ import { r as WorkspaceBrowserProps } from "../../WorkspaceBrowser-CNVAKXXZ.js";
4
4
  import { r as WorkspaceMountManagerProps } from "../../WorkspaceMountManager-DM384Cn6.js";
5
5
  import { WorkspaceFileViewProps } from "./WorkspaceFileView.js";
6
6
  import * as React from "react";
7
- import { FileInfo } from "@cloudflare/shell";
8
7
  //#region src/components/agents-sdk/WorkspaceExplorer.d.ts
9
8
  export interface WorkspaceExplorerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
10
9
  /** Workspace state that owns the file tree, selection, loading, and refresh behavior. */
@@ -69,13 +68,6 @@ export interface WorkspaceExplorerProps extends Omit<React.HTMLAttributes<HTMLDi
69
68
  * keyboard's ArrowRight to unfold in place.
70
69
  */
71
70
  onDirectoryOpen?: (path: string) => void;
72
- /**
73
- * An entry's leading mark, when the host can draw the file or folder itself: Finder
74
- * and Files both show an image's own thumbnail in the row's icon slot in
75
- * place of the generic page. Returning nothing for an entry leaves it the
76
- * default icon.
77
- */
78
- renderThumbnail?: (entry: FileInfo) => React.ReactNode;
79
71
  /** Content shown when the workspace contains no visible files. */
80
72
  emptyState?: React.ReactNode;
81
73
  }
@@ -6,7 +6,7 @@ import { n as WorkspaceNavigationProvider, r as resolveWorkspaceLink } from "../
6
6
  import { WorkspaceNavigationRestorationBoundary, useRequiredWorkspaceNavigationRestoration } from "./WorkspaceNavigationRestoration.js";
7
7
  import { AppTopBar } from "../general-purpose/AppTopBar.js";
8
8
  import { WorkspaceMountManager } from "./WorkspaceMountManager.js";
9
- import { t as WorkspaceBrowser } from "../../WorkspaceBrowser-oBJv-Dac.js";
9
+ import { t as WorkspaceBrowser } from "../../WorkspaceBrowser-ojoZy0uO.js";
10
10
  import { WorkspaceFileView } from "./WorkspaceFileView.js";
11
11
  import { c } from "react/compiler-runtime";
12
12
  import * as React from "react";
@@ -60,7 +60,7 @@ function WorkspaceExplorer(t0) {
60
60
  return t1;
61
61
  }
62
62
  function WorkspaceExplorerContent(t0) {
63
- const $ = c(62);
63
+ const $ = c(61);
64
64
  let actions;
65
65
  let actionsRef;
66
66
  let className;
@@ -79,7 +79,6 @@ function WorkspaceExplorerContent(t0) {
79
79
  let props;
80
80
  let ref;
81
81
  let renderPreview;
82
- let renderThumbnail;
83
82
  let renderUnsupported;
84
83
  let sort;
85
84
  let t1;
@@ -89,7 +88,7 @@ function WorkspaceExplorerContent(t0) {
89
88
  let view;
90
89
  let workspace;
91
90
  if ($[0] !== t0) {
92
- ({workspace, preview, renderUnsupported, navigation, className, header: t1, title: t2, leading, actions, mounts, showFilter: t3, filterPlaceholder: t4, filter, onFilterChange, view, onViewChange, onDirectoryOpen, renderThumbnail, layout, sort, emptyState, dragAndDrop, commands, renderPreview, actionsRef, ref, ...props} = t0);
91
+ ({workspace, preview, renderUnsupported, navigation, className, header: t1, title: t2, leading, actions, mounts, showFilter: t3, filterPlaceholder: t4, filter, onFilterChange, view, onViewChange, onDirectoryOpen, layout, sort, emptyState, dragAndDrop, commands, renderPreview, actionsRef, ref, ...props} = t0);
93
92
  $[0] = t0;
94
93
  $[1] = actions;
95
94
  $[2] = actionsRef;
@@ -109,15 +108,14 @@ function WorkspaceExplorerContent(t0) {
109
108
  $[16] = props;
110
109
  $[17] = ref;
111
110
  $[18] = renderPreview;
112
- $[19] = renderThumbnail;
113
- $[20] = renderUnsupported;
114
- $[21] = sort;
115
- $[22] = t1;
116
- $[23] = t2;
117
- $[24] = t3;
118
- $[25] = t4;
119
- $[26] = view;
120
- $[27] = workspace;
111
+ $[19] = renderUnsupported;
112
+ $[20] = sort;
113
+ $[21] = t1;
114
+ $[22] = t2;
115
+ $[23] = t3;
116
+ $[24] = t4;
117
+ $[25] = view;
118
+ $[26] = workspace;
121
119
  } else {
122
120
  actions = $[1];
123
121
  actionsRef = $[2];
@@ -137,15 +135,14 @@ function WorkspaceExplorerContent(t0) {
137
135
  props = $[16];
138
136
  ref = $[17];
139
137
  renderPreview = $[18];
140
- renderThumbnail = $[19];
141
- renderUnsupported = $[20];
142
- sort = $[21];
143
- t1 = $[22];
144
- t2 = $[23];
145
- t3 = $[24];
146
- t4 = $[25];
147
- view = $[26];
148
- workspace = $[27];
138
+ renderUnsupported = $[19];
139
+ sort = $[20];
140
+ t1 = $[21];
141
+ t2 = $[22];
142
+ t3 = $[23];
143
+ t4 = $[24];
144
+ view = $[25];
145
+ workspace = $[26];
149
146
  }
150
147
  const header = t1 === void 0 ? "bar" : t1;
151
148
  const title = t2 === void 0 ? "Workspace" : t2;
@@ -159,7 +156,7 @@ function WorkspaceExplorerContent(t0) {
159
156
  const { entriesByDirectory, expandedPaths, selectedPath, selectedFile, isLoading, loadingPaths, refresh, setExpandedPaths } = workspace;
160
157
  const fileDestination = getValidatedFileDestination(currentEntry.destination, workspace.root);
161
158
  let t5;
162
- if ($[28] !== currentEntry.destination || $[29] !== currentEntry.key || $[30] !== restoration) {
159
+ if ($[27] !== currentEntry.destination || $[28] !== currentEntry.key || $[29] !== restoration) {
163
160
  t5 = () => {
164
161
  const previous = previousDestinationRef.current;
165
162
  if (currentEntry.destination.kind === "files" && previous.kind === "file") {
@@ -171,21 +168,21 @@ function WorkspaceExplorerContent(t0) {
171
168
  }
172
169
  previousDestinationRef.current = currentEntry.destination;
173
170
  };
174
- $[28] = currentEntry.destination;
175
- $[29] = currentEntry.key;
176
- $[30] = restoration;
177
- $[31] = t5;
178
- } else t5 = $[31];
171
+ $[27] = currentEntry.destination;
172
+ $[28] = currentEntry.key;
173
+ $[29] = restoration;
174
+ $[30] = t5;
175
+ } else t5 = $[30];
179
176
  let t6;
180
- if ($[32] !== currentEntry || $[33] !== restoration) {
177
+ if ($[31] !== currentEntry || $[32] !== restoration) {
181
178
  t6 = [currentEntry, restoration];
182
- $[32] = currentEntry;
183
- $[33] = restoration;
184
- $[34] = t6;
185
- } else t6 = $[34];
179
+ $[31] = currentEntry;
180
+ $[32] = restoration;
181
+ $[33] = t6;
182
+ } else t6 = $[33];
186
183
  React.useEffect(t5, t6);
187
184
  let t7;
188
- if ($[35] !== currentEntry.destination || $[36] !== currentEntry.key || $[37] !== expandedPaths || $[38] !== isLoading || $[39] !== layout || $[40] !== loadingPaths || $[41] !== setExpandedPaths || $[42] !== workspace.root) {
185
+ if ($[34] !== currentEntry.destination || $[35] !== currentEntry.key || $[36] !== expandedPaths || $[37] !== isLoading || $[38] !== layout || $[39] !== loadingPaths || $[40] !== setExpandedPaths || $[41] !== workspace.root) {
189
186
  t7 = () => {
190
187
  const pending = pendingTreeFocusRef.current;
191
188
  if (!pending || pending.entryKey !== currentEntry.key || currentEntry.destination.kind !== "files") return;
@@ -205,18 +202,18 @@ function WorkspaceExplorerContent(t0) {
205
202
  (surface?.querySelector(".file-tree__node, .workspace-browser__open") ?? surface?.querySelector("[data-workspace-browser-focus-target]"))?.focus({ preventScroll: true });
206
203
  pendingTreeFocusRef.current = null;
207
204
  };
208
- $[35] = currentEntry.destination;
209
- $[36] = currentEntry.key;
210
- $[37] = expandedPaths;
211
- $[38] = isLoading;
212
- $[39] = layout;
213
- $[40] = loadingPaths;
214
- $[41] = setExpandedPaths;
215
- $[42] = workspace.root;
216
- $[43] = t7;
217
- } else t7 = $[43];
205
+ $[34] = currentEntry.destination;
206
+ $[35] = currentEntry.key;
207
+ $[36] = expandedPaths;
208
+ $[37] = isLoading;
209
+ $[38] = layout;
210
+ $[39] = loadingPaths;
211
+ $[40] = setExpandedPaths;
212
+ $[41] = workspace.root;
213
+ $[42] = t7;
214
+ } else t7 = $[42];
218
215
  let t8;
219
- if ($[44] !== currentEntry || $[45] !== entriesByDirectory || $[46] !== expandedPaths || $[47] !== isLoading || $[48] !== layout || $[49] !== loadingPaths || $[50] !== setExpandedPaths || $[51] !== workspace.root) {
216
+ if ($[43] !== currentEntry || $[44] !== entriesByDirectory || $[45] !== expandedPaths || $[46] !== isLoading || $[47] !== layout || $[48] !== loadingPaths || $[49] !== setExpandedPaths || $[50] !== workspace.root) {
220
217
  t8 = [
221
218
  entriesByDirectory,
222
219
  expandedPaths,
@@ -227,29 +224,29 @@ function WorkspaceExplorerContent(t0) {
227
224
  workspace.root,
228
225
  layout
229
226
  ];
230
- $[44] = currentEntry;
231
- $[45] = entriesByDirectory;
232
- $[46] = expandedPaths;
233
- $[47] = isLoading;
234
- $[48] = layout;
235
- $[49] = loadingPaths;
236
- $[50] = setExpandedPaths;
237
- $[51] = workspace.root;
238
- $[52] = t8;
239
- } else t8 = $[52];
227
+ $[43] = currentEntry;
228
+ $[44] = entriesByDirectory;
229
+ $[45] = expandedPaths;
230
+ $[46] = isLoading;
231
+ $[47] = layout;
232
+ $[48] = loadingPaths;
233
+ $[49] = setExpandedPaths;
234
+ $[50] = workspace.root;
235
+ $[51] = t8;
236
+ } else t8 = $[51];
240
237
  React.useEffect(t7, t8);
241
238
  let t9;
242
- if ($[53] !== ref) {
239
+ if ($[52] !== ref) {
243
240
  t9 = mergeRefs(explorerRef, ref);
244
- $[53] = ref;
245
- $[54] = t9;
246
- } else t9 = $[54];
241
+ $[52] = ref;
242
+ $[53] = t9;
243
+ } else t9 = $[53];
247
244
  let t10;
248
- if ($[55] !== className) {
245
+ if ($[54] !== className) {
249
246
  t10 = cx("workspace-explorer", className);
250
- $[55] = className;
251
- $[56] = t10;
252
- } else t10 = $[56];
247
+ $[54] = className;
248
+ $[55] = t10;
249
+ } else t10 = $[55];
253
250
  const t11 = "fill-host";
254
251
  const t12 = fileDestination ? /* @__PURE__ */ jsx(WorkspaceNavigationProvider, {
255
252
  root: workspace.root,
@@ -289,7 +286,6 @@ function WorkspaceExplorerContent(t0) {
289
286
  filter,
290
287
  onFilterChange,
291
288
  onDirectoryOpen,
292
- renderThumbnail,
293
289
  emptyState,
294
290
  dragAndDrop,
295
291
  commands,
@@ -302,7 +298,7 @@ function WorkspaceExplorerContent(t0) {
302
298
  })
303
299
  });
304
300
  let t13;
305
- if ($[57] !== props || $[58] !== t10 || $[59] !== t12 || $[60] !== t9) {
301
+ if ($[56] !== props || $[57] !== t10 || $[58] !== t12 || $[59] !== t9) {
306
302
  t13 = /* @__PURE__ */ jsx("div", {
307
303
  ref: t9,
308
304
  className: t10,
@@ -310,12 +306,12 @@ function WorkspaceExplorerContent(t0) {
310
306
  ...props,
311
307
  children: t12
312
308
  });
313
- $[57] = props;
314
- $[58] = t10;
315
- $[59] = t12;
316
- $[60] = t9;
317
- $[61] = t13;
318
- } else t13 = $[61];
309
+ $[56] = props;
310
+ $[57] = t10;
311
+ $[58] = t12;
312
+ $[59] = t9;
313
+ $[60] = t13;
314
+ } else t13 = $[60];
319
315
  return t13;
320
316
  }
321
317
  //#endregion
@@ -1,2 +1,2 @@
1
- import { a as WorkspaceFileOperation, c as isHiddenWorkspaceEntry, d as runWorkspaceFileOperations, f as useWorkspaceFileCommands, g as workspaceTrashIsFull, h as workspaceRenameTarget, i as WorkspaceFileCommands, l as isInWorkspaceTrash, m as workspaceFileShortcut, n as WorkspaceFileCommand, o as WorkspaceFiles, p as workspaceFileCommandForKey, r as WorkspaceFileCommandTarget, s as WorkspaceVolume, t as WORKSPACE_TRASH, u as isWithin } from "../../WorkspaceFileCommands-1s9Ol8CG.js";
1
+ import { a as WorkspaceFileOperation, c as isHiddenWorkspaceEntry, d as runWorkspaceFileOperations, f as useWorkspaceFileCommands, g as workspaceTrashIsFull, h as workspaceRenameTarget, i as WorkspaceFileCommands, l as isInWorkspaceTrash, m as workspaceFileShortcut, n as WorkspaceFileCommand, o as WorkspaceFiles, p as workspaceFileCommandForKey, r as WorkspaceFileCommandTarget, s as WorkspaceVolume, t as WORKSPACE_TRASH, u as isWithin } from "../../WorkspaceFileCommands-CN2oVUzx.js";
2
2
  export { WORKSPACE_TRASH, WorkspaceFileCommand, WorkspaceFileCommandTarget, WorkspaceFileCommands, WorkspaceFileOperation, WorkspaceFiles, WorkspaceVolume, isHiddenWorkspaceEntry, isInWorkspaceTrash, isWithin, runWorkspaceFileOperations, useWorkspaceFileCommands, workspaceFileCommandForKey, workspaceFileShortcut, workspaceRenameTarget, workspaceTrashIsFull };
@@ -190,6 +190,14 @@ async function readPutBackRecord(source) {
190
190
  async function writePutBackRecord(source, record) {
191
191
  await source.writeFile(PUT_BACK_RECORD, JSON.stringify(record), "application/json");
192
192
  }
193
+ /** Whether a volume's Trash is full, as the Dock's bin shows it. */
194
+ function workspaceTrashQueryKey(sourceKey) {
195
+ return [
196
+ "workspace",
197
+ sourceKey,
198
+ "trash"
199
+ ];
200
+ }
193
201
  /** Whether the volume's Trash holds anything: the Dock's full or empty Trash. */
194
202
  async function workspaceTrashIsFull(source) {
195
203
  if (!await source.exists("/.Trash")) return false;
@@ -373,12 +381,9 @@ function useWorkspaceFileCommands(t0) {
373
381
  const [confirm, setConfirm] = React.useState(null);
374
382
  const busy = React.useRef(false);
375
383
  const trashFull = useQuery({
376
- queryKey: [
377
- "workspace",
378
- home.sourceKey,
379
- "trash"
380
- ],
381
- queryFn: () => workspaceTrashIsFull(home.source)
384
+ queryKey: workspaceTrashQueryKey(home.sourceKey),
385
+ queryFn: () => workspaceTrashIsFull(home.source),
386
+ staleTime: Infinity
382
387
  }).data ?? false;
383
388
  let t6;
384
389
  if ($[6] !== home.sourceKey || $[7] !== readOnly) {
@@ -1,2 +1,2 @@
1
- import { _ as saveWorkspaceFileAs, a as WorkspaceDrop, c as WorkspaceTransfer, d as WorkspaceTransferOptions, f as WorkspaceTransferResult, g as readWorkspaceFile, h as downloadWorkspaceFile, i as WorkspaceDragSource, l as WorkspaceTransferChoice, m as availableWorkspacePath, n as WorkspaceAlert, o as WorkspaceDroppedItem, p as WorkspaceTransferTarget, r as WorkspaceDragAndDrop, s as WorkspaceExportResult, t as WORKSPACE_TRANSFER_MAX_BYTES, u as WorkspaceTransferOperation, v as transferIntoWorkspace, y as useWorkspaceTransfer } from "../../WorkspaceFileTransfer-BRD22nW-.js";
1
+ import { _ as saveWorkspaceFileAs, a as WorkspaceDrop, c as WorkspaceTransfer, d as WorkspaceTransferOptions, f as WorkspaceTransferResult, g as readWorkspaceFile, h as downloadWorkspaceFile, i as WorkspaceDragSource, l as WorkspaceTransferChoice, m as availableWorkspacePath, n as WorkspaceAlert, o as WorkspaceDroppedItem, p as WorkspaceTransferTarget, r as WorkspaceDragAndDrop, s as WorkspaceExportResult, t as WORKSPACE_TRANSFER_MAX_BYTES, u as WorkspaceTransferOperation, v as transferIntoWorkspace, y as useWorkspaceTransfer } from "../../WorkspaceFileTransfer-D--dVla2.js";
2
2
  export { WORKSPACE_TRANSFER_MAX_BYTES, WorkspaceAlert, WorkspaceDragAndDrop, WorkspaceDragSource, WorkspaceDrop, WorkspaceDroppedItem, WorkspaceExportResult, WorkspaceTransfer, WorkspaceTransferChoice, WorkspaceTransferOperation, WorkspaceTransferOptions, WorkspaceTransferResult, WorkspaceTransferTarget, availableWorkspacePath, downloadWorkspaceFile, readWorkspaceFile, saveWorkspaceFileAs, transferIntoWorkspace, useWorkspaceTransfer };
@@ -1,5 +1,5 @@
1
1
  import { r as WorkspaceFileAssetResolver } from "../../WorkspaceFile-BJC6vlp_.js";
2
- import { y as WorkspaceSource } from "../../Workspace-B9nuTfIi.js";
2
+ import { y as WorkspaceSource } from "../../Workspace-mZddFyvP.js";
3
3
  //#region src/components/agents-sdk/WorkspaceLive.d.ts
4
4
  export type WorkspaceChange = {
5
5
  type: "changed";
@@ -1,5 +1,6 @@
1
1
  import { a as workspaceDirname } from "../../workspace-path-TZggP-u4.js";
2
2
  import { refreshWorkspaceFileQueries, workspaceFileQueryKey } from "./Workspace.js";
3
+ import "./WorkspaceFileCommands.js";
3
4
  import { invalidateWorkspaceConceptQueries, workspacePathsOverlap } from "./WorkspaceConcept.js";
4
5
  import { c } from "react/compiler-runtime";
5
6
  import * as React from "react";
@@ -9,15 +10,16 @@ const DEFAULT_DEBOUNCE_MS = 200;
9
10
  /**
10
11
  * Listings the host's root does not own: a Finder folder, Recents and a
11
12
  * search each read under a root of their own (a dot root for the queries), so
12
- * a change refreshes every root's info (a volume's and each Get Info file's),
13
- * the listings of the changed folders, and every query root's listings since
14
- * any change can move them. Without `directories`, every listing of the
15
- * source refreshes.
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.
16
18
  */
17
19
  function invalidateEveryRoot(queryClient, sourceKey, directories) {
18
20
  return queryClient.invalidateQueries({
19
21
  queryKey: ["workspace", sourceKey],
20
- predicate: ({ queryKey: [, , root, segment, path] }) => segment === "info" || segment === "directory" && (!directories || typeof root === "string" && root.startsWith("/.") || typeof path === "string" && directories.has(path))
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))
21
23
  });
22
24
  }
23
25
  async function invalidateWorkspaceResources(queryClient, sourceKey, root, source, selectedPath, resolveFileAsset, maxInlineAssetBytes, paths) {
@@ -1,4 +1,4 @@
1
- import { p as WorkspaceTransferTarget } from "../../WorkspaceFileTransfer-BRD22nW-.js";
1
+ import { p as WorkspaceTransferTarget } from "../../WorkspaceFileTransfer-D--dVla2.js";
2
2
  import { t as WorkspaceMountItem } from "../../WorkspaceMountManager-DM384Cn6.js";
3
3
  //#region src/components/agents-sdk/WorkspaceLocalFolder.d.ts
4
4
  /** One linked folder, ready for {@link WorkspaceMountManager} and `useWorkspace`. */