@ellipsis-dev/sdk 0.30.0 → 0.31.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,6 +1,6 @@
1
- import { q as CodexAgentMessage, cz as SessionRecord, c1 as Session, K as CodexFileChangeItem, I as CodexEvent, X as CodexMcpToolCallItem, bQ as SdkRecord, ct as SessionMessage, cW as StreamFrame } from '../types-DrPhhfOb.js';
1
+ import { q as CodexAgentMessage, cn as SessionRecord, K as CodexFileChangeItem, I as CodexEvent, X as CodexMcpToolCallItem, bM as SdkRecord, bZ as Session, ch as SessionMessage, cG as StreamFrame } from '../types-BQxZcD0_.js';
2
2
 
3
- type WorkPhase = 'queued' | 'waking' | 'starting' | 'working';
3
+ type WorkPhase = 'queued' | 'preparing' | 'starting' | 'working';
4
4
  interface TurnTiming {
5
5
  id: string;
6
6
  startedAt: string | null;
@@ -69,9 +69,11 @@ declare function groupRecordsToChatTurns(records: readonly SessionRecord[], sess
69
69
  codex?: {
70
70
  prompt?: string | null;
71
71
  } | null;
72
- lifecycle: {
73
- timestamps: Pick<Session['lifecycle']['timestamps'], 'created_at'>;
74
- };
72
+ created_at: string;
73
+ turn?: {
74
+ id: string;
75
+ index: number;
76
+ } | null;
75
77
  } | null): ChatTurn[];
76
78
 
