@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
@@ -45,10 +45,12 @@ export declare function PlanStep({ className, status, ref, ...props }: PlanStepP
45
45
  ref?: React.Ref<HTMLLIElement>;
46
46
  }): React.JSX.Element;
47
47
  export interface PlanStepIndicatorProps extends React.HTMLAttributes<HTMLSpanElement> {
48
+ /** Status chrome for compact plans, or a plain inline marker for transcript cards. */
49
+ variant?: "status" | "plain";
48
50
  /** Accessible label for the visual state indicator. */
49
51
  label?: string;
50
52
  }
51
- export declare function PlanStepIndicator({ children, className, label, ref, ...props }: PlanStepIndicatorProps & {
53
+ export declare function PlanStepIndicator({ children, className, label, variant, ref, ...props }: PlanStepIndicatorProps & {
52
54
  ref?: React.Ref<HTMLSpanElement>;
53
55
  }): React.JSX.Element;
54
56
  export interface PlanStepTitleProps extends React.HTMLAttributes<HTMLDivElement> {}
@@ -69,9 +71,8 @@ export interface PlanSummaryProps extends React.HTMLAttributes<HTMLDivElement> {
69
71
  onOpenChange?: PopoverProps["onOpenChange"];
70
72
  }
71
73
  /**
72
- * Collapsed presentation of an application-owned plan — a progress pill that
73
- * opens a popover with the full step list, following the shipped Codex
74
- * "Step 2 / 3" to-do plan pill. Compose the existing `Plan` anatomy inside
74
+ * Collapsed presentation of an application-owned plan — a completion count that
75
+ * opens a popover with the full step list. Compose the existing `Plan` anatomy inside
75
76
  * `PlanSummaryContent`.
76
77
  *
77
78
  * @example
@@ -89,13 +90,12 @@ export declare function PlanSummary({ className, completed, total, open, default
89
90
  }): React.JSX.Element;
90
91
  export interface PlanSummaryTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {}
91
92
  /**
92
- * The progress pill. Default content is a fraction ring plus
93
- * "Step {current} / {total}" where the current step is the one after the
94
- * completed ones; children replace the label while keeping the ring.
93
+ * A quiet disclosure control. Children replace the completion label while
94
+ * retaining the chevron and native popover behavior.
95
95
  */
96
96
  export declare function PlanSummaryTrigger({ className, children, ...props }: PlanSummaryTriggerProps): React.JSX.Element;
97
97
  export interface PlanSummaryContentProps extends React.HTMLAttributes<HTMLDivElement> {
98
- /** The pill usually sits above a composer, so default "top". */
98
+ /** The summary usually sits above a composer, so default "top". */
99
99
  side?: PopoverPositionerProps["side"];
100
100
  }
101
101
  export declare function PlanSummaryContent({ className, side, children, ...props }: PlanSummaryContentProps): React.JSX.Element;
@@ -108,9 +108,33 @@ export interface PlanSummaryStep {
108
108
  export interface PlanSummaryListProps {
109
109
  /** Complete normalized plan state from the host. */
110
110
  steps: readonly PlanSummaryStep[];
111
- /** The pill usually sits above a composer, so default "top". */
111
+ /** The summary usually sits above a composer, so default "top". */
112
112
  side?: PlanSummaryContentProps["side"];
113
113
  }
114
+ export interface PlanCardStep extends Omit<PlanSummaryStep, "step"> {
115
+ /** Short row label; supporting evidence belongs in details. */
116
+ step: string;
117
+ /** Optional supporting content, disclosed on request. */
118
+ details?: React.ReactNode;
119
+ }
120
+ export interface PlanResultProps extends Omit<React.HTMLAttributes<HTMLElement>, "children"> {
121
+ /** Markdown report, including headings, links and location tables. */
122
+ children: string;
123
+ }
124
+ /** Task result with readable references and tables, without artifact action buttons. */
125
+ export declare function PlanResult({ children, className, ...props }: PlanResultProps): React.JSX.Element;
126
+ export interface PlanCardProps extends Omit<PlanProps, "title" | "children"> {
127
+ /** Complete normalized plan state owned by the host. */
128
+ steps: readonly PlanCardStep[];
129
+ /** Heading for the work represented by this plan. */
130
+ title?: React.ReactNode;
131
+ /** Optional explanation or outcome from the host. */
132
+ description?: React.ReactNode;
133
+ /** Current task result. Uses the same general plan update, not another receipt. */
134
+ summary?: string;
135
+ }
136
+ /** Visible plan card for transcript progress, using the same anatomy as PlanSummaryList. */
137
+ export declare function PlanCard({ steps, title, description, summary, className, ...props }: PlanCardProps): React.JSX.Element | null;
114
138
  /** Data-only convenience renderer for hosts that already own normalized plan rows. */
115
139
  export declare function PlanSummaryList({ steps, side }: PlanSummaryListProps): React.JSX.Element | null;
116
140
  //#endregion
@@ -1,7 +1,8 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { S as DotIcon, i as ArrowRightIcon, p as CheckIcon } from "../../icons-nLTnB9kd.js";
2
+ import { S as DotIcon, i as ArrowRightIcon, m as ChevronDownIcon, p as CheckIcon } from "../../icons-nLTnB9kd.js";
3
+ import { Collapsible } from "../foundations/Collapsible.js";
4
+ import { MessageResponse } from "./Message.js";
3
5
  import { Popover } from "../foundations/Popover.js";
4
- import { t as ProgressRing } from "../../progress-ring-BO649JA9.js";
5
6
  import { c } from "react/compiler-runtime";
6
7
  import * as React from "react";
7
8
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -273,78 +274,84 @@ function defaultStepIcon(status) {
273
274
  return /* @__PURE__ */ jsx(DotIcon, {});
274
275
  }
275
276
  function PlanStepIndicator(t0) {
276
- const $ = c(21);
277
+ const $ = c(23);
277
278
  let children;
278
279
  let className;
279
280
  let label;
280
281
  let props;
281
282
  let ref;
283
+ let t1;
282
284
  if ($[0] !== t0) {
283
- ({children, className, label, ref, ...props} = t0);
285
+ ({children, className, label, variant: t1, ref, ...props} = t0);
284
286
  $[0] = t0;
285
287
  $[1] = children;
286
288
  $[2] = className;
287
289
  $[3] = label;
288
290
  $[4] = props;
289
291
  $[5] = ref;
292
+ $[6] = t1;
290
293
  } else {
291
294
  children = $[1];
292
295
  className = $[2];
293
296
  label = $[3];
294
297
  props = $[4];
295
298
  ref = $[5];
299
+ t1 = $[6];
296
300
  }
301
+ const variant = t1 === void 0 ? "status" : t1;
297
302
  const status = React.useContext(PlanStepContext);
298
- let t1;
299
- if ($[6] !== className) {
300
- t1 = cx("plan__step-indicator", className);
301
- $[6] = className;
302
- $[7] = t1;
303
- } else t1 = $[7];
304
303
  let t2;
305
- if ($[8] !== children || $[9] !== status) {
306
- t2 = children ?? defaultStepIcon(status);
307
- $[8] = children;
308
- $[9] = status;
309
- $[10] = t2;
310
- } else t2 = $[10];
304
+ if ($[7] !== className) {
305
+ t2 = cx("plan__step-indicator", className);
306
+ $[7] = className;
307
+ $[8] = t2;
308
+ } else t2 = $[8];
311
309
  let t3;
312
- if ($[11] !== t2) {
313
- t3 = /* @__PURE__ */ jsx("span", {
310
+ if ($[9] !== children || $[10] !== status) {
311
+ t3 = children ?? defaultStepIcon(status);
312
+ $[9] = children;
313
+ $[10] = status;
314
+ $[11] = t3;
315
+ } else t3 = $[11];
316
+ let t4;
317
+ if ($[12] !== t3) {
318
+ t4 = /* @__PURE__ */ jsx("span", {
314
319
  className: "plan__step-indicator-visual",
315
320
  "aria-hidden": "true",
316
- children: t2
321
+ children: t3
317
322
  });
318
- $[11] = t2;
319
323
  $[12] = t3;
320
- } else t3 = $[12];
321
- const t4 = label ?? STATUS_LABELS[status];
322
- let t5;
323
- if ($[13] !== t4) {
324
- t5 = /* @__PURE__ */ jsx("span", {
324
+ $[13] = t4;
325
+ } else t4 = $[13];
326
+ const t5 = label ?? STATUS_LABELS[status];
327
+ let t6;
328
+ if ($[14] !== t5) {
329
+ t6 = /* @__PURE__ */ jsx("span", {
325
330
  className: "sigvelo-visually-hidden",
326
- children: t4
331
+ children: t5
327
332
  });
328
- $[13] = t4;
329
333
  $[14] = t5;
330
- } else t5 = $[14];
331
- let t6;
332
- if ($[15] !== props || $[16] !== ref || $[17] !== t1 || $[18] !== t3 || $[19] !== t5) {
333
- t6 = /* @__PURE__ */ jsxs("span", {
334
+ $[15] = t6;
335
+ } else t6 = $[15];
336
+ let t7;
337
+ if ($[16] !== props || $[17] !== ref || $[18] !== t2 || $[19] !== t4 || $[20] !== t6 || $[21] !== variant) {
338
+ t7 = /* @__PURE__ */ jsxs("span", {
334
339
  ref,
335
340
  "data-slot": "plan-step-indicator",
336
- className: t1,
341
+ "data-variant": variant,
342
+ className: t2,
337
343
  ...props,
338
- children: [t3, t5]
344
+ children: [t4, t6]
339
345
  });
340
- $[15] = props;
341
- $[16] = ref;
342
- $[17] = t1;
343
- $[18] = t3;
344
- $[19] = t5;
346
+ $[16] = props;
347
+ $[17] = ref;
348
+ $[18] = t2;
349
+ $[19] = t4;
345
350
  $[20] = t6;
346
- } else t6 = $[20];
347
- return t6;
351
+ $[21] = variant;
352
+ $[22] = t7;
353
+ } else t7 = $[22];
354
+ return t7;
348
355
  }
349
356
  function PlanStepTitle(t0) {
350
357
  const $ = c(10);
@@ -427,9 +434,8 @@ function usePlanSummaryContext() {
427
434
  return ctx;
428
435
  }
429
436
  /**
430
- * Collapsed presentation of an application-owned plan — a progress pill that
431
- * opens a popover with the full step list, following the shipped Codex
432
- * "Step 2 / 3" to-do plan pill. Compose the existing `Plan` anatomy inside
437
+ * Collapsed presentation of an application-owned plan — a completion count that
438
+ * opens a popover with the full step list. Compose the existing `Plan` anatomy inside
433
439
  * `PlanSummaryContent`.
434
440
  *
435
441
  * @example
@@ -535,12 +541,11 @@ function PlanSummary(t0) {
535
541
  return t5;
536
542
  }
537
543
  /**
538
- * The progress pill. Default content is a fraction ring plus
539
- * "Step {current} / {total}" where the current step is the one after the
540
- * completed ones; children replace the label while keeping the ring.
544
+ * A quiet disclosure control. Children replace the completion label while
545
+ * retaining the chevron and native popover behavior.
541
546
  */
542
547
  function PlanSummaryTrigger(t0) {
543
- const $ = c(16);
548
+ const $ = c(14);
544
549
  let children;
545
550
  let className;
546
551
  let props;
@@ -556,8 +561,6 @@ function PlanSummaryTrigger(t0) {
556
561
  props = $[3];
557
562
  }
558
563
  const { completed, total } = usePlanSummaryContext();
559
- const percent = total > 0 ? completed / total * 100 : 0;
560
- const currentStep = Math.min(completed + 1, total);
561
564
  let t1;
562
565
  if ($[4] !== className) {
563
566
  t1 = cx("plan-summary__trigger", className);
@@ -565,42 +568,36 @@ function PlanSummaryTrigger(t0) {
565
568
  $[5] = t1;
566
569
  } else t1 = $[5];
567
570
  const t2 = `Plan: ${completed} of ${total} steps completed`;
568
- let t3;
569
- if ($[6] !== percent) {
570
- t3 = /* @__PURE__ */ jsx(ProgressRing, {
571
- percent,
572
- size: 16,
573
- stroke: 2.5
574
- });
575
- $[6] = percent;
576
- $[7] = t3;
577
- } else t3 = $[7];
578
- const t4 = children ?? `Step ${currentStep} / ${total}`;
579
- let t5;
580
- if ($[8] !== t4) {
581
- t5 = /* @__PURE__ */ jsx("span", {
571
+ const t3 = children ?? `${completed} of ${total} completed`;
572
+ let t4;
573
+ if ($[6] !== t3) {
574
+ t4 = /* @__PURE__ */ jsx("span", {
582
575
  className: "plan-summary__trigger-label",
583
- children: t4
576
+ children: t3
584
577
  });
585
- $[8] = t4;
586
- $[9] = t5;
587
- } else t5 = $[9];
578
+ $[6] = t3;
579
+ $[7] = t4;
580
+ } else t4 = $[7];
581
+ let t5;
582
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
583
+ t5 = /* @__PURE__ */ jsx(ChevronDownIcon, { "aria-hidden": "true" });
584
+ $[8] = t5;
585
+ } else t5 = $[8];
588
586
  let t6;
589
- if ($[10] !== props || $[11] !== t1 || $[12] !== t2 || $[13] !== t3 || $[14] !== t5) {
587
+ if ($[9] !== props || $[10] !== t1 || $[11] !== t2 || $[12] !== t4) {
590
588
  t6 = /* @__PURE__ */ jsxs(Popover.Trigger, {
591
589
  unstyled: true,
592
590
  className: t1,
593
591
  "aria-label": t2,
594
592
  ...props,
595
- children: [t3, t5]
593
+ children: [t4, t5]
596
594
  });
597
- $[10] = props;
598
- $[11] = t1;
599
- $[12] = t2;
600
- $[13] = t3;
601
- $[14] = t5;
602
- $[15] = t6;
603
- } else t6 = $[15];
595
+ $[9] = props;
596
+ $[10] = t1;
597
+ $[11] = t2;
598
+ $[12] = t4;
599
+ $[13] = t6;
600
+ } else t6 = $[13];
604
601
  return t6;
605
602
  }
606
603
  function PlanSummaryContent(t0) {
@@ -646,6 +643,7 @@ function PlanSummaryContent(t0) {
646
643
  if ($[11] !== side || $[12] !== t3) {
647
644
  t4 = /* @__PURE__ */ jsx(Popover.Portal, { children: /* @__PURE__ */ jsx(Popover.Positioner, {
648
645
  side,
646
+ sideOffset: 8,
649
647
  children: t3
650
648
  }) });
651
649
  $[11] = side;
@@ -654,14 +652,240 @@ function PlanSummaryContent(t0) {
654
652
  } else t4 = $[13];
655
653
  return t4;
656
654
  }
655
+ function PlanResultTable(t0) {
656
+ const $ = c(4);
657
+ let props;
658
+ if ($[0] !== t0) {
659
+ const { node: _node, ...t1 } = t0;
660
+ props = t1;
661
+ $[0] = t0;
662
+ $[1] = props;
663
+ } else props = $[1];
664
+ let t1;
665
+ if ($[2] !== props) {
666
+ t1 = /* @__PURE__ */ jsx("div", {
667
+ className: "plan-result__table",
668
+ role: "region",
669
+ "aria-label": "Result table",
670
+ tabIndex: 0,
671
+ children: /* @__PURE__ */ jsx("table", {
672
+ "data-streamdown": "table",
673
+ ...props
674
+ })
675
+ });
676
+ $[2] = props;
677
+ $[3] = t1;
678
+ } else t1 = $[3];
679
+ return t1;
680
+ }
681
+ /** Task result with readable references and tables, without artifact action buttons. */
682
+ function PlanResult(t0) {
683
+ const $ = c(14);
684
+ let children;
685
+ let className;
686
+ let props;
687
+ if ($[0] !== t0) {
688
+ ({children, className, ...props} = t0);
689
+ $[0] = t0;
690
+ $[1] = children;
691
+ $[2] = className;
692
+ $[3] = props;
693
+ } else {
694
+ children = $[1];
695
+ className = $[2];
696
+ props = $[3];
697
+ }
698
+ let t1;
699
+ if ($[4] !== className) {
700
+ t1 = cx("plan-result", className);
701
+ $[4] = className;
702
+ $[5] = t1;
703
+ } else t1 = $[5];
704
+ let t2;
705
+ let t3;
706
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
707
+ t2 = { table: false };
708
+ t3 = { table: PlanResultTable };
709
+ $[6] = t2;
710
+ $[7] = t3;
711
+ } else {
712
+ t2 = $[6];
713
+ t3 = $[7];
714
+ }
715
+ let t4;
716
+ if ($[8] !== children) {
717
+ t4 = /* @__PURE__ */ jsx(MessageResponse, {
718
+ mode: "static",
719
+ controls: t2,
720
+ components: t3,
721
+ children
722
+ });
723
+ $[8] = children;
724
+ $[9] = t4;
725
+ } else t4 = $[9];
726
+ let t5;
727
+ if ($[10] !== props || $[11] !== t1 || $[12] !== t4) {
728
+ t5 = /* @__PURE__ */ jsx("section", {
729
+ className: t1,
730
+ ...props,
731
+ children: t4
732
+ });
733
+ $[10] = props;
734
+ $[11] = t1;
735
+ $[12] = t4;
736
+ $[13] = t5;
737
+ } else t5 = $[13];
738
+ return t5;
739
+ }
740
+ /** Visible plan card for transcript progress, using the same anatomy as PlanSummaryList. */
741
+ function PlanCard(t0) {
742
+ const $ = c(35);
743
+ let className;
744
+ let description;
745
+ let props;
746
+ let steps;
747
+ let summary;
748
+ let t1;
749
+ if ($[0] !== t0) {
750
+ ({steps, title: t1, description, summary, className, ...props} = t0);
751
+ $[0] = t0;
752
+ $[1] = className;
753
+ $[2] = description;
754
+ $[3] = props;
755
+ $[4] = steps;
756
+ $[5] = summary;
757
+ $[6] = t1;
758
+ } else {
759
+ className = $[1];
760
+ description = $[2];
761
+ props = $[3];
762
+ steps = $[4];
763
+ summary = $[5];
764
+ t1 = $[6];
765
+ }
766
+ const title = t1 === void 0 ? "Work plan" : t1;
767
+ if (steps.length === 0) return null;
768
+ let t2;
769
+ if ($[7] !== steps) {
770
+ t2 = steps.filter(_temp);
771
+ $[7] = steps;
772
+ $[8] = t2;
773
+ } else t2 = $[8];
774
+ const completed = t2.length;
775
+ let t3;
776
+ if ($[9] !== className) {
777
+ t3 = cx("plan-card", className);
778
+ $[9] = className;
779
+ $[10] = t3;
780
+ } else t3 = $[10];
781
+ let t4;
782
+ if ($[11] !== title) {
783
+ t4 = /* @__PURE__ */ jsx(PlanTitle, { children: title });
784
+ $[11] = title;
785
+ $[12] = t4;
786
+ } else t4 = $[12];
787
+ const t5 = `${completed} of ${steps.length} steps completed`;
788
+ let t6;
789
+ if ($[13] !== t5) {
790
+ t6 = /* @__PURE__ */ jsx(PlanDescription, { children: t5 });
791
+ $[13] = t5;
792
+ $[14] = t6;
793
+ } else t6 = $[14];
794
+ let t7;
795
+ if ($[15] !== description) {
796
+ t7 = description ? /* @__PURE__ */ jsx(PlanDescription, { children: description }) : null;
797
+ $[15] = description;
798
+ $[16] = t7;
799
+ } else t7 = $[16];
800
+ let t8;
801
+ if ($[17] !== t4 || $[18] !== t6 || $[19] !== t7) {
802
+ t8 = /* @__PURE__ */ jsxs(PlanHeader, { children: [
803
+ t4,
804
+ t6,
805
+ t7
806
+ ] });
807
+ $[17] = t4;
808
+ $[18] = t6;
809
+ $[19] = t7;
810
+ $[20] = t8;
811
+ } else t8 = $[20];
812
+ let t9;
813
+ if ($[21] !== steps) {
814
+ t9 = steps.map(_temp2);
815
+ $[21] = steps;
816
+ $[22] = t9;
817
+ } else t9 = $[22];
818
+ let t10;
819
+ if ($[23] !== t9) {
820
+ t10 = /* @__PURE__ */ jsx(PlanContent, { children: t9 });
821
+ $[23] = t9;
822
+ $[24] = t10;
823
+ } else t10 = $[24];
824
+ let t11;
825
+ if ($[25] !== t10 || $[26] !== t8) {
826
+ t11 = /* @__PURE__ */ jsxs(Plan, {
827
+ className: "plan--card",
828
+ role: "region",
829
+ "aria-label": "Work plan",
830
+ children: [t8, t10]
831
+ });
832
+ $[25] = t10;
833
+ $[26] = t8;
834
+ $[27] = t11;
835
+ } else t11 = $[27];
836
+ let t12;
837
+ if ($[28] !== summary) {
838
+ t12 = summary ? /* @__PURE__ */ jsx(PlanResult, { children: summary }) : null;
839
+ $[28] = summary;
840
+ $[29] = t12;
841
+ } else t12 = $[29];
842
+ let t13;
843
+ if ($[30] !== props || $[31] !== t11 || $[32] !== t12 || $[33] !== t3) {
844
+ t13 = /* @__PURE__ */ jsxs("div", {
845
+ className: t3,
846
+ ...props,
847
+ children: [t11, t12]
848
+ });
849
+ $[30] = props;
850
+ $[31] = t11;
851
+ $[32] = t12;
852
+ $[33] = t3;
853
+ $[34] = t13;
854
+ } else t13 = $[34];
855
+ return t13;
856
+ }
857
+ function _temp2(item_0) {
858
+ return /* @__PURE__ */ jsxs(PlanStep, {
859
+ status: item_0.status,
860
+ children: [/* @__PURE__ */ jsx(PlanStepIndicator, { variant: "plain" }), item_0.details ? /* @__PURE__ */ jsxs(Collapsible.Root, {
861
+ unstyled: true,
862
+ className: "plan__step-body",
863
+ children: [/* @__PURE__ */ jsxs(Collapsible.Trigger, {
864
+ unstyled: true,
865
+ className: "plan__step-trigger",
866
+ children: [/* @__PURE__ */ jsx("span", {
867
+ className: "plan__step-title",
868
+ children: item_0.step
869
+ }), /* @__PURE__ */ jsx(ChevronDownIcon, { "aria-hidden": "true" })]
870
+ }), /* @__PURE__ */ jsx(Collapsible.Panel, {
871
+ unstyled: true,
872
+ className: "plan__step-details",
873
+ children: /* @__PURE__ */ jsx("div", { children: item_0.details })
874
+ })]
875
+ }) : /* @__PURE__ */ jsx(PlanStepTitle, { children: item_0.step })]
876
+ }, item_0.id);
877
+ }
878
+ function _temp(item) {
879
+ return item.status === "complete";
880
+ }
657
881
  /** Data-only convenience renderer for hosts that already own normalized plan rows. */
658
882
  function PlanSummaryList(t0) {
659
- const $ = c(14);
883
+ const $ = c(15);
660
884
  const { steps, side } = t0;
661
885
  if (steps.length === 0) return null;
662
886
  let t1;
663
887
  if ($[0] !== steps) {
664
- t1 = steps.filter(_temp);
888
+ t1 = steps.filter(_temp3);
665
889
  $[0] = steps;
666
890
  $[1] = t1;
667
891
  } else t1 = $[1];
@@ -673,49 +897,54 @@ function PlanSummaryList(t0) {
673
897
  $[2] = t3;
674
898
  } else t3 = $[2];
675
899
  let t4;
676
- if ($[3] !== steps) {
677
- t4 = steps.map(_temp2);
678
- $[3] = steps;
679
- $[4] = t4;
680
- } else t4 = $[4];
900
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
901
+ t4 = /* @__PURE__ */ jsx(PlanHeader, { children: /* @__PURE__ */ jsx(PlanTitle, { children: "Work plan" }) });
902
+ $[3] = t4;
903
+ } else t4 = $[3];
681
904
  let t5;
682
- if ($[5] !== t4) {
683
- t5 = /* @__PURE__ */ jsx(Plan, { children: /* @__PURE__ */ jsx(PlanContent, { children: t4 }) });
684
- $[5] = t4;
685
- $[6] = t5;
686
- } else t5 = $[6];
905
+ if ($[4] !== steps) {
906
+ t5 = steps.map(_temp4);
907
+ $[4] = steps;
908
+ $[5] = t5;
909
+ } else t5 = $[5];
687
910
  let t6;
688
- if ($[7] !== side || $[8] !== t5) {
689
- t6 = /* @__PURE__ */ jsx(PlanSummaryContent, {
911
+ if ($[6] !== t5) {
912
+ t6 = /* @__PURE__ */ jsxs(Plan, { children: [t4, /* @__PURE__ */ jsx(PlanContent, { children: t5 })] });
913
+ $[6] = t5;
914
+ $[7] = t6;
915
+ } else t6 = $[7];
916
+ let t7;
917
+ if ($[8] !== side || $[9] !== t6) {
918
+ t7 = /* @__PURE__ */ jsx(PlanSummaryContent, {
690
919
  side,
691
- children: t5
920
+ children: t6
692
921
  });
693
- $[7] = side;
694
- $[8] = t5;
922
+ $[8] = side;
695
923
  $[9] = t6;
696
- } else t6 = $[9];
697
- let t7;
698
- if ($[10] !== completed || $[11] !== steps.length || $[12] !== t6) {
699
- t7 = /* @__PURE__ */ jsxs(PlanSummary, {
924
+ $[10] = t7;
925
+ } else t7 = $[10];
926
+ let t8;
927
+ if ($[11] !== completed || $[12] !== steps.length || $[13] !== t7) {
928
+ t8 = /* @__PURE__ */ jsxs(PlanSummary, {
700
929
  completed,
701
930
  total: t2,
702
- children: [t3, t6]
931
+ children: [t3, t7]
703
932
  });
704
- $[10] = completed;
705
- $[11] = steps.length;
706
- $[12] = t6;
933
+ $[11] = completed;
934
+ $[12] = steps.length;
707
935
  $[13] = t7;
708
- } else t7 = $[13];
709
- return t7;
936
+ $[14] = t8;
937
+ } else t8 = $[14];
938
+ return t8;
710
939
  }
711
- function _temp2(item_0) {
940
+ function _temp4(item_0) {
712
941
  return /* @__PURE__ */ jsxs(PlanStep, {
713
942
  status: item_0.status,
714
- children: [/* @__PURE__ */ jsx(PlanStepIndicator, {}), /* @__PURE__ */ jsx(PlanStepTitle, { children: item_0.step })]
943
+ children: [/* @__PURE__ */ jsx(PlanStepIndicator, { variant: "plain" }), /* @__PURE__ */ jsx(PlanStepTitle, { children: item_0.step })]
715
944
  }, item_0.id);
716
945
  }
717
- function _temp(item) {
946
+ function _temp3(item) {
718
947
  return item.status === "complete";
719
948
  }
720
949
  //#endregion
721
- export { Plan, PlanContent, PlanDescription, PlanHeader, PlanStep, PlanStepDescription, PlanStepIndicator, PlanStepTitle, PlanSummary, PlanSummaryContent, PlanSummaryList, PlanSummaryTrigger, PlanTitle };
950
+ export { Plan, PlanCard, PlanContent, PlanDescription, PlanHeader, PlanResult, PlanStep, PlanStepDescription, PlanStepIndicator, PlanStepTitle, PlanSummary, PlanSummaryContent, PlanSummaryList, PlanSummaryTrigger, PlanTitle };
@@ -16,7 +16,7 @@ import { PreviewCard } from "../foundations/PreviewCard.js";
16
16
  import { Tabs } from "../foundations/Tabs.js";
17
17
  import { n as groupCommands, t as commandMatchesQuery } from "../../command-search-1fjmCBBo.js";
18
18
  import { PromptInputComposerEditor } from "./PromptInputComposerEditor.js";
19
- import { i as workspaceDropFiles, n as readWorkspaceDrop } from "../../workspace-drag-B6hMXUNt.js";
19
+ import { i as workspaceDropFiles, n as readWorkspaceDrop } from "../../workspace-drag-BNhZIN8F.js";
20
20
  import { c } from "react/compiler-runtime";
21
21
  import * as React from "react";
22
22
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -8,16 +8,16 @@ import { AppIcon } from "../foundations/AppIcon.js";
8
8
  import { Kbd } from "../foundations/Kbd.js";
9
9
  import { Tabs } from "../foundations/Tabs.js";
10
10
  import { PromptInput, PromptInputBody, PromptInputButton, PromptInputDictation, PromptInputFooter, PromptInputFooterEnd, PromptInputProvider, PromptInputSubmit, PromptInputTextarea, PromptInputTools } from "../ai-sdk/PromptInput.js";
11
+ import { Radio, RadioGroup } from "../foundations/RadioGroup.js";
11
12
  import { Input } from "../foundations/Input.js";
12
13
  import { Avatar } from "../foundations/Avatar.js";
14
+ import { formatThinkScheduleRepeat, getThinkScheduleNextRun } from "../agents-sdk/ThinkSchedule.js";
13
15
  import { DescriptionList } from "../foundations/DescriptionList.js";
14
16
  import { a as executionResultSummary, n as executionErrorSummary, s as stepState, t as boardNotice } from "../../execution-result-DAuW4VWv.js";
15
17
  import { Card, CardContent } from "../foundations/Card.js";
16
18
  import { t as WorkspaceEntityCard } from "../../workspace-entity-card-9YcsNiqU.js";
17
19
  import { WorkspaceAutomationFile } from "../agents-sdk/WorkspaceAutomation.js";
18
- import { formatThinkScheduleRepeat, getThinkScheduleNextRun } from "../agents-sdk/ThinkSchedule.js";
19
20
  import { Switch } from "../foundations/Switch.js";
20
- import { Radio, RadioGroup } from "../foundations/RadioGroup.js";
21
21
  import { t as ProviderLogo } from "../../provider-logos-Ceu7iYFx.js";
22
22
  import { n as peopleListItems } from "../../workspace-person-ZwPqu5TX.js";
23
23
  import { WorkspacePersonFile } from "../agents-sdk/WorkspacePerson.js";
@@ -17,6 +17,8 @@ export interface ThemeContextValue {
17
17
  resolvedTheme: ResolvedTheme;
18
18
  setPreference: (preference: ThemePreference) => void;
19
19
  }
20
+ /** Null outside a ThemeProvider; `useTheme` throws there instead. */
21
+ export declare const ThemeContext: React.Context<ThemeContextValue | null>;
20
22
  /**
21
23
  * Owns the application-wide theme preference and keeps document metadata,
22
24
  * storage, cross-tab changes, and operating-system changes synchronized.