@ellipsis-dev/sdk 0.8.0 → 0.9.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 +931 -26
- package/dist/index.js +1232 -81
- package/dist/store/index.d.ts +8 -8
- package/dist/store/index.js +1 -1
- package/dist/stream/index.d.ts +2 -2
- package/dist/{types-rf-NzI8E.d.ts → types-CStmnKVu.d.ts} +1406 -1587
- package/package.json +1 -1
- package/schema/frames.schema.json +492 -498
- package/schema/openapi.v1.json +2748 -3202
- package/schema/trigger_fields.schema.json +374 -0
package/dist/store/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { K as SessionRecord, r as Session, x as SessionMessage, X as StreamFrame } from '../types-CStmnKVu.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
|
|
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:
|
|
111
|
-
declare function isConnectVisibleRecord(record:
|
|
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:
|
|
125
|
+
declare function isConversationOver(session: Session): boolean;
|
|
126
126
|
interface SessionTranscriptSnapshot {
|
|
127
|
-
session:
|
|
128
|
-
records: readonly
|
|
129
|
-
messages: readonly
|
|
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;
|
package/dist/store/index.js
CHANGED
|
@@ -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
|
-
|
|
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 : "",
|
package/dist/stream/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { X as StreamFrame, r as Session } from '../types-CStmnKVu.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:
|
|
11
|
+
declare function sessionStatusWord(session: Session): string;
|
|
12
12
|
type StreamOutcome = {
|
|
13
13
|
type: 'done';
|
|
14
14
|
status: string;
|