langchain_agentx_stream_ui 0.3.0 → 0.3.3

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/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import { ReactNode, PointerEventHandler } from 'react';
4
- import { q as Source, L as LangchainAgentEvent, N as NodeRegistry, v as TierOverrides, I as InteractionBus, M as MarkdownRenderer, p as SessionTree, R as ReducerError, r as SourceEventContext, T as Task, t as TaskPhase, l as SessionStatus, E as EventTier } from './multi-session-xvSZstSN.js';
5
- export { C as CommonFields, D as DEFAULT_EVENT_TIERS, a as EventType, b as InteractionBusHandlers, c as MarkdownRendererProps, d as MultiAgentSession, e as MultiAgentSessionProps, f as MultiSessionSourceConfig, g as MultiSessionStore, h as MultiSessionStoreOptions, i as MultiSessionStoreState, j as NodeWidget, k as NodeWidgetProps, P as PermissionResolvePayload, S as SessionSlice, m as SessionStore, n as SessionStoreOptions, o as SessionStoreState, s as SourceHandler, u as TaskStatus, w as createActiveSessionBridge, x as createEmptyTree, y as createInteractionBus, z as createMultiSessionStore, A as createSessionStore, B as getNoopInteractionBus, F as useActiveSession, G as useSessionIds } from './multi-session-xvSZstSN.js';
6
- import { T as ToolDisplayRegistry, P as PermissionUiMode, b as DisplayMode, c as ProjectionContext, R as RenderableEntry, C as CanonicalNodeRef } from './sessionViewOptions-WM00Fpcn.js';
7
- export { a as CollapsedExplorePayload, D as DEFAULT_SESSION_VIEW_OPTIONS, S as SessionViewOptions, d as ToolUseSnapshot, e as buildProjectionContext, f as buildProjectionViewContext, g as createDefaultToolRegistry, h as createProjectionContext, r as resolveEffectiveToolBodyMode, s as shouldApplyGrouping, i as shouldShowExploreDetail } from './sessionViewOptions-WM00Fpcn.js';
4
+ import { q as Source, L as LangchainAgentEvent, N as NodeRegistry, v as TierOverrides, I as InteractionBus, M as MarkdownRenderer, p as SessionTree, R as ReducerError, r as SourceEventContext, T as Task, t as TaskPhase, l as SessionStatus, E as EventTier } from './multi-session-CerO558Y.js';
5
+ export { C as CommonFields, D as DEFAULT_EVENT_TIERS, a as EventType, b as InteractionBusHandlers, c as MarkdownRendererProps, d as MultiAgentSession, e as MultiAgentSessionProps, f as MultiSessionSourceConfig, g as MultiSessionStore, h as MultiSessionStoreOptions, i as MultiSessionStoreState, j as NodeWidget, k as NodeWidgetProps, P as PermissionResolvePayload, S as SessionSlice, m as SessionStore, n as SessionStoreOptions, o as SessionStoreState, s as SourceHandler, u as TaskStatus, w as createActiveSessionBridge, x as createEmptyTree, y as createInteractionBus, z as createMultiSessionStore, A as createSessionStore, B as getNoopInteractionBus, F as useActiveSession, G as useSessionIds } from './multi-session-CerO558Y.js';
6
+ import { T as ToolDisplayRegistry, P as PermissionUiMode, b as DisplayMode, c as ProjectionContext, R as RenderableEntry, C as CanonicalNodeRef } from './sessionViewOptions-DQRzPuN_.js';
7
+ export { a as CollapsedExplorePayload, D as DEFAULT_SESSION_VIEW_OPTIONS, S as SessionViewOptions, d as ToolUseSnapshot, e as buildProjectionContext, f as buildProjectionViewContext, g as createDefaultToolRegistry, h as createProjectionContext, r as resolveEffectiveToolBodyMode, s as shouldApplyGrouping, i as shouldShowExploreDetail } from './sessionViewOptions-DQRzPuN_.js';
8
8
  import { a as ToolBodyMode } from './types-BEXSHQG7.js';
