@ellipsis-dev/sdk 0.30.0 → 0.32.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/README.md +4 -4
- package/dist/{chunk-K252XHLI.js → chunk-G2AEYZW2.js} +4 -8
- package/dist/index.d.ts +729 -822
- package/dist/index.js +298 -651
- package/dist/store/index.d.ts +24 -26
- package/dist/store/index.js +189 -277
- package/dist/stream/index.d.ts +2 -2
- package/dist/stream/index.js +1 -1
- package/dist/{types-DrPhhfOb.d.ts → types-DjY1VcOe.d.ts} +5610 -8535
- package/package.json +1 -1
- package/schema/collection_frames.schema.json +692 -276
- package/schema/frames.schema.json +3358 -5362
- package/schema/lifecycle.schema.json +144 -330
- package/schema/openapi.v1.json +9852 -14384
- package/schema/trigger_fields.schema.json +224 -0
package/dist/store/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as CodexAgentMessage, cp as SessionRecord, L as CodexFileChangeItem, J as CodexEvent, Y as CodexMcpToolCallItem, bM as SdkRecord, bZ as Session, ci as SessionMessage, cI as StreamFrame } from '../types-DjY1VcOe.js';
|
|
2
2
|
|
|
3
|
-
type WorkPhase = 'queued' | '
|
|
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
|
-
|
|
73
|
-
|
|
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
|
|
95
|
-
type
|
|
96
|
+
type EnvironmentLogKind = 'step' | 'output' | 'done' | 'failed';
|
|
97
|
+
type EnvironmentLogLine = {
|
|
96
98
|
key: string;
|
|
97
|
-
kind:
|
|
99
|
+
kind: EnvironmentLogKind;
|
|
98
100
|
text: string;
|
|
99
101
|
loading?: boolean;
|
|
100
102
|
};
|
|
101
|
-
type
|
|
102
|
-
headline: string;
|
|
103
|
+
type EnvironmentState = {
|
|
103
104
|
done: boolean;
|
|
104
105
|
readySeconds: number | null;
|
|
105
|
-
|
|
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
|
|
112
|
-
declare function startupSettled(
|
|
113
|
-
declare function startupHeadline(
|
|
114
|
-
declare function
|
|
115
|
-
declare function lastLines(log: readonly
|
|
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
|
|
220
|
-
declare function
|
|
221
|
-
declare function
|
|
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
|
|
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
|
|
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 };
|