@blade-hq/agent-react 2612.0.0-beta.87 → 2612.0.0-beta.88
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.
- package/dist/SessionPluginConfigForm-Y657MKRX.js +9 -0
- package/dist/chat/ChatPanel.d.ts +3 -1
- package/dist/chat/chat-column-width.d.ts +2 -2
- package/dist/{chunk-GBZEFIGW.js → chunk-5ESAKOUV.js} +2 -2
- package/dist/{chunk-K6N5CQDP.js → chunk-5UGLGKFI.js} +205 -7
- package/dist/chunk-5UGLGKFI.js.map +1 -0
- package/dist/{chunk-34MHG656.js → chunk-7LVZQ4LS.js} +95 -77
- package/dist/chunk-7LVZQ4LS.js.map +1 -0
- package/dist/{chunk-J6YPRDQH.js → chunk-GXHHSZSS.js} +2 -2
- package/dist/{chunk-G6OC5I4W.js → chunk-LOXIHCL2.js} +13 -7
- package/dist/{chunk-G6OC5I4W.js.map → chunk-LOXIHCL2.js.map} +1 -1
- package/dist/{chunk-WG2HHYGK.js → chunk-NADWKQYZ.js} +76 -11
- package/dist/{chunk-WG2HHYGK.js.map → chunk-NADWKQYZ.js.map} +1 -1
- package/dist/{chunk-JFGBDNDD.js → chunk-PWUFWSMN.js} +3 -3
- package/dist/{chunk-GJZGRIDJ.js → chunk-QKI7OC5D.js} +245 -19
- package/dist/chunk-QKI7OC5D.js.map +1 -0
- package/dist/{chunk-5ZV73E5D.js → chunk-SEJUZPT5.js} +10 -1
- package/dist/chunk-SEJUZPT5.js.map +1 -0
- package/dist/{chunk-BZHMZBYT.js → chunk-VTEKA5HD.js} +281 -102
- package/dist/{chunk-BZHMZBYT.js.map → chunk-VTEKA5HD.js.map} +1 -1
- package/dist/connectors.js +3 -3
- package/dist/index.js +9 -9
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +616 -46
- package/dist/internal.js.map +1 -1
- package/dist/questions.js +4 -4
- package/dist/rich-input.js +647 -826
- package/dist/rich-input.js.map +1 -1
- package/dist/tool-details.js +5 -5
- package/package.json +2 -2
- package/dist/SessionPluginConfigForm-2KG4TG4W.js +0 -9
- package/dist/chat-WA7YIAHD.css +0 -180
- package/dist/chunk-34MHG656.js.map +0 -1
- package/dist/chunk-5ZV73E5D.js.map +0 -1
- package/dist/chunk-GJZGRIDJ.js.map +0 -1
- package/dist/chunk-K6N5CQDP.js.map +0 -1
- /package/dist/{SessionPluginConfigForm-2KG4TG4W.js.map → SessionPluginConfigForm-Y657MKRX.js.map} +0 -0
- /package/dist/{chunk-GBZEFIGW.js.map → chunk-5ESAKOUV.js.map} +0 -0
- /package/dist/{chunk-J6YPRDQH.js.map → chunk-GXHHSZSS.js.map} +0 -0
- /package/dist/{chunk-JFGBDNDD.js.map → chunk-PWUFWSMN.js.map} +0 -0
package/dist/internal.js
CHANGED
|
@@ -1,82 +1,291 @@
|
|
|
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,
|
|
4
12
|
ChatLoadingIndicator,
|
|
13
|
+
ChatPanel,
|
|
5
14
|
ChatView,
|
|
15
|
+
ConnectionBanner,
|
|
6
16
|
ContextCard,
|
|
7
17
|
ContextGroupCard,
|
|
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,
|
|
8
31
|
LlmChat,
|
|
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,
|
|
9
52
|
ReplayBar,
|
|
10
53
|
ReplayMismatchPrompt,
|
|
54
|
+
ResultFeedback,
|
|
11
55
|
SessionPluginSelector,
|
|
12
56
|
SessionQueuePanel,
|
|
57
|
+
SessionReplayBar,
|
|
58
|
+
Shimmer,
|
|
13
59
|
TURN_NAV_HIGHLIGHT_CLASS,
|
|
60
|
+
TextAttachmentPills,
|
|
61
|
+
ThinkingBadge,
|
|
62
|
+
ToolCallBlock,
|
|
63
|
+
ToolFilePreviewAction,
|
|
64
|
+
ToolPreviewAction,
|
|
65
|
+
ToolUiCard,
|
|
14
66
|
TopicAssetSubmitDialog,
|
|
67
|
+
TurnNavRail,
|
|
68
|
+
USER_MESSAGE_MARKDOWN_CLASS,
|
|
69
|
+
UserMessageBubble,
|
|
15
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,
|
|
16
92
|
formatLoadingElapsed,
|
|
93
|
+
getChatColumnWidth,
|
|
94
|
+
getExecutionDurationMs,
|
|
95
|
+
getFilePreviewName,
|
|
96
|
+
getPersistentAskUserQuestions,
|
|
97
|
+
getRenderBlockPersistentId,
|
|
98
|
+
isErrorMessage,
|
|
99
|
+
isImageFilename,
|
|
100
|
+
isLoopbackUrl,
|
|
17
101
|
isPreparingReply,
|
|
18
102
|
isQueuePanelVisible,
|
|
103
|
+
isTextFilename,
|
|
104
|
+
isUiMeta,
|
|
105
|
+
isUserMessage,
|
|
19
106
|
latestUserSpeechEntryId,
|
|
107
|
+
nextQueuedOrder,
|
|
108
|
+
normalizeDeliveredRelPath,
|
|
109
|
+
normalizeScrollEntryKey,
|
|
110
|
+
openInSessionSandboxBrowser,
|
|
111
|
+
parseAskUserQuestion,
|
|
112
|
+
parseAskUserQuestionError,
|
|
113
|
+
parsePlanMessages,
|
|
114
|
+
parsePlanTree,
|
|
115
|
+
parsePlanTreeResult,
|
|
20
116
|
parseWhatIfPrompt,
|
|
117
|
+
renderOptionalComponent,
|
|
118
|
+
resetChatColumnWidth,
|
|
119
|
+
resolveAskQuestionState,
|
|
120
|
+
resolveBrowserResourceUri,
|
|
21
121
|
resolveLoadingStageLabel,
|
|
122
|
+
resolveTurnDisplayMode,
|
|
123
|
+
rewriteForSandboxBrowser,
|
|
124
|
+
selectActiveTurnAtViewportPosition,
|
|
125
|
+
setChatColumnWidth,
|
|
126
|
+
shouldAnimateNewTurnScroll,
|
|
127
|
+
shouldAppendPendingAssistantTurn,
|
|
128
|
+
shouldHandOverToFollow,
|
|
129
|
+
snapshotMessageListRenderPlan,
|
|
130
|
+
startIndexOfLastNCompleteTurns,
|
|
131
|
+
toolCallAnswered,
|
|
132
|
+
turnLocateChannel,
|
|
22
133
|
turnNavItemsFromMessages,
|
|
23
134
|
useAgentSession,
|
|
135
|
+
useAsyncValue,
|
|
24
136
|
useCapabilities,
|
|
137
|
+
useCardContext,
|
|
138
|
+
useChatActions,
|
|
139
|
+
useChatColumnWidth,
|
|
140
|
+
useChatCustomization,
|
|
141
|
+
useFollowupInteraction,
|
|
25
142
|
useLlmChat,
|
|
26
143
|
useMessagePin,
|
|
144
|
+
useObservedContainerWidth,
|
|
145
|
+
useReasoning,
|
|
27
146
|
useReplay,
|
|
147
|
+
useSessionReplay,
|
|
28
148
|
useTopicAssetSubmissionAccess,
|
|
149
|
+
useTurnLocateRequest,
|
|
150
|
+
useTurnLocateStatus,
|
|
29
151
|
useTurnNavigation,
|
|
30
152
|
useTypewriterReveal
|
|
31
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-QKI7OC5D.js";
|
|
32
154
|
import {
|
|
33
155
|
AccountConnectors,
|
|
34
156
|
ConnectorPanel,
|
|
35
157
|
PluginTriggerStack,
|
|
36
158
|
TRIGGER_ICON_LIMIT,
|
|
159
|
+
backgroundTaskDismissals,
|
|
160
|
+
composerChannels,
|
|
37
161
|
selectionFromItem,
|
|
38
|
-
|
|
39
|
-
|
|
162
|
+
skillDisplayName,
|
|
163
|
+
triggerSummary,
|
|
164
|
+
useComposerChannels,
|
|
165
|
+
useDismissedBackgroundTasks,
|
|
166
|
+
visibleSkillIds,
|
|
167
|
+
visibleSkills
|
|
168
|
+
} from "./chunk-5UGLGKFI.js";
|
|
40
169
|
import {
|
|
41
170
|
PluginConnectorList,
|
|
171
|
+
RichInputServicesProvider,
|
|
42
172
|
SessionPluginConfigDialog,
|
|
43
173
|
SessionPluginIcon,
|
|
174
|
+
buildPendingAskUserAnswer,
|
|
44
175
|
catalogToConnectorItems,
|
|
176
|
+
chatTone,
|
|
45
177
|
filterConnectorItems,
|
|
46
178
|
mergeConnectorItems,
|
|
179
|
+
parseModelReasoningLevels,
|
|
180
|
+
resetInputCaches,
|
|
181
|
+
sendToSession,
|
|
47
182
|
sessionPluginLabel,
|
|
183
|
+
useRichInputServices,
|
|
48
184
|
useSessionPluginActivation
|
|
49
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-7LVZQ4LS.js";
|
|
50
186
|
import {
|
|
51
187
|
ConnectorConnection,
|
|
52
188
|
DeviceConnection
|
|
53
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-PWUFWSMN.js";
|
|
54
190
|
import {
|
|
191
|
+
BashRenderer,
|
|
192
|
+
CodePreview,
|
|
193
|
+
FileEditRenderer,
|
|
194
|
+
FileReadRenderer,
|
|
195
|
+
ImageLightbox,
|
|
55
196
|
McpAppCard,
|
|
56
197
|
McpAppFrame,
|
|
57
198
|
MessageImage,
|
|
58
|
-
|
|
59
|
-
|
|
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-NADWKQYZ.js";
|
|
60
220
|
import {
|
|
61
221
|
CodeBlockPre,
|
|
62
222
|
DEFAULT_ALLOWED_TAGS,
|
|
223
|
+
ExternalAnchor,
|
|
63
224
|
MarkdownContent,
|
|
64
|
-
MarkdownRenderer
|
|
65
|
-
|
|
225
|
+
MarkdownRenderer,
|
|
226
|
+
collapseInlineToolCalls,
|
|
227
|
+
findCodeRanges,
|
|
228
|
+
injectCitationRefs,
|
|
229
|
+
normalizeAdjacentUrlFormatting,
|
|
230
|
+
resolveCollapsedContent,
|
|
231
|
+
resolveSessionMarkdownAssetUrl,
|
|
232
|
+
stripSystemReminders
|
|
233
|
+
} from "./chunk-LOXIHCL2.js";
|
|
66
234
|
import {
|
|
67
235
|
BladeProvider,
|
|
68
236
|
BrowserConnectionDialog,
|
|
237
|
+
ChatEnvironmentProvider,
|
|
238
|
+
CurrentChatSessionProvider,
|
|
69
239
|
PLAN_AUTO_COLLAPSE_MS,
|
|
70
240
|
PlanUpdateBlock,
|
|
241
|
+
SessionSourceProvider,
|
|
71
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,
|
|
72
256
|
getPlanUpdateDisplayState,
|
|
257
|
+
getSkillNameFromFilePath,
|
|
258
|
+
getTextContentSegments,
|
|
259
|
+
getToolDescription,
|
|
260
|
+
getToolDisplayLabel,
|
|
261
|
+
getToolOutputTag,
|
|
262
|
+
getToolStatusLabel,
|
|
263
|
+
getToolTone,
|
|
264
|
+
hasNaturalLanguageText,
|
|
73
265
|
isPlanUpdateTool,
|
|
266
|
+
isSuccessfulToolCall,
|
|
267
|
+
notifyChat,
|
|
74
268
|
parsePlanUpdate,
|
|
75
269
|
pickCurrentPlanStep,
|
|
270
|
+
summarizeToolCalls,
|
|
76
271
|
useBladeClient,
|
|
77
272
|
useBladeHost,
|
|
78
|
-
|
|
79
|
-
|
|
273
|
+
useChatEnvironment,
|
|
274
|
+
useChatRenderMode,
|
|
275
|
+
useChatSessionDetail,
|
|
276
|
+
useChatVirtualizer,
|
|
277
|
+
useComposerBridge,
|
|
278
|
+
useCurrentChatSessionId,
|
|
279
|
+
useHideTodo,
|
|
280
|
+
useHighlightedCode,
|
|
281
|
+
useIsSessionHistoryLoading,
|
|
282
|
+
useOptionalBladeClient,
|
|
283
|
+
usePlanRevealRevision,
|
|
284
|
+
useSessionHandle,
|
|
285
|
+
useSessionSource,
|
|
286
|
+
useSessionState,
|
|
287
|
+
useSingleSessionSource
|
|
288
|
+
} from "./chunk-VTEKA5HD.js";
|
|
80
289
|
import {
|
|
81
290
|
ConfigConnection,
|
|
82
291
|
ConnectorDetail,
|
|
@@ -86,19 +295,170 @@ import {
|
|
|
86
295
|
Provider,
|
|
87
296
|
Root3,
|
|
88
297
|
Trigger
|
|
89
|
-
} from "./chunk-
|
|
298
|
+
} from "./chunk-GXHHSZSS.js";
|
|
90
299
|
import {
|
|
91
300
|
SessionPluginConfigForm
|
|
92
|
-
} from "./chunk-
|
|
93
|
-
import
|
|
301
|
+
} from "./chunk-5ESAKOUV.js";
|
|
302
|
+
import {
|
|
303
|
+
ChevronDown,
|
|
304
|
+
ChevronRight,
|
|
305
|
+
CircleX,
|
|
306
|
+
LoaderCircle,
|
|
307
|
+
Square
|
|
308
|
+
} from "./chunk-SEJUZPT5.js";
|
|
94
309
|
import "./chunk-PR4QN5HX.js";
|
|
95
310
|
|
|
96
|
-
// src/
|
|
97
|
-
|
|
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
|
+
}
|
|
98
458
|
|
|
99
459
|
// src/lib/mount-renderers.tsx
|
|
100
460
|
import { createContext, useContext, useId, useLayoutEffect, useRef } from "react";
|
|
101
|
-
import { jsx } from "react/jsx-runtime";
|
|
461
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
102
462
|
var MountHostContext = createContext(null);
|
|
103
463
|
function normalizeResult(result) {
|
|
104
464
|
if (typeof result === "function") return { destroy: result };
|
|
@@ -155,11 +515,11 @@ function MountSlot({ renderer, data }) {
|
|
|
155
515
|
mounted.target.replaceChildren();
|
|
156
516
|
mounted.handle = normalizeResult(renderer.mount(mounted.target, data));
|
|
157
517
|
}, [data, renderer]);
|
|
158
|
-
return host ? /* @__PURE__ */
|
|
518
|
+
return host ? /* @__PURE__ */ jsx2("slot", { name: slotName }) : /* @__PURE__ */ jsx2("div", { ref: localRef, "data-blade-mount": "" });
|
|
159
519
|
}
|
|
160
520
|
function slotFor(renderer, data) {
|
|
161
521
|
if (renderer.match && !renderer.match(data)) return null;
|
|
162
|
-
return /* @__PURE__ */
|
|
522
|
+
return /* @__PURE__ */ jsx2(MountSlot, { renderer, data });
|
|
163
523
|
}
|
|
164
524
|
function mountRenderersToReact(renderers, context = {}) {
|
|
165
525
|
if (!renderers) return void 0;
|
|
@@ -180,8 +540,8 @@ function mountRenderersToReact(renderers, context = {}) {
|
|
|
180
540
|
}
|
|
181
541
|
|
|
182
542
|
// src/components/SessionMemoryToggle.tsx
|
|
183
|
-
import { useCallback, useEffect, useRef as useRef2, useState, useSyncExternalStore } from "react";
|
|
184
|
-
import { jsx as
|
|
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";
|
|
185
545
|
var saveStates = /* @__PURE__ */ new WeakMap();
|
|
186
546
|
function getSaveState(client, sessionId) {
|
|
187
547
|
let clientStates = saveStates.get(client);
|
|
@@ -238,7 +598,7 @@ function SessionMemoryToggle({
|
|
|
238
598
|
getSaving,
|
|
239
599
|
getSaving
|
|
240
600
|
);
|
|
241
|
-
const [draftEnabled, setDraftEnabled] =
|
|
601
|
+
const [draftEnabled, setDraftEnabled] = useState2(enabled);
|
|
242
602
|
const activeSessionIdRef = useRef2(sessionId);
|
|
243
603
|
activeSessionIdRef.current = sessionId;
|
|
244
604
|
useEffect(() => {
|
|
@@ -270,9 +630,9 @@ function SessionMemoryToggle({
|
|
|
270
630
|
},
|
|
271
631
|
[client, enabled, onError, onSaved, sessionId]
|
|
272
632
|
);
|
|
273
|
-
return /* @__PURE__ */
|
|
274
|
-
/* @__PURE__ */
|
|
275
|
-
/* @__PURE__ */
|
|
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(
|
|
276
636
|
"input",
|
|
277
637
|
{
|
|
278
638
|
type: "checkbox",
|
|
@@ -286,8 +646,8 @@ function SessionMemoryToggle({
|
|
|
286
646
|
}
|
|
287
647
|
|
|
288
648
|
// src/components/SessionBranchPicker.tsx
|
|
289
|
-
import { useMemo, useState as
|
|
290
|
-
import { jsx as
|
|
649
|
+
import { useMemo, useState as useState3 } from "react";
|
|
650
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
291
651
|
var ROW_HEIGHT = 32;
|
|
292
652
|
var SVG_WIDTH = 44;
|
|
293
653
|
function SessionBranchPicker({
|
|
@@ -295,8 +655,8 @@ function SessionBranchPicker({
|
|
|
295
655
|
disabled = false,
|
|
296
656
|
onCheckout
|
|
297
657
|
}) {
|
|
298
|
-
const [checkoutError, setCheckoutError] =
|
|
299
|
-
const [pendingNodeId, setPendingNodeId] =
|
|
658
|
+
const [checkoutError, setCheckoutError] = useState3(null);
|
|
659
|
+
const [pendingNodeId, setPendingNodeId] = useState3(null);
|
|
300
660
|
const hasHistory = tree.nodes.length > 0;
|
|
301
661
|
const layout = useMemo(() => buildLayoutNodes(tree), [tree]);
|
|
302
662
|
const nodeMap = useMemo(() => new Map(tree.nodes.map((node) => [node.id, node])), [tree]);
|
|
@@ -326,10 +686,10 @@ function SessionBranchPicker({
|
|
|
326
686
|
if (sourceNode) await checkoutNode(sourceNode, "before");
|
|
327
687
|
}
|
|
328
688
|
if (!hasHistory) return null;
|
|
329
|
-
return /* @__PURE__ */
|
|
330
|
-
checkoutError ? /* @__PURE__ */
|
|
331
|
-
/* @__PURE__ */
|
|
332
|
-
/* @__PURE__ */
|
|
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(
|
|
333
693
|
"svg",
|
|
334
694
|
{
|
|
335
695
|
"aria-hidden": "true",
|
|
@@ -343,7 +703,7 @@ function SessionBranchPicker({
|
|
|
343
703
|
return null;
|
|
344
704
|
}
|
|
345
705
|
const childStroke = node.isActive ? "hsl(var(--primary))" : "hsl(var(--muted-foreground))";
|
|
346
|
-
return /* @__PURE__ */
|
|
706
|
+
return /* @__PURE__ */ jsx4(
|
|
347
707
|
"path",
|
|
348
708
|
{
|
|
349
709
|
d: buildEdgePath(
|
|
@@ -364,12 +724,12 @@ function SessionBranchPicker({
|
|
|
364
724
|
})
|
|
365
725
|
}
|
|
366
726
|
),
|
|
367
|
-
/* @__PURE__ */
|
|
727
|
+
/* @__PURE__ */ jsx4("div", { className: "relative z-0 h-full", children: layout.nodes.map((node) => {
|
|
368
728
|
const isPendingNode = pendingNodeId === node.id;
|
|
369
729
|
const color = node.isActive ? "hsl(var(--primary))" : "hsl(var(--muted-foreground))";
|
|
370
730
|
const previewText = node.isVirtual ? isPendingNode ? "\u5207\u6362\u4E2D..." : "" : isPendingNode ? "\u5207\u6362\u4E2D..." : node.preview;
|
|
371
731
|
const shouldShowTooltip = !node.isVirtual || Boolean(previewText);
|
|
372
|
-
const button = /* @__PURE__ */
|
|
732
|
+
const button = /* @__PURE__ */ jsx4(
|
|
373
733
|
"button",
|
|
374
734
|
{
|
|
375
735
|
type: "button",
|
|
@@ -385,7 +745,7 @@ function SessionBranchPicker({
|
|
|
385
745
|
top: node.row * ROW_HEIGHT,
|
|
386
746
|
left: getColumnX(node.column) - 12
|
|
387
747
|
},
|
|
388
|
-
children: /* @__PURE__ */
|
|
748
|
+
children: /* @__PURE__ */ jsx4("span", { "aria-hidden": "true", className: "absolute left-0 top-0 h-8 w-6", children: /* @__PURE__ */ jsx4(
|
|
389
749
|
"svg",
|
|
390
750
|
{
|
|
391
751
|
"aria-hidden": "true",
|
|
@@ -395,7 +755,7 @@ function SessionBranchPicker({
|
|
|
395
755
|
height: ROW_HEIGHT,
|
|
396
756
|
viewBox: `0 0 24 ${ROW_HEIGHT}`,
|
|
397
757
|
fill: "none",
|
|
398
|
-
children: node.isVirtual ? /* @__PURE__ */
|
|
758
|
+
children: node.isVirtual ? /* @__PURE__ */ jsx4(
|
|
399
759
|
"circle",
|
|
400
760
|
{
|
|
401
761
|
cx: 12,
|
|
@@ -407,9 +767,9 @@ function SessionBranchPicker({
|
|
|
407
767
|
strokeDasharray: "2 2",
|
|
408
768
|
opacity: 0.7
|
|
409
769
|
}
|
|
410
|
-
) : /* @__PURE__ */
|
|
411
|
-
node.isCurrent ? /* @__PURE__ */
|
|
412
|
-
/* @__PURE__ */
|
|
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(
|
|
413
773
|
"circle",
|
|
414
774
|
{
|
|
415
775
|
cx: 12,
|
|
@@ -424,11 +784,11 @@ function SessionBranchPicker({
|
|
|
424
784
|
}
|
|
425
785
|
);
|
|
426
786
|
if (!shouldShowTooltip) {
|
|
427
|
-
return /* @__PURE__ */
|
|
787
|
+
return /* @__PURE__ */ jsx4("div", { children: button }, node.id);
|
|
428
788
|
}
|
|
429
|
-
return /* @__PURE__ */
|
|
430
|
-
/* @__PURE__ */
|
|
431
|
-
/* @__PURE__ */
|
|
789
|
+
return /* @__PURE__ */ jsxs3(Root3, { children: [
|
|
790
|
+
/* @__PURE__ */ jsx4(Trigger, { asChild: true, children: button }),
|
|
791
|
+
/* @__PURE__ */ jsx4(Portal, { children: /* @__PURE__ */ jsx4(
|
|
432
792
|
Content2,
|
|
433
793
|
{
|
|
434
794
|
side: "right",
|
|
@@ -579,35 +939,91 @@ function buildEdgePath(fromX, fromY, toX, toY) {
|
|
|
579
939
|
export {
|
|
580
940
|
AccountConnectors,
|
|
581
941
|
AgentChat,
|
|
942
|
+
AgentLoopBlock,
|
|
943
|
+
AskUserQuestionBlock,
|
|
944
|
+
AssistantTurnBlock,
|
|
945
|
+
AttachmentPreviewDialog,
|
|
582
946
|
BackgroundWakeNotice,
|
|
947
|
+
BashRenderer,
|
|
583
948
|
BladeProvider,
|
|
584
949
|
BrowserConnectionDialog,
|
|
950
|
+
CHAT_COLUMN_WIDTH_STORAGE_KEY,
|
|
951
|
+
CardContext,
|
|
952
|
+
ChatColumnResizeRails,
|
|
953
|
+
ChatCustomizationProvider,
|
|
954
|
+
ChatEnvironmentProvider,
|
|
585
955
|
ChatLoadingIndicator,
|
|
956
|
+
ChatPanel,
|
|
586
957
|
ChatView,
|
|
587
958
|
CodeBlockPre,
|
|
959
|
+
CodePreview,
|
|
960
|
+
CompactionCard,
|
|
588
961
|
ConfigConnection,
|
|
962
|
+
ConnectionBanner,
|
|
589
963
|
ConnectorConnection,
|
|
590
964
|
ConnectorDetail,
|
|
591
965
|
ConnectorPanel,
|
|
592
966
|
ConnectorRulesPanel,
|
|
593
967
|
ContextCard,
|
|
594
968
|
ContextGroupCard,
|
|
969
|
+
CurrentChatSessionProvider,
|
|
970
|
+
CurrentPlanPanel,
|
|
971
|
+
CurrentPlanPanelContent,
|
|
595
972
|
DEFAULT_ALLOWED_TAGS,
|
|
973
|
+
DEFAULT_CHAT_COLUMN_WIDTH,
|
|
974
|
+
DeliveryCard,
|
|
596
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,
|
|
597
989
|
LlmChat,
|
|
990
|
+
MANUAL_SCROLL_TOLERANCE_PX,
|
|
991
|
+
MAX_CHAT_COLUMN_WIDTH,
|
|
992
|
+
MIN_CHAT_COLUMN_WIDTH,
|
|
598
993
|
MarkdownContent,
|
|
599
994
|
MarkdownRenderer,
|
|
600
995
|
McpAppCard,
|
|
601
996
|
McpAppFrame,
|
|
997
|
+
MemoryRefsHint,
|
|
998
|
+
MessageActions,
|
|
999
|
+
MessageContextPills,
|
|
1000
|
+
MessageFileAttachmentList,
|
|
602
1001
|
MessageImage,
|
|
1002
|
+
MessageList,
|
|
603
1003
|
MountHostContext,
|
|
604
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,
|
|
605
1010
|
PLAN_AUTO_COLLAPSE_MS,
|
|
1011
|
+
PlanSummaryCard,
|
|
606
1012
|
PlanUpdateBlock,
|
|
607
1013
|
PluginConnectorList,
|
|
608
1014
|
PluginTriggerStack,
|
|
1015
|
+
PostChatFollowupBlock,
|
|
1016
|
+
RECENT_RESIDENT_TURNS,
|
|
1017
|
+
Reasoning,
|
|
1018
|
+
ReasoningContent,
|
|
1019
|
+
ReasoningTrigger,
|
|
1020
|
+
RenderErrorBoundary,
|
|
609
1021
|
ReplayBar,
|
|
610
1022
|
ReplayMismatchPrompt,
|
|
1023
|
+
ResultFeedback,
|
|
1024
|
+
RichInputServicesProvider,
|
|
1025
|
+
SUPPORTED_LANGUAGES,
|
|
1026
|
+
SearchRenderer,
|
|
611
1027
|
SessionBranchPicker,
|
|
612
1028
|
SessionMemoryToggle,
|
|
613
1029
|
SessionPluginConfigDialog,
|
|
@@ -615,40 +1031,194 @@ export {
|
|
|
615
1031
|
SessionPluginIcon,
|
|
616
1032
|
SessionPluginSelector,
|
|
617
1033
|
SessionQueuePanel,
|
|
1034
|
+
SessionReplayBar,
|
|
1035
|
+
SessionSourceProvider,
|
|
1036
|
+
Shimmer,
|
|
1037
|
+
SubmitResultRenderer,
|
|
618
1038
|
TRIGGER_ICON_LIMIT,
|
|
619
1039
|
TURN_NAV_HIGHLIGHT_CLASS,
|
|
1040
|
+
TextAttachmentPills,
|
|
1041
|
+
ThinkingBadge,
|
|
1042
|
+
ToolCallBlock,
|
|
1043
|
+
ToolFilePreviewAction,
|
|
1044
|
+
ToolPreviewAction,
|
|
1045
|
+
ToolUiCard,
|
|
620
1046
|
ToolUiCardView,
|
|
621
1047
|
TopicAssetSubmitDialog,
|
|
1048
|
+
TurnNavRail,
|
|
1049
|
+
USER_MESSAGE_MARKDOWN_CLASS,
|
|
1050
|
+
UserMessageBubble,
|
|
622
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,
|
|
623
1064
|
catalogToConnectorItems,
|
|
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,
|
|
624
1082
|
filterConnectorItems,
|
|
1083
|
+
findAnchorMessageIndex,
|
|
1084
|
+
findCodeRanges,
|
|
1085
|
+
findLatestReasoningMessageIndex,
|
|
1086
|
+
findStablePrefixEnd,
|
|
1087
|
+
formatBytes,
|
|
1088
|
+
formatExecutionDuration,
|
|
625
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,
|
|
626
1106
|
getPlanUpdateDisplayState,
|
|
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,
|
|
627
1125
|
isPlanUpdateTool,
|
|
628
1126
|
isPreparingReply,
|
|
629
1127
|
isQueuePanelVisible,
|
|
1128
|
+
isSuccessfulToolCall,
|
|
1129
|
+
isTextFilename,
|
|
1130
|
+
isUiMeta,
|
|
1131
|
+
isUserMessage,
|
|
630
1132
|
latestUserSpeechEntryId,
|
|
631
1133
|
mergeConnectorItems,
|
|
632
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,
|
|
633
1149
|
parsePlanUpdate,
|
|
634
1150
|
parseWhatIfPrompt,
|
|
635
1151
|
pickCurrentPlanStep,
|
|
1152
|
+
renderOptionalComponent,
|
|
1153
|
+
resetChatColumnWidth,
|
|
1154
|
+
resetInputCaches,
|
|
1155
|
+
resolveAskQuestionState,
|
|
1156
|
+
resolveBrowserResourceUri,
|
|
1157
|
+
resolveCollapsedContent,
|
|
636
1158
|
resolveLoadingStageLabel,
|
|
1159
|
+
resolveSessionMarkdownAssetUrl,
|
|
1160
|
+
resolveTurnDisplayMode,
|
|
1161
|
+
rewriteForSandboxBrowser,
|
|
1162
|
+
scrollWritePreviewToLatest,
|
|
1163
|
+
selectActiveTurnAtViewportPosition,
|
|
637
1164
|
selectionFromItem,
|
|
1165
|
+
sendToSession,
|
|
638
1166
|
sessionPluginLabel,
|
|
1167
|
+
setChatColumnWidth,
|
|
1168
|
+
shouldAnimateNewTurnScroll,
|
|
1169
|
+
shouldAppendPendingAssistantTurn,
|
|
1170
|
+
shouldFollowWritePreview,
|
|
1171
|
+
shouldHandOverToFollow,
|
|
1172
|
+
skillDisplayName,
|
|
1173
|
+
snapshotMessageListRenderPlan,
|
|
1174
|
+
startIndexOfLastNCompleteTurns,
|
|
1175
|
+
stripSystemReminders,
|
|
1176
|
+
summarizeToolCalls,
|
|
1177
|
+
toolCallAnswered,
|
|
639
1178
|
triggerSummary,
|
|
1179
|
+
turnLocateChannel,
|
|
640
1180
|
turnNavItemsFromMessages,
|
|
641
1181
|
useAgentSession,
|
|
1182
|
+
useAsyncValue,
|
|
642
1183
|
useBladeClient,
|
|
643
1184
|
useBladeHost,
|
|
644
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,
|
|
645
1202
|
useLlmChat,
|
|
646
1203
|
useMessagePin,
|
|
1204
|
+
useObservedContainerWidth,
|
|
647
1205
|
useOptionalBladeClient,
|
|
1206
|
+
usePlanRevealRevision,
|
|
1207
|
+
useReasoning,
|
|
648
1208
|
useReplay,
|
|
1209
|
+
useRichInputServices,
|
|
1210
|
+
useSessionHandle,
|
|
649
1211
|
useSessionPluginActivation,
|
|
1212
|
+
useSessionReplay,
|
|
1213
|
+
useSessionSource,
|
|
1214
|
+
useSessionState,
|
|
1215
|
+
useSingleSessionSource,
|
|
650
1216
|
useTopicAssetSubmissionAccess,
|
|
1217
|
+
useTurnLocateRequest,
|
|
1218
|
+
useTurnLocateStatus,
|
|
651
1219
|
useTurnNavigation,
|
|
652
|
-
useTypewriterReveal
|
|
1220
|
+
useTypewriterReveal,
|
|
1221
|
+
visibleSkillIds,
|
|
1222
|
+
visibleSkills
|
|
653
1223
|
};
|
|
654
1224
|
//# sourceMappingURL=internal.js.map
|