9
9
  export { T as ToolBodyComponent, b as ToolDisplayProps } from './types-BEXSHQG7.js';
10
10
  import { StoreApi } from 'zustand/vanilla';
11
11
  export { DEFAULT_ESTIMATE_SIZE, DEFAULT_VIRTUALIZE_THRESHOLD, SessionTimeline, SessionTimelineProps, VirtualTimeline, VirtualTimelineProps } from './virtual.js';
12
- export { A as AgentToolBody, a as AskUserQuestionToolBody, B as BashToolBody, D as DefaultToolBody, E as EditToolBody, G as GlobToolBody, b as GrepToolBody, R as ReadToolBody, S as SkillToolBody, W as WebFetchToolBody, c as WebSearchToolBody, d as WriteToolBody, f as formatToolTitle, r as resolveToolBody } from './AskUserQuestionToolBody-BG1StdvE.js';
12
+ export { A as AgentToolBody, a as AskUserQuestionToolBody, B as BashToolBody, D as DefaultToolBody, E as EditToolBody, G as GlobToolBody, b as GrepToolBody, R as ReadToolBody, S as SkillToolBody, W as WebFetchToolBody, c as WebSearchToolBody, d as WriteToolBody, f as formatToolTitle, r as resolveToolBody } from './AskUserQuestionToolBody-CUXqUkar.js';
13
13
  import { S as SessionNode, a as SessionNodeKind } from './nodes-BcyPw6Fr.js';
14
14
  export { E as ErrorNode, N as NodeDetail, P as PermissionNode, R as ReasoningNode, b as StepDetail, c as StepNode, d as SubAgentNode, T as TextNode, h as ToolCallNode, U as UnknownNode } from './nodes-BcyPw6Fr.js';
15
15
  export { B as BodyBlock, a as BodyBlockList, D as DiffView, M as MAX_PREVIEW_LINES, b as MarkdownBlock, T as TruncatedContent, c as buildBashBodyBlocks, d as displayPath, f as formatDiffFromStrings, e as formatPatternTitle, g as formatSearchResultBody, h as formatTimeoutFooter, p as parseDiffText, t as truncateCommand } from './MarkdownBlock-CcXZ5nTm.js';
@@ -48,9 +48,11 @@ interface AgentSessionProps {
48
48
  exploreFullscreenBash?: boolean;
49
49
  memoryDir?: string | null;
50
50
  workspaceRoot?: string | null;
51
+ /** D34 P2 LeakGate synthesize;默认 false */
52
+ subagentLeakGate?: boolean;
51
53
  children?: ReactNode;
52
54
  }
53
- declare function AgentSession({ source, initialEvents, registry, tierOverrides: _tierOverrides, onError, autoReconnect: _autoReconnect, debug, virtualized, virtualizeThreshold, interactionBus, toolDisplayRegistry, defaultBodyMode, groupParallelTools, permissionUiMode, markdownRenderer, displayMode, verbose, exploreFullscreenBash, memoryDir, workspaceRoot, children, }: AgentSessionProps): react_jsx_runtime.JSX.Element;
55
+ declare function AgentSession({ source, initialEvents, registry, tierOverrides: _tierOverrides, onError, autoReconnect: _autoReconnect, debug, virtualized, virtualizeThreshold, interactionBus, toolDisplayRegistry, defaultBodyMode, groupParallelTools, permissionUiMode, markdownRenderer, displayMode, verbose, exploreFullscreenBash, memoryDir, workspaceRoot, subagentLeakGate, children, }: AgentSessionProps): react_jsx_runtime.JSX.Element;
54
56
 
