@ellipsis-dev/sdk 0.7.0 → 0.8.1

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,4 +1,4 @@
1
- import { O as SessionRecordWire, A as AgentSessionWire, S as SessionMessageWire, W as StreamFrame } from '../types-BOEnwGiJ.js';
1
+ import { M as SessionRecord, v as Session, I as SessionMessage, X as StreamFrame } from '../types-Dx0e0Qs_.js';
2
2
 
3
3
  interface ChatToolNode {
4
4
  key: string;
@@ -43,7 +43,7 @@ interface ChatTurn {
43
43
  tokens: number | null;
44
44
  resumed: boolean;
45
45
  }
46
- declare function groupRecordsToChatTurns(records: readonly SessionRecordWire[]): ChatTurn[];
46
+ declare function groupRecordsToChatTurns(records: readonly SessionRecord[]): ChatTurn[];
47
47
 
48
48
  declare function sandboxOutputStep(payload: Record<string, unknown>): string;
49
49
  declare function sandboxOutputLines(payload: Record<string, unknown>): string[];
@@ -107,8 +107,8 @@ interface EventToItemsOptions {
107
107
  systemInitLine?: boolean;
108
108
  }
109
109
  declare function eventToItems(event: CCEvent, keyBase: string, options?: EventToItemsOptions): TranscriptItem[];
110
- declare function recordToItems(record: SessionRecordWire, keyBase: string, options?: EventToItemsOptions): TranscriptItem[];
111
- declare function isConnectVisibleRecord(record: SessionRecordWire): boolean;
110
+ declare function recordToItems(record: SessionRecord, keyBase: string, options?: EventToItemsOptions): TranscriptItem[];
111
+ declare function isConnectVisibleRecord(record: SessionRecord): boolean;
112
112
  declare function pendingToolCalls(items: TranscriptItem[]): TranscriptItem[];
113
113
  declare function collapseToolRuns(items: TranscriptItem[]): TranscriptItem[];
114
114
  declare function clampLines(text: string, maxLines: number): {
@@ -122,11 +122,11 @@ declare function foldCosts(events: CCEvent[]): {
122
122
  };
123
123
  declare function statusActivityText(status: string): string | null;
124
124
 
125
- declare function isConversationOver(session: AgentSessionWire): boolean;
125
+ declare function isConversationOver(session: Session): boolean;
126
126
  interface SessionTranscriptSnapshot {
127
- session: AgentSessionWire | null;
128
- records: readonly SessionRecordWire[];
129
- messages: readonly SessionMessageWire[];
127
+ session: Session | null;
128
+ records: readonly SessionRecord[];
129
+ messages: readonly SessionMessage[];
130
130
  acknowledgedMessageIds: ReadonlySet<string>;
131
131
  historyTruncated: boolean;
132
132
  liveText: string;
@@ -675,7 +675,7 @@ var SessionTranscriptStore = class {
675
675
  if (messageId == null || this.inbox.has(messageId)) return false;
676
676
  this.inbox.set(messageId, {
677
677
  id: messageId,
678
- agent_session_id: record.agent_session_id,
678
+ session_id: record.session_id,
679
679
  feed_seq: record.feed_seq,
680
680
  status: "pending",
681
681
  body: typeof payload.body === "string" ? payload.body : "",
@@ -1,4 +1,4 @@
1
- import { W as StreamFrame, A as AgentSessionWire } from '../types-BOEnwGiJ.js';
1
+ import { X as StreamFrame, v as Session } from '../types-Dx0e0Qs_.js';
2
2
 
3
3
  declare const SESSION_STREAM_PROTOCOL_VERSION = 3;
4
4
  declare const WS_CLOSE_NORMAL = 1000;
@@ -8,7 +8,7 @@ declare const WS_CLOSE_NO_PROTOCOL = 1003;
8
8
  declare const WS_CLOSE_AUTH_FAILED = 1008;
9
9
  declare const WS_CLOSE_SERVER_ERROR = 1011;
10
10
  declare const WS_CLOSE_OVER_CAPACITY = 1013;
11
- declare function sessionStatusWord(session: AgentSessionWire): string;
11
+ declare function sessionStatusWord(session: Session): string;
12
12
  type StreamOutcome = {
13
13
  type: 'done';
14
14
  status: string;