@ellipsis-dev/sdk 0.11.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 +13 -59
- package/dist/index.js +67 -115
- package/dist/store/index.d.ts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/dist/{types-DDQQ1Yfh.d.ts → types-egqnpL5C.d.ts} +676 -775
- package/package.json +1 -1
- package/schema/cc_step.schema.json +6036 -0
- package/schema/frames.schema.json +1806 -224
- package/schema/openapi.v1.json +194 -887
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;
|
|
@@ -717,20 +716,6 @@ declare class EllipsisSessions {
|
|
|
717
716
|
* live on the detail endpoints, not here.
|
|
718
717
|
*/
|
|
719
718
|
get(session_id: string): Promise<S['SessionResponse']>;
|
|
720
|
-
/**
|
|
721
|
-
* Get Agent Session Ide
|
|
722
|
-
*
|
|
723
|
-
* Return the IDE link for the session's sandbox.
|
|
724
|
-
*
|
|
725
|
-
* The membership-gated dashboard page, which performs the sandbox
|
|
726
|
-
* proxy handoff itself.
|
|
727
|
-
*
|
|
728
|
-
* No credential is minted here — the URL grants nothing by
|
|
729
|
-
* possession. 409 when the sandbox isn't running (send the
|
|
730
|
-
* session a message to wake it first). Backs the `agent session
|
|
731
|
-
* ide` CLI verb.
|
|
732
|
-
*/
|
|
733
|
-
ide(session_id: string): Promise<S['GetSessionIdeResponse']>;
|
|
734
719
|
/**
|
|
735
720
|
* Ingest Agent Session Transcript
|
|
736
721
|
*
|
|
@@ -773,22 +758,11 @@ declare class EllipsisSessions {
|
|
|
773
758
|
*
|
|
774
759
|
* The payload the agent submitted through its config-declared
|
|
775
760
|
* output.json_schema, as the raw JSON body with no envelope. 404
|
|
776
|
-
* while the session is still running (poll GET /sessions/{id}),
|
|
761
|
+
* while the session is still running (poll GET /v1/sessions/{id}),
|
|
777
762
|
* when the agent declares no output block, or when no execution
|
|
778
763
|
* produced output.
|
|
779
764
|
*/
|
|
780
765
|
output(session_id: string): Promise<void>;
|
|
781
|
-
/**
|
|
782
|
-
* Get Agent Session Port
|
|
783
|
-
*
|
|
784
|
-
* Return a preview link for a sandbox port.
|
|
785
|
-
*
|
|
786
|
-
* For a dev server running in the session's live sandbox: the
|
|
787
|
-
* same dashboard page as the IDE, deep-linked to the port.
|
|
788
|
-
*
|
|
789
|
-
* Backs `agent session port`.
|
|
790
|
-
*/
|
|
791
|
-
port(session_id: string, port: number): Promise<S['GetSessionPortResponse']>;
|
|
792
766
|
/**
|
|
793
767
|
* Get Agent Session Records
|
|
794
768
|
*
|
|
@@ -798,8 +772,7 @@ declare class EllipsisSessions {
|
|
|
798
772
|
* full retained transcript. Available to sandbox tokens too: an
|
|
799
773
|
* agent answering "did X look into Y?" needs to read the session
|
|
800
774
|
* it found via /sessions/search, and any org member sees the same
|
|
801
|
-
* transcript in the dashboard
|
|
802
|
-
* client-side before they are ever uploaded).
|
|
775
|
+
* transcript in the dashboard.
|
|
803
776
|
*/
|
|
804
777
|
records(session_id: string, options?: {
|
|
805
778
|
cursor?: string | null;
|
|
@@ -870,8 +843,7 @@ declare class EllipsisSessions {
|
|
|
870
843
|
* config, or
|
|
871
844
|
* template_id; with none, the account's default-config ladder
|
|
872
845
|
* resolves the config. 400 when idle_start is combined with
|
|
873
|
-
* prompt
|
|
874
|
-
* any config source or override. 422 when the agent declares an
|
|
846
|
+
* prompt or input. 422 when the agent declares an
|
|
875
847
|
* input schema and the request's input is absent or invalid.
|
|
876
848
|
*/
|
|
877
849
|
start(options?: {
|
|
@@ -880,14 +852,13 @@ declare class EllipsisSessions {
|
|
|
880
852
|
config_override?: Record<string, unknown> | null;
|
|
881
853
|
config_override_yaml?: string | null;
|
|
882
854
|
force_rebuild?: boolean;
|
|
883
|
-
handoff?: S['HandoffAgentSessionParams'] | null;
|
|
884
855
|
idle_start?: boolean;
|
|
885
856
|
input?: Record<string, unknown> | null;
|
|
886
857
|
metadata?: Record<string, string>;
|
|
887
858
|
prompt?: string | null;
|
|
888
859
|
repository?: string | null;
|
|
889
860
|
template_id?: string | null;
|
|
890
|
-
}): Promise<S['
|
|
861
|
+
}): Promise<S['SessionResponse']>;
|
|
891
862
|
/**
|
|
892
863
|
* Stop Agent Session
|
|
893
864
|
*
|
|
@@ -897,23 +868,6 @@ declare class EllipsisSessions {
|
|
|
897
868
|
* to a GitHub account.
|
|
898
869
|
*/
|
|
899
870
|
stop(session_id: string): Promise<S['SessionResponse']>;
|
|
900
|
-
/**
|
|
901
|
-
* Sync Agent Session
|
|
902
|
-
*
|
|
903
|
-
* Sync a local Claude Code session to Ellipsis.
|
|
904
|
-
*
|
|
905
|
-
* Requires a user token (device-flow `agent login`): the user is
|
|
906
|
-
* part of the sync's idempotency key, so API keys and sandbox
|
|
907
|
-
* tokens are rejected with a 403 rather than silently attributed.
|
|
908
|
-
*/
|
|
909
|
-
sync(options: {
|
|
910
|
-
cc_session_id: string;
|
|
911
|
-
cwd?: string | null;
|
|
912
|
-
git_branch?: string | null;
|
|
913
|
-
reason?: "stop" | "session_end";
|
|
914
|
-
repo?: string | null;
|
|
915
|
-
transcript_gzip_b64: string;
|
|
916
|
-
}): Promise<S['SyncAgentSessionResponse']>;
|
|
917
871
|
/** Start a session and return a handle over it. */
|
|
918
872
|
run(options: Parameters<EllipsisSessions['start']>[0]): Promise<SessionHandle>;
|
|
919
873
|
/** A handle over an existing session. */
|