77
79
  type RecordSlice = {
@@ -79,11 +81,11 @@ type RecordSlice = {
79
81
  source: string;
80
82
  record_type: string;
81
83
  payload: Record<string, unknown>;
84
+ turn_id?: string | null;
82
85
  session_message_id?: string | null;
83
86
  };
84
87
  declare function recordSlice(records: readonly SessionRecord[]): readonly RecordSlice[];
85
88
  declare function humanDuration(seconds: number): string;
86
- declare const SESSION_WAKING = "Session waking";
87
89
  declare function sessionLogText(recordType: string, payload: Record<string, unknown>): string | null;
88
90
  declare function awaitingAgentPhase(records: readonly RecordSlice[]): 'boot' | 'turn' | null;
89
91
  declare function deliveredUnechoedSends(records: readonly RecordSlice[]): {
@@ -91,28 +93,24 @@ declare function deliveredUnechoedSends(records: readonly RecordSlice[]): {
91
93
  body: string;
92
94
  cancelled: boolean;
93
95
  }[];
94
- type SandboxLogKind = 'step' | 'output' | 'done' | 'failed';
95
- type SandboxLogLine = {
96
+ type EnvironmentLogKind = 'step' | 'output' | 'done' | 'failed';
97
+ type EnvironmentLogLine = {
96
98
  key: string;
97
- kind: SandboxLogKind;
99
+ kind: EnvironmentLogKind;
98
100
  text: string;
99
101
  loading?: boolean;
100
102
  };
101
- type SandboxState = {
102
- headline: string;
103
+ type EnvironmentState = {
103
104
  done: boolean;
104
105
  readySeconds: number | null;
105
- sandboxDone: boolean;
106
- configName: string | null;
107
- configCommitSha: string | null;
108
- log: SandboxLogLine[];
106
+ log: EnvironmentLogLine[];
109
107
  };
110
108
  declare function hookPhrase(step: string): string;
111
- declare function deriveSandboxState(records: readonly RecordSlice[], minFeedSeq: number): SandboxState | null;
112
- declare function startupSettled(sandbox: SandboxState | null, status: string): boolean;
113
- declare function startupHeadline(sandbox: SandboxState | null, status: string): string;
114
- declare function sandboxSummary(sandbox: SandboxState | null): string;
115
- declare function lastLines(log: readonly SandboxLogLine[], max: number): SandboxLogLine[];
109
+ declare function deriveEnvironmentState(records: readonly RecordSlice[], minFeedSeq: number): EnvironmentState | null;
110
+ declare function startupSettled(environment: EnvironmentState | null, status: string): boolean;
111
+ declare function startupHeadline(environment: EnvironmentState | null, status: string): string;
112
+ declare function environmentSummary(environment: EnvironmentState | null): string;
113
+ declare function lastLines(log: readonly EnvironmentLogLine[], max: number): EnvironmentLogLine[];
116
114
 
117
115
  type ItemKind = 'assistant' | 'thinking' | 'tool' | 'tool_result' | 'summary' | 'system' | 'user' | 'notice' | 'error';
118
116
  interface TranscriptItem {
@@ -216,11 +214,12 @@ interface ToolActivity {
216
214
  declare function toolActivities(item: TranscriptItem): ToolActivity[];
217
215
  declare function activitySummary(activities: readonly ToolActivity[]): string;
218
216
 
219
- declare function sandboxOutputStep(payload: Record<string, unknown>): string;
220
- declare function sandboxOutputLines(payload: Record<string, unknown>): string[];
221
- declare function sandboxOutputLine(payload: Record<string, unknown>): string | null;
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;
222
220
  declare function cacheTierLabel(tier: unknown): string | null;
223
- declare function sandboxPhaseLabel(phase: unknown): string;
221
+ declare function environmentPhaseLabel(phase: unknown): string;
222
+ declare function turnEndedText(payload: Record<string, unknown>): string | null;
224
223
  declare function lifecycleText(recordType: string, payload: Record<string, unknown>): string | null;
225
224
 
226
225
  declare function claudePayload(record: SessionRecord): SdkRecord | null;
@@ -255,7 +254,6 @@ declare class SessionTranscriptStore {
255
254
  private turnsSession;
256
255
  private turnsCache;
257
256
  private summaryTurnId;
258
- private summaryExecutionId;
259
257
  get cursor(): number;
260
258
  subscribe: (listener: () => void) => (() => void);
261
259
  getSnapshot: () => SessionTranscriptSnapshot;
@@ -265,4 +263,4 @@ declare class SessionTranscriptStore {
265
263
  ingest: (rawFrame: StreamFrame) => void;
266
264
  }
267
265
 
268
- export { BRANCH_GLYPH, type ChatNode, type ChatToolNode, type ChatTurn, type EntryBody, type EventToItemsOptions, type ItemKind, LIVE_GLYPH, type LedgerEntry, type MessageProgress, type PlacedItem, type RecordSlice, SESSION_WAKING, type SandboxLogKind, type SandboxLogLine, type SandboxState, type SessionTranscriptSnapshot, SessionTranscriptStore, StreamFrame, type ToolActivity, type TranscriptItem, type TurnTiming, USER_BAR, type WorkPhase, activitySummary, awaitingAgentPhase, cacheTierLabel, chatTurnsToItems, clampLines, claudePayload, codexChangedPaths, codexEventToItems, codexMcpToolName, collapseToolRuns, deliveredUnechoedSends, deriveSandboxState, emptySessionTranscriptSnapshot, entryBody, entrySeconds, eventToItems, foldCosts, foldGutter, foldRun, formatDuration, groupRecordsToChatTurns, gutterFor, hookPhrase, humanDuration, isConnectVisibleRecord, isConversationOver, isFoldable, isToolActivity, isToolFold, isWorkFold, lastLines, layOutItems, lifecycleText, oneLine, pendingToolCalls, reasoningSummaryTitle, recordSlice, recordToItems, resultCostUsd, sandboxOutputLine, sandboxOutputLines, sandboxOutputStep, sandboxPhaseLabel, sandboxSummary, seedTranscriptStore, sessionLogText, splitLedger, startupHeadline, startupSettled, statusActivityText, summarizeToolInput, tailLines, toolActivities, toolResultText, toolRunMembers };
266
+ 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, collapseToolRuns, deliveredUnechoedSends, deriveEnvironmentState, emptySessionTranscriptSnapshot, entryBody, entrySeconds, environmentOutputLine, environmentOutputLines, environmentOutputStep, environmentPhaseLabel, environmentSummary, eventToItems, foldCosts, foldGutter, foldRun, formatDuration, groupRecordsToChatTurns, gutterFor, hookPhrase, humanDuration, 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 };