langchain_agentx_stream_ui 0.7.9 → 0.8.2

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/default.css CHANGED
@@ -2199,6 +2199,29 @@
2199
2199
  margin-left: 0.35rem;
2200
2200
  }
2201
2201
 
2202
+ /* Context compaction progress(对齐 CLI CompactProgressWidget / CC ✽) */
2203
+ .lax-compact-progress {
2204
+ margin-bottom: var(--lax-density-block-margin-y, 0.125rem);
2205
+ font-family: var(--lax-font-mono);
2206
+ color: var(--lax-muted);
2207
+ font-size: 0.875rem;
2208
+ }
2209
+
2210
+ .lax-compact-progress__title {
2211
+ color: var(--lax-text, inherit);
2212
+ }
2213
+
2214
+ .lax-compact-progress__bar-line {
2215
+ margin-top: 0.125rem;
2216
+ opacity: 0.9;
2217
+ }
2218
+
2219
+ .lax-compact-progress__detail {
2220
+ margin-top: 0.125rem;
2221
+ padding-left: 0.25rem;
2222
+ opacity: 0.85;
2223
+ }
2224
+
2202
2225
  /* ============================================================================
2203
2226
  Workflow 容器树(D23 P2)
2204
2227
  ============================================================================ */
@@ -2840,3 +2863,376 @@
2840
2863
  border: none;
2841
2864
  background: transparent;
2842
2865
  }
