@blade-hq/agent-react 2612.0.0-beta.9 → 2612.0.0-beta.91

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 (183) hide show
  1. package/README.md +53 -0
  2. package/dist/SessionPluginConfigForm-Y657MKRX.js +9 -0
  3. package/dist/SessionPluginConfigForm-Y657MKRX.js.map +1 -0
  4. package/dist/chat/AgentLoopBlock.d.ts +0 -2
  5. package/dist/chat/AskUserQuestionBlock.d.ts +3 -20
  6. package/dist/chat/AssistantTurnBlock.d.ts +3 -10
  7. package/dist/chat/AttachmentPreviewDialog.d.ts +0 -1
  8. package/dist/chat/ChatLoadingIndicator.d.ts +15 -0
  9. package/dist/chat/ChatPanel.d.ts +3 -1
  10. package/dist/chat/ContextAttachmentPills.d.ts +4 -0
  11. package/dist/chat/CurrentPlanPanel.d.ts +0 -3
  12. package/dist/chat/FileDeliveryCards.d.ts +12 -10
  13. package/dist/chat/FinalArtifactCards.d.ts +0 -1
  14. package/dist/chat/ImageLightbox.d.ts +1 -1
  15. package/dist/chat/LiteMessageList.d.ts +5 -3
  16. package/dist/chat/MessageFileAttachmentList.d.ts +0 -5
  17. package/dist/chat/QuestionnaireQuestionBlock.d.ts +11 -0
  18. package/dist/chat/SessionReplayBar.d.ts +0 -1
  19. package/dist/chat/TextAttachmentPills.d.ts +0 -3
  20. package/dist/chat/TurnNavRail.d.ts +1 -7
  21. package/dist/chat/WorkflowRunBlock.d.ts +21 -4
  22. package/dist/chat/ai-elements/shimmer.d.ts +2 -2
  23. package/dist/chat/chat-column-width.d.ts +21 -0
  24. package/dist/chat/customization.d.ts +1 -1
  25. package/dist/chat/index.d.ts +6 -3
  26. package/dist/chat/markdown/ExternalAnchor.d.ts +2 -2
  27. package/dist/chat/message-list-blocks.d.ts +0 -1
  28. package/dist/chat/runtime/actions.d.ts +7 -3
  29. package/dist/chat/runtime/background-task-dismissals.d.ts +0 -1
  30. package/dist/chat/runtime/composer-channels.d.ts +0 -3
  31. package/dist/chat/runtime/environment.d.ts +2 -0
  32. package/dist/chat/runtime/input-cache-reset.d.ts +0 -5
  33. package/dist/chat/runtime/input-services.d.ts +10 -0
  34. package/dist/chat/runtime/session-source.d.ts +0 -5
  35. package/dist/chat/runtime/use-chat-actions.d.ts +1 -5
  36. package/dist/chat/turn-locate-channel.d.ts +53 -0
  37. package/dist/chat.css +23 -18
  38. package/dist/{chunk-HJ7KNUWM.js → chunk-5ESAKOUV.js} +4181 -16595
  39. package/dist/chunk-5ESAKOUV.js.map +1 -0
  40. package/dist/chunk-74FML2TR.js +9488 -0
  41. package/dist/chunk-74FML2TR.js.map +1 -0
  42. package/dist/chunk-DL7XZGQS.js +9437 -0
  43. package/dist/chunk-DL7XZGQS.js.map +1 -0
  44. package/dist/{chunk-4OG6AJXY.js → chunk-L75DNQ3N.js} +3954 -26107
  45. package/dist/chunk-L75DNQ3N.js.map +1 -0
  46. package/dist/chunk-Q2JZ5FBP.js +4157 -0
  47. package/dist/chunk-Q2JZ5FBP.js.map +1 -0
  48. package/dist/chunk-R2WN24PN.js +2433 -0
  49. package/dist/chunk-R2WN24PN.js.map +1 -0
  50. package/dist/chunk-R6TH36MS.js +805 -0
  51. package/dist/chunk-R6TH36MS.js.map +1 -0
  52. package/dist/chunk-SEJUZPT5.js +950 -0
  53. package/dist/chunk-SEJUZPT5.js.map +1 -0
  54. package/dist/chunk-UKJ2UI4S.js +1340 -0
  55. package/dist/chunk-UKJ2UI4S.js.map +1 -0
  56. package/dist/chunk-ZRMO4P2Y.js +14430 -0
  57. package/dist/chunk-ZRMO4P2Y.js.map +1 -0
  58. package/dist/components/AccountConnectorRules.d.ts +7 -0
  59. package/dist/components/AccountConnectors.d.ts +13 -0
  60. package/dist/components/BrowserConnectionDialog.d.ts +8 -0
  61. package/dist/components/ChatInput.d.ts +1 -15
  62. package/dist/components/ConfigConnection.d.ts +16 -0
  63. package/dist/components/ConnectorAuthorizationProgress.d.ts +6 -0
  64. package/dist/components/ConnectorConnection.d.ts +4 -0
  65. package/dist/components/ConnectorDetail.d.ts +46 -0
  66. package/dist/components/ConnectorPanel.d.ts +3 -1
  67. package/dist/components/ConnectorRulesPanel.d.ts +10 -0
  68. package/dist/components/ConnectorRuntimeDiagnostics.d.ts +5 -0
  69. package/dist/components/DeviceConnection.d.ts +21 -0
  70. package/dist/components/FeishuCapabilitySelection.d.ts +14 -0
  71. package/dist/components/FeishuPermissionStatus.d.ts +7 -0
  72. package/dist/components/LlmAdvancedSettings.d.ts +0 -1
  73. package/dist/components/ManagedConnection.d.ts +12 -0
  74. package/dist/components/McpAppFrame.d.ts +17 -0
  75. package/dist/components/PackEventNotice.d.ts +3 -0
  76. package/dist/components/PlanUpdateBlock.d.ts +0 -1
  77. package/dist/components/SessionPluginConfigForm.d.ts +4 -1
  78. package/dist/components/SessionPluginIcon.d.ts +1 -0
  79. package/dist/components/plugin-connector.d.ts +1 -0
  80. package/dist/connectors.d.ts +6 -0
  81. package/dist/connectors.js +19 -0
  82. package/dist/connectors.js.map +1 -0
  83. package/dist/embed/blade-chat-element.d.ts +0 -8
  84. package/dist/embed/entry.d.ts +19 -19
  85. package/dist/hooks/use-capabilities.d.ts +3 -0
  86. package/dist/hooks/use-message-pin.d.ts +1 -1
  87. package/dist/hooks/use-turn-navigation.d.ts +19 -0
  88. package/dist/index.d.ts +7 -0
  89. package/dist/index.js +25 -3
  90. package/dist/internal.d.ts +7 -4
  91. package/dist/internal.js +665 -103
  92. package/dist/internal.js.map +1 -1
  93. package/dist/lib/message-shortcuts.d.ts +5 -0
  94. package/dist/questions.d.ts +7 -0
  95. package/dist/questions.js +910 -0
  96. package/dist/questions.js.map +1 -0
  97. package/dist/rich-input/ChatInput.d.ts +1 -1
  98. package/dist/rich-input/ConnectButton.d.ts +7 -5
  99. package/dist/rich-input/FileCompletionMenu.d.ts +1 -2
  100. package/dist/rich-input/InputActionSubmenu.d.ts +10 -0
  101. package/dist/rich-input/ModelSelector.d.ts +3 -1
  102. package/dist/rich-input/SkillActionMenu.d.ts +10 -0
  103. package/dist/rich-input/SkillStatusBar.d.ts +0 -6
  104. package/dist/rich-input/extensions/skill-mention.d.ts +3 -20
  105. package/dist/rich-input/index.d.ts +3 -2
  106. package/dist/rich-input/lib/composer-content.d.ts +5 -1
  107. package/dist/rich-input/lib/plugin-suggestions.d.ts +4 -4
  108. package/dist/rich-input/lib/reference-candidates.d.ts +0 -1
  109. package/dist/rich-input/lib/skill-suggestions.d.ts +1 -1
  110. package/dist/rich-input/lib/user-home.d.ts +0 -17
  111. package/dist/rich-input/model/resolve-model.d.ts +2 -2
  112. package/dist/rich-input/services.d.ts +1 -1
  113. package/dist/rich-input/voice/VoiceWaveform.d.ts +0 -3
  114. package/dist/rich-input.js +1711 -2140
  115. package/dist/rich-input.js.map +1 -1
  116. package/dist/style.css +16 -55
  117. package/dist/style.full.css +41 -77
  118. package/dist/tool-details.d.ts +8 -0
  119. package/dist/tool-details.js +25 -0
  120. package/dist/tool-details.js.map +1 -0
  121. package/node_modules/@modelcontextprotocol/ext-apps/LICENSE +216 -0
  122. package/node_modules/@modelcontextprotocol/ext-apps/README.md +284 -0
  123. package/node_modules/@modelcontextprotocol/ext-apps/dist/docs/patterns.d.ts +9 -0
  124. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.d.ts +1348 -0
  125. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.examples.d.ts +9 -0
  126. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.js +39 -0
  127. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.test.d.ts +1 -0
  128. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-with-deps.js +82 -0
  129. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.d.ts +1214 -0
  130. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.examples.d.ts +9 -0
  131. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.js +39 -0
  132. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.test.d.ts +1 -0
  133. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/constants.d.ts +65 -0
  134. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/events.d.ts +47 -0
  135. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/events.test.d.ts +1 -0
  136. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/generated/schema.d.ts +1047 -0
  137. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/generated/schema.json +6170 -0
  138. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/generated/schema.test.d.ts +41 -0
  139. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/interop-v1.test.d.ts +1 -0
  140. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/legacy-handlers.d.ts +66 -0
  141. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/legacy-handlers.test.d.ts +1 -0
  142. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/message-transport.d.ts +126 -0
  143. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/message-transport.examples.d.ts +9 -0
  144. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/message-transport.test.d.ts +1 -0
  145. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.d.ts +37 -0
  146. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.examples.d.ts +6 -0
  147. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.js +39 -0
  148. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/react-with-deps.js +82 -0
  149. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useApp.d.ts +115 -0
  150. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useApp.examples.d.ts +6 -0
  151. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useAutoResize.d.ts +54 -0
  152. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useAutoResize.examples.d.ts +6 -0
  153. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useDocumentTheme.d.ts +44 -0
  154. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useDocumentTheme.examples.d.ts +6 -0
  155. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useHostStyles.d.ts +113 -0
  156. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useHostStyles.examples.d.ts +6 -0
  157. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.d.ts +381 -0
  158. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.examples.d.ts +9 -0
  159. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.js +1 -0
  160. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.test.d.ts +1 -0
  161. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/spec.types.d.ts +698 -0
  162. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/standard-schema.d.ts +23 -0
  163. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/styles.d.ts +184 -0
  164. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/styles.examples.d.ts +9 -0
  165. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/types.d.ts +33 -0
  166. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/wire-compat.test.d.ts +1 -0
  167. package/node_modules/@modelcontextprotocol/ext-apps/package.json +144 -0
  168. package/node_modules/@standard-schema/spec/LICENSE +21 -0
  169. package/node_modules/@standard-schema/spec/README.md +198 -0
  170. package/node_modules/@standard-schema/spec/dist/index.cjs +18 -0
  171. package/node_modules/@standard-schema/spec/dist/index.d.cts +119 -0
  172. package/node_modules/@standard-schema/spec/dist/index.d.ts +119 -0
  173. package/node_modules/@standard-schema/spec/dist/index.js +0 -0
  174. package/node_modules/@standard-schema/spec/package.json +52 -0
  175. package/package.json +19 -3
  176. package/public-api.md +66 -4
  177. package/dist/chat-OCLOVB3H.css +0 -175
  178. package/dist/chunk-3DRBRQXN.js +0 -258
  179. package/dist/chunk-3DRBRQXN.js.map +0 -1
  180. package/dist/chunk-4OG6AJXY.js.map +0 -1
  181. package/dist/chunk-HJ7KNUWM.js.map +0 -1
  182. package/dist/lib/agent-computer-command.d.ts +0 -32
  183. package/dist/rich-input/extensions/workflow-mention.d.ts +0 -10
