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.
@@ -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.2",
4
4
  "description": "React session timeline component library for LangchainAgentEvent SSE streams",
5
5
  "license": "MIT",
6
6
  "author": "wugk",