@mcp-b/react-components 0.43.0 → 0.44.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 (106) hide show
  1. package/dist/{CodeBlock-BjELA-_s.js → CodeBlock-Dl7a3Wqo.js} +1 -1
  2. package/dist/{FileTree-DMYRdT6R.js → FileTree-Uu3ZnW1u.js} +1 -1
  3. package/dist/{SetupChecklist-H1JRCIIe.js → SetupChecklist-DOp-zqjh.js} +1 -1
  4. package/dist/{WorkspaceFileView-DWMKxX_u.js → WorkspaceFileView-BublZXky.js} +2 -2
  5. package/dist/components/agents-sdk/AgentActivity.js +1 -1
  6. package/dist/components/agents-sdk/AgentChat.js +10 -10
  7. package/dist/components/agents-sdk/BrowserLiveScreen.js +4 -1
  8. package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
  9. package/dist/components/agents-sdk/BrowserReplay.js +1 -1
  10. package/dist/components/agents-sdk/BrowserRunPanel.js +1 -1
  11. package/dist/components/agents-sdk/ManagerOffice.js +4 -4
  12. package/dist/components/agents-sdk/McpConnectionRequest.js +2 -2
  13. package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
  14. package/dist/components/agents-sdk/McpPluginCatalog.js +2 -2
  15. package/dist/components/agents-sdk/McpServerPicker.js +2 -2
  16. package/dist/components/agents-sdk/ModelSelector.js +3 -3
  17. package/dist/components/agents-sdk/PromptInputApproval.js +1 -1
  18. package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
  19. package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
  20. package/dist/components/agents-sdk/ThinkChatActivity.js +3 -3
  21. package/dist/components/agents-sdk/ThinkChatToolPanels.js +2 -2
  22. package/dist/components/agents-sdk/ThinkExecutionDetail.js +2 -2
  23. package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
  24. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +3 -3
  25. package/dist/components/agents-sdk/ThinkFullApp.js +1 -1
  26. package/dist/components/agents-sdk/ThinkRecoveryNotice.js +3 -2
  27. package/dist/components/agents-sdk/ThinkRoutine.d.ts +1 -7
  28. package/dist/components/agents-sdk/ThinkRoutineBrowser.js +2 -2
  29. package/dist/components/agents-sdk/ThinkRoutineForm.d.ts +34 -18
  30. package/dist/components/agents-sdk/ThinkRoutineForm.js +395 -110
  31. package/dist/components/agents-sdk/ThinkRoutineLibrary.d.ts +1 -1
  32. package/dist/components/agents-sdk/ThinkRoutineLibrary.js +3 -3
  33. package/dist/components/agents-sdk/ThinkRoutineRuns.js +1 -1
  34. package/dist/components/agents-sdk/ThinkSidepanel.d.ts +4 -4
  35. package/dist/components/agents-sdk/ThinkSidepanel.js +71 -16
  36. package/dist/components/agents-sdk/ThinkThreadPicker.js +3 -3
  37. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  38. package/dist/components/agents-sdk/WorkspaceExplorer.js +1 -1
  39. package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
  40. package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
  41. package/dist/components/agents-sdk/WorkspaceMountManager.js +2 -2
  42. package/dist/components/ai-sdk/Activity.js +1 -1
  43. package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
  44. package/dist/components/ai-sdk/Approval.js +2 -2
  45. package/dist/components/ai-sdk/Artifact.js +1 -1
  46. package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
  47. package/dist/components/ai-sdk/ChainOfThought.js +1 -1
  48. package/dist/components/ai-sdk/Checkpoint.js +1 -1
  49. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  50. package/dist/components/ai-sdk/ConnectedAppCards.d.ts +106 -0
  51. package/dist/components/ai-sdk/ConnectedAppCards.js +416 -0
  52. package/dist/components/ai-sdk/Conversation.js +1 -1
  53. package/dist/components/ai-sdk/Goal.js +1 -1
  54. package/dist/components/ai-sdk/InlineCitation.js +1 -1
  55. package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
  56. package/dist/components/ai-sdk/Message.js +1 -1
  57. package/dist/components/ai-sdk/MessageScroller.js +1 -1
  58. package/dist/components/ai-sdk/MessageScrollerVirtual.js +1 -1
  59. package/dist/components/ai-sdk/Plan.js +1 -1
  60. package/dist/components/ai-sdk/PromptInput.js +3 -3
  61. package/dist/components/ai-sdk/Queue.js +2 -2
  62. package/dist/components/ai-sdk/Reasoning.js +2 -2
  63. package/dist/components/ai-sdk/Sources.js +1 -1
  64. package/dist/components/ai-sdk/Task.js +1 -1
  65. package/dist/components/ai-sdk/ToolInvocation.js +1 -1
  66. package/dist/components/extension/ChatGptSignInScreen.d.ts +1 -3
  67. package/dist/components/extension/ChatGptSignInScreen.js +7 -20
  68. package/dist/components/extension/CodexModelSelector.js +2 -2
  69. package/dist/components/extension/ConversationTabPicker.js +2 -2
  70. package/dist/components/foundations/Checkbox.js +1 -1
  71. package/dist/components/foundations/Collapsible.js +1 -1
  72. package/dist/components/foundations/ContextMenu.js +1 -1
  73. package/dist/components/foundations/DescriptionList.d.ts +3 -0
  74. package/dist/components/foundations/DescriptionList.js +2 -1
  75. package/dist/components/foundations/Menubar.js +1 -1
  76. package/dist/components/foundations/SearchField.js +1 -1
  77. package/dist/components/foundations/Select.js +1 -1
  78. package/dist/components/foundations/Stepper.js +1 -1
  79. package/dist/components/foundations/Toast.js +1 -1
  80. package/dist/components/foundations/icons.d.ts +2 -2
  81. package/dist/components/foundations/icons.js +2 -2
  82. package/dist/components/general-purpose/Commit.js +2 -2
  83. package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
  84. package/dist/components/general-purpose/FileTree.js +1 -1
  85. package/dist/components/general-purpose/PricingPlanCard.js +1 -1
  86. package/dist/components/general-purpose/PricingUsageCalculator.js +1 -1
  87. package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
  88. package/dist/components/general-purpose/SettingsFormDialog.js +2 -2
  89. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  90. package/dist/components/general-purpose/Terminal.js +2 -2
  91. package/dist/components/general-purpose/TestResults.js +1 -1
  92. package/dist/components/general-purpose/ThemeModeControl.js +1 -1
  93. package/dist/components/general-purpose/WebPreview.js +2 -2
  94. package/dist/components/nanites/AgentConnection.js +2 -2
  95. package/dist/components/nanites/AgentToolDetail.js +1 -1
  96. package/dist/{copy-button-lys9N_aI.js → copy-button-DHhf-J1d.js} +1 -1
  97. package/dist/{icons-0corjfxR.d.ts → icons-6ZnyZJiR.d.ts} +6 -1
  98. package/dist/{icons-CVFSeTJn.js → icons-Dw-im7lg.js} +4 -3
  99. package/dist/styles/browser-live-screen.css +3 -0
  100. package/dist/styles/button.css +1 -5
  101. package/dist/styles/chatgpt-sign-in-screen.css +87 -43
  102. package/dist/styles/connected-app-card.css +54 -0
  103. package/dist/styles/description-list.css +25 -0
  104. package/dist/styles/index.css +1 -0
  105. package/dist/styles/think-routine-library.css +28 -0
  106. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { t as cx } from "./class-names-BiMDVpUo.js";