package/dist/internal.js CHANGED
@@ -1,78 +1,464 @@
1
1
  import {
2
2
  AgentChat,
3
+ AgentLoopBlock,
4
+ AskUserQuestionBlock,
5
+ AssistantTurnBlock,
6
+ AttachmentPreviewDialog,
3
7
  BackgroundWakeNotice,
8
+ CHAT_COLUMN_WIDTH_STORAGE_KEY,
9
+ CardContext,
10
+ ChatColumnResizeRails,
11
+ ChatCustomizationProvider,
12
+ ChatLoadingIndicator,
13
+ ChatPanel,
4
14
  ChatView,
5
- CodeBlockPre,
15
+ ConnectionBanner,
6
16
  ContextCard,
7
17
  ContextGroupCard,
8
- DEFAULT_ALLOWED_TAGS,
18
+ CurrentPlanPanel,
19
+ CurrentPlanPanelContent,
20
+ DEFAULT_CHAT_COLUMN_WIDTH,
21
+ DeliveryCard,
22
+ ENTRY_SCROLL_MARGIN_PX,
23
+ ErrorMessageBlock,
24
+ FileDeliveryCards,
25
+ FinalArtifactCards,
26
+ FollowupInteractionProvider,
27
+ HistoricalResultFeedback,
28
+ LOOPBACK_HOSTS,
29
+ LightComposer,
30
+ LiteMessageList,
9
31
  LlmChat,
10
- MarkdownContent,
11
- MarkdownRenderer,
12
- McpAppCard,
13
- MessageImage,
32
+ MANUAL_SCROLL_TOLERANCE_PX,
33
+ MAX_CHAT_COLUMN_WIDTH,
34
+ MIN_CHAT_COLUMN_WIDTH,
35
+ MemoryRefsHint,
36
+ MessageActions,
37
+ MessageContextPills,
38
+ MessageFileAttachmentList,
39
+ MessageList,
40
+ NAV_AT_BOTTOM_EPSILON_PX,
41
+ NEW_TURN_SCROLL_DURATION_MS,
42
+ NEW_TURN_SCROLL_MAX_SCREENS,
43
+ NEW_TURN_SCROLL_MIN_DISTANCE_PX,
44
+ PIN_HANDOVER_TOLERANCE_PX,
45
+ PlanSummaryCard,
46
+ PostChatFollowupBlock,
47
+ RECENT_RESIDENT_TURNS,
48
+ Reasoning,
49
+ ReasoningContent,
50
+ ReasoningTrigger,
51
+ RenderErrorBoundary,
14
52
  ReplayBar,
15
53
  ReplayMismatchPrompt,
54
+ ResultFeedback,
16
55
  SessionPluginSelector,
17
56
  SessionQueuePanel,
57
+ SessionReplayBar,
58
+ Shimmer,
18
59
  TURN_NAV_HIGHLIGHT_CLASS,
19
- ToolUiCardView,
60
+ TextAttachmentPills,
61
+ ThinkingBadge,
62
+ ToolCallBlock,
63
+ ToolFilePreviewAction,
64
+ ToolPreviewAction,
65
+ ToolUiCard,
20
66
  TopicAssetSubmitDialog,
67
+ TurnNavRail,
68
+ USER_MESSAGE_MARKDOWN_CLASS,
69
+ UserMessageBubble,
21
70
  WhatIfUserBubble,
71
+ WorkflowRunBlock,
72
+ applyPlanStatusesById,
73
+ buildCitationsFromToolCalls,
74
+ buildLiteRows,
75
+ buildMessageListBlockIndexes,
76
+ buildMessageListBlocks,
77
+ calculateAnchoredScrollTop,
78
+ calculateAnimatedScrollTop,
79
+ calculateStickyAwareMargin,
80
+ calculateTrailingSpacerHeight,
81
+ clampChatColumnWidth,
82
+ collectDeliveredFiles,
83
+ collectMemoryRefs,
84
+ collectTurnMessages,
85
+ defaultTurnDisplayMode,
86
+ dispatchPreview,
87
+ extractLatestPlanMessages,
88
+ extractPlanMessagesForTurn,
89
+ findLatestReasoningMessageIndex,
90
+ findStablePrefixEnd,
91
+ formatExecutionDuration,
92
+ formatLoadingElapsed,
93
+ getChatColumnWidth,
94
+ getExecutionDurationMs,
95
+ getFilePreviewName,
96
+ getPersistentAskUserQuestions,
97
+ getRenderBlockPersistentId,
98
+ isErrorMessage,
99
+ isImageFilename,
100
+ isLoopbackUrl,
101
+ isPreparingReply,
22
102
  isQueuePanelVisible,
103
+ isTextFilename,
104
+ isUiMeta,
105
+ isUserMessage,
23
106
  latestUserSpeechEntryId,
107
+ nextQueuedOrder,
108
+ normalizeDeliveredRelPath,
109
+ normalizeScrollEntryKey,
110
+ openInSessionSandboxBrowser,
111
+ parseAskUserQuestion,
112
+ parseAskUserQuestionError,
113
+ parsePlanMessages,
114
+ parsePlanTree,
115
+ parsePlanTreeResult,
24
116
  parseWhatIfPrompt,
117
+ renderOptionalComponent,
118
+ resetChatColumnWidth,
119
+ resolveAskQuestionState,
120
+ resolveBrowserResourceUri,
121
+ resolveLoadingStageLabel,
122
+ resolveTurnDisplayMode,
123
+ rewriteForSandboxBrowser,
124
+ selectActiveTurnAtViewportPosition,
125
+ setChatColumnWidth,
126
+ shouldAnimateNewTurnScroll,
127
+ shouldAppendPendingAssistantTurn,
128
+ shouldHandOverToFollow,
129
+ snapshotMessageListRenderPlan,
130
+ startIndexOfLastNCompleteTurns,
131
+ toolCallAnswered,
132
+ turnLocateChannel,
25
133
  turnNavItemsFromMessages,
26
134
  useAgentSession,
135
+ useAsyncValue,
136
+ useCapabilities,
137
+ useCardContext,
138
+ useChatActions,
139
+ useChatColumnWidth,
140
+ useChatCustomization,
141
+ useFollowupInteraction,
27
142
  useLlmChat,
28
143
  useMessagePin,
144
+ useObservedContainerWidth,
145
+ useReasoning,
29
146
  useReplay,
147
+ useSessionReplay,
30
148
  useTopicAssetSubmissionAccess,
149
+ useTurnLocateRequest,
150
+ useTurnLocateStatus,
31
151
  useTurnNavigation,
32
152
  useTypewriterReveal
33
- } from "./chunk-4OG6AJXY.js";
153
+ } from "./chunk-ZRMO4P2Y.js";
34
154
  import {
155
+ AccountConnectors,
35
156
  ConnectorPanel,
36
157
  PluginTriggerStack,
37
158
  TRIGGER_ICON_LIMIT,
159
+ backgroundTaskDismissals,
160
+ composerChannels,
38
161
  selectionFromItem,
39
- triggerSummary
40
- } from "./chunk-3DRBRQXN.js";
162
+ skillDisplayName,
163
+ triggerSummary,
164
+ useComposerChannels,
165
+ useDismissedBackgroundTasks,
166
+ visibleSkillIds,
167
+ visibleSkills
168
+ } from "./chunk-R6TH36MS.js";
41
169
  import {
42
- BladeProvider,
43
- Content2,
44
- PLAN_AUTO_COLLAPSE_MS,
45
- PlanUpdateBlock,
46
170
  PluginConnectorList,
47
- Portal,
48
- Provider,
49
- Root3,
171
+ RichInputServicesProvider,
50
172
  SessionPluginConfigDialog,
51
- SessionPluginConfigForm,
52
173
  SessionPluginIcon,
53
- Trigger,
174
+ buildPendingAskUserAnswer,
54
175
  catalogToConnectorItems,
55
- cn,
176
+ chatTone,
56
177
  filterConnectorItems,
178
+ mergeConnectorItems,
179
+ parseModelReasoningLevels,
180
+ resetInputCaches,
181
+ sendToSession,
182
+ sessionPluginLabel,
183
+ useRichInputServices,
184
+ useSessionPluginActivation
185
+ } from "./chunk-UKJ2UI4S.js";
186
+ import {
187
+ ConnectorConnection,
188
+ DeviceConnection
189
+ } from "./chunk-R2WN24PN.js";
190
+ import {
191
+ BashRenderer,
192
+ CodePreview,
193
+ FileEditRenderer,
194
+ FileReadRenderer,
195
+ ImageLightbox,
196
+ McpAppCard,
197
+ McpAppFrame,
198
+ MessageImage,
199
+ SUPPORTED_LANGUAGES,
200
+ SearchRenderer,
201
+ SubmitResultRenderer,
202
+ ToolUiCardView,
203
+ extractErrorMessage,
204
+ formatBytes,
205
+ getBooleanValue,
206
+ getCodeLanguage,
207
+ getCodeLanguageFromFilename,
208
+ getFileName,
209
+ getNumberValue,
210
+ getRenderer,
211
+ getResultImages,
212
+ getResultText,
213
+ getStringValue,
214
+ isPlainObject,
215
+ normalizeCodeLanguage,
216
+ parseJsonValue,
217
+ scrollWritePreviewToLatest,
218
+ shouldFollowWritePreview
219
+ } from "./chunk-L75DNQ3N.js";
220
+ import {
221
+ CodeBlockPre,
222
+ DEFAULT_ALLOWED_TAGS,
223
+ ExternalAnchor,
224
+ MarkdownContent,
225
+ MarkdownRenderer,
226
+ collapseInlineToolCalls,
227
+ findCodeRanges,
228
+ injectCitationRefs,
229
+ normalizeAdjacentUrlFormatting,
230
+ resolveCollapsedContent,
231
+ resolveSessionMarkdownAssetUrl,
232
+ stripSystemReminders
233
+ } from "./chunk-74FML2TR.js";
234
+ import {
235
+ BladeProvider,
236
+ BrowserConnectionDialog,
237
+ ChatEnvironmentProvider,
238
+ CurrentChatSessionProvider,
239
+ PLAN_AUTO_COLLAPSE_MS,
240
+ PlanUpdateBlock,
241
+ SessionSourceProvider,
242
+ cn,
243
+ countMessageLines,
244
+ countPendingToolCalls,
245
+ countSuccessfulToolCalls,
246
+ extractToolFilePath,
247
+ extractToolFilePaths,
248
+ findAnchorMessageIndex,
249
+ formatToolCallCount,
250
+ formatToolFileName,
251
+ formatToolName,
252
+ getCollapsedTurnSegments,
253
+ getFinishTaskTitle,
254
+ getLastTextSegment,
255
+ getLatestPendingToolName,
57
256
  getPlanUpdateDisplayState,
257
+ getSkillNameFromFilePath,
258
+ getTextContentSegments,
259
+ getToolDescription,
260
+ getToolDisplayLabel,
261
+ getToolOutputTag,
262
+ getToolStatusLabel,
263
+ getToolTone,
264
+ hasNaturalLanguageText,
58
265
  isPlanUpdateTool,
59
- mergeConnectorItems,
266
+ isSuccessfulToolCall,
267
+ notifyChat,
60
268
  parsePlanUpdate,
61
269
  pickCurrentPlanStep,
62
- sessionPluginLabel,
270
+ summarizeToolCalls,
63
271
  useBladeClient,
64
272
  useBladeHost,
273
+ useChatEnvironment,
274
+ useChatRenderMode,
275
+ useChatSessionDetail,
276
+ useChatVirtualizer,
277
+ useComposerBridge,
278
+ useCurrentChatSessionId,
279
+ useHideTodo,
280
+ useHighlightedCode,
281
+ useIsSessionHistoryLoading,
65
282
  useOptionalBladeClient,
66
- useSessionPluginActivation
67
- } from "./chunk-HJ7KNUWM.js";
283
+ usePlanRevealRevision,
284
+ useSessionHandle,
285
+ useSessionSource,
286
+ useSessionState,
287
+ useSingleSessionSource
288
+ } from "./chunk-Q2JZ5FBP.js";
289
+ import {
290
+ ConfigConnection,
291
+ ConnectorDetail,
292
+ ConnectorRulesPanel,
293
+ Content2,
294
+ Portal,
295
+ Provider,
296
+ Root3,
297
+ Trigger
298
+ } from "./chunk-DL7XZGQS.js";
299
+ import {
300
+ SessionPluginConfigForm
301
+ } from "./chunk-5ESAKOUV.js";
302
+ import {
303
+ ChevronDown,
304
+ ChevronRight,
305
+ CircleX,
306
+ LoaderCircle,
307
+ Square
308
+ } from "./chunk-SEJUZPT5.js";
68
309
  import "./chunk-PR4QN5HX.js";
