@vibexnpm/talkx 7.0.0 → 7.1.0

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
@@ -1264,6 +1264,18 @@ export interface TypingEvent {
1264
1264
  senderType: 'USER' | 'ASSISTANT';
1265
1265
  }
1266
1266
 
1267
+ /** 문서 분석의 재입장 복원 가능한 실측 진행률. */
1268
+ export interface DocumentAnalysisProgress {
1269
+ /** ANALYZING=페이지/텍스트 구간 처리, SUMMARIZING=확보한 근거 종합. */
1270
+ stage: 'ANALYZING' | 'SUMMARIZING';
1271
+ /** ANALYZING일 때 처리 완료 수. */
1272
+ current: number | null;
1273
+ /** ANALYZING일 때 전체 수. */
1274
+ total: number | null;
1275
+ /** 진행 단위. SUMMARIZING일 때 null. */
1276
+ unit: 'DOCUMENT' | 'PAGE' | 'TEXT_CHUNK' | null;
1277
+ }
1278
+
1267
1279
  /**
1268
1280
  * AI 진행 표시 이벤트 — `/topic/chat/{roomId}/assistant-stream` 의 PHASE/DONE.
1269
1281
  *
@@ -1281,6 +1293,7 @@ export interface TypingEvent {
1281
1293
  *
1282
1294
  * 현재는 PM_BACKSTAGE(방당 단일 PM) 만 phase 를 발행 — 멘션/버튼/14인 경로는 본 이벤트 없이 typing 만.
1283
1295
  */
1296
+
1284
1297
  export interface AssistantProgressEvent {
1285
1298
  /** 채팅방 ID. */
1286
1299
  roomId: string;
@@ -1294,7 +1307,9 @@ export interface AssistantProgressEvent {
1294
1307
  /** 진행 주체 페르소나 ID. */
1295
1308
  personaId: string | null;
1296
1309
  /** 진행 단계 — `active:true` 일 때. 종료 시 null. */
1297
- phase: 'THINKING' | 'SEARCHING' | 'PLANNING' | 'WRITING' | null;
1310
+ phase: 'THINKING' | 'SEARCHING' | 'PLANNING' | 'DOCUMENT_ANALYSIS' | 'WRITING' | null;
1311
+ /** DOCUMENT_ANALYSIS의 실측 진행률. 같은 phase heartbeat 사이와 재입장 후에도 보존된다. */
1312
+ progress?: DocumentAnalysisProgress | null;
1298
1313
  /** phase 의 기본 표시 라벨(예: "생각 중…"). SDK 매핑 — 커스텀하려면 `phase` 사용. 종료 시 null. */
1299
1314
  label: string | null;
1300
1315
  /** true=진행중(PHASE/DELTA) / false=종료(DONE·TTL). */
@@ -1360,7 +1375,8 @@ export interface AssistantRoomProgressEvent {
1360
1375
  /** 표시 기준이 된 stream (가장 최근 갱신). 없으면 null. */
1361
1376
  streamId: string | null;
1362
1377
  personaId: string | null;
1363
- phase: 'THINKING' | 'SEARCHING' | 'PLANNING' | 'WRITING' | null;
1378
+ phase: 'THINKING' | 'SEARCHING' | 'PLANNING' | 'DOCUMENT_ANALYSIS' | 'WRITING' | null;
1379
+ progress?: DocumentAnalysisProgress | null;
1364
1380
  label: string | null;
1365
1381
  /** 표시 기준 stream 의 누적 본문. `textAvailable:false` 거나 진행 중이 아니면 null. */
1366
1382
  text?: string | null;
@@ -1372,7 +1388,8 @@ export interface AssistantRoomProgressEvent {
1372
1388
  export interface AssistantProgressStreamSnapshot {
1373
1389
  streamId: string;
1374
1390
  personaId: string | null;
1375
- phase: 'THINKING' | 'SEARCHING' | 'PLANNING' | 'WRITING' | null;
1391
+ phase: 'THINKING' | 'SEARCHING' | 'PLANNING' | 'DOCUMENT_ANALYSIS' | 'WRITING' | null;
1392
+ progress?: DocumentAnalysisProgress | null;
1376
1393
  label: string | null;
1377
1394
  text: string | null;
1378
1395
  textAvailable: boolean;