55
57
  interface AgentLoopViewProps {
56
58
  /** 传入时使用隔离 store(workflow scoped);省略则使用上层 SessionStoreContext */
@@ -213,6 +215,8 @@ interface WorkflowAuthoritySnapshot {
213
215
  execution_authority?: true;
214
216
  orphan_items_reaped?: number;
215
217
  partial_success_kind?: string;
218
+ projection_status?: 'complete' | 'degraded' | 'running';
219
+ projection_dropped_count?: number;
216
220
  };
217
221
  }
218
222
  /** 纯投影 / 传输展示态 — 不可驱动宿主 phase(D33) */
@@ -286,12 +290,59 @@ interface WorkflowSessionState {
286
290
  /** P2:completed hydrated loop LRU 热缓存(最近使用在数组尾部) */
287
291
  hotCompletedLoopSessionIds: string[];
288
292
  activeLoopSessionId: string | null;
293
+ /** D36 P4:snapshot hydrate 后的 tail 游标 */
294
+ projectionCursor: string | null;
295
+ snapshotVersion: number | null;
296
+ reconnectSuppressedReason: string | null;
297
+ /** D36 T6:snapshot 404/409 时展示降级,禁止 history fallback */
298
+ snapshotHydrateFailed: boolean;
289
299
  /** @deprecated P1 起由 containerTree.activeContainerIds 替代 */
290
300
  openScopeStack: WorkflowScopeFrame[];
291
301
  internalErrors: ReducerError[];
292
302
  }
293
303
  declare function createEmptyWorkflowSessionState(): WorkflowSessionState;
294
304
 
305
+ /**
306
+ * workflowSnapshot.ts — WorkflowDisplaySnapshot DTO(D36 P3)
307
+ *
308
+ * 职责:
309
+ * remount hydrate SSOT;与 AgentEvent 协议独立。
310
+ *
311
+ * 链路位置:
312
+ * GET /projection/snapshot → hydrateWorkflowFromSnapshot(P4)。
313
+ *
314
+ * 当前裁剪范围:
315
+ * 类型定义 + fixture 契约;不含 hydrate 实现。
316
+ */
317
+
318
+ type WorkflowSnapshotProjectionStatus = 'complete' | 'degraded' | 'running';
319
+ interface WorkflowCoalescedBlock {
320
+ scopeKey: string;
321
+ kind: 'reasoning' | 'text' | 'tool';
322
+ tailPreview: string;
323
+ droppedDeltaCount: number;
324
+ }
325
+ interface WorkflowDisplaySnapshotMetadata {
326
+ projection_status?: WorkflowSnapshotProjectionStatus;
327
+ s0_event_count?: number;
328
+ dropped_s2_count?: number;
329
+ }
330
+ /** remount SSOT — 对齐 WorkflowSessionState 投影子集,非 AgentEvent[] */
331
+ interface WorkflowDisplaySnapshot {
332
+ taskId: string;
333
+ /** 单调;SSE tail 只发严格 > cursor 的帧(evt_{n:06d}) */
334
+ cursor: string;
335
+ /** hydrate 时写入 store;tail 事件须 version 一致或更新 */
336
+ snapshotVersion: number;
337
+ capturedAt: number;
338
+ display: WorkflowDisplayProjection;
339
+ /** 与 WorkflowContainerTreeState 同构 */
340
+ containerTree: WorkflowContainerTreeState;
341
+ /** P4 可选;degraded 首屏 tail 预览 */
342
+ coalescedBlocks?: WorkflowCoalescedBlock[];
343
+ metadata?: WorkflowDisplaySnapshotMetadata;
344
+ }
345
+
295
346
  /**
296
347
  * workflowAuthoritySource.ts — 宿主 workflow 业务权威输入契约(D33 §6.1)
297
348
  *
@@ -312,9 +363,13 @@ interface WorkflowAuthoritySource {
312
363
  }
313
364
 
314
365
  interface WorkflowSessionProps {
315
- source: Source;
366
+ source: Source | null;
316
367
  /** 宿主业务权威(必填);测试可用 createMockAuthoritySource */
317
368
  authoritySource: WorkflowAuthoritySource;