69
310
 
70
- // src/internal.ts
71
- export * from "./chat-OCLOVB3H.css";
311
+ // src/chat/CompactionCard.tsx
312
+ import { useState } from "react";
313
+ import { jsx, jsxs } from "react/jsx-runtime";
314
+ var PERCENT_FORMATTER = new Intl.NumberFormat("zh-CN", {
315
+ style: "percent",
316
+ maximumFractionDigits: 0
317
+ });
318
+ function formatTokens(value) {
319
+ if (typeof value !== "number" || !Number.isFinite(value)) {
320
+ return "0";
321
+ }
322
+ const k = value / 1e3;
323
+ if (k < 1) {
324
+ return `${Math.round(value)}`;
325
+ }
326
+ return k < 10 ? `${k.toFixed(1)}k` : `${Math.round(k)}k`;
327
+ }
328
+ function formatSavedRatio(value) {
329
+ if (typeof value !== "number" || !Number.isFinite(value)) {
330
+ return "0%";
331
+ }
332
+ return PERCENT_FORMATTER.format(Math.max(0, Math.min(1, value)));
333
+ }
334
+ function shortId(compactionId) {
335
+ if (!compactionId) {
336
+ return "------";
337
+ }
338
+ return compactionId.slice(0, 6);
339
+ }
340
+ function getArchivedToolLabel(item) {
341
+ return item.tool_name?.trim() || "\u5DE5\u5177\u8C03\u7528";
342
+ }
343
+ function getArchivePath(item, files) {
344
+ if (item.archive_path) {
345
+ return item.archive_path;
346
+ }
347
+ return files.find((file) => file.tool_name === item.tool_name)?.relative_path ?? null;
348
+ }
349
+ function isGenericArchiveSummary(summary) {
350
+ return /^已归档\s*\d+\s*个大型工具结果。?$/.test(summary?.trim() ?? "");
351
+ }
352
+ function CompactionCard({
353
+ sessionId,
354
+ compaction,
355
+ status
356
+ }) {
357
+ const session = useSessionHandle(sessionId);
358
+ const activeCompaction = useSessionState(sessionId, (state) => state.activeCompaction);
359
+ const source = compaction ? {
360
+ ...compaction,
361
+ status: status ?? "completed"
362
+ } : activeCompaction;
363
+ const [expanded, setExpanded] = useState(false);
364
+ if (!source || !source.compaction_id) {
365
+ return null;
366
+ }
367
+ const canCancel = source.status === "streaming";
368
+ const archivedFiles = source.archived_files ?? [];
369
+ const archivedToolCalls = source.archived_tool_calls ?? [];
370
+ const archivedCount = source.archived_count ?? archivedToolCalls.length ?? archivedFiles.length;
371
+ const hasSummary = typeof source.summary_full === "string" && source.summary_full.trim().length > 0 && !isGenericArchiveSummary(source.summary_full);
372
+ const hasFailureReason = source.status === "failed" && Boolean(source.failure_reason);
373
+ const canExpand = source.status === "completed" && (hasSummary || archivedToolCalls.length > 0) || hasFailureReason;
374
+ return /* @__PURE__ */ jsxs("div", { className: "text-xs text-[hsl(var(--muted-foreground))]", children: [
375
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
376
+ /* @__PURE__ */ jsxs(
377
+ "button",
378
+ {
379
+ type: "button",
380
+ onClick: () => canExpand && setExpanded((prev) => !prev),
381
+ className: cn(
382
+ "inline-flex min-w-0 items-center gap-1 rounded-md px-1.5 py-0.5 text-[11px] text-[hsl(var(--muted-foreground))]/65 transition-colors hover:bg-[hsl(var(--muted))]/60 hover:text-[hsl(var(--foreground))]",
383
+ !canExpand && "cursor-default hover:bg-transparent hover:text-[hsl(var(--muted-foreground))]/65"
384
+ ),
385
+ "aria-expanded": expanded,
386
+ children: [
387
+ canExpand ? expanded ? /* @__PURE__ */ jsx(ChevronDown, { size: 12, className: "shrink-0" }) : /* @__PURE__ */ jsx(ChevronRight, { size: 12, className: "shrink-0" }) : null,
388
+ /* @__PURE__ */ jsx("span", { children: source.status === "streaming" ? /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1", children: [
389
+ /* @__PURE__ */ jsx(LoaderCircle, { size: 12, className: "animate-spin" }),
390
+ "\u6B63\u5728\u538B\u7F29\u4E0A\u4E0B\u6587"
391
+ ] }) : source.status === "failed" ? /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1 text-[hsl(var(--swf-danger))]", children: [
392
+ /* @__PURE__ */ jsx(CircleX, { size: 12 }),
393
+ "\u4E0A\u4E0B\u6587\u538B\u7F29\u5931\u8D25"
394
+ ] }) : source.status === "interrupted" ? /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1 text-[hsl(var(--swf-warning))]", children: [
395
+ /* @__PURE__ */ jsx(Square, { size: 12 }),
396
+ "\u4E0A\u4E0B\u6587\u538B\u7F29\u5DF2\u53D6\u6D88"
397
+ ] }) : "\u4E0A\u4E0B\u6587\u5DF2\u538B\u7F29" })
398
+ ]
399
+ }
400
+ ),
401
+ canCancel ? /* @__PURE__ */ jsx(
402
+ "button",
403
+ {
404
+ type: "button",
405
+ onClick: () => void session?.stop(),
406
+ className: "shrink-0 rounded-md border border-current/15 px-2 py-0.5 text-[11px] transition-opacity hover:opacity-80",
407
+ children: "\u53D6\u6D88\u6574\u7406"
408
+ }
409
+ ) : null
410
+ ] }),
411
+ expanded ? /* @__PURE__ */ jsxs("div", { className: "mt-1 max-w-3xl rounded-lg border border-[hsl(var(--border))]/70 bg-[hsl(var(--card))]/80 px-3 py-2 text-[11px] leading-relaxed", children: [
412
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1 text-[hsl(var(--muted-foreground))]", children: [
413
+ /* @__PURE__ */ jsxs("span", { children: [
414
+ "#",
415
+ shortId(source.compaction_id)
416
+ ] }),
417
+ /* @__PURE__ */ jsxs("span", { children: [
418
+ "\u8282\u7701 ",
419
+ formatSavedRatio(source.saved_ratio),
420
+ "\uFF08",
421
+ formatTokens(source.tokens_before),
422
+ " \u2192",
423
+ " ",
424
+ formatTokens(source.tokens_after),
425
+ " token\uFF09"
426
+ ] }),
427
+ /* @__PURE__ */ jsxs("span", { children: [
428
+ "\u5F52\u6863 ",
429
+ archivedCount,
430
+ " \u4E2A\u5DE5\u5177\u7ED3\u679C"
431
+ ] })
432
+ ] }),
433
+ archivedToolCalls.length > 0 ? /* @__PURE__ */ jsx("div", { className: "mt-2 space-y-1.5", children: archivedToolCalls.map((item, index) => {
434
+ const archivePath = getArchivePath(item, archivedFiles);
435
+ return /* @__PURE__ */ jsxs(
436
+ "div",
437
+ {
438
+ className: "rounded-md border border-[hsl(var(--border))]/70 bg-[hsl(var(--muted))]/35 px-2 py-1.5",
439
+ children: [
440
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-x-2 gap-y-1 text-[hsl(var(--foreground))]", children: [
441
+ /* @__PURE__ */ jsx("span", { className: "font-medium", children: getArchivedToolLabel(item) }),
442
+ item.tool_call_id ? /* @__PURE__ */ jsx("span", { className: "font-mono text-[10px] text-[hsl(var(--muted-foreground))]", children: item.tool_call_id }) : null
443
+ ] }),
444
+ archivePath ? /* @__PURE__ */ jsx("div", { className: "mt-0.5 break-all font-mono text-[10px] text-[hsl(var(--muted-foreground))]", children: archivePath }) : null
445
+ ]
446
+ },
447
+ item.tool_call_id || item.entry_id || `${item.tool_name}-${index}`
448
+ );
449
+ }) }) : null,
450
+ hasSummary ? /* @__PURE__ */ jsx("pre", { className: "mt-2 max-h-[360px] overflow-auto whitespace-pre-wrap rounded-md border border-[hsl(var(--border))]/70 bg-[hsl(var(--muted))]/25 px-2 py-1.5 font-mono text-[11px] leading-relaxed text-[hsl(var(--foreground))]", children: source.summary_full }) : null,
451
+ source.status === "failed" && source.failure_reason ? /* @__PURE__ */ jsxs("div", { className: "mt-2 text-[hsl(var(--swf-danger))]", children: [
452
+ "\u5931\u8D25\u539F\u56E0\uFF1A",
453
+ source.failure_reason
454
+ ] }) : null
455
+ ] }) : null
456
+ ] });
457
+ }
72
458
 
