@ellipsis-dev/sdk 0.20.0 → 0.22.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 +6 -45
- package/dist/index.js +4 -38
- package/dist/store/index.d.ts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/dist/{types-D2YZTvgg.d.ts → types-BKAbWcLN.d.ts} +14 -416
- package/package.json +1 -1
- package/schema/frames.schema.json +3 -11
- package/schema/openapi.v1.json +16 -730
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as components } from './types-
|
|
2
|
-
export { A as AgentConfigSource, a as AttributionType, B as BudgetSource, C as ClaudeSessionRecord, b as CodexEvent, d as CodexItem, e as CodexSessionRecord, f as CreateReviewRequest, D as DeltaFrame, g as DoneFrame, E as ErrorFrame, F as Finding, G as GithubAccountSnippet, h as GithubAccountType, H as Harness, i as HeartbeatFrame, L as LifecycleSessionRecord, P as ParentKind, j as PromptBlockedReason, R as RecordsAppendFrame, k as ResolvedReviewScope, l as Review, m as ReviewConfiguration, n as ReviewCounters, o as ReviewFinding, p as ReviewRequester, q as ReviewScope, r as ReviewScopeKind, s as ReviewStage, t as ReviewedCommit, u as ReviewsListResponse, S as SdkAssistantRecord, v as SdkContentBlock, w as SdkRateLimitRecord, x as SdkRecord, y as SdkResultRecord, z as SdkSystemRecord, I as SdkUserRecord, J as SendSessionMessageRequest, K as Session, M as
|
|
1
|
+
import { c as components } from './types-BKAbWcLN.js';
|
|
2
|
+
export { A as AgentConfigSource, a as AttributionType, B as BudgetSource, C as ClaudeSessionRecord, b as CodexEvent, d as CodexItem, e as CodexSessionRecord, f as CreateReviewRequest, D as DeltaFrame, g as DoneFrame, E as ErrorFrame, F as Finding, G as GithubAccountSnippet, h as GithubAccountType, H as Harness, i as HeartbeatFrame, L as LifecycleSessionRecord, P as ParentKind, j as PromptBlockedReason, R as RecordsAppendFrame, k as ResolvedReviewScope, l as Review, m as ReviewConfiguration, n as ReviewCounters, o as ReviewFinding, p as ReviewRequester, q as ReviewScope, r as ReviewScopeKind, s as ReviewStage, t as ReviewedCommit, u as ReviewsListResponse, S as SdkAssistantRecord, v as SdkContentBlock, w as SdkRateLimitRecord, x as SdkRecord, y as SdkResultRecord, z as SdkSystemRecord, I as SdkUserRecord, J as SendSessionMessageRequest, K as Session, M as SessionExitStatus, N as SessionFrame, O as SessionGit, Q as SessionLiveness, T as SessionMessage, U as SessionMessageResponse, V as SessionMessageStatus, W as SessionPrompting, X as SessionRecord, Y as SessionRecordsListResponse, Z as SessionResponse, _ as SessionSource, $ as SessionState, a0 as SessionStatus, a1 as SessionStreamFrame, a2 as SessionSurface, a3 as SessionsListResponse, a4 as SnapshotFrame, a5 as StreamFrame, a6 as TokensInfo, a7 as paths } from './types-BKAbWcLN.js';
|
|
3
3
|
|
|
4
4
|
interface CursorResponse {
|
|
5
5
|
has_more: boolean;
|
|
@@ -409,7 +409,7 @@ declare class EllipsisIntegrationsGithub {
|
|
|
409
409
|
* List the GitHub organization roster.
|
|
410
410
|
*
|
|
411
411
|
* (Or the account itself for a personal workspace) — the universe of author_id values for
|
|
412
|
-
* /sessions
|
|
412
|
+
* /sessions.
|
|
413
413
|
*
|
|
414
414
|
* Members carry their linked Slack identity when a Slack-GitHub
|
|
415
415
|
* link exists, and /slack/members carries the reverse link.
|
|
@@ -665,19 +665,6 @@ declare class EllipsisSecrets {
|
|
|
665
665
|
declare class EllipsisSessions {
|
|
666
666
|
private readonly transport;
|
|
667
667
|
constructor(transport: Transport);
|
|
668
|
-
/**
|
|
669
|
-
* Get Agent Session Executions
|
|
670
|
-
*
|
|
671
|
-
* Return the session's executions and launch context.
|
|
672
|
-
*
|
|
673
|
-
* Most notably system_prompt_append, the text Ellipsis appends to
|
|
674
|
-
* Claude Code's default system prompt (platform section + response
|
|
675
|
-
* instructions + the config's own instructions).
|
|
676
|
-
*
|
|
677
|
-
* Per execution because each cold wake persists its own launch
|
|
678
|
-
* config (a config edit between wakes changes it).
|
|
679
|
-
*/
|
|
680
|
-
executions(session_id: string): Promise<S['SessionExecutionsListResponse']>;
|
|
681
668
|
/**
|
|
682
669
|
* Export Agent Session
|
|
683
670
|
*
|
|
@@ -760,40 +747,14 @@ declare class EllipsisSessions {
|
|
|
760
747
|
*
|
|
761
748
|
* Pagination is opt-in (cursor/limit); a bare call returns the
|
|
762
749
|
* full retained transcript. Available to sandbox tokens too: an
|
|
763
|
-
* agent answering "did X look into Y?" needs to read the
|
|
764
|
-
* it
|
|
765
|
-
*
|
|
750
|
+
* agent answering "did X look into Y?" needs to read the sessions
|
|
751
|
+
* it finds, and any org member sees the same transcript in the
|
|
752
|
+
* dashboard.
|
|
766
753
|
*/
|
|
767
754
|
records(session_id: string, options?: {
|
|
768
755
|
cursor?: string | null;
|
|
769
756
|
limit?: number | null;
|
|
770
757
|
}): Promise<Page<S['ClaudeSessionRecord'] | S['CodexSessionRecord'] | S['LifecycleSessionRecord'], S['SessionRecordsListResponse']>>;
|
|
771
|
-
/**
|
|
772
|
-
* Search Agent Sessions
|
|
773
|
-
*
|
|
774
|
-
* Search sessions over steps, recaps, and pull requests.
|
|
775
|
-
*
|
|
776
|
-
* Grouped by session, over everything a session left behind: step text, recap text, created
|
|
777
|
-
* PRs, and recap-embedding similarity.
|
|
778
|
-
*
|
|
779
|
-
* This is how an agent answers "did Tony look into X?": resolve
|
|
780
|
-
* the author via /github/members, search, then read the winning
|
|
781
|
-
* session via /sessions/{id} (recap) and /sessions/{id}/records
|
|
782
|
-
* (transcript).
|
|
783
|
-
*/
|
|
784
|
-
search(options?: {
|
|
785
|
-
q?: string;
|
|
786
|
-
scope?: S['SessionSearchScope'];
|
|
787
|
-
source?: (S['SessionSource'])[] | null;
|
|
788
|
-
author_id?: (number)[] | null;
|
|
789
|
-
config_id?: (string)[] | null;
|
|
790
|
-
session_ids?: (string)[] | null;
|
|
791
|
-
repo?: string | null;
|
|
792
|
-
status?: (S['SessionStatus'])[] | null;
|
|
793
|
-
start?: string | null;
|
|
794
|
-
end?: string | null;
|
|
795
|
-
limit?: number;
|
|
796
|
-
}): Promise<S['SessionSearchResponse']>;
|
|
797
758
|
/**
|
|
798
759
|
* Send Agent Session Message
|
|
799
760
|
*
|
package/dist/index.js
CHANGED
|
@@ -642,7 +642,7 @@ var EllipsisIntegrationsGithub = class {
|
|
|
642
642
|
* List the GitHub organization roster.
|
|
643
643
|
*
|
|
644
644
|
* (Or the account itself for a personal workspace) — the universe of author_id values for
|
|
645
|
-
* /sessions
|
|
645
|
+
* /sessions.
|
|
646
646
|
*
|
|
647
647
|
* Members carry their linked Slack identity when a Slack-GitHub
|
|
648
648
|
* link exists, and /slack/members carries the reverse link.
|
|
@@ -962,22 +962,6 @@ var EllipsisSessions = class {
|
|
|
962
962
|
this.transport = transport;
|
|
963
963
|
}
|
|
964
964
|
transport;
|
|
965
|
-
/**
|
|
966
|
-
* Get Agent Session Executions
|
|
967
|
-
*
|
|
968
|
-
* Return the session's executions and launch context.
|
|
969
|
-
*
|
|
970
|
-
* Most notably system_prompt_append, the text Ellipsis appends to
|
|
971
|
-
* Claude Code's default system prompt (platform section + response
|
|
972
|
-
* instructions + the config's own instructions).
|
|
973
|
-
*
|
|
974
|
-
* Per execution because each cold wake persists its own launch
|
|
975
|
-
* config (a config edit between wakes changes it).
|
|
976
|
-
*/
|
|
977
|
-
async executions(session_id) {
|
|
978
|
-
const path = `/v1/sessions/${enc(session_id)}/executions`;
|
|
979
|
-
return await this.transport.request("GET", path);
|
|
980
|
-
}
|
|
981
965
|
/**
|
|
982
966
|
* Export Agent Session
|
|
983
967
|
*
|
|
@@ -1068,9 +1052,9 @@ var EllipsisSessions = class {
|
|
|
1068
1052
|
*
|
|
1069
1053
|
* Pagination is opt-in (cursor/limit); a bare call returns the
|
|
1070
1054
|
* full retained transcript. Available to sandbox tokens too: an
|
|
1071
|
-
* agent answering "did X look into Y?" needs to read the
|
|
1072
|
-
* it
|
|
1073
|
-
*
|
|
1055
|
+
* agent answering "did X look into Y?" needs to read the sessions
|
|
1056
|
+
* it finds, and any org member sees the same transcript in the
|
|
1057
|
+
* dashboard.
|
|
1074
1058
|
*/
|
|
1075
1059
|
async records(session_id, options = {}) {
|
|
1076
1060
|
const path = `/v1/sessions/${enc(session_id)}/records`;
|
|
@@ -1082,24 +1066,6 @@ var EllipsisSessions = class {
|
|
|
1082
1066
|
(cursor) => this.records(session_id, { ...options, cursor })
|
|
1083
1067
|
);
|
|
1084
1068
|
}
|
|
1085
|
-
/**
|
|
1086
|
-
* Search Agent Sessions
|
|
1087
|
-
*
|
|
1088
|
-
* Search sessions over steps, recaps, and pull requests.
|
|
1089
|
-
*
|
|
1090
|
-
* Grouped by session, over everything a session left behind: step text, recap text, created
|
|
1091
|
-
* PRs, and recap-embedding similarity.
|
|
1092
|
-
*
|
|
1093
|
-
* This is how an agent answers "did Tony look into X?": resolve
|
|
1094
|
-
* the author via /github/members, search, then read the winning
|
|
1095
|
-
* session via /sessions/{id} (recap) and /sessions/{id}/records
|
|
1096
|
-
* (transcript).
|
|
1097
|
-
*/
|
|
1098
|
-
async search(options = {}) {
|
|
1099
|
-
const path = "/v1/sessions/search";
|
|
1100
|
-
const query = buildQuery({ q: options.q, scope: options.scope, source: options.source, author_id: options.author_id, config_id: options.config_id, session_ids: options.session_ids, repo: options.repo, status: options.status, start: options.start, end: options.end, limit: options.limit });
|
|
1101
|
-
return await this.transport.request("GET", path, { query });
|
|
1102
|
-
}
|
|
1103
1069
|
/**
|
|
1104
1070
|
* Send Agent Session Message
|
|
1105
1071
|
*
|
package/dist/store/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { X as SessionRecord, a8 as CodexFileChangeItem, b as CodexEvent, a9 as CodexMcpToolCallItem, x as SdkRecord, K as Session, T as SessionMessage, a5 as StreamFrame } from '../types-BKAbWcLN.js';
|
|
2
2
|
|
|
3
3
|
interface ChatToolNode {
|
|
4
4
|
key: string;
|
package/dist/stream/index.d.ts
CHANGED