2
+ import { t as CopyButton } from "./copy-button-DHhf-J1d.js";
2
3
  import { Select } from "./components/foundations/Select.js";
3
- import { t as CopyButton } from "./copy-button-lys9N_aI.js";
4
4
  import * as React from "react";
5
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
6
  import { createHighlighter } from "shiki";
@@ -1,5 +1,5 @@
1
1
  import { t as cx } from "./class-names-BiMDVpUo.js";
2
- import { C as FolderIcon, S as FileIcon, p as ChevronRightIcon, w as FolderOpenIcon } from "./icons-CVFSeTJn.js";
2
+ import { C as FolderIcon, S as FileIcon, p as ChevronRightIcon, w as FolderOpenIcon } from "./icons-Dw-im7lg.js";
3
3
  import { t as NavigationLink } from "./navigation-link-kqMa81v5.js";
4
4
  import * as React from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import { n as mergeBaseClassName } from "./class-names-BiMDVpUo.js";
2
- import { $ as WarningIcon, B as PlusIcon, d as CheckIcon, f as ChevronDownIcon } from "./icons-CVFSeTJn.js";
2
+ import { V as PlusIcon, d as CheckIcon, et as WarningIcon, f as ChevronDownIcon } from "./icons-Dw-im7lg.js";
3
3
  import { Button } from "./components/foundations/Button.js";
4
4
  import { Menu } from "./components/foundations/Menu.js";
5
5
  import * as React from "react";
@@ -1,7 +1,7 @@
1
- import { $ as WarningIcon, O as MaximizeIcon, b as EyeIcon, d as CheckIcon, m as CodeIcon, r as ArrowLeftIcon, v as DownloadIcon } from "./icons-CVFSeTJn.js";
1
+ import { b as EyeIcon, d as CheckIcon, et as WarningIcon, k as MaximizeIcon, m as CodeIcon, r as ArrowLeftIcon, v as DownloadIcon } from "./icons-Dw-im7lg.js";
2
2
  import { r as formatClock } from "./format-DB2mX9DA.js";