369
+ /** D36 P4:remount 时 GET snapshot 结果(先于 SSE tail hydrate) */
370
+ snapshotBootstrap?: WorkflowDisplaySnapshot | null;
371
+ /** T6:snapshot GET 失败时标记,禁止 history fallback */
372
+ snapshotHydrateFailed?: boolean;
318
373
  initialEvents?: LangchainAgentEvent[];
319
374
  registry?: NodeRegistry;
320
375
  tierOverrides?: TierOverrides;
@@ -342,7 +397,7 @@ interface WorkflowSessionProps {
342
397
  onDisplayStreamEnded?: () => void;
343
398
  children?: ReactNode;
344
399
  }
345
- declare function WorkflowSession({ source, authoritySource, initialEvents, registry, tierOverrides, onError, interactionBus, toolDisplayRegistry, defaultBodyMode, permissionUiMode, markdownRenderer, displayMode, verbose, exploreFullscreenBash, memoryDir, workspaceRoot, virtualized, virtualizeThreshold, groupParallelTools, workflowScale, onRequestLoopReplay, onAuthorityTerminal, onDisplayStreamEnded, children, }: WorkflowSessionProps): react_jsx_runtime.JSX.Element;
400
+ declare function WorkflowSession({ source, authoritySource, snapshotBootstrap, snapshotHydrateFailed, initialEvents, registry, tierOverrides, onError, interactionBus, toolDisplayRegistry, defaultBodyMode, permissionUiMode, markdownRenderer, displayMode, verbose, exploreFullscreenBash, memoryDir, workspaceRoot, virtualized, virtualizeThreshold, groupParallelTools, workflowScale, onRequestLoopReplay, onAuthorityTerminal, onDisplayStreamEnded, children, }: WorkflowSessionProps): react_jsx_runtime.JSX.Element;
346
401
 
347
402
  /**
348
403
  * createMockAuthoritySource.ts — 测试 / demo 用 authority 源
@@ -450,6 +505,11 @@ interface WorkflowSessionStoreState {
450
505
  hydrateLoopSession: (loopSessionId: string, events: LangchainAgentEvent[]) => void;
451
506
  /** DES-1:宿主默认 replay 路径 — 分批 + rAF yield */
452
507
  hydrateLoopSessionAsync: (loopSessionId: string, events: LangchainAgentEvent[], options?: HydrateLoopSessionAsyncOptions) => Promise<void>;
508
+ /** D36 P4:remount snapshot hydrate */
509
+ hydrateFromSnapshot: (snapshot: WorkflowDisplaySnapshot, options?: {
510
+ preserveAuthority?: boolean;
511
+ }) => void;
512
+ markSnapshotHydrateFailed: () => void;
453
513
  }