73
459
  // src/lib/mount-renderers.tsx
74
460
  import { createContext, useContext, useId, useLayoutEffect, useRef } from "react";
75
- import { jsx } from "react/jsx-runtime";
461
+ import { jsx as jsx2 } from "react/jsx-runtime";
76
462
  var MountHostContext = createContext(null);
77
463
  function normalizeResult(result) {
78
464
  if (typeof result === "function") return { destroy: result };
@@ -129,11 +515,11 @@ function MountSlot({ renderer, data }) {
129
515
  mounted.target.replaceChildren();
130
516
  mounted.handle = normalizeResult(renderer.mount(mounted.target, data));
131
517
  }, [data, renderer]);
132
- return host ? /* @__PURE__ */ jsx("slot", { name: slotName }) : /* @__PURE__ */ jsx("div", { ref: localRef, "data-blade-mount": "" });
518
+ return host ? /* @__PURE__ */ jsx2("slot", { name: slotName }) : /* @__PURE__ */ jsx2("div", { ref: localRef, "data-blade-mount": "" });
133
519
  }
134
520
  function slotFor(renderer, data) {
135
521
  if (renderer.match && !renderer.match(data)) return null;
136
- return /* @__PURE__ */ jsx(MountSlot, { renderer, data });
522
+ return /* @__PURE__ */ jsx2(MountSlot, { renderer, data });
137
523
  }