3
- import { a as CodeBlockCopyButton, i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "./CodeBlock-BjELA-_s.js";
4
3
  import { AppTopBar } from "./components/general-purpose/AppTopBar.js";
4
+ import { a as CodeBlockCopyButton, i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "./CodeBlock-Dl7a3Wqo.js";
5
5
  import { inferWorkspaceLanguage, inferWorkspaceMedia, isWorkspaceMarkdownPath, isWorkspaceSkillPath, parseWorkspaceSkill } from "./components/agents-sdk/WorkspaceFile.js";
6
6
  import { c as useWorkspaceNavigationContext, s as useWorkspaceNavigationRestoration } from "./WorkspaceLink-DtH66bAY.js";
7
7
  import { n as createWorkspaceRehypePlugins, t as WorkspaceMessageResponse } from "./WorkspaceMessageResponse-CJCmGvTx.js";
@@ -1,5 +1,5 @@
1
1
  import { canRequestFavicon, inferFaviconUrl } from "../../utils/favicon.js";
2
- import { $ as WarningIcon, D as LinkIcon, N as MonitorIcon, R as PencilIcon, S as FileIcon, T as InfoIcon, U as SearchIcon, Z as TerminalIcon, et as WrenchIcon } from "../../icons-CVFSeTJn.js";
2
+ import { D as LinkIcon, P as MonitorIcon, Q as TerminalIcon, S as FileIcon, T as InfoIcon, W as SearchIcon, et as WarningIcon, tt as WrenchIcon, z as PencilIcon } from "../../icons-Dw-im7lg.js";
3
3
  import * as React from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region src/components/agents-sdk/AgentActivity.tsx
@@ -1,26 +1,26 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { ExpansionStateProvider } from "../ai-sdk/ExpansionState.js";
3
- import { B as PlusIcon, F as MoveToFrontIcon, H as RefreshIcon, K as SpinnerIcon, Q as TrashIcon, R as PencilIcon, V as QueueIcon, t as ArchiveIcon } from "../../icons-CVFSeTJn.js";
2
+ import { $ as TrashIcon, H as QueueIcon, I as MoveToFrontIcon, U as RefreshIcon, V as PlusIcon, q as SpinnerIcon, t as ArchiveIcon, z as PencilIcon } from "../../icons-Dw-im7lg.js";
4
3
  import { Button } from "../foundations/Button.js";
5
- import { AgentChatMessageEditor } from "../ai-sdk/AgentChatMessageEditor.js";
6
4
  import { IconButton } from "../foundations/IconButton.js";
7
- import { Menu } from "../foundations/Menu.js";
8
- import { PromptInput, PromptInputActionAddAttachments, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuTrigger, PromptInputAttachments, PromptInputBody, PromptInputButton, PromptInputCommandComposer, PromptInputContextSelector, PromptInputDictation, PromptInputFooter, PromptInputHeader, PromptInputPermissionSelector, PromptInputReferences, PromptInputSubmit, PromptInputTextarea, PromptInputTools, PromptInputTray, usePromptInputAttachments } from "../ai-sdk/PromptInput.js";
9
- import { AgentChatStartScreen } from "../ai-sdk/AgentChatStartScreen.js";
10
5
  import { Message, MessageAction, MessageActions, MessageMeta, MessageTimestamp } from "../ai-sdk/Message.js";
6
+ import { ExpansionStateProvider } from "../ai-sdk/ExpansionState.js";
11
7
  import { AgentMessageParts } from "../ai-sdk/AgentMessageParts.js";
12
- import { Marker, MarkerContent } from "../foundations/Marker.js";
13
- import { t as CopyButton } from "../../copy-button-lys9N_aI.js";
14
8
  import { Context, ContextContent, ContextContentBody, ContextContentHeader, ContextTrigger, getContextUsage, getContextUsedTokens } from "../ai-sdk/Context.js";
9
+ import { EmptyState } from "../foundations/EmptyState.js";
15
10
  import { VirtualMessageScroller } from "../ai-sdk/MessageScrollerVirtual.js";
16
11
  import { QueueItem, QueueItemActions, QueueItemContent } from "../ai-sdk/Queue.js";
17
- import { EmptyState } from "../foundations/EmptyState.js";
12
+ import { Menu } from "../foundations/Menu.js";
13
+ import { PromptInput, PromptInputActionAddAttachments, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuTrigger, PromptInputAttachments, PromptInputBody, PromptInputButton, PromptInputCommandComposer, PromptInputContextSelector, PromptInputDictation, PromptInputFooter, PromptInputHeader, PromptInputPermissionSelector, PromptInputReferences, PromptInputSubmit, PromptInputTextarea, PromptInputTools, PromptInputTray, usePromptInputAttachments } from "../ai-sdk/PromptInput.js";
14
+ import { AgentChatStartScreen } from "../ai-sdk/AgentChatStartScreen.js";
15
+ import { AgentChatMessageEditor } from "../ai-sdk/AgentChatMessageEditor.js";
16
+ import { Marker, MarkerContent } from "../foundations/Marker.js";
18
17
  import { TransitionSurface } from "../foundations/TransitionSurface.js";
19
18
  import { PromptInputApproval, getApprovalRequestId, getApprovalStateKey, getPendingToolApprovals } from "./PromptInputApproval.js";
19
+ import { t as CopyButton } from "../../copy-button-DHhf-J1d.js";
20
20
  import * as React from "react";
21
21
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
22
- import { isTextUIPart } from "ai";
23
22
  import { isCompactionMessage } from "agents/experimental/memory/utils";
23
+ import { isTextUIPart } from "ai";
24
24
  //#region src/components/agents-sdk/AgentChat.tsx
25
25
  /**
26
26
  * Agents exports this helper from `agents/sessions` after cloudflare/agents#1896;
@@ -1,4 +1,4 @@
1
- import { E as KeyboardIcon, H as RefreshIcon, r as ArrowLeftIcon } from "../../icons-CVFSeTJn.js";
1
+ import { E as KeyboardIcon, U as RefreshIcon, r as ArrowLeftIcon } from "../../icons-Dw-im7lg.js";
2
2
  import { Button } from "../foundations/Button.js";
3
3
  import { WebPreviewNavigationButton } from "../general-purpose/WebPreview.js";
4
4
  import { BrowserLiveView } from "./BrowserLiveView.js";
@@ -423,6 +423,7 @@ function BrowserLiveScreen({ sendSignal: sendHostSignal, subscribeSignals, proto
423
423
  }]);
424
424
  },
425
425
  onKeyDown: (event) => {
426
+ event.currentTarget.removeAttribute("data-pointer-focus");
426
427
  if (event.nativeEvent.isComposing) return;
427
428
  if (event.key === "Enter") event.preventDefault();
428
429
  sendInput([{
@@ -457,7 +458,9 @@ function BrowserLiveScreen({ sendSignal: sendHostSignal, subscribeSignals, proto
457
458
  onContextMenu: (event) => {
458
459
  event.preventDefault();
459
460
  },
461
+ onBlur: (event) => event.currentTarget.removeAttribute("data-pointer-focus"),
460
462
  onPointerDown: (event) => {
463
+ event.currentTarget.dataset.pointerFocus = "";
461
464
  if (event.pointerType === "touch") {
462
465
  beginTouch(event);
463
466
  return;
@@ -1,5 +1,5 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { K as SpinnerIcon, O as MaximizeIcon, _ as DotIcon } from "../../icons-CVFSeTJn.js";
2
+ import { _ as DotIcon, k as MaximizeIcon, q as SpinnerIcon } from "../../icons-Dw-im7lg.js";
3
3
  import { Button } from "../foundations/Button.js";
4
4
  import { Dialog } from "../foundations/Dialog.js";
5
5
  import { TransitionSurface } from "../foundations/TransitionSurface.js";
@@ -1,5 +1,5 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { L as PauseIcon, z as PlayIcon } from "../../icons-CVFSeTJn.js";
2
+ import { B as PlayIcon, R as PauseIcon } from "../../icons-Dw-im7lg.js";
3
3
  import { IconButton } from "../foundations/IconButton.js";
4
4
  import { r as formatClock } from "../../format-DB2mX9DA.js";
5
5
  import { EmptyState } from "../foundations/EmptyState.js";
@@ -1,5 +1,5 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { K as SpinnerIcon, tt as XIcon } from "../../icons-CVFSeTJn.js";
2
+ import { nt as XIcon, q as SpinnerIcon } from "../../icons-Dw-im7lg.js";
3
3
  import { Tabs } from "../foundations/Tabs.js";
4
4
  import { WebPreview, WebPreviewNavigation, WebPreviewNavigationButton, WebPreviewUrl } from "../general-purpose/WebPreview.js";
5
5
  import { BrowserLiveView } from "./BrowserLiveView.js";
@@ -1,11 +1,11 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { Collapsible } from "../foundations/Collapsible.js";
3
- import { $ as WarningIcon, A as MessageSquareIcon, B as PlusIcon, C as FolderIcon, D as LinkIcon, H as RefreshIcon, K as SpinnerIcon, L as PauseIcon, N as MonitorIcon, R as PencilIcon, T as InfoIcon, _ as DotIcon, a as ArrowUpIcon, d as CheckIcon, f as ChevronDownIcon, n as ArrowDownIcon, p as ChevronRightIcon, tt as XIcon, u as CalendarIcon } from "../../icons-CVFSeTJn.js";
2
+ import { C as FolderIcon, D as LinkIcon, P as MonitorIcon, R as PauseIcon, T as InfoIcon, U as RefreshIcon, V as PlusIcon, _ as DotIcon, a as ArrowUpIcon, d as CheckIcon, et as WarningIcon, f as ChevronDownIcon, j as MessageSquareIcon, n as ArrowDownIcon, nt as XIcon, p as ChevronRightIcon, q as SpinnerIcon, u as CalendarIcon, z as PencilIcon } from "../../icons-Dw-im7lg.js";
4
3
  import { Button } from "../foundations/Button.js";
5
- import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
6
4
  import { Tooltip } from "../foundations/Tooltip.js";
7
- import { Avatar } from "../foundations/Avatar.js";
5
+ import { Collapsible } from "../foundations/Collapsible.js";
8
6
  import { EmptyState } from "../foundations/EmptyState.js";
7
+ import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
8
+ import { Avatar } from "../foundations/Avatar.js";
9
9
  import { AppIcon } from "../foundations/AppIcon.js";
10
10
  import { LinkButton } from "../foundations/LinkButton.js";
11
11
  import "../foundations/icons.js";
@@ -1,8 +1,8 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { $ as WarningIcon, K as SpinnerIcon, d as CheckIcon, k as McpIcon } from "../../icons-CVFSeTJn.js";
2
+ import { A as McpIcon, d as CheckIcon, et as WarningIcon, q as SpinnerIcon } from "../../icons-Dw-im7lg.js";
3
3
  import { Button } from "../foundations/Button.js";
4
- import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
5
4
  import { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
5
+ import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
6
6
  import { DescriptionList } from "../foundations/DescriptionList.js";
7
7
  import { n as getMcpServerProjection } from "../../mcp-server-SD_S-IpB.js";
8
8
  import * as React from "react";
@@ -1,9 +1,9 @@
1
1
  import { CUSTOM_MCP_SERVER_CARD } from "../../utils/mcp-server-catalog.js";
2
2
  import { t as cx } from "../../class-names-BiMDVpUo.js";
3
3
  import { Button } from "../foundations/Button.js";
4
+ import { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
4
5
  import { Field } from "../foundations/Field.js";
5
6
  import { Form } from "../foundations/Form.js";
6
- import { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
7
7
  import { Fieldset } from "../foundations/Fieldset.js";
8
8
  import * as React from "react";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,12 +1,12 @@
1
1
  import { CUSTOM_MCP_SERVER_CARD } from "../../utils/mcp-server-catalog.js";
2
2
  import { t as cx } from "../../class-names-BiMDVpUo.js";
3
- import { $ as WarningIcon, B as PlusIcon, K as SpinnerIcon, o as ArrowUpRightIcon, tt as XIcon, y as EllipsisIcon } from "../../icons-CVFSeTJn.js";
3
+ import { V as PlusIcon, et as WarningIcon, nt as XIcon, o as ArrowUpRightIcon, q as SpinnerIcon, y as EllipsisIcon } from "../../icons-Dw-im7lg.js";
4
4
  import { Button } from "../foundations/Button.js";
5
- import { AgentAttention, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
6
5
  import { IconButton } from "../foundations/IconButton.js";
7
6
  import { Dialog } from "../foundations/Dialog.js";
8
7
  import { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
9
8
  import { Separator } from "../foundations/Separator.js";
9
+ import { AgentAttention, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
10
10
  import { AppIcon } from "../foundations/AppIcon.js";
11
11
  import { n as getMcpServerProjection, t as McpServerIcon } from "../../mcp-server-SD_S-IpB.js";
12
12
  import { SearchField } from "../foundations/SearchField.js";
@@ -1,9 +1,9 @@
1
1
  import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
2
- import { $ as WarningIcon, K as SpinnerIcon, M as MinusIcon, d as CheckIcon } from "../../icons-CVFSeTJn.js";
2
+ import { N as MinusIcon, d as CheckIcon, et as WarningIcon, q as SpinnerIcon } from "../../icons-Dw-im7lg.js";
3
3
  import { buttonVariants } from "../foundations/Button.js";
4
- import { Menu } from "../foundations/Menu.js";
5
4
  import { Dialog } from "../foundations/Dialog.js";
6
5
  import { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
6
+ import { Menu } from "../foundations/Menu.js";
7
7
  import { PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuTrigger } from "../ai-sdk/PromptInput.js";
8
8
  import { n as getMcpServerProjection, t as McpServerIcon } from "../../mcp-server-SD_S-IpB.js";
9
9
  import { McpConnectorForm } from "./McpConnectorForm.js";
@@ -1,13 +1,13 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { U as SearchIcon, f as ChevronDownIcon } from "../../icons-CVFSeTJn.js";
2
+ import { W as SearchIcon, f as ChevronDownIcon } from "../../icons-Dw-im7lg.js";
3
3
  import { Button } from "../foundations/Button.js";
4
- import { Autocomplete } from "../foundations/Autocomplete.js";
5
4
  import { Dialog } from "../foundations/Dialog.js";
6
5
  import { o as titleCase } from "../../format-DB2mX9DA.js";
7
6
  import { Separator } from "../foundations/Separator.js";
7
+ import { EmptyState } from "../foundations/EmptyState.js";
8
8
  import { ScrollArea } from "../foundations/ScrollArea.js";
9
+ import { Autocomplete } from "../foundations/Autocomplete.js";
9
10
  import { t as ProviderLogo } from "../../provider-logos-zjZycgV6.js";
10
- import { EmptyState } from "../foundations/EmptyState.js";
11
11
  import * as React from "react";
12
12
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
13
  import { createPortal } from "react-dom";
@@ -1,6 +1,6 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { ToolApproval } from "../ai-sdk/ToolApproval.js";
3
2
  import { ThinkExecutionApproval, ThinkPendingApproval, getPausedExecution } from "./ThinkPendingApproval.js";
3
+ import { ToolApproval } from "../ai-sdk/ToolApproval.js";
4
4
  import "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  import { isToolUIPart } from "ai";
@@ -1,4 +1,4 @@
1
- import { c as BoxIcon, k as McpIcon } from "../../icons-CVFSeTJn.js";
1
+ import { A as McpIcon, c as BoxIcon } from "../../icons-Dw-im7lg.js";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  //#region src/components/agents-sdk/PromptInputCommands.tsx
4
4
  /** Project whole upstream Agents MCP state into composer mention commands. */
@@ -1,5 +1,5 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { $ as WarningIcon, J as StopIcon, K as SpinnerIcon, d as CheckIcon } from "../../icons-CVFSeTJn.js";
2
+ import { Y as StopIcon, d as CheckIcon, et as WarningIcon, q as SpinnerIcon } from "../../icons-Dw-im7lg.js";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region src/components/agents-sdk/SubagentRunIndicator.tsx
@@ -1,8 +1,8 @@
1
- import { useExpansionState } from "../ai-sdk/ExpansionState.js";
2
- import { Activity, ActivityContent, ActivityItem, ActivityItemGroup, ActivityText, ActivityTrigger } from "../ai-sdk/Activity.js";
1
+ import { AgentActivityFavicon, AgentActivityIcon } from "./AgentActivity.js";
3
2
  import { Button } from "../foundations/Button.js";
4
3
  import { MessageResponse } from "../ai-sdk/Message.js";
5
- import { AgentActivityFavicon, AgentActivityIcon } from "./AgentActivity.js";
4
+ import { useExpansionState } from "../ai-sdk/ExpansionState.js";
5
+ import { Activity, ActivityContent, ActivityItem, ActivityItemGroup, ActivityText, ActivityTrigger } from "../ai-sdk/Activity.js";
6
6
  import { useOptionalAgentToolRuns } from "./AgentToolRunsContext.js";
7
7
  import { SubagentRunList } from "./SubagentRunList.js";
8
8
  import { useOptionalThinkChatLive } from "./ThinkChatContext.js";
@@ -1,8 +1,8 @@
1
+ import { a as formatUnknownValue } from "../../format-DB2mX9DA.js";
1
2
  import { ActivityOutput, ActivityPanel } from "../ai-sdk/Activity.js";
2
3
  import { Tabs } from "../foundations/Tabs.js";
3
- import { a as formatUnknownValue } from "../../format-DB2mX9DA.js";
4
- import { t as CodeBlock } from "../../CodeBlock-BjELA-_s.js";
5
4
  import { BrowserLiveView } from "./BrowserLiveView.js";
5
+ import { t as CodeBlock } from "../../CodeBlock-Dl7a3Wqo.js";
6
6
  import { inferWorkspaceLanguage } from "./WorkspaceFile.js";
7
7
  import { displayUrl, isSessionContextToolFailure } from "./ThinkChatToolParts.js";
8
8
  import * as React from "react";
@@ -1,7 +1,7 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { S as FileIcon, T as InfoIcon } from "../../icons-CVFSeTJn.js";
3
- import { Activity, ActivityContent, ActivityItemGroup, ActivityOutput, ActivityTrigger } from "../ai-sdk/Activity.js";
2
+ import { S as FileIcon, T as InfoIcon } from "../../icons-Dw-im7lg.js";
4
3
  import { a as formatUnknownValue } from "../../format-DB2mX9DA.js";
4
+ import { Activity, ActivityContent, ActivityItemGroup, ActivityOutput, ActivityTrigger } from "../ai-sdk/Activity.js";
5
5
  import { EmptyState } from "../foundations/EmptyState.js";
6
6
  import { DescriptionList } from "../foundations/DescriptionList.js";
7
7
  import { formatThinkExecutionTimestamp, getThinkExecutionRunError, getThinkExecutionRunId, getThinkExecutionRunKindLabel, getThinkExecutionRunProgressedAt, getThinkExecutionRunProgressedLabel, getThinkExecutionRunTitle, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
@@ -1,5 +1,5 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { K as SpinnerIcon, L as PauseIcon, T as InfoIcon, d as CheckIcon, tt as XIcon } from "../../icons-CVFSeTJn.js";
2
+ import { R as PauseIcon, T as InfoIcon, d as CheckIcon, nt as XIcon, q as SpinnerIcon } from "../../icons-Dw-im7lg.js";
3
3
  import { Tooltip } from "../foundations/Tooltip.js";
4
4
  import { formatThinkExecutionRunProgress, formatThinkExecutionStatus, getThinkExecutionRunKindLabel, getThinkExecutionRunStatus, getThinkExecutionRunStatusTone, getThinkExecutionRunTitle } from "./ThinkExecutionRun.js";
5
5
  import "react";
@@ -1,11 +1,11 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { $ as WarningIcon, H as RefreshIcon, r as ArrowLeftIcon, y as EllipsisIcon } from "../../icons-CVFSeTJn.js";
2
+ import { U as RefreshIcon, et as WarningIcon, r as ArrowLeftIcon, y as EllipsisIcon } from "../../icons-Dw-im7lg.js";
3
3
  import { buttonVariants } from "../foundations/Button.js";
4
4
  import { IconButton } from "../foundations/IconButton.js";
5
- import { Menu } from "../foundations/Menu.js";
6
5
  import { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
7
- import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
8
6
  import { EmptyState } from "../foundations/EmptyState.js";
7
+ import { Menu } from "../foundations/Menu.js";
8
+ import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
9
9
  import { AppTopBar } from "../general-purpose/AppTopBar.js";
10
10
  import { getThinkExecutionRunAccessibleName, getThinkExecutionRunId, getThinkExecutionRunStatus, getThinkExecutionRunStatusTone, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
11
11
  import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
@@ -1,5 +1,5 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { S as FileIcon, c as BoxIcon } from "../../icons-CVFSeTJn.js";
2
+ import { S as FileIcon, c as BoxIcon } from "../../icons-Dw-im7lg.js";
3
3
  import { n as mergeRefs } from "../../merge-refs-DF_7w2x_.js";
4
4
  import { ResizableSidePanel } from "../general-purpose/ResizableSidePanel.js";
5
5
  import { ResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
@@ -1,5 +1,5 @@
1
- import { AgentChatTurnError } from "../ai-sdk/AgentChatTurnError.js";
2
1
  import { TransitionSurface } from "../foundations/TransitionSurface.js";
2
+ import { AgentChatTurnError } from "../ai-sdk/AgentChatTurnError.js";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  //#region src/components/agents-sdk/ThinkRecoveryNotice.tsx
5
5
  function connectionReason(error) {
@@ -27,7 +27,8 @@ function ThinkRecoveryNotice({ chat }) {
27
27
  }, "connection-error");
28
28
  }
29
29
  if (chat.error) {
30
- const retryMessageId = chat.messages.findLast((message) => message.role !== "system")?.id;
30
+ const lastMessage = chat.messages.at(-1);
31
+ const retryMessageId = lastMessage?.role === "user" ? lastMessage.id : void 0;
31
32
  return /* @__PURE__ */ jsx(TransitionSurface, {
32
33
  className: "think-recovery-notice",
33
34
  children: /* @__PURE__ */ jsx(AgentChatTurnError, {
@@ -25,12 +25,6 @@ interface ThinkRoutine {
25
25
  }
26
26
  /** Preserves an app-enriched native execution type carried by a routine subtype. */
27
27
  type ThinkRoutineRunOf<TRoutine extends ThinkRoutine = ThinkRoutine> = TRoutine["runs"][number];
28
- interface ThinkRoutineCreateRequest {
29
- name: string;
30
- ownerId: string;
31
- /** Whole upstream task, including prompt functions and handler tasks. */
32
- task: ThinkScheduledTask;
33
- }
34
28
  declare function getThinkRoutineNextRun(routine: ThinkRoutine): string | null;
35
29
  //#endregion
36
- export { ThinkRoutine, ThinkRoutineCreateRequest, ThinkRoutineOwner, ThinkRoutineRunOf, getThinkRoutineNextRun };
30
+ export { ThinkRoutine, ThinkRoutineOwner, ThinkRoutineRunOf, getThinkRoutineNextRun };
@@ -1,10 +1,10 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { B as PlusIcon } from "../../icons-CVFSeTJn.js";
2
+ import { V as PlusIcon } from "../../icons-Dw-im7lg.js";
3
3
  import { buttonVariants } from "../foundations/Button.js";
4
4
  import { Tooltip } from "../foundations/Tooltip.js";
5
5
  import { t as capitalize } from "../../format-DB2mX9DA.js";
6
- import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
7
6
  import { EmptyState } from "../foundations/EmptyState.js";
7
+ import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
8
8
  import { SearchField } from "../foundations/SearchField.js";
9
9
  import { ToggleGroup } from "../foundations/ToggleGroup.js";
10
10
  import { getThinkRoutineNextRun } from "./ThinkRoutine.js";
@@ -1,33 +1,49 @@
1
- import { ThinkRoutineCreateRequest, ThinkRoutineOwner } from "./ThinkRoutine.js";
2
1
  import * as React from "react";
3
2
  import { ThinkScheduledTaskSchedule } from "@cloudflare/think";
4
3
 
5
4
  //#region src/components/agents-sdk/ThinkRoutineForm.d.ts
6
- interface ThinkRoutineFormProps extends React.HTMLAttributes<HTMLElement> {
7
- busy?: boolean;
8
- owners: readonly ThinkRoutineOwner[];
9
- /**
10
- * Upstream Think schedule DSL values the host permits. Use an inline
11
- * timezone for a schedule-specific wall clock, or let the agent's
12
- * `getDefaultTimezone()` own wall-clock fallback behavior.
13
- */
14
- schedules: readonly ThinkScheduledTaskSchedule[];
5
+ /** Parsed schedule fields required to prefill the editor. */
6
+ type ThinkRoutineFormSchedule = {
7
+ kind: "interval";
8
+ intervalMs: number;
9
+ } | {
10
+ kind: "wall-clock";
11
+ timezone: string;
12
+ hour: number;
13
+ minute: number;
14
+ days: "daily" | "weekday" | readonly number[];
15
+ };
16
+ /** Existing routine fields required by the edit form. */
17
+ interface ThinkRoutineFormRoutine {
18
+ name: string;
19
+ task: {
20
+ prompt: string;
21
+ };
22
+ parsedSchedule: ThinkRoutineFormSchedule;
23
+ }
24
+ /** Prompt routine draft emitted by the routine form. */
25
+ interface ThinkRoutineFormValue {
26
+ name: string;
27
+ prompt: string;
28
+ schedule: ThinkScheduledTaskSchedule;
29
+ }
30
+ interface ThinkRoutineFormProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onSubmit"> {
31
+ /** Existing routine projected through Think's schedule parser. Omit when creating. */
32
+ routine?: ThinkRoutineFormRoutine;
15
33
  /** App-authored TanStack Router Link to the routine catalog. */
16
34
  cancelLink?: React.ReactElement;
17
- onCreate: (request: ThinkRoutineCreateRequest) => void;
35
+ onSubmit: (value: ThinkRoutineFormValue) => void | Promise<void>;
18
36
  }
19
- /** Authoring surface for a serializable, prompt-based Think scheduled task. */
37
+ /** Complete create/edit surface for a prompt-based Think scheduled task. */
20
38
  declare function ThinkRoutineForm({
21
- busy,
22
39
  cancelLink,
23
40
  className,
24
- owners,
25
- onCreate,
26
- schedules,
41
+ routine,
42
+ onSubmit,
27
43
  ref,
28
44
  ...props
29
45
  }: ThinkRoutineFormProps & {
30
- ref?: React.Ref<HTMLElement>;
46
+ ref?: React.Ref<HTMLDivElement>;
31
47
  }): React.JSX.Element;
32
48
  //#endregion
33
- export { ThinkRoutineForm, ThinkRoutineFormProps };
49
+ export { ThinkRoutineForm, ThinkRoutineFormProps, ThinkRoutineFormRoutine, ThinkRoutineFormSchedule, ThinkRoutineFormValue };