@mcp-b/react-components 0.68.0 → 0.70.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 (71) hide show
  1. package/dist/{AgentComputer-BP9ixGGE.js → AgentComputer-CFJxjMFE.js} +32 -3
  2. package/dist/ComputerFileThumbnail-CXHy127c.js +393 -0
  3. package/dist/Context-DQDumCV8.js +918 -0
  4. package/dist/{ThinkSchedule-D4Ulsa0-.d.ts → ThinkSchedule-9nzxIoX1.d.ts} +1 -1
  5. package/dist/{Workspace-B9nuTfIi.d.ts → Workspace-mZddFyvP.d.ts} +7 -3
  6. package/dist/{WorkspaceAutomation-C0fghGLi.d.ts → WorkspaceAutomation-hwl6C1aX.d.ts} +2 -2
  7. package/dist/{WorkspaceBrowser-Dz48H-7X.d.ts → WorkspaceBrowser-CNVAKXXZ.d.ts} +4 -11
  8. package/dist/{WorkspaceBrowser-oBJv-Dac.js → WorkspaceBrowser-ojoZy0uO.js} +202 -210
  9. package/dist/{WorkspaceConcept-D46cYerS.d.ts → WorkspaceConcept-DqzfZWws.d.ts} +1 -1
  10. package/dist/{WorkspaceFileCommands-1s9Ol8CG.d.ts → WorkspaceFileCommands-CN2oVUzx.d.ts} +5 -2
  11. package/dist/{WorkspaceFileTransfer-BRD22nW-.d.ts → WorkspaceFileTransfer-D--dVla2.d.ts} +1 -1
  12. package/dist/components/agents-sdk/AgentComputer.d.ts +1 -1
  13. package/dist/components/agents-sdk/AgentComputer.js +1 -1
  14. package/dist/components/agents-sdk/ComputerAppIds.d.ts +15 -0
  15. package/dist/components/agents-sdk/ComputerAppIds.js +14 -0
  16. package/dist/components/agents-sdk/ComputerAutomations.d.ts +23 -14
  17. package/dist/components/agents-sdk/ComputerAutomations.js +437 -354
  18. package/dist/components/agents-sdk/ComputerCalendar.js +16 -15
  19. package/dist/components/agents-sdk/ComputerCustomWallpaper.js +186 -171
  20. package/dist/components/agents-sdk/ComputerFileThumbnail.d.ts +5 -3
  21. package/dist/components/agents-sdk/ComputerFileThumbnail.js +1 -132
  22. package/dist/components/agents-sdk/ComputerFiles.d.ts +4 -6
  23. package/dist/components/agents-sdk/ComputerFiles.js +337 -316
  24. package/dist/components/agents-sdk/ComputerHome.js +1 -1
  25. package/dist/components/agents-sdk/ComputerLayout.d.ts +9 -0
  26. package/dist/components/agents-sdk/ComputerLayout.js +66 -0
  27. package/dist/components/agents-sdk/ComputerNotifications.js +60 -83
  28. package/dist/components/agents-sdk/ComputerScreen.d.ts +12 -6
  29. package/dist/components/agents-sdk/ComputerScreen.js +49 -36
  30. package/dist/components/agents-sdk/ComputerSettings.d.ts +10 -4
  31. package/dist/components/agents-sdk/ComputerSettings.js +92 -72
  32. package/dist/components/agents-sdk/ComputerSpotlight.js +1 -1
  33. package/dist/components/agents-sdk/EmployeeChat.js +1 -1
  34. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +2 -2
  35. package/dist/components/agents-sdk/ManagerOffice.d.ts +1 -1
  36. package/dist/components/agents-sdk/ThinkSchedule.d.ts +1 -1
  37. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +1 -1
  38. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
  39. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
  40. package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +1 -1
  41. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  42. package/dist/components/agents-sdk/Workspace.js +197 -190
  43. package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
  44. package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
  45. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
  46. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  47. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
  48. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
  49. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +6 -6
  50. package/dist/components/agents-sdk/WorkspaceDesktop.js +126 -101
  51. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +2 -10
  52. package/dist/components/agents-sdk/WorkspaceExplorer.js +67 -71
  53. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +1 -1
  54. package/dist/components/agents-sdk/WorkspaceFileCommands.js +11 -6
  55. package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +1 -1
  56. package/dist/components/agents-sdk/WorkspaceLive.d.ts +1 -1
  57. package/dist/components/agents-sdk/WorkspaceLive.js +7 -5
  58. package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +1 -1
  59. package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
  60. package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
  61. package/dist/components/ai-sdk/Context.js +1 -842
  62. package/dist/components/ai-sdk/Plan.d.ts +33 -9
  63. package/dist/components/ai-sdk/Plan.js +336 -107
  64. package/dist/components/extension/FirstRunSetup.d.ts +2 -2
  65. package/dist/minute-clock-CXpRGCMF.js +35 -0
  66. package/dist/{parts-RXV6GGdB.js → parts-CPVz9l31.js} +1 -1
  67. package/dist/styles/plan.css +160 -23
  68. package/dist/{workspace-concept-panel-BDTBISNO.d.ts → workspace-concept-panel-D1czupvi.d.ts} +1 -1
  69. package/dist/{workspace-quick-look-9V-UFpjj.js → workspace-quick-look-DODjsfhH.js} +79 -251
  70. package/package.json +2 -2
  71. package/dist/progress-ring-BO649JA9.js +0 -79