454
514
  interface HydrateLoopSessionAsyncOptions {
455
515
  chunkSize?: number;
@@ -583,6 +643,8 @@ interface ReduceOptions {
583
643
  tierOverrides?: TierOverrides;
584
644
  /** true 时 debug tier 也写入 debugEvents(AgentSession debug prop) */
585
645
  collectDebug?: boolean;
646
+ /** D19 §5.3 / D34 P2:leak main-tier tool-call 合成父 Agent progress;默认 off */
647
+ subagentLeakGate?: boolean;
586
648
  }
587
649
  declare function streamChunk(data: {
588
650
  delta?: string;
@@ -1078,7 +1140,7 @@ declare class MissingApplicationKindError extends Error {
1078
1140
  * 不等于 workflow 业务终态(authority);phase / spinner 读 WorkflowAuthoritySnapshot(见 D33)。
1079
1141
  */
1080
1142
 
1081
- type SseTransportProfile = 'oneshot' | 'oneshot-workflow' | 'replayable-workflow';
1143
+ type SseTransportProfile = 'oneshot' | 'oneshot-workflow' | 'replayable-workflow' | 'workflow-tail';
1082
1144
  type SseReplayMode = 'none' | 'resume' | 'history';
1083
1145
  type SseReconnectMode = 'off' | 'bounded' | 'unbounded';
1084
1146
  interface SseReconnectPolicy {
@@ -1192,6 +1254,7 @@ declare function createMockSource(events: LangchainAgentEvent[]): Source;
1192
1254
  interface ReplayOptions {
1193
1255
  tierOverrides?: TierOverrides;
1194
1256
  collectDebug?: boolean;
1257
+ subagentLeakGate?: boolean;
1195
1258
  }
1196
1259
  /** 从空树回放完整事件序列。 */
1197
1260
  declare function replayEvents(events: LangchainAgentEvent[], options?: ReplayOptions): SessionTree;
@@ -1289,10 +1352,10 @@ declare function isAuthorityTerminal(state: WorkflowSessionState): boolean;
1289
1352
  /** 全局 workflow spinner:authority 非 terminal 时保持(含 projection 已 done 的 T2)。 */
1290
1353
  declare function shouldShowGlobalSpinner(state: WorkflowSessionState): boolean;
1291
1354
  interface WorkflowBannerDescriptor {
1292
- kind: 'none' | 'partial_success' | 'forced_closeout' | 'awaiting_authority' | 'sync_failed';
1355
+ kind: 'none' | 'authority_error' | 'partial_success' | 'forced_closeout' | 'projection_degraded' | 'snapshot_unavailable' | 'awaiting_authority' | 'sync_failed';
1293
1356
  message: string;
1294
1357
  }
1295
- /** Phase 1 基础文案;Phase 2 扩展 partial_success × forced_closeout 矩阵。 */
1358
+ /** D36 §00.1 Banner 优先级栈(高→低)— 返回最高优先级一条。 */
1296
1359
  declare function resolveWorkflowBanner(state: WorkflowSessionState): WorkflowBannerDescriptor;
1297
1360
  /** UI 读投影态(非 phase SSOT)。 */
1298
1361
  declare function getDisplayProjectionStatus(state: WorkflowSessionState): WorkflowSessionState['display']['projectionStatus'];
@@ -1323,6 +1386,24 @@ declare function filterAgentLoopReplayEvents<T extends {
1323
1386
  /** agent 事件缺 session_id 时,从 workflow_id (或 workflow_path 兜底) + scope key 推导。 */
1324
1387
  declare function deriveLoopSessionIdFromAgentEvent(event: LangchainAgentEvent): string | null;
1325
1388
 
1389
+ /**
1390
+ * hydrateWorkflowSnapshot.ts — remount SSOT(D36 P4)
1391
+ *
1392
+ * 职责:
1393
+ * WorkflowDisplaySnapshot → WorkflowSessionState 投影子集替换。
1394
+ *
1395
+ * 链路位置:
1396
+ * GET /projection/snapshot → workflowSessionStore.hydrateFromSnapshot。
1397
+ */
1398
+
1399
+ interface HydrateWorkflowSnapshotOptions {
1400
+ preserveAuthority?: boolean;
1401
+ }
1402
+ /** 判断 SSE event id 是否 ≤ projectionCursor(duplicate tail 丢弃)。 */
1403
+ declare function isAtOrBeforeProjectionCursor(projectionCursor: string | null | undefined, eventId: string | undefined): boolean;
1404
+ /** 冻结算法:替换投影子集,禁止写 authority(除非 preserveAuthority)。 */
1405
+ declare function hydrateWorkflowFromSnapshot(state: WorkflowSessionState, snapshot: WorkflowDisplaySnapshot, options?: HydrateWorkflowSnapshotOptions): WorkflowSessionState;
1406
+
1326
1407
  /**
1327
1408
  * 职责:事件分级类型(V2-A classify 层公共契约)。
1328
1409
  * 链路位置:classify.ts → reducer;AgentSession tierOverrides 传入。
@@ -1351,4 +1432,4 @@ interface ClassifyContext {
1351
1432
  declare function resolveEventTier(eventType: string, overrides?: TierOverrides): EventTier;
1352
1433
  declare function classifyEvent(event: LangchainAgentEvent, ctx: ClassifyContext, overrides?: TierOverrides, eventIndex?: number): ClassifiedEvent;
1353
1434
 
1354
- export { Agent, AgentLoopView, type AgentLoopViewProps, AgentSession, type AgentSessionProps, type AgentxMetaFrame, type AgentxSseSourceOptions, type ApplicationKind, ApplicationKindMismatchError, AskUserQuestion, BOUNDED_DEFAULTS, Bash, CanonicalNodeRef, type ClassifiedEvent, type ClassifyContext, CollapseKind, CollapsedExploreNode, type CollapsedExploreNodeProps, DEFAULT_WORKFLOW_SCALE_OPTIONS, type DiagramFitLayout, DiagramZoomShell, type DiagramZoomShellProps, DiagramZoomView, type DiagramZoomViewProps, DisplayMode, EXPECTED_PROTOCOL_VERSION, Edit, ErrorCard, EventTier, ExploreCollapseAccumulator, GROUPABLE_TOOL_NAMES, Glob, Grep, GroupedToolUseAccumulator, type HydrateLoopSessionAsyncOptions, InteractionBus, LangchainAgentEvent, MIN_HINT_DISPLAY_MS, MarkdownRenderer, MermaidDiagram, type MermaidDiagramProps, type MermaidInitOptions, type MermaidThemeName, MissingApplicationKindError, type MockAuthoritySourceOptions, NodeRegistry, PROFILE_PRESETS, PermissionCard, PermissionUiMode, PlantUMLBlock, type PlantUMLBlockProps, PlantUMLDiagram, type PlantUMLDiagramProps, type PollingAuthoritySourceOptions, type ProjectedTimelineItem, ProjectionContext, DisplayMode as ProjectionDisplayMode, Read, ReasoningBubble, ReconnectBudget, type ReduceOptions, ReducerError, RenderableEntry, RenderableTimelineProjector, type ReplayOptions, type ReplaySourceOptions, RichMarkdown, type RichMarkdownProps, SHELL_PROGRESS_MIN_ELAPSED_SECONDS, SessionNode, SessionNodeKind, SessionStatus, SessionTree, Skill, Source, SourceEventContext, Spinner, type SpinnerProps, type SseReconnectMode, type SseReconnectPolicy, type SseReplayMode, type SseTerminalPolicy, type SseTransportFailureKind, type SseTransportPolicy, type SseTransportPolicyOverride, type SseTransportProfile, SseTransportTerminalError, StepCard, SubAgentBlock, SystemSummaryAccumulator, SystemSummaryNode, Task, TaskList, TaskListFooter, TextBubble, TierOverrides, Timeline, TimelineItem, ToolBodyMode, ToolCallCard, ToolDisplayRegistry, ToolProjectionClassifier, UnknownCard, WORKFLOW_STRUCTURE_EVENT_PREFIXES, WORKFLOW_STRUCTURE_EVENT_TYPES, WebFetch, WebSearch, type WorkflowAuthoritySnapshot, type WorkflowAuthoritySource, type WorkflowAuthorityStatus, type WorkflowBannerDescriptor, WorkflowChrome, type WorkflowChromeProps, type WorkflowDisplayProjection, type WorkflowDisplayProjectionStatus, type WorkflowLoopReplayHandler, WorkflowLoopReplayProvider, type WorkflowProgressState, WorkflowScaleContext, type WorkflowScaleOptions, type WorkflowScopeFrame, WorkflowSession, type WorkflowSessionProps, type WorkflowSessionState, type WorkflowSessionStore, type WorkflowSessionStoreOptions, type WorkflowSessionStoreState, type WorkflowStageProgress, WorkflowTaskListFooter, type WorkflowTerminalKind, Write, applyAuthoritySnapshotToState, buildCanonicalFromTree, buildRelevantMemoriesCanonical, buildResumeStreamUrl, buildSystemEventCanonical, buildTimelineEntries, classifyEvent, commandAsHint, computeViewportFitTransform, configureMermaid, configurePlantumlServer, createAgentxSseSource, createControllableAuthoritySource, createDefaultRegistry, createDoneAuthoritySource, createEmptyWorkflowSessionState, createMockAuthoritySource, createMockSource, createPollingAuthoritySource, createReplaySource, createRunningAuthoritySource, createWorkflowSessionStore, deriveLoopSessionIdFromAgentEvent, entryKey, filterAgentLoopReplayEvents, finalizeWorkflowDisplayOnStreamEnded, fixDiagramSvg, formatAgentTitle, formatExploreSummaryText, formatHookFinishedSummary, formatShellProgressSuffix, formatTaskFooterLabel, getChildIds, getDisplayProjectionStatus, getMainStageIds, isAgentLoopReplayEventType, isAuthorityTerminal, isAuthorityTerminalStatus, isGitOperationCommand, isGroupableToolName, isMcpToolName, isSseStreamTerminalEvent, isWorkflowStructureEventType, iterMountCandidates, partitionWorkflowStages, projectCanonical, projectTimeline, reduceAgentLoopEvent, reduceEvents, reduceTree, reduceWorkflowEvents, reduceWorkflowSession, replayEvents, replayTree, resolveEventTier, resolveResponseId, resolveShellProgressFromPayload, resolveSseTransportPolicy, resolveWorkflowBanner, shouldShowGlobalSpinner, shouldShowTaskListFooter, streamChunk, useChildren, useInteractionBus, useInternalErrors, useMinDisplayTime, useNode, useNodeTyped, useProjectedTimeline, useReplayTree, useSessionMeta, useSessionStatus, useTimeline, useWorkflowSessionStatus, useWorkflowSessionStoreApi };
1435
+ export { Agent, AgentLoopView, type AgentLoopViewProps, AgentSession, type AgentSessionProps, type AgentxMetaFrame, type AgentxSseSourceOptions, type ApplicationKind, ApplicationKindMismatchError, AskUserQuestion, BOUNDED_DEFAULTS, Bash, CanonicalNodeRef, type ClassifiedEvent, type ClassifyContext, CollapseKind, CollapsedExploreNode, type CollapsedExploreNodeProps, DEFAULT_WORKFLOW_SCALE_OPTIONS, type DiagramFitLayout, DiagramZoomShell, type DiagramZoomShellProps, DiagramZoomView, type DiagramZoomViewProps, DisplayMode, EXPECTED_PROTOCOL_VERSION, Edit, ErrorCard, EventTier, ExploreCollapseAccumulator, GROUPABLE_TOOL_NAMES, Glob, Grep, GroupedToolUseAccumulator, type HydrateLoopSessionAsyncOptions, type HydrateWorkflowSnapshotOptions, InteractionBus, LangchainAgentEvent, MIN_HINT_DISPLAY_MS, MarkdownRenderer, MermaidDiagram, type MermaidDiagramProps, type MermaidInitOptions, type MermaidThemeName, MissingApplicationKindError, type MockAuthoritySourceOptions, NodeRegistry, PROFILE_PRESETS, PermissionCard, PermissionUiMode, PlantUMLBlock, type PlantUMLBlockProps, PlantUMLDiagram, type PlantUMLDiagramProps, type PollingAuthoritySourceOptions, type ProjectedTimelineItem, ProjectionContext, DisplayMode as ProjectionDisplayMode, Read, ReasoningBubble, ReconnectBudget, type ReduceOptions, ReducerError, RenderableEntry, RenderableTimelineProjector, type ReplayOptions, type ReplaySourceOptions, RichMarkdown, type RichMarkdownProps, SHELL_PROGRESS_MIN_ELAPSED_SECONDS, SessionNode, SessionNodeKind, SessionStatus, SessionTree, Skill, Source, SourceEventContext, Spinner, type SpinnerProps, type SseReconnectMode, type SseReconnectPolicy, type SseReplayMode, type SseTerminalPolicy, type SseTransportFailureKind, type SseTransportPolicy, type SseTransportPolicyOverride, type SseTransportProfile, SseTransportTerminalError, StepCard, SubAgentBlock, SystemSummaryAccumulator, SystemSummaryNode, Task, TaskList, TaskListFooter, TextBubble, TierOverrides, Timeline, TimelineItem, ToolBodyMode, ToolCallCard, ToolDisplayRegistry, ToolProjectionClassifier, UnknownCard, WORKFLOW_STRUCTURE_EVENT_PREFIXES, WORKFLOW_STRUCTURE_EVENT_TYPES, WebFetch, WebSearch, type WorkflowAuthoritySnapshot, type WorkflowAuthoritySource, type WorkflowAuthorityStatus, type WorkflowBannerDescriptor, WorkflowChrome, type WorkflowChromeProps, type WorkflowCoalescedBlock, type WorkflowDisplayProjection, type WorkflowDisplayProjectionStatus, type WorkflowDisplaySnapshot, type WorkflowDisplaySnapshotMetadata, type WorkflowLoopReplayHandler, WorkflowLoopReplayProvider, type WorkflowProgressState, WorkflowScaleContext, type WorkflowScaleOptions, type WorkflowScopeFrame, WorkflowSession, type WorkflowSessionProps, type WorkflowSessionState, type WorkflowSessionStore, type WorkflowSessionStoreOptions, type WorkflowSessionStoreState, type WorkflowSnapshotProjectionStatus, type WorkflowStageProgress, WorkflowTaskListFooter, type WorkflowTerminalKind, Write, applyAuthoritySnapshotToState, buildCanonicalFromTree, buildRelevantMemoriesCanonical, buildResumeStreamUrl, buildSystemEventCanonical, buildTimelineEntries, classifyEvent, commandAsHint, computeViewportFitTransform, configureMermaid, configurePlantumlServer, createAgentxSseSource, createControllableAuthoritySource, createDefaultRegistry, createDoneAuthoritySource, createEmptyWorkflowSessionState, createMockAuthoritySource, createMockSource, createPollingAuthoritySource, createReplaySource, createRunningAuthoritySource, createWorkflowSessionStore, deriveLoopSessionIdFromAgentEvent, entryKey, filterAgentLoopReplayEvents, finalizeWorkflowDisplayOnStreamEnded, fixDiagramSvg, formatAgentTitle, formatExploreSummaryText, formatHookFinishedSummary, formatShellProgressSuffix, formatTaskFooterLabel, getChildIds, getDisplayProjectionStatus, getMainStageIds, hydrateWorkflowFromSnapshot, isAgentLoopReplayEventType, isAtOrBeforeProjectionCursor, isAuthorityTerminal, isAuthorityTerminalStatus, isGitOperationCommand, isGroupableToolName, isMcpToolName, isSseStreamTerminalEvent, isWorkflowStructureEventType, iterMountCandidates, partitionWorkflowStages, projectCanonical, projectTimeline, reduceAgentLoopEvent, reduceEvents, reduceTree, reduceWorkflowEvents, reduceWorkflowSession, replayEvents, replayTree, resolveEventTier, resolveResponseId, resolveShellProgressFromPayload, resolveSseTransportPolicy, resolveWorkflowBanner, shouldShowGlobalSpinner, shouldShowTaskListFooter, streamChunk, useChildren, useInteractionBus, useInternalErrors, useMinDisplayTime, useNode, useNodeTyped, useProjectedTimeline, useReplayTree, useSessionMeta, useSessionStatus, useTimeline, useWorkflowSessionStatus, useWorkflowSessionStoreApi };