2866
+
2867
+ /* ===== MCP 配置面板(D45 McpPanel · lax-mcp-*)===== */
2868
+ /* overlay:≥1024px 右侧抽屉 480px;<1024px 全屏覆盖 */
2869
+ .lax-mcp-overlay {
2870
+ position: fixed;
2871
+ inset: 0;
2872
+ z-index: 90;
2873
+ background: rgba(0, 0, 0, 0.45);
2874
+ display: flex;
2875
+ justify-content: flex-end;
2876
+ }
2877
+
2878
+ .lax-mcp-panel {
2879
+ display: flex;
2880
+ flex-direction: column;
2881
+ width: 480px;
2882
+ max-width: 100%;
2883
+ height: 100%;
2884
+ background: var(--lax-card-bg, #fff);
2885
+ color: var(--lax-fg, inherit);
2886
+ border-left: 1px solid var(--lax-border-color, rgba(0, 0, 0, 0.1));
2887
+ outline: none;
2888
+ }
2889
+
2890
+ @media (max-width: 1023px) {
2891
+ .lax-mcp-overlay {
2892
+ justify-content: stretch;
2893
+ }
2894
+ .lax-mcp-panel {
2895
+ width: 100%;
2896
+ border-left: none;
2897
+ }
2898
+ }
2899
+
2900
+ .lax-mcp-header {
2901
+ display: flex;
2902
+ align-items: center;
2903
+ gap: 0.6rem;
2904
+ padding: 0.7rem 1rem;
2905
+ border-bottom: 1px solid var(--lax-border-color, rgba(0, 0, 0, 0.1));
2906
+ }
2907
+
2908
+ .lax-mcp-title {
2909
+ font-size: 0.95rem;
2910
+ font-weight: 600;
2911
+ flex: 1 1 auto;
2912
+ }
2913
+
2914
+ .lax-mcp-ready {
2915
+ font-size: 0.8rem;
2916
+ white-space: nowrap;
2917
+ }
2918
+
2919
+ .lax-mcp-ready.is-ready {
2920
+ color: var(--lax-color-success, #2d7d46);
2921
+ }
2922
+
2923
+ .lax-mcp-ready.is-not-ready {
2924
+ color: var(--lax-color-warning, #b8860b);
2925
+ }
2926
+
2927
+ .lax-mcp-close {
2928
+ border: none;
2929
+ background: transparent;
2930
+ color: inherit;
2931
+ font-size: 1.1rem;
2932
+ line-height: 1;
2933
+ padding: 0.15rem 0.4rem;
2934
+ cursor: pointer;
2935
+ border-radius: 4px;
2936
+ }
2937
+
2938
+ .lax-mcp-close:hover {
2939
+ background: var(--lax-bg-surface, rgba(0, 0, 0, 0.06));
2940
+ }
2941
+
2942
+ .lax-mcp-error {
2943
+ display: flex;
2944
+ align-items: center;
2945
+ justify-content: space-between;
2946
+ gap: 0.6rem;
2947
+ margin: 0.6rem 1rem 0;
2948
+ padding: 0.45rem 0.7rem;
2949
+ font-size: 0.82rem;
2950
+ border-radius: 6px;
2951
+ color: var(--lax-color-error, #c0392b);
2952
+ background: color-mix(in srgb, var(--lax-color-error, #c0392b) 10%, transparent);
2953
+ }
2954
+
2955
+ .lax-mcp-error-text {
2956
+ word-break: break-all;
2957
+ }
2958
+
2959
+ .lax-mcp-body {
2960
+ flex: 1 1 auto;
2961
+ min-height: 0;
2962
+ overflow-y: auto;
2963
+ padding: 0.8rem 1rem 1.4rem;
2964
+ display: flex;
2965
+ flex-direction: column;
2966
+ gap: 0.9rem;
2967
+ }
2968
+
2969
+ .lax-mcp-loading,
2970
+ .lax-mcp-empty {
2971
+ padding: 0.6rem 0.2rem;
2972
+ font-size: 0.85rem;
2973
+ opacity: 0.8;
2974
+ }
2975
+
2976
+ .lax-mcp-section {
2977
+ border: 1px solid var(--lax-border-color, rgba(0, 0, 0, 0.1));
2978
+ border-radius: 8px;
2979
+ padding: 0.7rem 0.8rem;
2980
+ }
2981
+
2982
+ .lax-mcp-section-title {
2983
+ font-size: 0.76rem;
2984
+ font-weight: 600;
2985
+ text-transform: uppercase;
2986
+ letter-spacing: 0.04em;
2987
+ opacity: 0.7;
2988
+ margin-bottom: 0.5rem;
2989
+ }
2990
+
2991
+ .lax-mcp-config-actions {
2992
+ display: flex;
2993
+ gap: 0.45rem;
2994
+ flex-wrap: wrap;
2995
+ }
2996
+
2997
+ .lax-mcp-btn {
2998
+ border: 1px solid var(--lax-border-color, rgba(0, 0, 0, 0.15));
2999
+ background: var(--lax-bg-surface, rgba(0, 0, 0, 0.03));
3000
+ color: inherit;
3001
+ font-size: 0.8rem;
3002
+ padding: 0.25rem 0.55rem;
3003
+ border-radius: 6px;
3004
+ cursor: pointer;
3005
+ white-space: nowrap;
3006
+ }
3007
+
3008
+ .lax-mcp-btn:hover:not(:disabled) {
3009
+ border-color: var(--lax-accent, #3a6ea5);
3010
+ }
3011
+
3012
+ .lax-mcp-btn:disabled {
3013
+ opacity: 0.5;
3014
+ cursor: not-allowed;
3015
+ }
3016
+
3017
+ .lax-mcp-btn--primary {
3018
+ border-color: var(--lax-accent, #3a6ea5);
3019
+ color: var(--lax-accent, #3a6ea5);
3020
+ font-weight: 600;
3021
+ }
3022
+
3023
+ /* ② 连接状态行 */
3024
+ .lax-mcp-server-row {
3025
+ display: flex;
3026
+ align-items: center;
3027
+ gap: 0.5rem;
3028
+ padding: 0.45rem 0.2rem;
3029
+ flex-wrap: wrap;
3030
+ }
3031
+
3032
+ .lax-mcp-server-row--disconnected,
3033
+ .lax-mcp-server-row--disabled {
3034
+ opacity: 0.65;
3035
+ }
3036
+
3037
+ .lax-mcp-server-row--failed {
3038
+ box-shadow: inset 2px 0 0 var(--lax-color-error, #c0392b);
3039
+ }
3040
+
3041
+ .lax-mcp-state-icon {
3042
+ width: 1.1em;
3043
+ text-align: center;
3044
+ flex-shrink: 0;
3045
+ }
3046
+
3047
+ .lax-mcp-state-icon.tone-success {
3048
+ color: var(--lax-color-success, #2d7d46);
3049
+ }
3050
+
3051
+ .lax-mcp-state-icon.tone-error {
3052
+ color: var(--lax-color-error, #c0392b);
3053
+ }
3054
+
3055
+ .lax-mcp-state-icon.tone-warning {
3056
+ color: var(--lax-color-warning, #b8860b);
3057
+ }
3058
+
3059
+ .lax-mcp-state-icon.tone-running {
3060
+ color: var(--lax-color-running, #2980b9);
3061
+ }
3062
+
3063
+ /* muted 态沿用文件惯例(无专用色变量,用弱化不透明度) */
3064
+ .lax-mcp-state-icon.tone-muted {
3065
+ opacity: 0.55;
3066
+ }
3067
+
3068
+ .lax-mcp-server-name {
3069
+ font-weight: 600;
3070
+ word-break: break-all;
3071
+ }
3072
+
3073
+ .lax-mcp-server-meta {
3074
+ font-size: 0.78rem;
3075
+ opacity: 0.75;
3076
+ }
3077
+
3078
+ .lax-mcp-server-actions {
3079
+ margin-left: auto;
3080
+ display: flex;
3081
+ gap: 0.35rem;
3082
+ flex-wrap: wrap;
3083
+ }
3084
+
3085
+ .lax-mcp-server-error {
3086
+ width: 100%;
3087
+ font-size: 0.78rem;
3088
+ color: var(--lax-color-error, #c0392b);
3089
+ word-break: break-all;
3090
+ }
3091
+
3092
+ /* ③ 工具清单组 */
3093
+ .lax-mcp-tools {
3094
+ margin: 0.1rem 0 0.5rem 1.6rem;
3095
+ border-left: 2px solid var(--lax-border-color, rgba(0, 0, 0, 0.12));
3096
+ padding-left: 0.7rem;
3097
+ display: flex;
3098
+ flex-direction: column;
3099
+ gap: 0.25rem;
3100
+ font-size: 0.82rem;
3101
+ }
3102
+
3103
+ .lax-mcp-tools--loading {
3104
+ opacity: 0.7;
3105
+ }
3106
+
3107
+ .lax-mcp-tools--error {
3108
+ color: var(--lax-color-error, #c0392b);
3109
+ word-break: break-all;
3110
+ }
3111
+
3112
+ .lax-mcp-tool-row {
3113
+ display: flex;
3114
+ align-items: baseline;
3115
+ gap: 0.5rem;
3116
+ flex-wrap: wrap;
3117
+ }
3118
+
3119
+ .lax-mcp-tool-name {
3120
+ font-family: var(--lax-font-mono, monospace);
3121
+ font-size: 0.8rem;
3122
+ word-break: break-all;
3123
+ }
3124
+
3125
+ .lax-mcp-tool-hint {
3126
+ font-size: 0.72rem;
3127
+ padding: 0.02rem 0.35rem;
3128
+ border-radius: 4px;
3129
+ }
3130
+
3131
+ .lax-mcp-tool-hint.tone-success {
3132
+ color: var(--lax-color-success, #2d7d46);
3133
+ background: color-mix(in srgb, var(--lax-color-success, #2d7d46) 12%, transparent);
3134
+ }
3135
+
3136
+ .lax-mcp-tool-hint.tone-error {
3137
+ color: var(--lax-color-error, #c0392b);
3138
+ background: color-mix(in srgb, var(--lax-color-error, #c0392b) 12%, transparent);
3139
+ }
3140
+
3141
+ .lax-mcp-adj {
3142
+ font-size: 0.75rem;
3143
+ padding: 0.05rem 0.4rem;
3144
+ border-radius: 4px;
3145
+ white-space: nowrap;
3146
+ }
3147
+
3148
+ .lax-mcp-adj--allowed {
3149
+ color: var(--lax-color-success, #2d7d46);
3150
+ background: color-mix(in srgb, var(--lax-color-success, #2d7d46) 12%, transparent);
3151
+ }
3152
+
3153
+ .lax-mcp-adj--denied {
3154
+ color: var(--lax-color-error, #c0392b);
3155
+ background: color-mix(in srgb, var(--lax-color-error, #c0392b) 12%, transparent);
3156
+ }
3157
+
3158
+ .lax-mcp-adj--uncovered {
3159
+ color: var(--lax-color-warning, #8a6508);
3160
+ background: color-mix(in srgb, var(--lax-color-warning, #b8860b) 15%, transparent);
3161
+ }
3162
+
3163
+ /* ④ 规则裁决 */
3164
+ .lax-mcp-rules-grid {
3165
+ display: grid;
3166
+ grid-template-columns: 1fr 1fr;
3167
+ gap: 0.6rem;
3168
+ }
3169
+
3170
+ @media (max-width: 1023px) {
3171
+ .lax-mcp-rules-grid {
3172
+ grid-template-columns: 1fr;
3173
+ }
3174
+ }
3175
+
3176
+ .lax-mcp-field {
3177
+ display: flex;
3178
+ flex-direction: column;
3179
+ gap: 0.25rem;
3180
+ font-size: 0.78rem;
3181
+ flex: 1 1 auto;
3182
+ }
3183
+
3184
+ .lax-mcp-input,
3185
+ .lax-mcp-select,
3186
+ .lax-mcp-textarea {
3187
+ background: var(--lax-bg-surface, rgba(0, 0, 0, 0.03));
3188
+ color: inherit;
3189
+ border: 1px solid var(--lax-border-color, rgba(0, 0, 0, 0.15));
3190
+ border-radius: 6px;
3191
+ padding: 0.35rem 0.5rem;
3192
+ font-size: 0.84rem;
3193
+ font-family: inherit;
3194
+ }
3195
+
3196
+ .lax-mcp-textarea {
3197
+ font-family: var(--lax-font-mono, monospace);
3198
+ min-height: 3.2em;
3199
+ resize: vertical;
3200
+ }
3201
+
3202
+ .lax-mcp-hint {
3203
+ font-size: 0.76rem;
3204
+ opacity: 0.75;
3205
+ margin-top: 0.45rem;
3206
+ }
3207
+
3208
+ .lax-mcp-rules-preview {
3209
+ font-size: 0.8rem;
3210
+ margin-top: 0.35rem;
3211
+ }
3212
+
3213
+ .lax-mcp-inline-error {
3214
+ font-size: 0.78rem;
3215
+ color: var(--lax-color-error, #c0392b);
3216
+ margin-top: 0.35rem;
3217
+ word-break: break-all;
3218
+ }
3219
+
3220
+ .lax-mcp-rules .lax-mcp-btn--primary {
3221
+ margin-top: 0.5rem;
3222
+ }
3223
+
3224
+ /* ① 配置表单 */
3225
+ .lax-mcp-form {
3226
+ display: flex;
3227
+ flex-direction: column;
3228
+ gap: 0.45rem;
3229
+ margin-top: 0.6rem;
3230
+ }
3231
+
3232
+ .lax-mcp-form-row {
3233
+ display: flex;
3234
+ gap: 0.5rem;
3235
+ flex-wrap: wrap;
3236
+ align-items: flex-end;
3237
+ }
3238
+
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
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 { W as WorkflowAuthoritySnapshot, u as Source, L as LangchainAgentEvent, N as NodeRegistry, z as TierOverrides, I as InteractionBus, M as MarkdownRenderer, a as AskDisplaySnapshot, s as SessionTree, H as WorkflowDisplayProjection, G as WorkflowContainerTreeState, Q as WorkflowSessionState, F as WorkflowContainerRuntimeNode, v as SourceEventContext, J as WorkflowDisplayProjectionStatus, T as Task, x as TaskPhase, o as SessionStatus, R as ReducerError, B as WorkflowAuthorityStatus, r as SessionStoreState, t as SessionTreeSnapshot, E as EventTier } from './multi-session-9LtrGlsm.js';
5
- export { A as AskCoalescedBlock, b as AskDisplaySnapshotMetadata, c as AskSnapshotProjectionStatus, C as CommonFields, D as DEFAULT_EVENT_TIERS, d as EventType, e as InteractionBusHandlers, f as MarkdownRendererProps, g as MultiAgentSession, h as MultiAgentSessionProps, i as MultiSessionSourceConfig, j as MultiSessionStore, k as MultiSessionStoreOptions, l as MultiSessionStoreState, m as NodeWidget, n as NodeWidgetProps, P as PermissionResolvePayload, S as SessionSlice, p as SessionStore, q as SessionStoreOptions, w as SourceHandler, y as TaskStatus, U as UserQuestionsResolvePayload, K as WorkflowProgressState, O as WorkflowScopeFrame, V as WorkflowStageProgress, X as WorkflowTerminalKind, Y as createActiveSessionBridge, Z as createEmptyTree, _ as createEmptyWorkflowSessionState, $ as createInteractionBus, a0 as createMultiSessionStore, a1 as createSessionStore, a2 as getNoopInteractionBus, a3 as useActiveSession, a4 as useSessionIds } from './multi-session-9LtrGlsm.js';
4
+ import { W as WorkflowAuthoritySnapshot, u as Source, L as LangchainAgentEvent, N as NodeRegistry, z as TierOverrides, I as InteractionBus, M as MarkdownRenderer, a as AskDisplaySnapshot, s as SessionTree, H as WorkflowDisplayProjection, G as WorkflowContainerTreeState, Q as WorkflowSessionState, F as WorkflowContainerRuntimeNode, v as SourceEventContext, J as WorkflowDisplayProjectionStatus, T as Task, x as TaskPhase, o as SessionStatus, R as ReducerError, B as WorkflowAuthorityStatus, r as SessionStoreState, t as SessionTreeSnapshot, E as EventTier } from './multi-session-BoyeyFv9.js';
5
+ export { A as AskCoalescedBlock, b as AskDisplaySnapshotMetadata, c as AskSnapshotProjectionStatus, C as CommonFields, D as DEFAULT_EVENT_TIERS, d as EventType, e as InteractionBusHandlers, f as MarkdownRendererProps, g as MultiAgentSession, h as MultiAgentSessionProps, i as MultiSessionSourceConfig, j as MultiSessionStore, k as MultiSessionStoreOptions, l as MultiSessionStoreState, m as NodeWidget, n as NodeWidgetProps, P as PermissionResolvePayload, S as SessionSlice, p as SessionStore, q as SessionStoreOptions, w as SourceHandler, y as TaskStatus, U as UserQuestionsResolvePayload, K as WorkflowProgressState, O as WorkflowScopeFrame, V as WorkflowStageProgress, X as WorkflowTerminalKind, Y as createActiveSessionBridge, Z as createEmptyTree, _ as createEmptyWorkflowSessionState, $ as createInteractionBus, a0 as createMultiSessionStore, a1 as createSessionStore, a2 as getNoopInteractionBus, a3 as useActiveSession, a4 as useSessionIds } from './multi-session-BoyeyFv9.js';
6
6
  import { T as ToolDisplayRegistry, P as PermissionUiMode, b as DisplayMode, c as ProjectionContext, R as RenderableEntry, C as CanonicalNodeRef } from './sessionViewOptions-DaxstMhx.js';
7
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-DaxstMhx.js';
8
8
  import { a as ToolBodyMode } from './types-BzeE37Ze.js';
@@ -476,6 +476,97 @@ declare function TaskListFooter(): react_jsx_runtime.JSX.Element | null;
476
476
 
477
477
  declare function createDefaultRegistry(): NodeRegistry;
478
478
 
479
+ /**
480
+ * 职责:McpPanel 前后端契约类型(D45 §3.5 REST SSOT 表的前端镜像,字段名与后端 pydantic DTO 一字不差)。
481
+ * 链路位置:frontend 组件库 → 宿主(simple / new_agent)实现 McpControlClient(fetch /api/mcp-config/*)
482
+ * 并经 props 注入 McpPanel;组件库自身零网络依赖(F3 冻结项)。
483
+ * 裁剪范围:不含 OAuth 客户端方法——后端 oauth 端点为契约占位(stdio→400 / 未配置→501),
484
+ * UI 无调用路径;McpOAuthSession 真接线落地时再补 oauthStart / oauthComplete。
485
+ */
486
+ /** server 传输方式(对齐 SDK McpServerSpec.transport) */
487
+ type McpTransport = 'stdio' | 'sse' | 'http';
488
+ /** server 声明(PUT /api/mcp-config/servers 请求体元素) */
489
+ interface McpServerSpecDTO {
490
+ name: string;
491
+ transport: McpTransport;
492
+ command?: string;
493
+ args?: string[];
494
+ env?: Record<string, string>;
495
+ cwd?: string;
496
+ url?: string;
497
+ headers?: Record<string, string>;
498
+ enabled: boolean;
499
+ }
500
+ /** server 运行态(GET /api/mcp-config/servers 响应元素)= spec + 状态合成 */
501
+ type McpServerState = 'connecting' | 'connected' | 'failed' | 'disconnected' | 'reconnecting' | 'needs_auth' | 'disabled';
502
+ interface McpServerStatus extends McpServerSpecDTO {
503
+ state: McpServerState;
504
+ error?: string | null;
505
+ tool_count?: number | null;
506
+ instructions?: string | null;
507
+ }
508
+ /** 工具裁决三态:deny 命中=denied / allow 命中=allowed / 未覆盖=uncovered(fail closed 不进池) */
509
+ type McpToolAdjudication = 'allowed' | 'denied' | 'uncovered';
510
+ /** 工具清单条目(GET /api/mcp-config/servers/{name}/tools 响应元素) */
511
+ interface McpToolInfo {
512
+ model_name: string;
513
+ remote_name: string;
514
+ description?: string | null;
515
+ read_only_hint?: boolean | null;
516
+ destructive_hint?: boolean | null;
517
+ adjudication: McpToolAdjudication;
518
+ }
519
+ /** allow/deny 规则名单(GET/PUT /api/mcp-config/rules) */
520
+ interface McpRules {
521
+ allow: string[];
522
+ deny: string[];
523
+ }
524
+ /** 就绪度合成(GET /api/mcp-config/summary;三检测:连接 / 发现 / 裁决) */
525
+ interface McpSummary {
526
+ ready: boolean;
527
+ servers_total: number;
528
+ servers_ok: number;
529
+ tools_total: number;
530
+ tools_blocked: number;
531
+ }
532
+ /**
533
+ * 注入式控制客户端:宿主提供 fetch 实现,组件库不感知传输细节。
534
+ * 方法与 D45 §3.5 的 10 端点一一对应(oauth 两个占位端点除外,见文件头裁剪范围)。
535
+ */
536
+ interface McpControlClient {
537
+ listServers(): Promise<{
538
+ servers: McpServerStatus[];
539
+ }>;
540
+ putServers(servers: McpServerSpecDTO[]): Promise<{
541
+ ok: boolean;
542
+ }>;
543
+ connectServer(name: string): Promise<{
544
+ ok: boolean;
545
+ }>;
546
+ disconnectServer(name: string): Promise<{
547
+ ok: boolean;
548
+ }>;
549
+ reconnectServer(name: string): Promise<{
550
+ ok: boolean;
551
+ }>;
552
+ listTools(name: string): Promise<{
553
+ tools: McpToolInfo[];
554
+ }>;
555
+ getRules(): Promise<McpRules>;
556
+ putRules(rules: McpRules): Promise<McpRules>;
557
+ getSummary(): Promise<McpSummary>;
558
+ }
559
+
560
+ interface McpPanelProps {
561
+ isOpen: boolean;
562
+ onClose: () => void;
563
+ /** 注入式控制客户端(宿主 fetch 实现);应以稳定引用传入(useMemo/useRef),否则每次渲染会重新拉取 */
564
+ client: McpControlClient;
565
+ /** 宿主注入的演示 server 预填 spec(如 SDK echo fixture);不传则不显示演示按钮 */
566
+ demoServerSpec?: McpServerSpecDTO;
567
+ }
568
+ declare function McpPanel({ isOpen, onClose, client, demoServerSpec }: McpPanelProps): react_jsx_runtime.JSX.Element | null;
569
+
479
570
  interface TextBubbleProps {
480
571
  nodeId: string;
481
572
  }
@@ -1401,4 +1492,4 @@ interface ClassifyContext {
1401
1492
  declare function resolveEventTier(eventType: string, overrides?: TierOverrides): EventTier;
1402
1493
  declare function classifyEvent(event: LangchainAgentEvent, ctx: ClassifyContext, overrides?: TierOverrides, eventIndex?: number): ClassifiedEvent;
1403
1494
 
1404
- export { Agent, type AgentAuthorityMetadata, type WorkflowAuthoritySource as AgentAuthoritySource, AgentLoopView, type AgentLoopViewProps, AgentSession, AgentSessionBanners, type AgentSessionBannersProps, type AgentSessionProps, type AgentxMetaFrame, type AgentxSseSourceOptions, type ApplicationKind, ApplicationKindMismatchError, AskDisplaySnapshot, AskUserQuestion, AskUserQuestionCard, AuthorityPollFatalError, BOUNDED_DEFAULTS, Bash, CanonicalNodeRef, type ClassifiedEvent, type ClassifyContext, CollapseKind, CollapsedExploreNode, type CollapsedExploreNodeProps, DEFAULT_WORKFLOW_SCALE_OPTIONS, DEMO_WORKFLOW_SCALE, type DeferEvictionUntil, type DiagramFitLayout, DiagramZoomShell, type DiagramZoomShellProps, DiagramZoomView, type DiagramZoomViewProps, DisplayMode, EXPECTED_PROTOCOL_VERSION, Edit, ErrorCard, EventTier, type EvictionDeferContext, ExploreCollapseAccumulator, GROUPABLE_TOOL_NAMES, Glob, Grep, GroupedToolUseAccumulator, type HydrateAskSnapshotState, 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, SCALE_WORKFLOW_SCALE, SHELL_PROGRESS_MIN_ELAPSED_SECONDS, SessionNode, SessionNodeKind, SessionStatus, SessionStoreState, SessionTree, SessionTreeSnapshot, 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, WorkflowAuthoritySnapshot, type WorkflowAuthoritySource, WorkflowAuthorityStatus, type WorkflowBannerDescriptor, WorkflowChrome, type WorkflowChromeProps, type WorkflowCoalescedBlock, WorkflowDisplayProjection, WorkflowDisplayProjectionStatus, type WorkflowDisplaySnapshot, type WorkflowDisplaySnapshotMetadata, WorkflowScaleContext, type WorkflowScaleOptions, WorkflowSession, type WorkflowSessionProps, WorkflowSessionState, type WorkflowSessionStore, type WorkflowSessionStoreOptions, type WorkflowSessionStoreState, type WorkflowSnapshotProjectionStatus, WorkflowTaskListFooter, Write, applyAuthoritySnapshotToState, buildCanonicalFromTree, buildRelevantMemoriesCanonical, buildResumeStreamUrl, buildSystemEventCanonical, buildTimelineEntries, classifyEvent, commandAsHint, computeViewportFitTransform, configureMermaid, configurePlantumlServer, createAgentxSseSource, createControllableAuthoritySource, createDefaultRegistry, createDoneAuthoritySource, createMockAuthoritySource, createMockSource, createPollingAuthoritySource, createReplaySource, createRunningAuthoritySource, createWorkflowSessionStore, deriveLoopSessionIdFromAgentEvent, entryKey, filterAgentLoopReplayEvents, finalizeSessionTreeOnAuthorityCanceled, finalizeWorkflowDisplayOnStreamEnded, fixDiagramSvg, formatAgentTitle, formatExploreSummaryText, formatHookFinishedSummary, formatShellProgressSuffix, formatTaskFooterLabel, getChildIds, getDisplayProjectionStatus, getMainStageIds, hydrateAskFromSnapshot, hydrateWorkflowFromSnapshot, isAgentInputLocked, isAgentLoopReplayEventType, isAtOrBeforeProjectionCursor, isAuthorityTerminal, isAuthorityTerminalStatus, isFatalAuthorityPollStatus, isGitOperationCommand, isGroupableToolName, isMcpToolName, isSseStreamTerminalEvent, isWorkflowStructureEventType, iterMountCandidates, partitionWorkflowStages, projectCanonical, projectTimeline, reduceAgentLoopEvent, reduceEvents, reduceTree, reduceWorkflowEvents, reduceWorkflowSession, replayEvents, replayTree, resolveEventTier, resolveResponseId, resolveShellProgressFromPayload, resolveSseTransportPolicy, resolveWorkflowBanner, resolveWorkflowScale, sessionTreeSnapshotToTree, shouldDeferEviction, shouldShowAgentSpinner, shouldShowGlobalSpinner, shouldShowTaskListFooter, streamChunk, useAgentAuthority, useAgentAuthoritySubscribeFailed, useChildren, useInteractionBus, useInternalErrors, useMinDisplayTime, useNode, useNodeTyped, useProjectedTimeline, useReplayTree, useSessionMeta, useSessionStatus, useTimeline, useWorkflowSessionStatus, useWorkflowSessionStoreApi };
1495
+ export { Agent, type AgentAuthorityMetadata, type WorkflowAuthoritySource as AgentAuthoritySource, AgentLoopView, type AgentLoopViewProps, AgentSession, AgentSessionBanners, type AgentSessionBannersProps, type AgentSessionProps, type AgentxMetaFrame, type AgentxSseSourceOptions, type ApplicationKind, ApplicationKindMismatchError, AskDisplaySnapshot, AskUserQuestion, AskUserQuestionCard, AuthorityPollFatalError, BOUNDED_DEFAULTS, Bash, CanonicalNodeRef, type ClassifiedEvent, type ClassifyContext, CollapseKind, CollapsedExploreNode, type CollapsedExploreNodeProps, DEFAULT_WORKFLOW_SCALE_OPTIONS, DEMO_WORKFLOW_SCALE, type DeferEvictionUntil, type DiagramFitLayout, DiagramZoomShell, type DiagramZoomShellProps, DiagramZoomView, type DiagramZoomViewProps, DisplayMode, EXPECTED_PROTOCOL_VERSION, Edit, ErrorCard, EventTier, type EvictionDeferContext, ExploreCollapseAccumulator, GROUPABLE_TOOL_NAMES, Glob, Grep, GroupedToolUseAccumulator, type HydrateAskSnapshotState, type HydrateLoopSessionAsyncOptions, type HydrateWorkflowSnapshotOptions, InteractionBus, LangchainAgentEvent, MIN_HINT_DISPLAY_MS, MarkdownRenderer, type McpControlClient, McpPanel, type McpPanelProps, type McpRules, type McpServerSpecDTO, type McpServerState, type McpServerStatus, type McpSummary, type McpToolAdjudication, type McpToolInfo, type McpTransport, 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, SCALE_WORKFLOW_SCALE, SHELL_PROGRESS_MIN_ELAPSED_SECONDS, SessionNode, SessionNodeKind, SessionStatus, SessionStoreState, SessionTree, SessionTreeSnapshot, 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, WorkflowAuthoritySnapshot, type WorkflowAuthoritySource, WorkflowAuthorityStatus, type WorkflowBannerDescriptor, WorkflowChrome, type WorkflowChromeProps, type WorkflowCoalescedBlock, WorkflowDisplayProjection, WorkflowDisplayProjectionStatus, type WorkflowDisplaySnapshot, type WorkflowDisplaySnapshotMetadata, WorkflowScaleContext, type WorkflowScaleOptions, WorkflowSession, type WorkflowSessionProps, WorkflowSessionState, type WorkflowSessionStore, type WorkflowSessionStoreOptions, type WorkflowSessionStoreState, type WorkflowSnapshotProjectionStatus, WorkflowTaskListFooter, Write, applyAuthoritySnapshotToState, buildCanonicalFromTree, buildRelevantMemoriesCanonical, buildResumeStreamUrl, buildSystemEventCanonical, buildTimelineEntries, classifyEvent, commandAsHint, computeViewportFitTransform, configureMermaid, configurePlantumlServer, createAgentxSseSource, createControllableAuthoritySource, createDefaultRegistry, createDoneAuthoritySource, createMockAuthoritySource, createMockSource, createPollingAuthoritySource, createReplaySource, createRunningAuthoritySource, createWorkflowSessionStore, deriveLoopSessionIdFromAgentEvent, entryKey, filterAgentLoopReplayEvents, finalizeSessionTreeOnAuthorityCanceled, finalizeWorkflowDisplayOnStreamEnded, fixDiagramSvg, formatAgentTitle, formatExploreSummaryText, formatHookFinishedSummary, formatShellProgressSuffix, formatTaskFooterLabel, getChildIds, getDisplayProjectionStatus, getMainStageIds, hydrateAskFromSnapshot, hydrateWorkflowFromSnapshot, isAgentInputLocked, isAgentLoopReplayEventType, isAtOrBeforeProjectionCursor, isAuthorityTerminal, isAuthorityTerminalStatus, isFatalAuthorityPollStatus, isGitOperationCommand, isGroupableToolName, isMcpToolName, isSseStreamTerminalEvent, isWorkflowStructureEventType, iterMountCandidates, partitionWorkflowStages, projectCanonical, projectTimeline, reduceAgentLoopEvent, reduceEvents, reduceTree, reduceWorkflowEvents, reduceWorkflowSession, replayEvents, replayTree, resolveEventTier, resolveResponseId, resolveShellProgressFromPayload, resolveSseTransportPolicy, resolveWorkflowBanner, resolveWorkflowScale, sessionTreeSnapshotToTree, shouldDeferEviction, shouldShowAgentSpinner, shouldShowGlobalSpinner, shouldShowTaskListFooter, streamChunk, useAgentAuthority, useAgentAuthoritySubscribeFailed, useChildren, useInteractionBus, useInternalErrors, useMinDisplayTime, useNode, useNodeTyped, useProjectedTimeline, useReplayTree, useSessionMeta, useSessionStatus, useTimeline, useWorkflowSessionStatus, useWorkflowSessionStoreApi };