@ellipsis-dev/sdk 0.12.0 → 0.13.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 +12 -33
- package/dist/index.js +8 -25
- package/dist/store/index.d.ts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/dist/{types-BN5YExTm.d.ts → types-egqnpL5C.d.ts} +595 -365
- package/package.json +1 -1
- package/schema/frames.schema.json +1748 -61
- package/schema/openapi.v1.json +144 -464
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as components } from './types-
|
|
2
|
-
export { A as AttributionType, B as BudgetSource, C as CreateReviewRequest, D as
|
|
1
|
+
import { c as components } from './types-egqnpL5C.js';
|
|
2
|
+
export { A as AgentConfigSource, a as AttributionType, B as BudgetSource, C as CreateReviewRequest, D as DeltaFrame, b as DoneFrame, E as ErrorFrame, F as Finding, G as GithubAccountSnippet, d as GithubAccountType, H as Harness, e as HeartbeatFrame, P as ParentKind, f as PromptBlockedReason, R as RecordsAppendFrame, g as ResolvedReviewScope, h as Review, i as ReviewConfiguration, j as ReviewCounters, k as ReviewFinding, l as ReviewRequester, m as ReviewScope, n as ReviewScopeKind, o as ReviewStage, p as ReviewedCommit, q as ReviewsListResponse, S as SendSessionMessageRequest, r as Session, s as SessionExecution, t as SessionExecutionsListResponse, u as SessionExitStatus, v as SessionFrame, w as SessionLiveness, x as SessionMessage, y as SessionMessageResponse, z as SessionMessageStatus, I as SessionPr, J as SessionPrompting, K as SessionRecord, L as SessionRecordsListResponse, M as SessionResponse, N as SessionSource, O as SessionState, Q as SessionStatus, T as SessionStreamFrame, U as SessionSurface, V as SessionsListResponse, W as SnapshotFrame, X as StreamFrame, Y as TokensInfo, Z as paths } from './types-egqnpL5C.js';
|
|
3
3
|
|
|
4
4
|
interface CursorResponse {
|
|
5
5
|
has_more: boolean;
|
|
@@ -172,14 +172,13 @@ declare class EllipsisAgentsDefaults {
|
|
|
172
172
|
/**
|
|
173
173
|
* List Agent Defaults
|
|
174
174
|
*
|
|
175
|
-
*
|
|
175
|
+
* Get the default agent configs.
|
|
176
176
|
*
|
|
177
|
-
* The account default and
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
* omitted, a repo rung is "owner/name" — never by row id.
|
|
177
|
+
* The account-wide default and the per-repository defaults, as config
|
|
178
|
+
* ids. Repo rungs are keyed "owner/name"; a repository this
|
|
179
|
+
* installation can no longer see is omitted.
|
|
181
180
|
*/
|
|
182
|
-
list(): Promise<S['
|
|
181
|
+
list(): Promise<S['AgentDefaults']>;
|
|
183
182
|
/**
|
|
184
183
|
* Put Agent Default
|
|
185
184
|
*
|
|
@@ -187,7 +186,7 @@ declare class EllipsisAgentsDefaults {
|
|
|
187
186
|
*
|
|
188
187
|
* Addressed by rung: the account rung (repository omitted) or a
|
|
189
188
|
* repository rung ("owner/name"); the config by id or by the
|
|
190
|
-
* agent's name.
|
|
189
|
+
* agent's name. Returns the full resulting ladder.
|
|
191
190
|
*
|
|
192
191
|
* Refused for sandbox tokens (potentially prompt-injected code
|
|
193
192
|
* must not repoint the account's ambient default); an unknown or
|
|
@@ -196,7 +195,7 @@ declare class EllipsisAgentsDefaults {
|
|
|
196
195
|
set(options: {
|
|
197
196
|
config_id: string;
|
|
198
197
|
repository?: string | null;
|
|
199
|
-
}): Promise<S['
|
|
198
|
+
}): Promise<S['AgentDefaults']>;
|
|
200
199
|
}
|
|
201
200
|
declare class EllipsisAgentsTemplates {
|
|
202
201
|
private readonly transport;
|
|
@@ -773,8 +772,7 @@ declare class EllipsisSessions {
|
|
|
773
772
|
* full retained transcript. Available to sandbox tokens too: an
|
|
774
773
|
* agent answering "did X look into Y?" needs to read the session
|
|
775
774
|
* it found via /sessions/search, and any org member sees the same
|
|
776
|
-
* transcript in the dashboard
|
|
777
|
-
* client-side before they are ever uploaded).
|
|
775
|
+
* transcript in the dashboard.
|
|
778
776
|
*/
|
|
779
777
|
records(session_id: string, options?: {
|
|
780
778
|
cursor?: string | null;
|
|
@@ -845,8 +843,7 @@ declare class EllipsisSessions {
|
|
|
845
843
|
* config, or
|
|
846
844
|
* template_id; with none, the account's default-config ladder
|
|
847
845
|
* resolves the config. 400 when idle_start is combined with
|
|
848
|
-
* prompt
|
|
849
|
-
* any config source or override. 422 when the agent declares an
|
|
846
|
+
* prompt or input. 422 when the agent declares an
|
|
850
847
|
* input schema and the request's input is absent or invalid.
|
|
851
848
|
*/
|
|
852
849
|
start(options?: {
|
|
@@ -855,14 +852,13 @@ declare class EllipsisSessions {
|
|
|
855
852
|
config_override?: Record<string, unknown> | null;
|
|
856
853
|
config_override_yaml?: string | null;
|
|
857
854
|
force_rebuild?: boolean;
|
|
858
|
-
handoff?: S['HandoffAgentSessionParams'] | null;
|
|
859
855
|
idle_start?: boolean;
|
|
860
856
|
input?: Record<string, unknown> | null;
|
|
861
857
|
metadata?: Record<string, string>;
|
|
862
858
|
prompt?: string | null;
|
|
863
859
|
repository?: string | null;
|
|
864
860
|
template_id?: string | null;
|
|
865
|
-
}): Promise<S['
|
|
861
|
+
}): Promise<S['SessionResponse']>;
|
|
866
862
|
/**
|
|
867
863
|
* Stop Agent Session
|
|
868
864
|
*
|
|
@@ -872,23 +868,6 @@ declare class EllipsisSessions {
|
|
|
872
868
|
* to a GitHub account.
|
|
873
869
|
*/
|
|
874
870
|
stop(session_id: string): Promise<S['SessionResponse']>;
|
|
875
|
-
/**
|
|
876
|
-
* Sync Agent Session
|
|
877
|
-
*
|
|
878
|
-
* Sync a local Claude Code session to Ellipsis.
|
|
879
|
-
*
|
|
880
|
-
* Requires a user token (device-flow `agent login`): the user is
|
|
881
|
-
* part of the sync's idempotency key, so API keys and sandbox
|
|
882
|
-
* tokens are rejected with a 403 rather than silently attributed.
|
|
883
|
-
*/
|
|
884
|
-
sync(options: {
|
|
885
|
-
cc_session_id: string;
|
|
886
|
-
cwd?: string | null;
|
|
887
|
-
git_branch?: string | null;
|
|
888
|
-
reason?: "stop" | "session_end";
|
|
889
|
-
repo?: string | null;
|
|
890
|
-
transcript_gzip_b64: string;
|
|
891
|
-
}): Promise<S['SyncAgentSessionResponse']>;
|
|
892
871
|
/** Start a session and return a handle over it. */
|
|
893
872
|
run(options: Parameters<EllipsisSessions['start']>[0]): Promise<SessionHandle>;
|
|
894
873
|
/** A handle over an existing session. */
|
package/dist/index.js
CHANGED
|
@@ -364,12 +364,11 @@ var EllipsisAgentsDefaults = class {
|
|
|
364
364
|
/**
|
|
365
365
|
* List Agent Defaults
|
|
366
366
|
*
|
|
367
|
-
*
|
|
367
|
+
* Get the default agent configs.
|
|
368
368
|
*
|
|
369
|
-
* The account default and
|
|
370
|
-
*
|
|
371
|
-
*
|
|
372
|
-
* omitted, a repo rung is "owner/name" — never by row id.
|
|
369
|
+
* The account-wide default and the per-repository defaults, as config
|
|
370
|
+
* ids. Repo rungs are keyed "owner/name"; a repository this
|
|
371
|
+
* installation can no longer see is omitted.
|
|
373
372
|
*/
|
|
374
373
|
async list() {
|
|
375
374
|
const path = "/v1/agents/defaults";
|
|
@@ -382,7 +381,7 @@ var EllipsisAgentsDefaults = class {
|
|
|
382
381
|
*
|
|
383
382
|
* Addressed by rung: the account rung (repository omitted) or a
|
|
384
383
|
* repository rung ("owner/name"); the config by id or by the
|
|
385
|
-
* agent's name.
|
|
384
|
+
* agent's name. Returns the full resulting ladder.
|
|
386
385
|
*
|
|
387
386
|
* Refused for sandbox tokens (potentially prompt-injected code
|
|
388
387
|
* must not repoint the account's ambient default); an unknown or
|
|
@@ -1084,8 +1083,7 @@ var EllipsisSessions = class {
|
|
|
1084
1083
|
* full retained transcript. Available to sandbox tokens too: an
|
|
1085
1084
|
* agent answering "did X look into Y?" needs to read the session
|
|
1086
1085
|
* it found via /sessions/search, and any org member sees the same
|
|
1087
|
-
* transcript in the dashboard
|
|
1088
|
-
* client-side before they are ever uploaded).
|
|
1086
|
+
* transcript in the dashboard.
|
|
1089
1087
|
*/
|
|
1090
1088
|
async records(session_id, options = {}) {
|
|
1091
1089
|
const path = `/v1/sessions/${enc(session_id)}/records`;
|
|
@@ -1154,13 +1152,12 @@ var EllipsisSessions = class {
|
|
|
1154
1152
|
* config, or
|
|
1155
1153
|
* template_id; with none, the account's default-config ladder
|
|
1156
1154
|
* resolves the config. 400 when idle_start is combined with
|
|
1157
|
-
* prompt
|
|
1158
|
-
* any config source or override. 422 when the agent declares an
|
|
1155
|
+
* prompt or input. 422 when the agent declares an
|
|
1159
1156
|
* input schema and the request's input is absent or invalid.
|
|
1160
1157
|
*/
|
|
1161
1158
|
async start(options = {}) {
|
|
1162
1159
|
const path = "/v1/sessions";
|
|
1163
|
-
const body = buildBody({ config: options.config, config_id: options.config_id, config_override: options.config_override, config_override_yaml: options.config_override_yaml, force_rebuild: options.force_rebuild,
|
|
1160
|
+
const body = buildBody({ config: options.config, config_id: options.config_id, config_override: options.config_override, config_override_yaml: options.config_override_yaml, force_rebuild: options.force_rebuild, idle_start: options.idle_start, input: options.input, metadata: options.metadata, prompt: options.prompt, repository: options.repository, template_id: options.template_id });
|
|
1164
1161
|
return await this.transport.request("POST", path, { body });
|
|
1165
1162
|
}
|
|
1166
1163
|
/**
|
|
@@ -1175,20 +1172,6 @@ var EllipsisSessions = class {
|
|
|
1175
1172
|
const path = `/v1/sessions/${enc(session_id)}/stop`;
|
|
1176
1173
|
return await this.transport.request("POST", path);
|
|
1177
1174
|
}
|
|
1178
|
-
/**
|
|
1179
|
-
* Sync Agent Session
|
|
1180
|
-
*
|
|
1181
|
-
* Sync a local Claude Code session to Ellipsis.
|
|
1182
|
-
*
|
|
1183
|
-
* Requires a user token (device-flow `agent login`): the user is
|
|
1184
|
-
* part of the sync's idempotency key, so API keys and sandbox
|
|
1185
|
-
* tokens are rejected with a 403 rather than silently attributed.
|
|
1186
|
-
*/
|
|
1187
|
-
async sync(options) {
|
|
1188
|
-
const path = "/v1/sessions/sync";
|
|
1189
|
-
const body = buildBody({ cc_session_id: options.cc_session_id, cwd: options.cwd, git_branch: options.git_branch, reason: options.reason, repo: options.repo, transcript_gzip_b64: options.transcript_gzip_b64 });
|
|
1190
|
-
return await this.transport.request("POST", path, { body });
|
|
1191
|
-
}
|
|
1192
1175
|
// ---- lifecycle sugar (hand-written layer over the generated core) ----
|
|
1193
1176
|
/** Start a session and return a handle over it. */
|
|
1194
1177
|
async run(options) {
|
package/dist/store/index.d.ts
CHANGED
package/dist/stream/index.d.ts
CHANGED