langchain_agentx_stream_ui 0.7.9 → 0.8.1

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
  ============================================================================ */
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';
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  fixDiagramSvg,
25
25
  markEventIdSeen,
26
26
  shouldSkipDuplicateEvent
27
- } from "./chunk-AMUGAG7U.js";
27
+ } from "./chunk-MI4NGIDF.js";
28
28
  import {
29
29
  DefaultToolBody,
30
30
  InteractionBusContext,
@@ -121,7 +121,7 @@ import {
121
121
  useSessionStatus,
122
122
  useSessionViewOptions,
123
123
  useTimeline
124
- } from "./chunk-RWKNI52H.js";
124
+ } from "./chunk-XEIQBTD2.js";
125
125
  import {
126
126
  AGENT_PROGRESS_GUTTER,
127
127
  AGENT_PROGRESS_INDENT,
@@ -190,6 +190,11 @@ type LangchainAgentEvent = ({
190
190
  | ({
191
191
  event_type: 'compact-boundary';
192
192
  data: Record<string, unknown>;
193
+ } & CommonFields)
194
+ /** SDK COMPACT_PROGRESS(图内 autocompact / manual /compact 进度) */
195
+ | ({
196
+ event_type: 'compact-progress';
197
+ data: Record<string, unknown>;
193
198
  } & CommonFields) | ({
194
199
  event_type: 'task-started';
195
200
  data: Record<string, unknown>;
@@ -393,6 +398,24 @@ interface Task {
393
398
  completedAt?: number;
394
399
  }
395
400
 
401
+ /**
402
+ * compactProgress.ts — Context compaction 进度(对齐 SDK COMPACT_PROGRESS / CLI D10)
403
+ *
404
+ * 职责:SessionTree 上暂存 compact-progress 事件的 UI 状态(phase start|tick|end)。
405
+ *
406
+ * 链路位置:reducer.handleCompactProgress → Spinner / CompactProgressBlock。
407
+ */
408
+ type CompactProgressPhase = 'start' | 'tick' | 'end' | string;
409
+ interface CompactProgressState {
410
+ phase: CompactProgressPhase;
411
+ percent: number;
412
+ stage: string;
413
+ stageIndex: number | null;
414
+ totalStages: number | null;
415
+ detail: string | null;
416
+ updatedAt: number;
417
+ }
418
+
396
419
  /**
397
420
  * modelRetry.ts — Model API 重试进度(对齐 CC api_retry / SDK API_RETRY)
398
421
  *
@@ -482,6 +505,8 @@ interface SessionTree {
482
505
  };
483
506
  /** Model API 重试进度(hook-progress name=model_retry);对齐 CC api_retry */
484
507
  modelRetry: ModelRetryState | null;
508
+ /** Context compaction 进度(compact-progress);对齐 SDK COMPACT_PROGRESS / CLI D10 */
509
+ compactProgress: CompactProgressState | null;
485
510
  /**
486
511
  * D28 并行 text gate latch:≥2 Agent 同时 running 时锁定 call_id 集合,
487
512
  * 直至批次内全部 terminal 才解除(覆盖「一 done 一 running」收尾泄漏)。
@@ -1,4 +1,4 @@
1
- export { g as MultiAgentSession, h as MultiAgentSessionProps, i as MultiSessionSourceConfig, j as MultiSessionStore, k as MultiSessionStoreOptions, l as MultiSessionStoreState, S as SessionSlice, Y as createActiveSessionBridge, a0 as createMultiSessionStore, a3 as useActiveSession, a4 as useSessionIds } from './multi-session-9LtrGlsm.js';
1
+ export { g as MultiAgentSession, h as MultiAgentSessionProps, i as MultiSessionSourceConfig, j as MultiSessionStore, k as MultiSessionStoreOptions, l as MultiSessionStoreState, S as SessionSlice, Y as createActiveSessionBridge, a0 as createMultiSessionStore, a3 as useActiveSession, a4 as useSessionIds } from './multi-session-BoyeyFv9.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import './nodes-uahIhQwz.js';
@@ -2,13 +2,13 @@ import {
2
2
  MultiAgentSession,
3
3
  createActiveSessionBridge,
4
4
  createMultiSessionStore
5
- } from "./chunk-AMUGAG7U.js";
5
+ } from "./chunk-MI4NGIDF.js";
6
6
  import "./chunk-VYXHVGJU.js";
7
7
  import "./chunk-DP7V33X7.js";
8
8
  import {
9
9
  useActiveSession,
10
10
  useSessionIds
11
- } from "./chunk-RWKNI52H.js";
11
+ } from "./chunk-XEIQBTD2.js";
12
12
  import "./chunk-GLUQUP3A.js";
13
13
  import "./chunk-4RIOBLGB.js";
14
14
  export {
package/dist/virtual.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  SessionTimeline,
6
6
  VirtualTimeline,
7
7
  estimateNodeSize
8
- } from "./chunk-RWKNI52H.js";
8
+ } from "./chunk-XEIQBTD2.js";
9
9
  import "./chunk-GLUQUP3A.js";
10
10
  import "./chunk-4RIOBLGB.js";
11
11
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langchain_agentx_stream_ui",
3
- "version": "0.7.9",
3
+ "version": "0.8.1",
4
4
  "description": "React session timeline component library for LangchainAgentEvent SSE streams",
5
5
  "license": "MIT",
6
6
  "author": "wugk",