@ellipsis-dev/sdk 0.8.1 → 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 +45 -26
- package/dist/index.js +45 -24
- package/dist/store/index.d.ts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/dist/{types-Dx0e0Qs_.d.ts → types-CStmnKVu.d.ts} +272 -133
- package/package.json +1 -1
- package/schema/frames.schema.json +101 -101
- package/schema/openapi.v1.json +461 -229
- package/schema/trigger_fields.schema.json +374 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as components } from './types-
|
|
2
|
-
export { A as
|
|
1
|
+
import { c as components } from './types-CStmnKVu.js';
|
|
2
|
+
export { A as AttributionType, B as BudgetSource, C as CreateReviewRequest, D as DefaultResolution, a 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-CStmnKVu.js';
|
|
3
3
|
|
|
4
4
|
interface CursorResponse {
|
|
5
5
|
has_more: boolean;
|
|
@@ -78,9 +78,10 @@ declare class EllipsisAgentsConfigs {
|
|
|
78
78
|
* Create an agent config via pull request.
|
|
79
79
|
*
|
|
80
80
|
* The PR adds the config file to agents/ on the target
|
|
81
|
-
* repository.
|
|
81
|
+
* repository; the agent goes live when it merges.
|
|
82
82
|
*
|
|
83
|
-
* Accepts an inline config or a gallery template slug.
|
|
83
|
+
* Accepts an inline config or a gallery template slug. 409 when
|
|
84
|
+
* another live agent already holds the name.
|
|
84
85
|
*/
|
|
85
86
|
create(options: {
|
|
86
87
|
config?: S['AgentConfig'] | null;
|
|
@@ -91,7 +92,7 @@ declare class EllipsisAgentsConfigs {
|
|
|
91
92
|
/**
|
|
92
93
|
* Get Agent Config
|
|
93
94
|
*
|
|
94
|
-
* Return one saved agent config by id.
|
|
95
|
+
* Return one saved agent config, by id or by the agent's name.
|
|
95
96
|
*/
|
|
96
97
|
get(config_id: string): Promise<S['AgentConfigResponse']>;
|
|
97
98
|
/**
|
|
@@ -134,7 +135,8 @@ declare class EllipsisAgentsDefaults {
|
|
|
134
135
|
* Set a default agent config.
|
|
135
136
|
*
|
|
136
137
|
* Addressed by rung: the account rung (repository omitted) or a
|
|
137
|
-
* repository rung ("owner/name")
|
|
138
|
+
* repository rung ("owner/name"); the config by id or by the
|
|
139
|
+
* agent's name.
|
|
138
140
|
*
|
|
139
141
|
* Refused for sandbox tokens (potentially prompt-injected code
|
|
140
142
|
* must not repoint the account's ambient default); an unknown or
|
|
@@ -636,6 +638,21 @@ declare class EllipsisSessions {
|
|
|
636
638
|
* it).
|
|
637
639
|
*/
|
|
638
640
|
executions(session_id: string): Promise<S['SessionExecutionsListResponse']>;
|
|
641
|
+
/**
|
|
642
|
+
* Export Agent Session
|
|
643
|
+
*
|
|
644
|
+
* Export the complete session history.
|
|
645
|
+
*
|
|
646
|
+
* The complete, ordered history of the session (agent output, tool calls, thinking,
|
|
647
|
+
* lifecycle events, sandbox output, message events) as an ordered
|
|
648
|
+
* manifest of presigned segment URLs.
|
|
649
|
+
*
|
|
650
|
+
* Segments are gzip members: download in order and concatenate
|
|
651
|
+
* for one file. The JSON API never carries the bytes (same
|
|
652
|
+
* two-step as files). /records is the paged live view of the
|
|
653
|
+
* same data.
|
|
654
|
+
*/
|
|
655
|
+
export(session_id: string): Promise<S['GetSessionLogResponse']>;
|
|
639
656
|
/**
|
|
640
657
|
* Get Agent Session
|
|
641
658
|
*
|
|
@@ -682,12 +699,13 @@ declare class EllipsisSessions {
|
|
|
682
699
|
*
|
|
683
700
|
* List cloud agent sessions, newest first.
|
|
684
701
|
*
|
|
685
|
-
* Optionally filtered by config, source, time
|
|
686
|
-
* author, repository, and whether the session is
|
|
702
|
+
* Optionally filtered by config (id or `ellipsis.name`), source, time
|
|
703
|
+
* window, attributed author, repository, and whether the session is
|
|
704
|
+
* still going.
|
|
687
705
|
*/
|
|
688
706
|
list(options?: {
|
|
689
707
|
config_id?: string | null;
|
|
690
|
-
source?: (S['
|
|
708
|
+
source?: (S['SessionSource'])[] | null;
|
|
691
709
|
days?: number | null;
|
|
692
710
|
start?: string | null;
|
|
693
711
|
end?: string | null;
|
|
@@ -698,20 +716,17 @@ declare class EllipsisSessions {
|
|
|
698
716
|
unfinished?: boolean;
|
|
699
717
|
}): Promise<Page<S['Session'], S['SessionsListResponse']>>;
|
|
700
718
|
/**
|
|
701
|
-
* Get Agent Session
|
|
702
|
-
*
|
|
703
|
-
* Download the complete session log.
|
|
719
|
+
* Get Agent Session Output
|
|
704
720
|
*
|
|
705
|
-
*
|
|
706
|
-
* lifecycle events, sandbox output, message events) as an ordered
|
|
707
|
-
* manifest of presigned segment URLs.
|
|
721
|
+
* Return the session's typed output.
|
|
708
722
|
*
|
|
709
|
-
*
|
|
710
|
-
*
|
|
711
|
-
*
|
|
712
|
-
*
|
|
723
|
+
* The payload the agent submitted through its config-declared
|
|
724
|
+
* output.json_schema, as the raw JSON body with no envelope. 404
|
|
725
|
+
* while the session is still running (poll GET /sessions/{id}),
|
|
726
|
+
* when the agent declares no output block, or when no execution
|
|
727
|
+
* produced output.
|
|
713
728
|
*/
|
|
714
|
-
|
|
729
|
+
output(session_id: string): Promise<void>;
|
|
715
730
|
/**
|
|
716
731
|
* Get Agent Session Port
|
|
717
732
|
*
|
|
@@ -771,12 +786,12 @@ declare class EllipsisSessions {
|
|
|
771
786
|
search(options?: {
|
|
772
787
|
q?: string;
|
|
773
788
|
scope?: S['SessionSearchScope'];
|
|
774
|
-
source?: (S['
|
|
789
|
+
source?: (S['SessionSource'])[] | null;
|
|
775
790
|
author_id?: (number)[] | null;
|
|
776
791
|
config_id?: (string)[] | null;
|
|
777
792
|
session_ids?: (string)[] | null;
|
|
778
793
|
repo?: string | null;
|
|
779
|
-
status?: (S['
|
|
794
|
+
status?: (S['SessionStatus'])[] | null;
|
|
780
795
|
start?: string | null;
|
|
781
796
|
end?: string | null;
|
|
782
797
|
limit?: number;
|
|
@@ -800,10 +815,13 @@ declare class EllipsisSessions {
|
|
|
800
815
|
*
|
|
801
816
|
* Start a cloud agent session.
|
|
802
817
|
*
|
|
803
|
-
* Provide at most one of config_id
|
|
804
|
-
*
|
|
805
|
-
*
|
|
806
|
-
*
|
|
818
|
+
* Provide at most one of config_id (an id or an agent name),
|
|
819
|
+
* config, or
|
|
820
|
+
* template_id; with none, the account's default-config ladder
|
|
821
|
+
* resolves the config. 400 when idle_start is combined with
|
|
822
|
+
* prompt, input, or handoff, or when a handoff is combined with
|
|
823
|
+
* any config source or override. 422 when the agent declares an
|
|
824
|
+
* input schema and the request's input is absent or invalid.
|
|
807
825
|
*/
|
|
808
826
|
start(options?: {
|
|
809
827
|
config?: S['AgentConfig'] | null;
|
|
@@ -813,6 +831,7 @@ declare class EllipsisSessions {
|
|
|
813
831
|
force_rebuild?: boolean;
|
|
814
832
|
handoff?: S['HandoffAgentSessionParams'] | null;
|
|
815
833
|
idle_start?: boolean;
|
|
834
|
+
input?: Record<string, unknown> | null;
|
|
816
835
|
metadata?: Record<string, string>;
|
|
817
836
|
prompt?: string | null;
|
|
818
837
|
repository?: string | null;
|
package/dist/index.js
CHANGED
|
@@ -252,9 +252,10 @@ var EllipsisAgentsConfigs = class {
|
|
|
252
252
|
* Create an agent config via pull request.
|
|
253
253
|
*
|
|
254
254
|
* The PR adds the config file to agents/ on the target
|
|
255
|
-
* repository.
|
|
255
|
+
* repository; the agent goes live when it merges.
|
|
256
256
|
*
|
|
257
|
-
* Accepts an inline config or a gallery template slug.
|
|
257
|
+
* Accepts an inline config or a gallery template slug. 409 when
|
|
258
|
+
* another live agent already holds the name.
|
|
258
259
|
*/
|
|
259
260
|
async create(options) {
|
|
260
261
|
const path = "/agents/configs";
|
|
@@ -264,7 +265,7 @@ var EllipsisAgentsConfigs = class {
|
|
|
264
265
|
/**
|
|
265
266
|
* Get Agent Config
|
|
266
267
|
*
|
|
267
|
-
* Return one saved agent config by id.
|
|
268
|
+
* Return one saved agent config, by id or by the agent's name.
|
|
268
269
|
*/
|
|
269
270
|
async get(config_id) {
|
|
270
271
|
const path = `/agents/configs/${enc(config_id)}`;
|
|
@@ -320,7 +321,8 @@ var EllipsisAgentsDefaults = class {
|
|
|
320
321
|
* Set a default agent config.
|
|
321
322
|
*
|
|
322
323
|
* Addressed by rung: the account rung (repository omitted) or a
|
|
323
|
-
* repository rung ("owner/name")
|
|
324
|
+
* repository rung ("owner/name"); the config by id or by the
|
|
325
|
+
* agent's name.
|
|
324
326
|
*
|
|
325
327
|
* Refused for sandbox tokens (potentially prompt-injected code
|
|
326
328
|
* must not repoint the account's ambient default); an unknown or
|
|
@@ -930,6 +932,24 @@ var EllipsisSessions = class {
|
|
|
930
932
|
const path = `/sessions/${enc(session_id)}/executions`;
|
|
931
933
|
return await this.transport.request("GET", path);
|
|
932
934
|
}
|
|
935
|
+
/**
|
|
936
|
+
* Export Agent Session
|
|
937
|
+
*
|
|
938
|
+
* Export the complete session history.
|
|
939
|
+
*
|
|
940
|
+
* The complete, ordered history of the session (agent output, tool calls, thinking,
|
|
941
|
+
* lifecycle events, sandbox output, message events) as an ordered
|
|
942
|
+
* manifest of presigned segment URLs.
|
|
943
|
+
*
|
|
944
|
+
* Segments are gzip members: download in order and concatenate
|
|
945
|
+
* for one file. The JSON API never carries the bytes (same
|
|
946
|
+
* two-step as files). /records is the paged live view of the
|
|
947
|
+
* same data.
|
|
948
|
+
*/
|
|
949
|
+
async export(session_id) {
|
|
950
|
+
const path = `/sessions/${enc(session_id)}/export`;
|
|
951
|
+
return await this.transport.request("GET", path);
|
|
952
|
+
}
|
|
933
953
|
/**
|
|
934
954
|
* Get Agent Session
|
|
935
955
|
*
|
|
@@ -983,8 +1003,9 @@ var EllipsisSessions = class {
|
|
|
983
1003
|
*
|
|
984
1004
|
* List cloud agent sessions, newest first.
|
|
985
1005
|
*
|
|
986
|
-
* Optionally filtered by config, source, time
|
|
987
|
-
* author, repository, and whether the session is
|
|
1006
|
+
* Optionally filtered by config (id or `ellipsis.name`), source, time
|
|
1007
|
+
* window, attributed author, repository, and whether the session is
|
|
1008
|
+
* still going.
|
|
988
1009
|
*/
|
|
989
1010
|
async list(options = {}) {
|
|
990
1011
|
const path = "/sessions";
|
|
@@ -997,22 +1018,19 @@ var EllipsisSessions = class {
|
|
|
997
1018
|
);
|
|
998
1019
|
}
|
|
999
1020
|
/**
|
|
1000
|
-
* Get Agent Session
|
|
1001
|
-
*
|
|
1002
|
-
* Download the complete session log.
|
|
1021
|
+
* Get Agent Session Output
|
|
1003
1022
|
*
|
|
1004
|
-
*
|
|
1005
|
-
* lifecycle events, sandbox output, message events) as an ordered
|
|
1006
|
-
* manifest of presigned segment URLs.
|
|
1023
|
+
* Return the session's typed output.
|
|
1007
1024
|
*
|
|
1008
|
-
*
|
|
1009
|
-
*
|
|
1010
|
-
*
|
|
1011
|
-
*
|
|
1025
|
+
* The payload the agent submitted through its config-declared
|
|
1026
|
+
* output.json_schema, as the raw JSON body with no envelope. 404
|
|
1027
|
+
* while the session is still running (poll GET /sessions/{id}),
|
|
1028
|
+
* when the agent declares no output block, or when no execution
|
|
1029
|
+
* produced output.
|
|
1012
1030
|
*/
|
|
1013
|
-
async
|
|
1014
|
-
const path = `/sessions/${enc(session_id)}/
|
|
1015
|
-
|
|
1031
|
+
async output(session_id) {
|
|
1032
|
+
const path = `/sessions/${enc(session_id)}/output`;
|
|
1033
|
+
await this.transport.request("GET", path);
|
|
1016
1034
|
}
|
|
1017
1035
|
/**
|
|
1018
1036
|
* Get Agent Session Port
|
|
@@ -1103,14 +1121,17 @@ var EllipsisSessions = class {
|
|
|
1103
1121
|
*
|
|
1104
1122
|
* Start a cloud agent session.
|
|
1105
1123
|
*
|
|
1106
|
-
* Provide at most one of config_id
|
|
1107
|
-
*
|
|
1108
|
-
*
|
|
1109
|
-
*
|
|
1124
|
+
* Provide at most one of config_id (an id or an agent name),
|
|
1125
|
+
* config, or
|
|
1126
|
+
* template_id; with none, the account's default-config ladder
|
|
1127
|
+
* resolves the config. 400 when idle_start is combined with
|
|
1128
|
+
* prompt, input, or handoff, or when a handoff is combined with
|
|
1129
|
+
* any config source or override. 422 when the agent declares an
|
|
1130
|
+
* input schema and the request's input is absent or invalid.
|
|
1110
1131
|
*/
|
|
1111
1132
|
async start(options = {}) {
|
|
1112
1133
|
const path = "/sessions";
|
|
1113
|
-
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, handoff: options.handoff, idle_start: options.idle_start, metadata: options.metadata, prompt: options.prompt, repository: options.repository, template_id: options.template_id });
|
|
1134
|
+
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, handoff: options.handoff, idle_start: options.idle_start, input: options.input, metadata: options.metadata, prompt: options.prompt, repository: options.repository, template_id: options.template_id });
|
|
1114
1135
|
return await this.transport.request("POST", path, { body });
|
|
1115
1136
|
}
|
|
1116
1137
|
/**
|
package/dist/store/index.d.ts
CHANGED
package/dist/stream/index.d.ts
CHANGED