@ellipsis-dev/sdk 0.17.0 → 0.18.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 +56 -121
- package/dist/index.js +57 -130
- package/dist/store/index.d.ts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/dist/{types--VF0yCc1.d.ts → types-BLSh1Px1.d.ts} +216 -686
- package/package.json +1 -1
- package/schema/frames.schema.json +12 -6
- package/schema/openapi.v1.json +298 -874
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 SessionExecution, N as SessionExecutionsListResponse, O as SessionExitStatus, Q as SessionFrame, T as SessionGit, U as SessionLiveness, V as SessionMessage, W as SessionMessageResponse, X as SessionMessageStatus, Y as SessionPrompting, Z as SessionRecord, _ as SessionRecordsListResponse, $ as SessionResponse, a0 as SessionSource, a1 as SessionState, a2 as SessionStatus, a3 as SessionStreamFrame, a4 as SessionSurface, a5 as SessionsListResponse, a6 as SnapshotFrame, a7 as StreamFrame, a8 as TokensInfo, a9 as paths } from './types
|
|
1
|
+
import { c as components } from './types-BLSh1Px1.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 SessionExecution, N as SessionExecutionsListResponse, O as SessionExitStatus, Q as SessionFrame, T as SessionGit, U as SessionLiveness, V as SessionMessage, W as SessionMessageResponse, X as SessionMessageStatus, Y as SessionPrompting, Z as SessionRecord, _ as SessionRecordsListResponse, $ as SessionResponse, a0 as SessionSource, a1 as SessionState, a2 as SessionStatus, a3 as SessionStreamFrame, a4 as SessionSurface, a5 as SessionsListResponse, a6 as SnapshotFrame, a7 as StreamFrame, a8 as TokensInfo, a9 as paths } from './types-BLSh1Px1.js';
|
|
3
3
|
|
|
4
4
|
interface CursorResponse {
|
|
5
5
|
has_more: boolean;
|
|
@@ -145,50 +145,6 @@ declare class EllipsisAgentsConfigs {
|
|
|
145
145
|
config: S['AgentConfig'];
|
|
146
146
|
}): Promise<S['AgentConfigResponse']>;
|
|
147
147
|
}
|
|
148
|
-
declare class EllipsisAgentsDefaults {
|
|
149
|
-
private readonly transport;
|
|
150
|
-
constructor(transport: Transport);
|
|
151
|
-
/**
|
|
152
|
-
* Delete Agent Default
|
|
153
|
-
*
|
|
154
|
-
* Clear a default agent config.
|
|
155
|
-
*
|
|
156
|
-
* Addressed by rung: the account rung (repository omitted) or a
|
|
157
|
-
* repository rung.
|
|
158
|
-
*
|
|
159
|
-
* Refused for sandbox tokens.
|
|
160
|
-
*/
|
|
161
|
-
delete(options?: {
|
|
162
|
-
repository?: string | null;
|
|
163
|
-
}): Promise<void>;
|
|
164
|
-
/**
|
|
165
|
-
* List Agent Defaults
|
|
166
|
-
*
|
|
167
|
-
* Get the default agent configs.
|
|
168
|
-
*
|
|
169
|
-
* The account-wide default and the per-repository defaults, as config
|
|
170
|
-
* ids. Repo rungs are keyed "owner/name"; a repository this
|
|
171
|
-
* installation can no longer see is omitted.
|
|
172
|
-
*/
|
|
173
|
-
list(): Promise<S['AgentDefaults']>;
|
|
174
|
-
/**
|
|
175
|
-
* Put Agent Default
|
|
176
|
-
*
|
|
177
|
-
* Set a default agent config.
|
|
178
|
-
*
|
|
179
|
-
* Addressed by rung: the account rung (repository omitted) or a
|
|
180
|
-
* repository rung ("owner/name"); the config by id or by the
|
|
181
|
-
* agent's name. Returns the full resulting ladder.
|
|
182
|
-
*
|
|
183
|
-
* Refused for sandbox tokens (potentially prompt-injected code
|
|
184
|
-
* must not repoint the account's ambient default); an unknown or
|
|
185
|
-
* foreign repository is a 404.
|
|
186
|
-
*/
|
|
187
|
-
set(options: {
|
|
188
|
-
config_id: string;
|
|
189
|
-
repository?: string | null;
|
|
190
|
-
}): Promise<S['AgentDefaults']>;
|
|
191
|
-
}
|
|
192
148
|
declare class EllipsisAgentsTemplates {
|
|
193
149
|
private readonly transport;
|
|
194
150
|
constructor(transport: Transport);
|
|
@@ -211,7 +167,6 @@ declare class EllipsisAgentsTemplates {
|
|
|
211
167
|
declare class EllipsisAgents {
|
|
212
168
|
private readonly transport;
|
|
213
169
|
readonly configs: EllipsisAgentsConfigs;
|
|
214
|
-
readonly defaults: EllipsisAgentsDefaults;
|
|
215
170
|
readonly templates: EllipsisAgentsTemplates;
|
|
216
171
|
constructor(transport: Transport);
|
|
217
172
|
}
|
|
@@ -342,46 +297,8 @@ declare class EllipsisAuth {
|
|
|
342
297
|
readonly cli: EllipsisAuthCli;
|
|
343
298
|
constructor(transport: Transport);
|
|
344
299
|
}
|
|
345
|
-
declare class EllipsisEnvironmentsDefaults {
|
|
346
|
-
private readonly transport;
|
|
347
|
-
constructor(transport: Transport);
|
|
348
|
-
/**
|
|
349
|
-
* Delete Environment Default
|
|
350
|
-
*
|
|
351
|
-
* Clear a default environment.
|
|
352
|
-
*
|
|
353
|
-
* Addressed by rung: the account rung (repository omitted) or a
|
|
354
|
-
* repository rung. Refused for sandbox tokens.
|
|
355
|
-
*/
|
|
356
|
-
delete(options?: {
|
|
357
|
-
repository?: string | null;
|
|
358
|
-
}): Promise<void>;
|
|
359
|
-
/**
|
|
360
|
-
* List Environment Defaults
|
|
361
|
-
*
|
|
362
|
-
* Get the default environments.
|
|
363
|
-
*
|
|
364
|
-
* The account-wide default and the per-repository defaults, as
|
|
365
|
-
* environment ids. Repo rungs are keyed "owner/name".
|
|
366
|
-
*/
|
|
367
|
-
list(): Promise<S['EnvironmentDefaults']>;
|
|
368
|
-
/**
|
|
369
|
-
* Put Environment Default
|
|
370
|
-
*
|
|
371
|
-
* Set a default environment.
|
|
372
|
-
*
|
|
373
|
-
* Addressed by rung: the account rung (repository omitted) or a
|
|
374
|
-
* repository rung ("owner/name"); the environment by id or name.
|
|
375
|
-
* Returns the full resulting ladder. Refused for sandbox tokens.
|
|
376
|
-
*/
|
|
377
|
-
set(options: {
|
|
378
|
-
environment: string;
|
|
379
|
-
repository?: string | null;
|
|
380
|
-
}): Promise<S['EnvironmentDefaults']>;
|
|
381
|
-
}
|
|
382
300
|
declare class EllipsisEnvironments {
|
|
383
301
|
private readonly transport;
|
|
384
|
-
readonly defaults: EllipsisEnvironmentsDefaults;
|
|
385
302
|
constructor(transport: Transport);
|
|
386
303
|
/**
|
|
387
304
|
* Create Environment
|
|
@@ -560,7 +477,7 @@ declare class EllipsisIntegrations {
|
|
|
560
477
|
readonly slack: EllipsisIntegrationsSlack;
|
|
561
478
|
constructor(transport: Transport);
|
|
562
479
|
/**
|
|
563
|
-
*
|
|
480
|
+
* List Integrations
|
|
564
481
|
*
|
|
565
482
|
* List connected integrations.
|
|
566
483
|
*
|
|
@@ -741,7 +658,7 @@ declare class EllipsisSecrets {
|
|
|
741
658
|
*/
|
|
742
659
|
list(): Promise<S['SecretsListResponse']>;
|
|
743
660
|
/**
|
|
744
|
-
*
|
|
661
|
+
* Set Secrets
|
|
745
662
|
*
|
|
746
663
|
* Upsert secrets.
|
|
747
664
|
*
|
|
@@ -767,8 +684,7 @@ declare class EllipsisSessions {
|
|
|
767
684
|
* instructions + the config's own instructions).
|
|
768
685
|
*
|
|
769
686
|
* Per execution because each cold wake persists its own launch
|
|
770
|
-
* config (a config edit
|
|
771
|
-
* it).
|
|
687
|
+
* config (a config edit between wakes changes it).
|
|
772
688
|
*/
|
|
773
689
|
executions(session_id: string): Promise<S['SessionExecutionsListResponse']>;
|
|
774
690
|
/**
|
|
@@ -862,22 +778,7 @@ declare class EllipsisSessions {
|
|
|
862
778
|
limit?: number | null;
|
|
863
779
|
}): Promise<Page<S['ClaudeSessionRecord'] | S['CodexSessionRecord'] | S['LifecycleSessionRecord'], S['SessionRecordsListResponse']>>;
|
|
864
780
|
/**
|
|
865
|
-
*
|
|
866
|
-
*
|
|
867
|
-
* Replay a session as a new session.
|
|
868
|
-
*
|
|
869
|
-
* Reuses the original config snapshot unless config_id is given,
|
|
870
|
-
* and accepts the same config_override as session start — e.g.
|
|
871
|
-
* {"claude": {"model": ...}} to replay the same input on a
|
|
872
|
-
* different model.
|
|
873
|
-
*/
|
|
874
|
-
replay(session_id: string, options?: {
|
|
875
|
-
config_id?: string | null;
|
|
876
|
-
override?: Record<string, unknown> | null;
|
|
877
|
-
prompt?: string | null;
|
|
878
|
-
}): Promise<S['SessionResponse']>;
|
|
879
|
-
/**
|
|
880
|
-
* Search Sessions
|
|
781
|
+
* Search Agent Sessions
|
|
881
782
|
*
|
|
882
783
|
* Search sessions over steps, recaps, and pull requests.
|
|
883
784
|
*
|
|
@@ -921,25 +822,27 @@ declare class EllipsisSessions {
|
|
|
921
822
|
*
|
|
922
823
|
* Start a cloud agent session.
|
|
923
824
|
*
|
|
924
|
-
*
|
|
925
|
-
* config;
|
|
926
|
-
*
|
|
825
|
+
* The base is `from_config_id` (an id or an agent name) or, omitted,
|
|
826
|
+
* the bare ad-hoc config; every AgentConfig key on the request
|
|
827
|
+
* deep-merges on top, so the body is both the pointer and the
|
|
828
|
+
* per-session override. `prompt` is the first message; omit it and
|
|
927
829
|
* the session starts idle, waiting for one. 400 when
|
|
928
|
-
* interactive=false and there is no prompt or input. 422
|
|
929
|
-
* agent declares an input schema and the request's input
|
|
930
|
-
* or invalid.
|
|
830
|
+
* ellipsis.interactive=false and there is no prompt or input. 422
|
|
831
|
+
* when the agent declares an input schema and the request's input
|
|
832
|
+
* is absent or invalid.
|
|
931
833
|
*/
|
|
932
834
|
start(options?: {
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
835
|
+
budget?: S['AgentConfigBudget'] | null;
|
|
836
|
+
claude?: S['AgentConfigClaude'] | null;
|
|
837
|
+
codex?: S['AgentConfigCodex'] | null;
|
|
838
|
+
ellipsis?: S['StartSessionEllipsis'];
|
|
839
|
+
environment?: string | S['AgentConfigEnvironment'] | null;
|
|
840
|
+
from_config_id?: string | null;
|
|
937
841
|
input?: Record<string, unknown> | null;
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
override?: Record<string, unknown> | null;
|
|
842
|
+
output?: S['AgentConfigOutput'] | null;
|
|
843
|
+
permissions?: S['AgentConfigPermissions'] | null;
|
|
941
844
|
prompt?: string | null;
|
|
942
|
-
|
|
845
|
+
skills?: (S['AgentConfigSkill'])[] | null;
|
|
943
846
|
}): Promise<S['SessionResponse']>;
|
|
944
847
|
/**
|
|
945
848
|
* Stop Agent Session
|
|
@@ -955,6 +858,37 @@ declare class EllipsisSessions {
|
|
|
955
858
|
/** A handle over an existing session. */
|
|
956
859
|
handle(sessionId: string): Promise<SessionHandle>;
|
|
957
860
|
}
|
|
861
|
+
declare class EllipsisSettingsSessions {
|
|
862
|
+
private readonly transport;
|
|
863
|
+
constructor(transport: Transport);
|
|
864
|
+
/**
|
|
865
|
+
* Get Session Defaults
|
|
866
|
+
*
|
|
867
|
+
* Get the account-wide session defaults.
|
|
868
|
+
*
|
|
869
|
+
* Today one setting: the default model every session falls back to
|
|
870
|
+
* when neither its request nor its agent config names one.
|
|
871
|
+
*/
|
|
872
|
+
getDefaults(): Promise<S['SessionDefaults']>;
|
|
873
|
+
/**
|
|
874
|
+
* Set Session Defaults
|
|
875
|
+
*
|
|
876
|
+
* Set the account-wide session defaults.
|
|
877
|
+
*
|
|
878
|
+
* `model` accepts an alias or canonical id and is stored canonical;
|
|
879
|
+
* null clears it (sessions then fall back to the platform default).
|
|
880
|
+
* Refused for sandbox tokens (potentially prompt-injected code must
|
|
881
|
+
* not repoint the account's default model).
|
|
882
|
+
*/
|
|
883
|
+
setDefaults(options?: {
|
|
884
|
+
model?: string | null;
|
|
885
|
+
}): Promise<S['SessionDefaults']>;
|
|
886
|
+
}
|
|
887
|
+
declare class EllipsisSettings {
|
|
888
|
+
private readonly transport;
|
|
889
|
+
readonly sessions: EllipsisSettingsSessions;
|
|
890
|
+
constructor(transport: Transport);
|
|
891
|
+
}
|
|
958
892
|
declare class Ellipsis {
|
|
959
893
|
private readonly transport;
|
|
960
894
|
readonly agents: EllipsisAgents;
|
|
@@ -969,6 +903,7 @@ declare class Ellipsis {
|
|
|
969
903
|
readonly reviews: EllipsisReviews;
|
|
970
904
|
readonly secrets: EllipsisSecrets;
|
|
971
905
|
readonly sessions: EllipsisSessions;
|
|
906
|
+
readonly settings: EllipsisSettings;
|
|
972
907
|
constructor(options: TransportOptions);
|
|
973
908
|
/**
|
|
974
909
|
* Get Budget
|
|
@@ -977,13 +912,13 @@ declare class Ellipsis {
|
|
|
977
912
|
*/
|
|
978
913
|
budget(): Promise<S['BudgetSummary']>;
|
|
979
914
|
/**
|
|
980
|
-
*
|
|
915
|
+
* Current Identity
|
|
981
916
|
*
|
|
982
917
|
* Return the identity behind the caller's credential.
|
|
983
918
|
*/
|
|
984
919
|
me(): Promise<S['WhoAmIResponse']>;
|
|
985
920
|
/**
|
|
986
|
-
* Get Usage
|
|
921
|
+
* Get Usage
|
|
987
922
|
*
|
|
988
923
|
* Return the caller's usage dashboard data.
|
|
989
924
|
*/
|
package/dist/index.js
CHANGED
|
@@ -336,58 +336,6 @@ var EllipsisAgentsConfigs = class {
|
|
|
336
336
|
return await this.transport.request("PUT", path, { body });
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
|
-
var EllipsisAgentsDefaults = class {
|
|
340
|
-
constructor(transport) {
|
|
341
|
-
this.transport = transport;
|
|
342
|
-
}
|
|
343
|
-
transport;
|
|
344
|
-
/**
|
|
345
|
-
* Delete Agent Default
|
|
346
|
-
*
|
|
347
|
-
* Clear a default agent config.
|
|
348
|
-
*
|
|
349
|
-
* Addressed by rung: the account rung (repository omitted) or a
|
|
350
|
-
* repository rung.
|
|
351
|
-
*
|
|
352
|
-
* Refused for sandbox tokens.
|
|
353
|
-
*/
|
|
354
|
-
async delete(options = {}) {
|
|
355
|
-
const path = "/v1/agents/defaults";
|
|
356
|
-
const query = buildQuery({ repository: options.repository });
|
|
357
|
-
await this.transport.request("DELETE", path, { query });
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
* List Agent Defaults
|
|
361
|
-
*
|
|
362
|
-
* Get the default agent configs.
|
|
363
|
-
*
|
|
364
|
-
* The account-wide default and the per-repository defaults, as config
|
|
365
|
-
* ids. Repo rungs are keyed "owner/name"; a repository this
|
|
366
|
-
* installation can no longer see is omitted.
|
|
367
|
-
*/
|
|
368
|
-
async list() {
|
|
369
|
-
const path = "/v1/agents/defaults";
|
|
370
|
-
return await this.transport.request("GET", path);
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* Put Agent Default
|
|
374
|
-
*
|
|
375
|
-
* Set a default agent config.
|
|
376
|
-
*
|
|
377
|
-
* Addressed by rung: the account rung (repository omitted) or a
|
|
378
|
-
* repository rung ("owner/name"); the config by id or by the
|
|
379
|
-
* agent's name. Returns the full resulting ladder.
|
|
380
|
-
*
|
|
381
|
-
* Refused for sandbox tokens (potentially prompt-injected code
|
|
382
|
-
* must not repoint the account's ambient default); an unknown or
|
|
383
|
-
* foreign repository is a 404.
|
|
384
|
-
*/
|
|
385
|
-
async set(options) {
|
|
386
|
-
const path = "/v1/agents/defaults";
|
|
387
|
-
const body = buildBody({ config_id: options.config_id, repository: options.repository });
|
|
388
|
-
return await this.transport.request("PUT", path, { body });
|
|
389
|
-
}
|
|
390
|
-
};
|
|
391
339
|
var EllipsisAgentsTemplates = class {
|
|
392
340
|
constructor(transport) {
|
|
393
341
|
this.transport = transport;
|
|
@@ -419,12 +367,10 @@ var EllipsisAgents = class {
|
|
|
419
367
|
constructor(transport) {
|
|
420
368
|
this.transport = transport;
|
|
421
369
|
this.configs = new EllipsisAgentsConfigs(transport);
|
|
422
|
-
this.defaults = new EllipsisAgentsDefaults(transport);
|
|
423
370
|
this.templates = new EllipsisAgentsTemplates(transport);
|
|
424
371
|
}
|
|
425
372
|
transport;
|
|
426
373
|
configs;
|
|
427
|
-
defaults;
|
|
428
374
|
templates;
|
|
429
375
|
};
|
|
430
376
|
var EllipsisAlerts = class {
|
|
@@ -566,58 +512,11 @@ var EllipsisAuth = class {
|
|
|
566
512
|
transport;
|
|
567
513
|
cli;
|
|
568
514
|
};
|
|
569
|
-
var EllipsisEnvironmentsDefaults = class {
|
|
570
|
-
constructor(transport) {
|
|
571
|
-
this.transport = transport;
|
|
572
|
-
}
|
|
573
|
-
transport;
|
|
574
|
-
/**
|
|
575
|
-
* Delete Environment Default
|
|
576
|
-
*
|
|
577
|
-
* Clear a default environment.
|
|
578
|
-
*
|
|
579
|
-
* Addressed by rung: the account rung (repository omitted) or a
|
|
580
|
-
* repository rung. Refused for sandbox tokens.
|
|
581
|
-
*/
|
|
582
|
-
async delete(options = {}) {
|
|
583
|
-
const path = "/v1/environments/defaults";
|
|
584
|
-
const query = buildQuery({ repository: options.repository });
|
|
585
|
-
await this.transport.request("DELETE", path, { query });
|
|
586
|
-
}
|
|
587
|
-
/**
|
|
588
|
-
* List Environment Defaults
|
|
589
|
-
*
|
|
590
|
-
* Get the default environments.
|
|
591
|
-
*
|
|
592
|
-
* The account-wide default and the per-repository defaults, as
|
|
593
|
-
* environment ids. Repo rungs are keyed "owner/name".
|
|
594
|
-
*/
|
|
595
|
-
async list() {
|
|
596
|
-
const path = "/v1/environments/defaults";
|
|
597
|
-
return await this.transport.request("GET", path);
|
|
598
|
-
}
|
|
599
|
-
/**
|
|
600
|
-
* Put Environment Default
|
|
601
|
-
*
|
|
602
|
-
* Set a default environment.
|
|
603
|
-
*
|
|
604
|
-
* Addressed by rung: the account rung (repository omitted) or a
|
|
605
|
-
* repository rung ("owner/name"); the environment by id or name.
|
|
606
|
-
* Returns the full resulting ladder. Refused for sandbox tokens.
|
|
607
|
-
*/
|
|
608
|
-
async set(options) {
|
|
609
|
-
const path = "/v1/environments/defaults";
|
|
610
|
-
const body = buildBody({ environment: options.environment, repository: options.repository });
|
|
611
|
-
return await this.transport.request("PUT", path, { body });
|
|
612
|
-
}
|
|
613
|
-
};
|
|
614
515
|
var EllipsisEnvironments = class {
|
|
615
516
|
constructor(transport) {
|
|
616
517
|
this.transport = transport;
|
|
617
|
-
this.defaults = new EllipsisEnvironmentsDefaults(transport);
|
|
618
518
|
}
|
|
619
519
|
transport;
|
|
620
|
-
defaults;
|
|
621
520
|
/**
|
|
622
521
|
* Create Environment
|
|
623
522
|
*
|
|
@@ -853,7 +752,7 @@ var EllipsisIntegrations = class {
|
|
|
853
752
|
sentry;
|
|
854
753
|
slack;
|
|
855
754
|
/**
|
|
856
|
-
*
|
|
755
|
+
* List Integrations
|
|
857
756
|
*
|
|
858
757
|
* List connected integrations.
|
|
859
758
|
*
|
|
@@ -1064,7 +963,7 @@ var EllipsisSecrets = class {
|
|
|
1064
963
|
return await this.transport.request("GET", path);
|
|
1065
964
|
}
|
|
1066
965
|
/**
|
|
1067
|
-
*
|
|
966
|
+
* Set Secrets
|
|
1068
967
|
*
|
|
1069
968
|
* Upsert secrets.
|
|
1070
969
|
*
|
|
@@ -1094,8 +993,7 @@ var EllipsisSessions = class {
|
|
|
1094
993
|
* instructions + the config's own instructions).
|
|
1095
994
|
*
|
|
1096
995
|
* Per execution because each cold wake persists its own launch
|
|
1097
|
-
* config (a config edit
|
|
1098
|
-
* it).
|
|
996
|
+
* config (a config edit between wakes changes it).
|
|
1099
997
|
*/
|
|
1100
998
|
async executions(session_id) {
|
|
1101
999
|
const path = `/v1/sessions/${enc(session_id)}/executions`;
|
|
@@ -1206,22 +1104,7 @@ var EllipsisSessions = class {
|
|
|
1206
1104
|
);
|
|
1207
1105
|
}
|
|
1208
1106
|
/**
|
|
1209
|
-
*
|
|
1210
|
-
*
|
|
1211
|
-
* Replay a session as a new session.
|
|
1212
|
-
*
|
|
1213
|
-
* Reuses the original config snapshot unless config_id is given,
|
|
1214
|
-
* and accepts the same config_override as session start — e.g.
|
|
1215
|
-
* {"claude": {"model": ...}} to replay the same input on a
|
|
1216
|
-
* different model.
|
|
1217
|
-
*/
|
|
1218
|
-
async replay(session_id, options = {}) {
|
|
1219
|
-
const path = `/v1/sessions/${enc(session_id)}/replay`;
|
|
1220
|
-
const body = buildBody({ config_id: options.config_id, override: options.override, prompt: options.prompt });
|
|
1221
|
-
return await this.transport.request("POST", path, { body });
|
|
1222
|
-
}
|
|
1223
|
-
/**
|
|
1224
|
-
* Search Sessions
|
|
1107
|
+
* Search Agent Sessions
|
|
1225
1108
|
*
|
|
1226
1109
|
* Search sessions over steps, recaps, and pull requests.
|
|
1227
1110
|
*
|
|
@@ -1258,17 +1141,18 @@ var EllipsisSessions = class {
|
|
|
1258
1141
|
*
|
|
1259
1142
|
* Start a cloud agent session.
|
|
1260
1143
|
*
|
|
1261
|
-
*
|
|
1262
|
-
* config;
|
|
1263
|
-
*
|
|
1144
|
+
* The base is `from_config_id` (an id or an agent name) or, omitted,
|
|
1145
|
+
* the bare ad-hoc config; every AgentConfig key on the request
|
|
1146
|
+
* deep-merges on top, so the body is both the pointer and the
|
|
1147
|
+
* per-session override. `prompt` is the first message; omit it and
|
|
1264
1148
|
* the session starts idle, waiting for one. 400 when
|
|
1265
|
-
* interactive=false and there is no prompt or input. 422
|
|
1266
|
-
* agent declares an input schema and the request's input
|
|
1267
|
-
* or invalid.
|
|
1149
|
+
* ellipsis.interactive=false and there is no prompt or input. 422
|
|
1150
|
+
* when the agent declares an input schema and the request's input
|
|
1151
|
+
* is absent or invalid.
|
|
1268
1152
|
*/
|
|
1269
1153
|
async start(options = {}) {
|
|
1270
1154
|
const path = "/v1/sessions";
|
|
1271
|
-
const body = buildBody({
|
|
1155
|
+
const body = buildBody({ budget: options.budget, claude: options.claude, codex: options.codex, ellipsis: options.ellipsis, environment: options.environment, from_config_id: options.from_config_id, input: options.input, output: options.output, permissions: options.permissions, prompt: options.prompt, skills: options.skills });
|
|
1272
1156
|
return await this.transport.request("POST", path, { body });
|
|
1273
1157
|
}
|
|
1274
1158
|
/**
|
|
@@ -1295,6 +1179,47 @@ var EllipsisSessions = class {
|
|
|
1295
1179
|
return new SessionHandle(this, response.session);
|
|
1296
1180
|
}
|
|
1297
1181
|
};
|
|
1182
|
+
var EllipsisSettingsSessions = class {
|
|
1183
|
+
constructor(transport) {
|
|
1184
|
+
this.transport = transport;
|
|
1185
|
+
}
|
|
1186
|
+
transport;
|
|
1187
|
+
/**
|
|
1188
|
+
* Get Session Defaults
|
|
1189
|
+
*
|
|
1190
|
+
* Get the account-wide session defaults.
|
|
1191
|
+
*
|
|
1192
|
+
* Today one setting: the default model every session falls back to
|
|
1193
|
+
* when neither its request nor its agent config names one.
|
|
1194
|
+
*/
|
|
1195
|
+
async getDefaults() {
|
|
1196
|
+
const path = "/v1/settings/sessions/defaults";
|
|
1197
|
+
return await this.transport.request("GET", path);
|
|
1198
|
+
}
|
|
1199
|
+
/**
|
|
1200
|
+
* Set Session Defaults
|
|
1201
|
+
*
|
|
1202
|
+
* Set the account-wide session defaults.
|
|
1203
|
+
*
|
|
1204
|
+
* `model` accepts an alias or canonical id and is stored canonical;
|
|
1205
|
+
* null clears it (sessions then fall back to the platform default).
|
|
1206
|
+
* Refused for sandbox tokens (potentially prompt-injected code must
|
|
1207
|
+
* not repoint the account's default model).
|
|
1208
|
+
*/
|
|
1209
|
+
async setDefaults(options = {}) {
|
|
1210
|
+
const path = "/v1/settings/sessions/defaults";
|
|
1211
|
+
const body = buildBody({ model: options.model });
|
|
1212
|
+
return await this.transport.request("PUT", path, { body });
|
|
1213
|
+
}
|
|
1214
|
+
};
|
|
1215
|
+
var EllipsisSettings = class {
|
|
1216
|
+
constructor(transport) {
|
|
1217
|
+
this.transport = transport;
|
|
1218
|
+
this.sessions = new EllipsisSettingsSessions(transport);
|
|
1219
|
+
}
|
|
1220
|
+
transport;
|
|
1221
|
+
sessions;
|
|
1222
|
+
};
|
|
1298
1223
|
var Ellipsis = class {
|
|
1299
1224
|
transport;
|
|
1300
1225
|
agents;
|
|
@@ -1309,6 +1234,7 @@ var Ellipsis = class {
|
|
|
1309
1234
|
reviews;
|
|
1310
1235
|
secrets;
|
|
1311
1236
|
sessions;
|
|
1237
|
+
settings;
|
|
1312
1238
|
constructor(options) {
|
|
1313
1239
|
this.transport = new Transport(options);
|
|
1314
1240
|
this.agents = new EllipsisAgents(this.transport);
|
|
@@ -1323,6 +1249,7 @@ var Ellipsis = class {
|
|
|
1323
1249
|
this.reviews = new EllipsisReviews(this.transport);
|
|
1324
1250
|
this.secrets = new EllipsisSecrets(this.transport);
|
|
1325
1251
|
this.sessions = new EllipsisSessions(this.transport);
|
|
1252
|
+
this.settings = new EllipsisSettings(this.transport);
|
|
1326
1253
|
}
|
|
1327
1254
|
/**
|
|
1328
1255
|
* Get Budget
|
|
@@ -1334,7 +1261,7 @@ var Ellipsis = class {
|
|
|
1334
1261
|
return await this.transport.request("GET", path);
|
|
1335
1262
|
}
|
|
1336
1263
|
/**
|
|
1337
|
-
*
|
|
1264
|
+
* Current Identity
|
|
1338
1265
|
*
|
|
1339
1266
|
* Return the identity behind the caller's credential.
|
|
1340
1267
|
*/
|
|
@@ -1343,7 +1270,7 @@ var Ellipsis = class {
|
|
|
1343
1270
|
return await this.transport.request("GET", path);
|
|
1344
1271
|
}
|
|
1345
1272
|
/**
|
|
1346
|
-
* Get Usage
|
|
1273
|
+
* Get Usage
|
|
1347
1274
|
*
|
|
1348
1275
|
* Return the caller's usage dashboard data.
|
|
1349
1276
|
*/
|
package/dist/store/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Z as SessionRecord, aa as CodexFileChangeItem, b as CodexEvent, ab as CodexMcpToolCallItem, x as SdkRecord, K as Session, V as SessionMessage, a7 as StreamFrame } from '../types
|
|
1
|
+
import { Z as SessionRecord, aa as CodexFileChangeItem, b as CodexEvent, ab as CodexMcpToolCallItem, x as SdkRecord, K as Session, V as SessionMessage, a7 as StreamFrame } from '../types-BLSh1Px1.js';
|
|
2
2
|
|
|
3
3
|
interface ChatToolNode {
|
|
4
4
|
key: string;
|
package/dist/stream/index.d.ts
CHANGED