138
524
  function mountRenderersToReact(renderers, context = {}) {
139
525
  if (!renderers) return void 0;
@@ -154,8 +540,8 @@ function mountRenderersToReact(renderers, context = {}) {
154
540
  }
155
541
 
156
542
  // src/components/SessionMemoryToggle.tsx
157
- import { useCallback, useEffect, useRef as useRef2, useState, useSyncExternalStore } from "react";
158
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
543
+ import { useCallback, useEffect, useRef as useRef2, useState as useState2, useSyncExternalStore } from "react";
544
+ import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
159
545
  var saveStates = /* @__PURE__ */ new WeakMap();
160
546
  function getSaveState(client, sessionId) {
161
547
  let clientStates = saveStates.get(client);
@@ -212,7 +598,7 @@ function SessionMemoryToggle({
212
598
  getSaving,
213
599
  getSaving
214
600
  );
215
- const [draftEnabled, setDraftEnabled] = useState(enabled);
601
+ const [draftEnabled, setDraftEnabled] = useState2(enabled);
216
602
  const activeSessionIdRef = useRef2(sessionId);
217
603
  activeSessionIdRef.current = sessionId;
218
604
  useEffect(() => {
@@ -244,9 +630,9 @@ function SessionMemoryToggle({
244
630
  },
245
631
  [client, enabled, onError, onSaved, sessionId]
246
632
  );
247
- return /* @__PURE__ */ jsxs("label", { className: cn("flex items-center justify-between", className), children: [
248
- /* @__PURE__ */ jsx2("span", { className: labelClassName, children: label }),
249
- /* @__PURE__ */ jsx2(
633
+ return /* @__PURE__ */ jsxs2("label", { className: cn("flex items-center justify-between", className), children: [
634
+ /* @__PURE__ */ jsx3("span", { className: labelClassName, children: label }),
635
+ /* @__PURE__ */ jsx3(
250
636
  "input",
251
637
  {
252
638
  type: "checkbox",
@@ -259,51 +645,9 @@ function SessionMemoryToggle({
259
645
  ] });
260
646
  }
261
647
 
262
- // src/lib/agent-computer-command.ts
263
- var COMPUTER_LAUNCH_COMMAND_PATTERN = /(?:^|[\n;&|(]\s*)computer\s+launch(?:\s|$)/;
264
- function isAgentComputerCommand(command) {
265
- return COMPUTER_LAUNCH_COMMAND_PATTERN.test(command);
266
- }
267
- function isAgentComputerToolCall(argumentsJson) {
268
- if (!argumentsJson) return false;
269
- let command;
270
- try {
271
- const parsed = JSON.parse(argumentsJson);
272
- if (typeof parsed !== "object" || parsed === null) return false;
273
- command = parsed.command;
274
- } catch {
275
- return false;
276
- }
277
- return typeof command === "string" && isAgentComputerCommand(command);
278
- }
279
- var LAUNCH_SUCCESS_MARKER = "\u5DF2\u542F\u52A8 ";
280
- function resultContainsLaunchSuccessMarker(result, depth = 0) {
281
- if (depth > 2) return false;
282
- if (typeof result === "string") {
283
- if (result.includes(LAUNCH_SUCCESS_MARKER)) return true;
284
- try {
285
- return resultContainsLaunchSuccessMarker(JSON.parse(result), depth + 1);
286
- } catch {
287
- return false;
288
- }
289
- }
290
- if (typeof result === "object" && result !== null) {
291
- for (const value of Object.values(result)) {
292
- if (typeof value === "string" && value.includes(LAUNCH_SUCCESS_MARKER)) return true;
293
- }
294
- }
295
- return false;
296
- }
297
- function classifyAgentComputerLaunchOutcome(toolCall) {
298
- if (toolCall.status === "error" || toolCall.status === "cancelled") return "failed";
299
- if (toolCall.status !== "done") return "pending";
300
- if (toolCall.result === void 0 || toolCall.result === null) return "unknown";
301
- return resultContainsLaunchSuccessMarker(toolCall.result) ? "succeeded" : "failed";
302
- }
303
-
304
648
  // src/components/SessionBranchPicker.tsx
305
- import { useMemo, useState as useState2 } from "react";
306
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
649
+ import { useMemo, useState as useState3 } from "react";
650
+ import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
307
651
  var ROW_HEIGHT = 32;
308
652
  var SVG_WIDTH = 44;
309
653
  function SessionBranchPicker({
@@ -311,8 +655,8 @@ function SessionBranchPicker({
311
655
  disabled = false,
312
656
  onCheckout
313
657
  }) {
314
- const [checkoutError, setCheckoutError] = useState2(null);
315
- const [pendingNodeId, setPendingNodeId] = useState2(null);
658
+ const [checkoutError, setCheckoutError] = useState3(null);
659
+ const [pendingNodeId, setPendingNodeId] = useState3(null);
316
660
  const hasHistory = tree.nodes.length > 0;
317
661
  const layout = useMemo(() => buildLayoutNodes(tree), [tree]);
318
662
  const nodeMap = useMemo(() => new Map(tree.nodes.map((node) => [node.id, node])), [tree]);
@@ -342,10 +686,10 @@ function SessionBranchPicker({
342
686
  if (sourceNode) await checkoutNode(sourceNode, "before");
343
687
  }
344
688
  if (!hasHistory) return null;
345
- return /* @__PURE__ */ jsxs2(Provider, { delayDuration: 200, children: [
346
- checkoutError ? /* @__PURE__ */ jsx3("p", { role: "alert", className: "mb-2 text-xs text-destructive", children: checkoutError }) : null,
347
- /* @__PURE__ */ jsx3("div", { className: "flex max-h-52 justify-center overflow-x-auto overflow-y-auto", children: /* @__PURE__ */ jsxs2("div", { className: "relative", style: { height: graphHeight, width: graphWidth }, children: [
348
- /* @__PURE__ */ jsx3(
689
+ return /* @__PURE__ */ jsxs3(Provider, { delayDuration: 200, children: [
690
+ checkoutError ? /* @__PURE__ */ jsx4("p", { role: "alert", className: "mb-2 text-xs text-destructive", children: checkoutError }) : null,
691
+ /* @__PURE__ */ jsx4("div", { className: "flex max-h-52 justify-center overflow-x-auto overflow-y-auto", children: /* @__PURE__ */ jsxs3("div", { className: "relative", style: { height: graphHeight, width: graphWidth }, children: [
692
+ /* @__PURE__ */ jsx4(
349
693
  "svg",
350
694
  {
351
695
  "aria-hidden": "true",
@@ -359,7 +703,7 @@ function SessionBranchPicker({
359
703
  return null;
360
704
  }
361
705
  const childStroke = node.isActive ? "hsl(var(--primary))" : "hsl(var(--muted-foreground))";
362
- return /* @__PURE__ */ jsx3(
706
+ return /* @__PURE__ */ jsx4(
363
707
  "path",
364
708
  {
365
709
  d: buildEdgePath(
@@ -380,12 +724,12 @@ function SessionBranchPicker({
380
724
  })
381
725
  }
382
726
  ),
383
- /* @__PURE__ */ jsx3("div", { className: "relative z-0 h-full", children: layout.nodes.map((node) => {
727
+ /* @__PURE__ */ jsx4("div", { className: "relative z-0 h-full", children: layout.nodes.map((node) => {
384
728
  const isPendingNode = pendingNodeId === node.id;
385
729
  const color = node.isActive ? "hsl(var(--primary))" : "hsl(var(--muted-foreground))";
386
730
  const previewText = node.isVirtual ? isPendingNode ? "\u5207\u6362\u4E2D..." : "" : isPendingNode ? "\u5207\u6362\u4E2D..." : node.preview;
387
731
  const shouldShowTooltip = !node.isVirtual || Boolean(previewText);
388
- const button = /* @__PURE__ */ jsx3(
732
+ const button = /* @__PURE__ */ jsx4(
389
733
  "button",
390
734
  {
391
735
  type: "button",
@@ -401,7 +745,7 @@ function SessionBranchPicker({
401
745
  top: node.row * ROW_HEIGHT,
402
746
  left: getColumnX(node.column) - 12
403
747
  },
404
- children: /* @__PURE__ */ jsx3("span", { "aria-hidden": "true", className: "absolute left-0 top-0 h-8 w-6", children: /* @__PURE__ */ jsx3(
748
+ children: /* @__PURE__ */ jsx4("span", { "aria-hidden": "true", className: "absolute left-0 top-0 h-8 w-6", children: /* @__PURE__ */ jsx4(
405
749
  "svg",
406
750
  {
407
751
  "aria-hidden": "true",
@@ -411,7 +755,7 @@ function SessionBranchPicker({
411
755
  height: ROW_HEIGHT,
412
756
  viewBox: `0 0 24 ${ROW_HEIGHT}`,
413
757
  fill: "none",
414
- children: node.isVirtual ? /* @__PURE__ */ jsx3(
758
+ children: node.isVirtual ? /* @__PURE__ */ jsx4(
415
759
  "circle",
416
760
  {
417
761
  cx: 12,
@@ -423,9 +767,9 @@ function SessionBranchPicker({
423
767
  strokeDasharray: "2 2",
424
768
  opacity: 0.7
425
769
  }
426
- ) : /* @__PURE__ */ jsxs2("g", { children: [
427
- node.isCurrent ? /* @__PURE__ */ jsx3("circle", { cx: 12, cy: ROW_HEIGHT / 2, r: 9, fill: color, opacity: 0.18 }) : null,
428
- /* @__PURE__ */ jsx3(
770
+ ) : /* @__PURE__ */ jsxs3("g", { children: [
771
+ node.isCurrent ? /* @__PURE__ */ jsx4("circle", { cx: 12, cy: ROW_HEIGHT / 2, r: 9, fill: color, opacity: 0.18 }) : null,
772
+ /* @__PURE__ */ jsx4(
429
773
  "circle",
430
774
  {
431
775
  cx: 12,
@@ -440,18 +784,16 @@ function SessionBranchPicker({
440
784
  }
441
785
  );
442
786
  if (!shouldShowTooltip) {
443
- return /* @__PURE__ */ jsx3("div", { children: button }, node.id);
787
+ return /* @__PURE__ */ jsx4("div", { children: button }, node.id);
444
788
  }
445
- return /* @__PURE__ */ jsxs2(Root3, { children: [
446
- /* @__PURE__ */ jsx3(Trigger, { asChild: true, children: button }),
447
- /* @__PURE__ */ jsx3(Portal, { children: /* @__PURE__ */ jsx3(
789
+ return /* @__PURE__ */ jsxs3(Root3, { children: [
790
+ /* @__PURE__ */ jsx4(Trigger, { asChild: true, children: button }),
791
+ /* @__PURE__ */ jsx4(Portal, { children: /* @__PURE__ */ jsx4(
448
792
  Content2,
449
793
  {
450
794
  side: "right",
451
795
  sideOffset: 8,
452
796
  className: cn(
453
- // z-[60]:这张图会被放进回溯弹层(z-50 且背景不透明),
454
- // 消息预览不抬到弹层之上就会被它的背景吃掉。
455
797
  "z-[60] rounded-md border border-border bg-popover px-2 py-1 text-xs text-foreground shadow-md",
456
798
  !node.isVirtual && node.isCurrent && "font-semibold"
457
799
  ),
@@ -595,28 +937,93 @@ function buildEdgePath(fromX, fromY, toX, toY) {
595
937
  ].join(" ");
596
938
  }
597
939
  export {
940
+ AccountConnectors,
598
941
  AgentChat,
942
+ AgentLoopBlock,
943
+ AskUserQuestionBlock,
944
+ AssistantTurnBlock,
945
+ AttachmentPreviewDialog,
599
946
  BackgroundWakeNotice,
947
+ BashRenderer,
600
948
  BladeProvider,
949
+ BrowserConnectionDialog,
950
+ CHAT_COLUMN_WIDTH_STORAGE_KEY,
951
+ CardContext,
952
+ ChatColumnResizeRails,
953
+ ChatCustomizationProvider,
954
+ ChatEnvironmentProvider,
955
+ ChatLoadingIndicator,
956
+ ChatPanel,
601
957
  ChatView,
602
958
  CodeBlockPre,
959
+ CodePreview,
960
+ CompactionCard,
961
+ ConfigConnection,
962
+ ConnectionBanner,
963
+ ConnectorConnection,
964
+ ConnectorDetail,
603
965
  ConnectorPanel,
966
+ ConnectorRulesPanel,
604
967
  ContextCard,
605
968
  ContextGroupCard,
969
+ CurrentChatSessionProvider,
970
+ CurrentPlanPanel,
971
+ CurrentPlanPanelContent,
606
972
  DEFAULT_ALLOWED_TAGS,
973
+ DEFAULT_CHAT_COLUMN_WIDTH,
974
+ DeliveryCard,
975
+ DeviceConnection,
976
+ ENTRY_SCROLL_MARGIN_PX,
977
+ ErrorMessageBlock,
978
+ ExternalAnchor,
979
+ FileDeliveryCards,
980
+ FileEditRenderer,
981
+ FileReadRenderer,
982
+ FinalArtifactCards,
983
+ FollowupInteractionProvider,
984
+ HistoricalResultFeedback,
985
+ ImageLightbox,
986
+ LOOPBACK_HOSTS,
987
+ LightComposer,
988
+ LiteMessageList,
607
989
  LlmChat,
990
+ MANUAL_SCROLL_TOLERANCE_PX,
991
+ MAX_CHAT_COLUMN_WIDTH,
992
+ MIN_CHAT_COLUMN_WIDTH,
608
993
  MarkdownContent,
609
994
  MarkdownRenderer,
610
995
  McpAppCard,
996
+ McpAppFrame,
997
+ MemoryRefsHint,
998
+ MessageActions,
999
+ MessageContextPills,
1000
+ MessageFileAttachmentList,
611
1001
  MessageImage,
1002
+ MessageList,
612
1003
  MountHostContext,
613
1004
  MountSlot,
1005
+ NAV_AT_BOTTOM_EPSILON_PX,
1006
+ NEW_TURN_SCROLL_DURATION_MS,
1007
+ NEW_TURN_SCROLL_MAX_SCREENS,
1008
+ NEW_TURN_SCROLL_MIN_DISTANCE_PX,
1009
+ PIN_HANDOVER_TOLERANCE_PX,
614
1010
  PLAN_AUTO_COLLAPSE_MS,
1011
+ PlanSummaryCard,
615
1012
  PlanUpdateBlock,
616
1013
  PluginConnectorList,
617
1014
  PluginTriggerStack,
1015
+ PostChatFollowupBlock,
1016
+ RECENT_RESIDENT_TURNS,
1017
+ Reasoning,
1018
+ ReasoningContent,
1019
+ ReasoningTrigger,
1020
+ RenderErrorBoundary,
618
1021
  ReplayBar,
619
1022
  ReplayMismatchPrompt,
1023
+ ResultFeedback,
1024
+ RichInputServicesProvider,
1025
+ SUPPORTED_LANGUAGES,
1026
+ SearchRenderer,
620
1027
  SessionBranchPicker,
621
1028
  SessionMemoryToggle,
622
1029
  SessionPluginConfigDialog,
@@ -624,39 +1031,194 @@ export {
624
1031
  SessionPluginIcon,
625
1032
  SessionPluginSelector,
626
1033
  SessionQueuePanel,
1034
+ SessionReplayBar,
1035
+ SessionSourceProvider,
1036
+ Shimmer,
1037
+ SubmitResultRenderer,
627
1038
  TRIGGER_ICON_LIMIT,
628
1039
  TURN_NAV_HIGHLIGHT_CLASS,
1040
+ TextAttachmentPills,
1041
+ ThinkingBadge,
1042
+ ToolCallBlock,
1043
+ ToolFilePreviewAction,
1044
+ ToolPreviewAction,
1045
+ ToolUiCard,
629
1046
  ToolUiCardView,
630
1047
  TopicAssetSubmitDialog,
1048
+ TurnNavRail,
1049
+ USER_MESSAGE_MARKDOWN_CLASS,
1050
+ UserMessageBubble,
631
1051
  WhatIfUserBubble,
1052
+ WorkflowRunBlock,
1053
+ applyPlanStatusesById,
1054
+ backgroundTaskDismissals,
1055
+ buildCitationsFromToolCalls,
1056
+ buildLiteRows,
1057
+ buildMessageListBlockIndexes,
1058
+ buildMessageListBlocks,
1059
+ buildPendingAskUserAnswer,
1060
+ calculateAnchoredScrollTop,
1061
+ calculateAnimatedScrollTop,
1062
+ calculateStickyAwareMargin,
1063
+ calculateTrailingSpacerHeight,
632
1064
  catalogToConnectorItems,
633
- classifyAgentComputerLaunchOutcome,
1065
+ chatTone,
1066
+ clampChatColumnWidth,
1067
+ collapseInlineToolCalls,
1068
+ collectDeliveredFiles,
1069
+ collectMemoryRefs,
1070
+ collectTurnMessages,
1071
+ composerChannels,
1072
+ countMessageLines,
1073
+ countPendingToolCalls,
1074
+ countSuccessfulToolCalls,
1075
+ defaultTurnDisplayMode,
1076
+ dispatchPreview,
1077
+ extractErrorMessage,
1078
+ extractLatestPlanMessages,
1079
+ extractPlanMessagesForTurn,
1080
+ extractToolFilePath,
1081
+ extractToolFilePaths,
634
1082
  filterConnectorItems,
1083
+ findAnchorMessageIndex,
1084
+ findCodeRanges,
1085
+ findLatestReasoningMessageIndex,
1086
+ findStablePrefixEnd,
1087
+ formatBytes,
1088
+ formatExecutionDuration,
1089
+ formatLoadingElapsed,
1090
+ formatToolCallCount,
1091
+ formatToolFileName,
1092
+ formatToolName,
1093
+ getBooleanValue,
1094
+ getChatColumnWidth,
1095
+ getCodeLanguage,
1096
+ getCodeLanguageFromFilename,
1097
+ getCollapsedTurnSegments,
1098
+ getExecutionDurationMs,
1099
+ getFileName,
1100
+ getFilePreviewName,
1101
+ getFinishTaskTitle,
1102
+ getLastTextSegment,
1103
+ getLatestPendingToolName,
1104
+ getNumberValue,
1105
+ getPersistentAskUserQuestions,
635
1106
  getPlanUpdateDisplayState,
636
- isAgentComputerCommand,
637
- isAgentComputerToolCall,
1107
+ getRenderBlockPersistentId,
1108
+ getRenderer,
1109
+ getResultImages,
1110
+ getResultText,
1111
+ getSkillNameFromFilePath,
1112
+ getStringValue,
1113
+ getTextContentSegments,
1114
+ getToolDescription,
1115
+ getToolDisplayLabel,
1116
+ getToolOutputTag,
1117
+ getToolStatusLabel,
1118
+ getToolTone,
1119
+ hasNaturalLanguageText,
1120
+ injectCitationRefs,
1121
+ isErrorMessage,
1122
+ isImageFilename,
1123
+ isLoopbackUrl,
1124
+ isPlainObject,
638
1125
  isPlanUpdateTool,
1126
+ isPreparingReply,
639
1127
  isQueuePanelVisible,
1128
+ isSuccessfulToolCall,
1129
+ isTextFilename,
1130
+ isUiMeta,
1131
+ isUserMessage,
640
1132
  latestUserSpeechEntryId,
641
1133
  mergeConnectorItems,
642
1134
  mountRenderersToReact,
1135
+ nextQueuedOrder,
1136
+ normalizeAdjacentUrlFormatting,
1137
+ normalizeCodeLanguage,
1138
+ normalizeDeliveredRelPath,
1139
+ normalizeScrollEntryKey,
1140
+ notifyChat,
1141
+ openInSessionSandboxBrowser,
1142
+ parseAskUserQuestion,
1143
+ parseAskUserQuestionError,
1144
+ parseJsonValue,
1145
+ parseModelReasoningLevels,
1146
+ parsePlanMessages,
1147
+ parsePlanTree,
1148
+ parsePlanTreeResult,
643
1149
  parsePlanUpdate,
644
1150
  parseWhatIfPrompt,
645
1151
  pickCurrentPlanStep,
1152
+ renderOptionalComponent,
1153
+ resetChatColumnWidth,
1154
+ resetInputCaches,
1155
+ resolveAskQuestionState,
1156
+ resolveBrowserResourceUri,
1157
+ resolveCollapsedContent,
1158
+ resolveLoadingStageLabel,
1159
+ resolveSessionMarkdownAssetUrl,
1160
+ resolveTurnDisplayMode,
1161
+ rewriteForSandboxBrowser,
1162
+ scrollWritePreviewToLatest,
1163
+ selectActiveTurnAtViewportPosition,
646
1164
  selectionFromItem,
1165
+ sendToSession,
647
1166
  sessionPluginLabel,
1167
+ setChatColumnWidth,
1168
+ shouldAnimateNewTurnScroll,
1169
+ shouldAppendPendingAssistantTurn,
1170
+ shouldFollowWritePreview,
1171
+ shouldHandOverToFollow,
1172
+ skillDisplayName,
1173
+ snapshotMessageListRenderPlan,
1174
+ startIndexOfLastNCompleteTurns,
1175
+ stripSystemReminders,
1176
+ summarizeToolCalls,
1177
+ toolCallAnswered,
648
1178
  triggerSummary,
1179
+ turnLocateChannel,
649
1180
  turnNavItemsFromMessages,
650
1181
  useAgentSession,
1182
+ useAsyncValue,
651
1183
  useBladeClient,
652
1184
  useBladeHost,
1185
+ useCapabilities,
1186
+ useCardContext,
1187
+ useChatActions,
1188
+ useChatColumnWidth,
1189
+ useChatCustomization,
1190
+ useChatEnvironment,
1191
+ useChatRenderMode,
1192
+ useChatSessionDetail,
1193
+ useChatVirtualizer,
1194
+ useComposerBridge,
1195
+ useComposerChannels,
1196
+ useCurrentChatSessionId,
1197
+ useDismissedBackgroundTasks,
1198
+ useFollowupInteraction,
1199
+ useHideTodo,
1200
+ useHighlightedCode,
1201
+ useIsSessionHistoryLoading,
653
1202
  useLlmChat,
654
1203
  useMessagePin,
1204
+ useObservedContainerWidth,
655
1205
  useOptionalBladeClient,
1206
+ usePlanRevealRevision,
1207
+ useReasoning,
656
1208
  useReplay,
1209
+ useRichInputServices,
1210
+ useSessionHandle,
657
1211
  useSessionPluginActivation,
1212
+ useSessionReplay,
1213
+ useSessionSource,
1214
+ useSessionState,
1215
+ useSingleSessionSource,
658
1216
  useTopicAssetSubmissionAccess,
1217
+ useTurnLocateRequest,
1218
+ useTurnLocateStatus,
659
1219
  useTurnNavigation,
660
- useTypewriterReveal
1220
+ useTypewriterReveal,
1221
+ visibleSkillIds,
1222
+ visibleSkills
661
1223
  };
662
1224
  //# sourceMappingURL=internal.js.map