@@ -83,8 +83,16 @@ function workspaceFileQueryPrefix(sourceKey, root) {
83
83
  function workspaceFileQueryKey(sourceKey, root, requestedPath) {
84
84
  return [...workspaceFileQueryPrefix(sourceKey, root), requestedPath];
85
85
  }
86
- function workspaceInfoQueryKey(sourceKey, root) {
87
- return [...workspaceQueryKey(sourceKey, root), "info"];
86
+ /**
87
+ * The source's summary. It does not depend on the root and each read is a
88
+ * whole-workspace aggregate, so every root of one source shares it.
89
+ */
90
+ function workspaceInfoQueryKey(sourceKey) {
91
+ return [
92
+ "workspace",
93
+ sourceKey,
94
+ "info"
95
+ ];
88
96
  }
89
97
  function workspaceFileVersion(target) {
90
98
  return {
@@ -121,9 +129,9 @@ function workspaceDirectoryQueryOptions(source, sourceKey, root, path) {
121
129
  });
122
130
  }
123
131
  /** Shared workspace-summary options for workspace components and route loaders. */
124
- function workspaceInfoQueryOptions(source, sourceKey, root) {
132
+ function workspaceInfoQueryOptions(source, sourceKey) {
125
133
  return queryOptions({
126
- queryKey: workspaceInfoQueryKey(sourceKey, root),
134
+ queryKey: workspaceInfoQueryKey(sourceKey),
127
135
  queryFn: async ({ signal }) => {
128
136
  const info = await source.getWorkspaceInfo();
129
137
  throwIfAborted(signal);
@@ -286,7 +294,7 @@ function createDirectoryListingStore(queryClient, sourceKey, root) {
286
294
  * selection, while this hook only keeps local tree expansion state.
287
295
  */
288
296
  function useWorkspace(t0) {
289
- const $ = c(144);
297
+ const $ = c(143);
290
298
  const { source, sourceKey, root: t1, selectedPath, onSelectedPathChange, resolveFileAsset, maxInlineAssetBytes: t2 } = t0;
291
299
  const root = t1 === void 0 ? "/" : t1;
292
300
  const maxInlineAssetBytes = t2 === void 0 ? DEFAULT_MAX_INLINE_ASSET_BYTES : t2;
@@ -351,145 +359,144 @@ function useWorkspace(t0) {
351
359
  } else t8 = $[20];
352
360
  const directoryQueries = useQueries(t8);
353
361
  let t9;
354
- if ($[21] !== root || $[22] !== source || $[23] !== sourceKey) {
355
- t9 = workspaceInfoQueryOptions(source, sourceKey, root);
356
- $[21] = root;
357
- $[22] = source;
358
- $[23] = sourceKey;
359
- $[24] = t9;
360
- } else t9 = $[24];
362
+ if ($[21] !== source || $[22] !== sourceKey) {
363
+ t9 = workspaceInfoQueryOptions(source, sourceKey);
364
+ $[21] = source;
365
+ $[22] = sourceKey;
366
+ $[23] = t9;
367
+ } else t9 = $[23];
361
368
  const infoQuery = useQuery(t9);
362
369
  const t10 = selectedPath ?? root;
363
370
  let t11;
364
- if ($[25] !== root || $[26] !== source || $[27] !== sourceKey || $[28] !== t10) {
371
+ if ($[24] !== root || $[25] !== source || $[26] !== sourceKey || $[27] !== t10) {
365
372
  t11 = workspaceFileStatQueryOptions(source, sourceKey, root, t10);
366
- $[25] = root;
367
- $[26] = source;
368
- $[27] = sourceKey;
369
- $[28] = t10;
370
- $[29] = t11;
371
- } else t11 = $[29];
373
+ $[24] = root;
374
+ $[25] = source;
375
+ $[26] = sourceKey;
376
+ $[27] = t10;
377
+ $[28] = t11;
378
+ } else t11 = $[28];
372
379
  const t12 = selectedPath !== null;
373
380
  let t13;
374
- if ($[30] !== t11 || $[31] !== t12) {
381
+ if ($[29] !== t11 || $[30] !== t12) {
375
382
  t13 = {
376
383
  ...t11,
377
384
  enabled: t12
378
385
  };
379
- $[30] = t11;
380
- $[31] = t12;
381
- $[32] = t13;
382
- } else t13 = $[32];
386
+ $[29] = t11;
387
+ $[30] = t12;
388
+ $[31] = t13;
389
+ } else t13 = $[31];
383
390
  const statQuery = useQuery(t13);
384
391
  const target = selectedPath === null ? void 0 : statQuery.data;
385
392
  const statSettled = target !== void 0 && statQuery.isSuccess && !statQuery.isFetching;
386
393
  let t14;
387
- if ($[33] !== root || $[34] !== selectedPath || $[35] !== target) {
394
+ if ($[32] !== root || $[33] !== selectedPath || $[34] !== target) {
388
395
  t14 = target ?? {
389
396
  requestedPath: selectedPath ?? root,
390
397
  readPath: selectedPath ?? root,
391
398
  info: INACTIVE_FILE_INFO,
392
399
  media: null
393
400
  };
394
- $[33] = root;
395
- $[34] = selectedPath;
396
- $[35] = target;
397
- $[36] = t14;
398
- } else t14 = $[36];
401
+ $[32] = root;
402
+ $[33] = selectedPath;
403
+ $[34] = target;
404
+ $[35] = t14;
405
+ } else t14 = $[35];
399
406
  const queryTarget = t14;
400
407
  let t15;
401
- if ($[37] !== target) {
408
+ if ($[36] !== target) {
402
409
  t15 = target ? isWorkspaceTextPath(target.readPath, target.info.mimeType) : false;
403
- $[37] = target;
404
- $[38] = t15;
405
- } else t15 = $[38];
410
+ $[36] = target;
411
+ $[37] = t15;
412
+ } else t15 = $[37];
406
413
  const targetIsText = t15;
407
414
  const t16 = resolveFileAsset ?? INACTIVE_FILE_ASSET_RESOLVER;
408
415
  let t17;
409
- if ($[39] !== queryTarget || $[40] !== root || $[41] !== sourceKey || $[42] !== t16) {
416
+ if ($[38] !== queryTarget || $[39] !== root || $[40] !== sourceKey || $[41] !== t16) {
410
417
  t17 = workspaceFileAssetQueryOptions(sourceKey, root, queryTarget, t16);
411
- $[39] = queryTarget;
412
- $[40] = root;
413
- $[41] = sourceKey;
414
- $[42] = t16;
415
- $[43] = t17;
416
- } else t17 = $[43];
418
+ $[38] = queryTarget;
419
+ $[39] = root;
420
+ $[40] = sourceKey;
421
+ $[41] = t16;
422
+ $[42] = t17;
423
+ } else t17 = $[42];
417
424
  const t18 = statSettled && resolveFileAsset !== void 0;
418
425
  let t19;
419
- if ($[44] !== t17 || $[45] !== t18) {
426
+ if ($[43] !== t17 || $[44] !== t18) {
420
427
  t19 = {
421
428
  ...t17,
422
429
  enabled: t18
423
430
  };
424
- $[44] = t17;
425
- $[45] = t18;
426
- $[46] = t19;
427
- } else t19 = $[46];
431
+ $[43] = t17;
432
+ $[44] = t18;
433
+ $[45] = t19;
434
+ } else t19 = $[45];
428
435
  const assetQuery = useQuery(t19);
429
436
  const resolvedAsset = assetQuery.data ?? null;
430
437
  const resolverSettled = !resolveFileAsset || assetQuery.isSuccess && !assetQuery.isFetching;
431
438
  let t20;
432
- if ($[47] !== queryTarget || $[48] !== root || $[49] !== source || $[50] !== sourceKey) {
439
+ if ($[46] !== queryTarget || $[47] !== root || $[48] !== source || $[49] !== sourceKey) {
433
440
  t20 = workspaceTextFileQueryOptions(source, sourceKey, root, queryTarget);
434
- $[47] = queryTarget;
435
- $[48] = root;
436
- $[49] = source;
437
- $[50] = sourceKey;
438
- $[51] = t20;
439
- } else t20 = $[51];
441
+ $[46] = queryTarget;
442
+ $[47] = root;
443
+ $[48] = source;
444
+ $[49] = sourceKey;
445
+ $[50] = t20;
446
+ } else t20 = $[50];
440
447
  const t21 = statSettled && resolverSettled && !resolvedAsset && !target.media && targetIsText;
441
448
  let t22;
442
- if ($[52] !== t20 || $[53] !== t21) {
449
+ if ($[51] !== t20 || $[52] !== t21) {
443
450
  t22 = {
444
451
  ...t20,
445
452
  enabled: t21
446
453
  };
447
- $[52] = t20;
448
- $[53] = t21;
449
- $[54] = t22;
450
- } else t22 = $[54];
454
+ $[51] = t20;
455
+ $[52] = t21;
456
+ $[53] = t22;
457
+ } else t22 = $[53];
451
458
  const textQuery = useQuery(t22);
452
459
  let t23;
453
- if ($[55] !== normalizedMaxInlineAssetBytes || $[56] !== queryTarget || $[57] !== root || $[58] !== source || $[59] !== sourceKey) {
460
+ if ($[54] !== normalizedMaxInlineAssetBytes || $[55] !== queryTarget || $[56] !== root || $[57] !== source || $[58] !== sourceKey) {
454
461
  t23 = workspaceBinaryFileQueryOptions(source, sourceKey, root, queryTarget, normalizedMaxInlineAssetBytes);
455
- $[55] = normalizedMaxInlineAssetBytes;
456
- $[56] = queryTarget;
457
- $[57] = root;
458
- $[58] = source;
459
- $[59] = sourceKey;
460
- $[60] = t23;
461
- } else t23 = $[60];
462
+ $[54] = normalizedMaxInlineAssetBytes;
463
+ $[55] = queryTarget;
464
+ $[56] = root;
465
+ $[57] = source;
466
+ $[58] = sourceKey;
467
+ $[59] = t23;
468
+ } else t23 = $[59];
462
469
  const t24 = statSettled && resolverSettled && !resolvedAsset && Boolean(target.media);
463
470
  let t25;
464
- if ($[61] !== t23 || $[62] !== t24) {
471
+ if ($[60] !== t23 || $[61] !== t24) {
465
472
  t25 = {
466
473
  ...t23,
467
474
  enabled: t24
468
475
  };
469
- $[61] = t23;
470
- $[62] = t24;
471
- $[63] = t25;
472
- } else t25 = $[63];
476
+ $[60] = t23;
477
+ $[61] = t24;
478
+ $[62] = t25;
479
+ } else t25 = $[62];
473
480
  const binaryQuery = useQuery(t25);
474
481
  let t26;
475
- if ($[64] !== queryClient || $[65] !== root || $[66] !== sourceKey) {
482
+ if ($[63] !== queryClient || $[64] !== root || $[65] !== sourceKey) {
476
483
  t26 = createDirectoryListingStore(queryClient, sourceKey, root);
477
- $[64] = queryClient;
478
- $[65] = root;
479
- $[66] = sourceKey;
480
- $[67] = t26;
481
- } else t26 = $[67];
484
+ $[63] = queryClient;
485
+ $[64] = root;
486
+ $[65] = sourceKey;
487
+ $[66] = t26;
488
+ } else t26 = $[66];
482
489
  const directoryListings = t26;
483
490
  const entriesByDirectory = React.useSyncExternalStore(directoryListings.subscribe, directoryListings.getSnapshot, directoryListings.getSnapshot);
484
491
  let entryByPath;
485
- if ($[68] !== entriesByDirectory) {
492
+ if ($[67] !== entriesByDirectory) {
486
493
  entryByPath = /* @__PURE__ */ new Map();
487
494
  for (const directoryEntries of Object.values(entriesByDirectory)) for (const entry of directoryEntries) entryByPath.set(entry.path, entry);
488
- $[68] = entriesByDirectory;
489
- $[69] = entryByPath;
490
- } else entryByPath = $[69];
495
+ $[67] = entriesByDirectory;
496
+ $[68] = entryByPath;
497
+ } else entryByPath = $[68];
491
498
  let t27;
492
- if ($[70] !== scopeKey) {
499
+ if ($[69] !== scopeKey) {
493
500
  t27 = (next) => {
494
501
  latestExpansionRef.current = {
495
502
  scopeKey,
@@ -500,35 +507,35 @@ function useWorkspace(t0) {
500
507
  [scopeKey]: next
501
508
  }));
502
509
  };
503
- $[70] = scopeKey;
504
- $[71] = t27;
505
- } else t27 = $[71];
510
+ $[69] = scopeKey;
511
+ $[70] = t27;
512
+ } else t27 = $[70];
506
513
  const setExpandedPaths = t27;
507
514
  let t28;
508
- if ($[72] !== onSelectedPathChange) {
515
+ if ($[71] !== onSelectedPathChange) {
509
516
  t28 = (path_0) => onSelectedPathChange?.(path_0);
510
- $[72] = onSelectedPathChange;
511
- $[73] = t28;
512
- } else t28 = $[73];
517
+ $[71] = onSelectedPathChange;
518
+ $[72] = t28;
519
+ } else t28 = $[72];
513
520
  const selectFile = t28;
514
521
  const selectedError = statQuery.error ?? assetQuery.error ?? textQuery.error ?? binaryQuery.error;
515
522
  let selectedFile = null;
516
523
  if (selectedPath && selectedError) {
517
524
  let t29;
518
- if ($[74] !== selectedPath) {
525
+ if ($[73] !== selectedPath) {
519
526
  t29 = workspaceBasename(selectedPath);
520
- $[74] = selectedPath;
521
- $[75] = t29;
522
- } else t29 = $[75];
527
+ $[73] = selectedPath;
528
+ $[74] = t29;
529
+ } else t29 = $[74];
523
530
  const t30 = target?.info ?? null;
524
531
  let t31;
525
- if ($[76] !== selectedError) {
532
+ if ($[75] !== selectedError) {
526
533
  t31 = formatErrorMessage(selectedError);
527
- $[76] = selectedError;
528
- $[77] = t31;
529
- } else t31 = $[77];
534
+ $[75] = selectedError;
535
+ $[76] = t31;
536
+ } else t31 = $[76];
530
537
  let t32;
531
- if ($[78] !== selectedPath || $[79] !== t29 || $[80] !== t30 || $[81] !== t31) {
538
+ if ($[77] !== selectedPath || $[78] !== t29 || $[79] !== t30 || $[80] !== t31) {
532
539
  t32 = {
533
540
  path: selectedPath,
534
541
  name: t29,
@@ -537,23 +544,23 @@ function useWorkspace(t0) {
537
544
  info: t30,
538
545
  error: t31
539
546
  };
540
- $[78] = selectedPath;
541
- $[79] = t29;
542
- $[80] = t30;
543
- $[81] = t31;
544
- $[82] = t32;
545
- } else t32 = $[82];
547
+ $[77] = selectedPath;
548
+ $[78] = t29;
549
+ $[79] = t30;
550
+ $[80] = t31;
551
+ $[81] = t32;
552
+ } else t32 = $[81];
546
553
  selectedFile = t32;
547
554
  } else if (selectedPath && statSettled && target && resolverSettled) {
548
555
  if (resolvedAsset) {
549
556
  let t29;
550
- if ($[83] !== selectedPath) {
557
+ if ($[82] !== selectedPath) {
551
558
  t29 = workspaceBasename(selectedPath);
552
- $[83] = selectedPath;
553
- $[84] = t29;
554
- } else t29 = $[84];
559
+ $[82] = selectedPath;
560
+ $[83] = t29;
561
+ } else t29 = $[83];
555
562
  let t30;
556
- if ($[85] !== resolvedAsset.asset || $[86] !== selectedPath || $[87] !== t29 || $[88] !== target.info) {
563
+ if ($[84] !== resolvedAsset.asset || $[85] !== selectedPath || $[86] !== t29 || $[87] !== target.info) {
557
564
  t30 = {
558
565
  path: selectedPath,
559
566
  name: t29,
@@ -562,23 +569,23 @@ function useWorkspace(t0) {
562
569
  info: target.info,
563
570
  error: null
564
571
  };
565
- $[85] = resolvedAsset.asset;
566
- $[86] = selectedPath;
567
- $[87] = t29;
568
- $[88] = target.info;
569
- $[89] = t30;
570
- } else t30 = $[89];
572
+ $[84] = resolvedAsset.asset;
573
+ $[85] = selectedPath;
574
+ $[86] = t29;
575
+ $[87] = target.info;
576
+ $[88] = t30;
577
+ } else t30 = $[88];
571
578
  selectedFile = t30;
572
579
  } else if (target.media && binaryQuery.isSuccess && !binaryQuery.isFetching) {
573
580
  let t29;
574
- if ($[90] !== selectedPath) {
581
+ if ($[89] !== selectedPath) {
575
582
  t29 = workspaceBasename(selectedPath);
576
- $[90] = selectedPath;
577
- $[91] = t29;
578
- } else t29 = $[91];
583
+ $[89] = selectedPath;
584
+ $[90] = t29;
585
+ } else t29 = $[90];
579
586
  const t30 = binaryQuery.data?.asset ?? null;
580
587
  let t31;
581
- if ($[92] !== selectedPath || $[93] !== t29 || $[94] !== t30 || $[95] !== target.info) {
588
+ if ($[91] !== selectedPath || $[92] !== t29 || $[93] !== t30 || $[94] !== target.info) {
582
589
  t31 = {
583
590
  path: selectedPath,
584
591
  name: t29,
@@ -587,22 +594,22 @@ function useWorkspace(t0) {
587
594
  info: target.info,
588
595
  error: null
589
596
  };
590
- $[92] = selectedPath;
591
- $[93] = t29;
592
- $[94] = t30;
593
- $[95] = target.info;
594
- $[96] = t31;
595
- } else t31 = $[96];
597
+ $[91] = selectedPath;
598
+ $[92] = t29;
599
+ $[93] = t30;
600
+ $[94] = target.info;
601
+ $[95] = t31;
602
+ } else t31 = $[95];
596
603
  selectedFile = t31;
597
604
  } else if (targetIsText && textQuery.isSuccess) {
598
605
  let t29;
599
- if ($[97] !== selectedPath) {
606
+ if ($[96] !== selectedPath) {
600
607
  t29 = workspaceBasename(selectedPath);
601
- $[97] = selectedPath;
602
- $[98] = t29;
603
- } else t29 = $[98];
608
+ $[96] = selectedPath;
609
+ $[97] = t29;
610
+ } else t29 = $[97];
604
611
  let t30;
605
- if ($[99] !== selectedPath || $[100] !== t29 || $[101] !== target.info || $[102] !== textQuery.data) {
612
+ if ($[98] !== selectedPath || $[99] !== t29 || $[100] !== target.info || $[101] !== textQuery.data) {
606
613
  t30 = {
607
614
  path: selectedPath,
608
615
  name: t29,
@@ -611,22 +618,22 @@ function useWorkspace(t0) {
611
618
  info: target.info,
612
619
  error: null
613
620
  };
614
- $[99] = selectedPath;
615
- $[100] = t29;
616
- $[101] = target.info;
617
- $[102] = textQuery.data;
618
- $[103] = t30;
619
- } else t30 = $[103];
621
+ $[98] = selectedPath;
622
+ $[99] = t29;
623
+ $[100] = target.info;
624
+ $[101] = textQuery.data;
625
+ $[102] = t30;
626
+ } else t30 = $[102];
620
627
  selectedFile = t30;
621
628
  } else if (!target.media && !targetIsText) {
622
629
  let t29;
623
- if ($[104] !== selectedPath) {
630
+ if ($[103] !== selectedPath) {
624
631
  t29 = workspaceBasename(selectedPath);
625
- $[104] = selectedPath;
626
- $[105] = t29;
627
- } else t29 = $[105];
632
+ $[103] = selectedPath;
633
+ $[104] = t29;
634
+ } else t29 = $[104];
628
635
  let t30;
629
- if ($[106] !== selectedPath || $[107] !== t29 || $[108] !== target.info) {
636
+ if ($[105] !== selectedPath || $[106] !== t29 || $[107] !== target.info) {
630
637
  t30 = {
631
638
  path: selectedPath,
632
639
  name: t29,
@@ -635,16 +642,16 @@ function useWorkspace(t0) {
635
642
  info: target.info,
636
643
  error: null
637
644
  };
638
- $[106] = selectedPath;
639
- $[107] = t29;
640
- $[108] = target.info;
641
- $[109] = t30;
642
- } else t30 = $[109];
645
+ $[105] = selectedPath;
646
+ $[106] = t29;
647
+ $[107] = target.info;
648
+ $[108] = t30;
649
+ } else t30 = $[108];
643
650
  selectedFile = t30;
644
651
  }
645
652
  }
646
653
  let paths;
647
- if ($[110] !== assetQuery || $[111] !== binaryQuery || $[112] !== directoryPaths || $[113] !== directoryQueries || $[114] !== selectedPath || $[115] !== statQuery || $[116] !== textQuery) {
654
+ if ($[109] !== assetQuery || $[110] !== binaryQuery || $[111] !== directoryPaths || $[112] !== directoryQueries || $[113] !== selectedPath || $[114] !== statQuery || $[115] !== textQuery) {
648
655
  paths = /* @__PURE__ */ new Set();
649
656
  for (const [index, path_1] of directoryPaths.entries()) if (directoryQueries[index]?.isFetching) paths.add(path_1);
650
657
  if (selectedPath && [
@@ -653,27 +660,27 @@ function useWorkspace(t0) {
653
660
  textQuery,
654
661
  binaryQuery
655
662
  ].some(_temp)) paths.add(selectedPath);
656
- $[110] = assetQuery;
657
- $[111] = binaryQuery;
658
- $[112] = directoryPaths;
659
- $[113] = directoryQueries;
660
- $[114] = selectedPath;
661
- $[115] = statQuery;
662
- $[116] = textQuery;
663
- $[117] = paths;
664
- } else paths = $[117];
663
+ $[109] = assetQuery;
664
+ $[110] = binaryQuery;
665
+ $[111] = directoryPaths;
666
+ $[112] = directoryQueries;
667
+ $[113] = selectedPath;
668
+ $[114] = statQuery;
669
+ $[115] = textQuery;
670
+ $[116] = paths;
671
+ } else paths = $[116];
665
672
  const loadingPaths = paths;
666
673
  const rootDirectoryIndex = directoryPaths.indexOf(root);
667
674
  const isLoading = Boolean(directoryQueries[rootDirectoryIndex]?.isFetching) || infoQuery.isFetching;
668
675
  let t29;
669
- if ($[118] !== directoryQueries) {
676
+ if ($[117] !== directoryQueries) {
670
677
  t29 = [...new Set(directoryQueries.map(_temp2).filter(_temp3).map(formatErrorMessage))].join("; ") || null;
671
- $[118] = directoryQueries;
672
- $[119] = t29;
673
- } else t29 = $[119];
678
+ $[117] = directoryQueries;
679
+ $[118] = t29;
680
+ } else t29 = $[118];
674
681
  const error = t29;
675
682
  let t30;
676
- if ($[120] !== expandedPaths || $[121] !== normalizedMaxInlineAssetBytes || $[122] !== queryClient || $[123] !== resolveFileAsset || $[124] !== root || $[125] !== scopeKey || $[126] !== selectedPath || $[127] !== source || $[128] !== sourceKey) {
683
+ if ($[119] !== expandedPaths || $[120] !== normalizedMaxInlineAssetBytes || $[121] !== queryClient || $[122] !== resolveFileAsset || $[123] !== root || $[124] !== scopeKey || $[125] !== selectedPath || $[126] !== source || $[127] !== sourceKey) {
677
684
  t30 = () => {
678
685
  (async () => {
679
686
  const latestExpandedPaths = latestExpansionRef.current.scopeKey === scopeKey ? latestExpansionRef.current.paths : expandedPaths;
@@ -691,7 +698,7 @@ function useWorkspace(t0) {
691
698
  }
692
699
  }));
693
700
  await queryClient.fetchQuery({
694
- ...workspaceInfoQueryOptions(source, sourceKey, root),
701
+ ...workspaceInfoQueryOptions(source, sourceKey),
695
702
  staleTime: 0
696
703
  }).catch(_temp4);
697
704
  if (refreshedDirectories.includes(false)) return;
@@ -705,23 +712,23 @@ function useWorkspace(t0) {
705
712
  });
706
713
  })().catch(_temp5);
707
714
  };
708
- $[120] = expandedPaths;
709
- $[121] = normalizedMaxInlineAssetBytes;
710
- $[122] = queryClient;
711
- $[123] = resolveFileAsset;
712
- $[124] = root;
713
- $[125] = scopeKey;
714
- $[126] = selectedPath;
715
- $[127] = source;
716
- $[128] = sourceKey;
717
- $[129] = t30;
718
- } else t30 = $[129];
715
+ $[119] = expandedPaths;
716
+ $[120] = normalizedMaxInlineAssetBytes;
717
+ $[121] = queryClient;
718
+ $[122] = resolveFileAsset;
719
+ $[123] = root;
720
+ $[124] = scopeKey;
721
+ $[125] = selectedPath;
722
+ $[126] = source;
723
+ $[127] = sourceKey;
724
+ $[128] = t30;
725
+ } else t30 = $[128];
719
726
  const refresh = t30;
720
727
  const t31 = entryByPath.size > 0 ? entryByPath : EMPTY_ENTRY_BY_PATH;
721
728
  const t32 = loadingPaths.size > 0 ? loadingPaths : EMPTY_PATHS;
722
729
  const t33 = infoQuery.data ?? null;
723
730
  let t34;
724
- if ($[130] !== entriesByDirectory || $[131] !== error || $[132] !== expandedPaths || $[133] !== isLoading || $[134] !== refresh || $[135] !== root || $[136] !== selectFile || $[137] !== selectedFile || $[138] !== selectedPath || $[139] !== setExpandedPaths || $[140] !== t31 || $[141] !== t32 || $[142] !== t33) {
731
+ if ($[129] !== entriesByDirectory || $[130] !== error || $[131] !== expandedPaths || $[132] !== isLoading || $[133] !== refresh || $[134] !== root || $[135] !== selectFile || $[136] !== selectedFile || $[137] !== selectedPath || $[138] !== setExpandedPaths || $[139] !== t31 || $[140] !== t32 || $[141] !== t33) {
725
732
  t34 = {
726
733
  root,
727
734
  entriesByDirectory,
@@ -737,21 +744,21 @@ function useWorkspace(t0) {
737
744
  info: t33,
738
745
  refresh
739
746
  };
740
- $[130] = entriesByDirectory;
741
- $[131] = error;
742
- $[132] = expandedPaths;
743
- $[133] = isLoading;
744
- $[134] = refresh;
745
- $[135] = root;
746
- $[136] = selectFile;
747
- $[137] = selectedFile;
748
- $[138] = selectedPath;
749
- $[139] = setExpandedPaths;
750
- $[140] = t31;
751
- $[141] = t32;
752
- $[142] = t33;
753
- $[143] = t34;
754
- } else t34 = $[143];
747
+ $[129] = entriesByDirectory;
748
+ $[130] = error;
749
+ $[131] = expandedPaths;
750
+ $[132] = isLoading;
751
+ $[133] = refresh;
752
+ $[134] = root;
753
+ $[135] = selectFile;
754
+ $[136] = selectedFile;
755
+ $[137] = selectedPath;
756
+ $[138] = setExpandedPaths;
757
+ $[139] = t31;
758
+ $[140] = t32;
759
+ $[141] = t33;
760
+ $[142] = t34;
761
+ } else t34 = $[142];
755
762
  return t34;
756
763
  }
757
764
  function _temp5() {}
@@ -1,2 +1,2 @@
1
- import { a as WorkspaceAutomationOutcome, c as WorkspaceAutomationRunFile, d as WorkspaceAutomationsPanelProps, f as automationsWorkbenchItem, i as WorkspaceAutomationInvocation, l as WorkspaceAutomationSource, n as WorkspaceAutomationFile, o as WorkspaceAutomationParam, r as WorkspaceAutomationFileProps, s as WorkspaceAutomationParamType, t as WorkspaceAutomation, u as WorkspaceAutomationsPanel } from "../../WorkspaceAutomation-C0fghGLi.js";
1
+ import { a as WorkspaceAutomationOutcome, c as WorkspaceAutomationRunFile, d as WorkspaceAutomationsPanelProps, f as automationsWorkbenchItem, i as WorkspaceAutomationInvocation, l as WorkspaceAutomationSource, n as WorkspaceAutomationFile, o as WorkspaceAutomationParam, r as WorkspaceAutomationFileProps, s as WorkspaceAutomationParamType, t as WorkspaceAutomation, u as WorkspaceAutomationsPanel } from "../../WorkspaceAutomation-hwl6C1aX.js";
2
2
  export { WorkspaceAutomation, WorkspaceAutomationFile, WorkspaceAutomationFileProps, WorkspaceAutomationInvocation, WorkspaceAutomationOutcome, WorkspaceAutomationParam, WorkspaceAutomationParamType, WorkspaceAutomationRunFile, WorkspaceAutomationSource, WorkspaceAutomationsPanel, WorkspaceAutomationsPanelProps, automationsWorkbenchItem };
@@ -1,2 +1,2 @@
1
- import { C as WorkspaceAutomationTableValue, S as WorkspaceAutomationTableSource, _ as WorkspaceAutomationTableLoadOptions, b as WorkspaceAutomationTableRow, g as WorkspaceAutomationTableInput, h as WorkspaceAutomationTableData, m as WorkspaceAutomationTableActions, p as WorkspaceAutomationTable, v as WorkspaceAutomationTableLoaded, x as WorkspaceAutomationTableRun, y as WorkspaceAutomationTableProps } from "../../WorkspaceAutomation-C0fghGLi.js";
1
+ import { C as WorkspaceAutomationTableValue, S as WorkspaceAutomationTableSource, _ as WorkspaceAutomationTableLoadOptions, b as WorkspaceAutomationTableRow, g as WorkspaceAutomationTableInput, h as WorkspaceAutomationTableData, m as WorkspaceAutomationTableActions, p as WorkspaceAutomationTable, v as WorkspaceAutomationTableLoaded, x as WorkspaceAutomationTableRun, y as WorkspaceAutomationTableProps } from "../../WorkspaceAutomation-hwl6C1aX.js";
2
2
  export { WorkspaceAutomationTable, WorkspaceAutomationTableActions, WorkspaceAutomationTableData, WorkspaceAutomationTableInput, WorkspaceAutomationTableLoadOptions, WorkspaceAutomationTableLoaded, WorkspaceAutomationTableProps, WorkspaceAutomationTableRow, WorkspaceAutomationTableRun, WorkspaceAutomationTableSource, WorkspaceAutomationTableValue };
@@ -1,2 +1,2 @@
1
- import { i as WorkspaceBrowserSort, n as WorkspaceBrowserActions, r as WorkspaceBrowserProps, t as WorkspaceBrowser } from "../../WorkspaceBrowser-Dz48H-7X.js";
1
+ import { i as WorkspaceBrowserSort, n as WorkspaceBrowserActions, r as WorkspaceBrowserProps, t as WorkspaceBrowser } from "../../WorkspaceBrowser-CNVAKXXZ.js";
2
2
  export { WorkspaceBrowser, WorkspaceBrowserActions, WorkspaceBrowserProps, WorkspaceBrowserSort };
@@ -1,2 +1,2 @@
1
- import { t as WorkspaceBrowser } from "../../WorkspaceBrowser-oBJv-Dac.js";
1
+ import { t as WorkspaceBrowser } from "../../WorkspaceBrowser-ojoZy0uO.js";
2
2
  export { WorkspaceBrowser };
@@ -1,2 +1,2 @@
1
- import { a as workspacePathsOverlap, i as workspaceConceptQueryOptions, n as invalidateWorkspaceConceptQueries, r as workspaceConceptQueryKey, t as WorkspaceConceptQueryOptions } from "../../WorkspaceConcept-D46cYerS.js";
1
+ import { a as workspacePathsOverlap, i as workspaceConceptQueryOptions, n as invalidateWorkspaceConceptQueries, r as workspaceConceptQueryKey, t as WorkspaceConceptQueryOptions } from "../../WorkspaceConcept-DqzfZWws.js";
2
2
  export { WorkspaceConceptQueryOptions, invalidateWorkspaceConceptQueries, workspaceConceptQueryKey, workspaceConceptQueryOptions, workspacePathsOverlap };
@@ -1,4 +1,4 @@
1
- import { t as WorkspaceConceptQueryOptions } from "../../WorkspaceConcept-D46cYerS.js";
1
+ import { t as WorkspaceConceptQueryOptions } from "../../WorkspaceConcept-DqzfZWws.js";
2
2
  import { t as ConceptCardProps } from "../../workspace-entity-card-2TC3RPKh.js";
3
3
  import { t as WorkspacePerson } from "../../workspace-person-BSgvRjZE.js";
4
4
  import * as React from "react";
@@ -1,5 +1,5 @@
1
- import { r as WorkspaceDragAndDrop } from "../../WorkspaceFileTransfer-BRD22nW-.js";
2
- import { i as WorkspaceFileCommands } from "../../WorkspaceFileCommands-1s9Ol8CG.js";
1
+ import { r as WorkspaceDragAndDrop } from "../../WorkspaceFileTransfer-D--dVla2.js";
2
+ import { i as WorkspaceFileCommands } from "../../WorkspaceFileCommands-CN2oVUzx.js";
3
3
  import * as React from "react";
4
4
  import { FileInfo } from "@cloudflare/shell";
5
5
  //#region src/components/agents-sdk/WorkspaceDesktop.d.ts
@@ -13,13 +13,13 @@ export interface WorkspaceDesktopProps {
13
13
  onOpen: (entry: FileInfo) => void;
14
14
  /** Mounted only while Quick Look is open. Reuse WorkspaceFileView for file content. */
15
15
  renderPreview: (entry: FileInfo) => React.ReactNode;
16
- /** Decorative, host-provided thumbnails. Never fetch full files merely to populate the desktop. */
17
- renderThumbnail?: (entry: FileInfo) => React.ReactNode;
18
16
  /** Visible host destination when Quick Look closes after this desktop was hidden. */
19
17
  previewFallbackFocus?: () => HTMLElement | null;
20
18
  /**
21
19
  * Objects drag, and the desktop and its folders take drops, as on the Finder
22
- * desktop. A folder held under a drag opens through `onOpen`.
20
+ * desktop. A folder held under a drag opens through `onOpen`. Its workspace
21
+ * also draws the objects' thumbnails: an SVG as its image, a text file as
22
+ * its page; without it every object keeps its kind's artwork.
23
23
  */
24
24
  dragAndDrop?: WorkspaceDragAndDrop;
25
25
  /**
@@ -41,5 +41,5 @@ export interface WorkspaceDesktopProps {
41
41
  * Right-click, a held finger, or Shift+F10 opens the Finder's menu on the
42
42
  * object or on the desktop. Dialog owns dismissal and focus containment.
43
43
  */
44
- export declare function WorkspaceDesktop({ entries: listed, directory, onOpen, renderPreview, renderThumbnail, previewFallbackFocus, dragAndDrop, commands, backgroundMenu }: WorkspaceDesktopProps): React.JSX.Element;
44
+ export declare function WorkspaceDesktop({ entries: listed, directory, onOpen, renderPreview, previewFallbackFocus, dragAndDrop, commands, backgroundMenu }: WorkspaceDesktopProps): React.JSX.Element;
45
45
  //#endregion