@ellipsis-dev/sdk 0.36.0 → 0.38.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.
@@ -1,14 +1,13 @@
1
- import { s as CodexAgentMessage, cO as SessionRecord, N as CodexFileChangeItem, L as CodexEvent, _ as CodexMcpToolCallItem, cb as SdkRecord, co as Session, cH as SessionMessage, d4 as StreamFrame } from '../types-CbePyY-S.js';
1
+ import { s as CodexAgentMessage, cT as SessionRecord, N as CodexFileChangeItem, L as CodexEvent, _ as CodexMcpToolCallItem, ch as SdkRecord, cu as Session, d6 as StreamFrame } from '../types-D4cLMGUn.js';
2
2
 
3
3
  type WorkPhase = 'queued' | 'preparing' | 'starting' | 'working';
4
- interface TurnTiming {
5
- id: string;
4
+ interface MessageTiming {
6
5
  startedAt: string | null;
7
6
  completedAt: string | null;
8
7
  }
9
8
  interface MessageProgress {
10
9
  phase: WorkPhase | null;
11
- turns: TurnTiming[];
10
+ timing: MessageTiming;
12
11
  }
13
12
 
14
13
  interface ChatToolNode {
@@ -50,7 +49,6 @@ type ChatNode = {
50
49
  interface ChatTurn {
51
50
  key: string;
52
51
  messageId?: string;
53
- turnId?: string;
54
52
  role: 'assistant' | 'user' | 'lifecycle';
55
53
  nodes: ChatNode[];
56
54
  startedAt: string | null;
@@ -70,10 +68,6 @@ declare function groupRecordsToChatTurns(records: readonly SessionRecord[], sess
70
68
  prompt?: string | null;
71
69
  } | null;
72
70
  created_at: string;
73
- turn?: {
74
- id: string;
75
- index: number;
76
- } | null;
77
71
  } | null): ChatTurn[];
78
72
 
79
73
  type RecordSlice = {
@@ -81,8 +75,7 @@ type RecordSlice = {
81
75
  source: string;
82
76
  record_type: string;
83
77
  payload: Record<string, unknown>;
84
- turn_id?: string | null;
85
- session_message_id?: string | null;
78
+ message_id?: string | null;
86
79
  };
87
80
  declare function recordSlice(records: readonly SessionRecord[]): readonly RecordSlice[];
88
81
  declare function humanDuration(seconds: number): string;
@@ -214,13 +207,13 @@ interface ToolActivity {
214
207
  declare function toolActivities(item: TranscriptItem): ToolActivity[];
215
208
  declare function activitySummary(activities: readonly ToolActivity[]): string;
216
209
 
217
- declare function environmentOutputStep(payload: Record<string, unknown>): string;
218
- declare function environmentOutputLines(payload: Record<string, unknown>): string[];
219
- declare function environmentOutputLine(payload: Record<string, unknown>): string | null;
210
+ declare function environmentOutputStep(source: object): string;
211
+ declare function environmentOutputLines(source: object): string[];
212
+ declare function environmentOutputLine(source: object): string | null;
220
213
  declare function cacheTierLabel(tier: unknown): string | null;
221
214
  declare function environmentPhaseLabel(phase: unknown): string;
222
- declare function turnEndedText(payload: Record<string, unknown>): string | null;
223
- declare function lifecycleText(recordType: string, payload: Record<string, unknown>): string | null;
215
+ declare function messageEndedText(source: object): string | null;
216
+ declare function lifecycleText(recordType: string, source: object): string | null;
224
217
 
225
218
  declare function claudePayload(record: SessionRecord): SdkRecord | null;
226
219
 
@@ -231,9 +224,7 @@ declare function isConversationOver(session: Session): boolean;
231
224
  interface SessionTranscriptSnapshot {
232
225
  session: Session | null;
233
226
  records: readonly SessionRecord[];
234
- messages: readonly SessionMessage[];
235
227
  acknowledgedMessageIds: ReadonlySet<string>;
236
- historyTruncated: boolean;
237
228
  liveText: string;
238
229
  liveSummary: string;
239
230
  liveOutputTokens: number | null;
@@ -243,27 +234,22 @@ interface SessionTranscriptSnapshot {
243
234
  declare function seedTranscriptStore(store: SessionTranscriptStore, seed: {
244
235
  session: Session;
245
236
  records: readonly SessionRecord[];
246
- messages?: readonly SessionMessage[] | null;
247
- earliestFeedSeq?: number | null;
248
237
  }): void;
249
238
  declare function emptySessionTranscriptSnapshot(): SessionTranscriptSnapshot;
250
239
  declare class SessionTranscriptStore {
251
240
  private snapshot;
252
241
  private listeners;
253
242
  private acknowledged;
254
- private inbox;
255
243
  private cursorSeq;
256
244
  private turnsFor;
257
245
  private turnsSession;
258
246
  private turnsCache;
259
- private summaryTurnId;
247
+ private summaryMessageId;
260
248
  get cursor(): number;
261
249
  subscribe: (listener: () => void) => (() => void);
262
250
  getSnapshot: () => SessionTranscriptSnapshot;
263
251
  chatTurns: () => ChatTurn[];
264
- private pendingMessages;
265
- private applyMessageRecord;
266
252
  ingest: (rawFrame: StreamFrame) => void;
267
253
  }
268
254
 
269
- export { BRANCH_GLYPH, type ChatNode, type ChatToolNode, type ChatTurn, type EntryBody, type EnvironmentLogKind, type EnvironmentLogLine, type EnvironmentState, type EventToItemsOptions, type ItemKind, LIVE_GLYPH, type LedgerEntry, type MessageProgress, type PlacedItem, type RecordSlice, type SessionTranscriptSnapshot, SessionTranscriptStore, StreamFrame, type ToolActivity, type TranscriptItem, type TurnTiming, USER_BAR, type WorkPhase, activitySummary, awaitingAgentPhase, cacheTierLabel, chatTurnsToItems, clampLines, claudePayload, codexChangedPaths, codexEventToItems, codexMcpToolName, codexSubagentThreads, collapseToolRuns, deliveredUnechoedSends, deriveEnvironmentState, emptySessionTranscriptSnapshot, entryBody, entrySeconds, environmentOutputLine, environmentOutputLines, environmentOutputStep, environmentPhaseLabel, environmentSummary, eventToItems, foldCosts, foldGutter, foldRun, formatDuration, groupRecordsToChatTurns, gutterFor, hookPhrase, humanDuration, isCodexSubagentRecord, isConnectVisibleRecord, isConversationOver, isFoldable, isToolActivity, isToolFold, isWorkFold, lastLines, layOutItems, lifecycleText, oneLine, pendingToolCalls, reasoningSummaryTitle, recordSlice, recordToItems, resultCostUsd, seedTranscriptStore, sessionLogText, splitLedger, startupHeadline, startupSettled, statusActivityText, summarizeToolInput, tailLines, toolActivities, toolResultText, toolRunMembers, turnEndedText };
255
+ export { BRANCH_GLYPH, type ChatNode, type ChatToolNode, type ChatTurn, type EntryBody, type EnvironmentLogKind, type EnvironmentLogLine, type EnvironmentState, type EventToItemsOptions, type ItemKind, LIVE_GLYPH, type LedgerEntry, type MessageProgress, type MessageTiming, type PlacedItem, type RecordSlice, type SessionTranscriptSnapshot, SessionTranscriptStore, StreamFrame, type ToolActivity, type TranscriptItem, USER_BAR, type WorkPhase, activitySummary, awaitingAgentPhase, cacheTierLabel, chatTurnsToItems, clampLines, claudePayload, codexChangedPaths, codexEventToItems, codexMcpToolName, codexSubagentThreads, collapseToolRuns, deliveredUnechoedSends, deriveEnvironmentState, emptySessionTranscriptSnapshot, entryBody, entrySeconds, environmentOutputLine, environmentOutputLines, environmentOutputStep, environmentPhaseLabel, environmentSummary, eventToItems, foldCosts, foldGutter, foldRun, formatDuration, groupRecordsToChatTurns, gutterFor, hookPhrase, humanDuration, isCodexSubagentRecord, isConnectVisibleRecord, isConversationOver, isFoldable, isToolActivity, isToolFold, isWorkFold, lastLines, layOutItems, lifecycleText, messageEndedText, oneLine, pendingToolCalls, reasoningSummaryTitle, recordSlice, recordToItems, resultCostUsd, seedTranscriptStore, sessionLogText, splitLedger, startupHeadline, startupSettled, statusActivityText, summarizeToolInput, tailLines, toolActivities, toolResultText, toolRunMembers };