@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.js
CHANGED
|
@@ -261,7 +261,7 @@ var EllipsisAgentsConfigs = class {
|
|
|
261
261
|
* another live agent already holds the name.
|
|
262
262
|
*/
|
|
263
263
|
async create(options = {}) {
|
|
264
|
-
const path = "/agents/configs";
|
|
264
|
+
const path = "/v1/agents/configs";
|
|
265
265
|
const body = buildBody({ config: options.config, path: options.path, repository: options.repository, template_id: options.template_id });
|
|
266
266
|
return await this.transport.request("POST", path, { body });
|
|
267
267
|
}
|
|
@@ -276,7 +276,7 @@ var EllipsisAgentsConfigs = class {
|
|
|
276
276
|
* repository.
|
|
277
277
|
*/
|
|
278
278
|
async delete(config_id) {
|
|
279
|
-
const path = `/agents/configs/${enc(config_id)}`;
|
|
279
|
+
const path = `/v1/agents/configs/${enc(config_id)}`;
|
|
280
280
|
await this.transport.request("DELETE", path);
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
@@ -285,7 +285,7 @@ var EllipsisAgentsConfigs = class {
|
|
|
285
285
|
* Return one saved agent config, by id or by the agent's name.
|
|
286
286
|
*/
|
|
287
287
|
async get(config_id) {
|
|
288
|
-
const path = `/agents/configs/${enc(config_id)}`;
|
|
288
|
+
const path = `/v1/agents/configs/${enc(config_id)}`;
|
|
289
289
|
return await this.transport.request("GET", path);
|
|
290
290
|
}
|
|
291
291
|
/**
|
|
@@ -299,7 +299,7 @@ var EllipsisAgentsConfigs = class {
|
|
|
299
299
|
* if the pull request is never merged.
|
|
300
300
|
*/
|
|
301
301
|
async link(config_id, options) {
|
|
302
|
-
const path = `/agents/configs/${enc(config_id)}/link`;
|
|
302
|
+
const path = `/v1/agents/configs/${enc(config_id)}/link`;
|
|
303
303
|
const body = buildBody({ path: options.path, repository: options.repository });
|
|
304
304
|
return await this.transport.request("POST", path, { body });
|
|
305
305
|
}
|
|
@@ -309,7 +309,7 @@ var EllipsisAgentsConfigs = class {
|
|
|
309
309
|
* List saved agent configs.
|
|
310
310
|
*/
|
|
311
311
|
async list() {
|
|
312
|
-
const path = "/agents/configs";
|
|
312
|
+
const path = "/v1/agents/configs";
|
|
313
313
|
return await this.transport.request("GET", path);
|
|
314
314
|
}
|
|
315
315
|
/**
|
|
@@ -322,7 +322,7 @@ var EllipsisAgentsConfigs = class {
|
|
|
322
322
|
* delete it whenever you like.
|
|
323
323
|
*/
|
|
324
324
|
async unlink(config_id) {
|
|
325
|
-
const path = `/agents/configs/${enc(config_id)}/unlink`;
|
|
325
|
+
const path = `/v1/agents/configs/${enc(config_id)}/unlink`;
|
|
326
326
|
return await this.transport.request("POST", path);
|
|
327
327
|
}
|
|
328
328
|
/**
|
|
@@ -336,7 +336,7 @@ var EllipsisAgentsConfigs = class {
|
|
|
336
336
|
* revert the change — unlink it first to take ownership.
|
|
337
337
|
*/
|
|
338
338
|
async update(config_id, options) {
|
|
339
|
-
const path = `/agents/configs/${enc(config_id)}`;
|
|
339
|
+
const path = `/v1/agents/configs/${enc(config_id)}`;
|
|
340
340
|
const body = buildBody({ config: options.config });
|
|
341
341
|
return await this.transport.request("PUT", path, { body });
|
|
342
342
|
}
|
|
@@ -357,22 +357,21 @@ var EllipsisAgentsDefaults = class {
|
|
|
357
357
|
* Refused for sandbox tokens.
|
|
358
358
|
*/
|
|
359
359
|
async delete(options = {}) {
|
|
360
|
-
const path = "/agents/defaults";
|
|
360
|
+
const path = "/v1/agents/defaults";
|
|
361
361
|
const query = buildQuery({ repository: options.repository });
|
|
362
362
|
await this.transport.request("DELETE", path, { query });
|
|
363
363
|
}
|
|
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
|
-
const path = "/agents/defaults";
|
|
374
|
+
const path = "/v1/agents/defaults";
|
|
376
375
|
return await this.transport.request("GET", path);
|
|
377
376
|
}
|
|
378
377
|
/**
|
|
@@ -382,14 +381,14 @@ 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
|
|
389
388
|
* foreign repository is a 404.
|
|
390
389
|
*/
|
|
391
390
|
async set(options) {
|
|
392
|
-
const path = "/agents/defaults";
|
|
391
|
+
const path = "/v1/agents/defaults";
|
|
393
392
|
const body = buildBody({ config_id: options.config_id, repository: options.repository });
|
|
394
393
|
return await this.transport.request("PUT", path, { body });
|
|
395
394
|
}
|
|
@@ -405,7 +404,7 @@ var EllipsisAgentsTemplates = class {
|
|
|
405
404
|
* Return one built-in agent template by slug.
|
|
406
405
|
*/
|
|
407
406
|
async get(template_id) {
|
|
408
|
-
const path = `/agents/templates/${enc(template_id)}`;
|
|
407
|
+
const path = `/v1/agents/templates/${enc(template_id)}`;
|
|
409
408
|
return await this.transport.request("GET", path);
|
|
410
409
|
}
|
|
411
410
|
/**
|
|
@@ -417,7 +416,7 @@ var EllipsisAgentsTemplates = class {
|
|
|
417
416
|
* product content shared by the dashboard, landing site, and CLI.
|
|
418
417
|
*/
|
|
419
418
|
async list() {
|
|
420
|
-
const path = "/agents/templates";
|
|
419
|
+
const path = "/v1/agents/templates";
|
|
421
420
|
return await this.transport.request("GET", path);
|
|
422
421
|
}
|
|
423
422
|
};
|
|
@@ -446,7 +445,7 @@ var EllipsisAlerts = class {
|
|
|
446
445
|
* 409 when the alert is not open; 404 when it doesn't exist.
|
|
447
446
|
*/
|
|
448
447
|
async dismiss(alert_id) {
|
|
449
|
-
const path = `/alerts/${enc(alert_id)}/dismiss`;
|
|
448
|
+
const path = `/v1/alerts/${enc(alert_id)}/dismiss`;
|
|
450
449
|
return await this.transport.request("POST", path);
|
|
451
450
|
}
|
|
452
451
|
/**
|
|
@@ -457,7 +456,7 @@ var EllipsisAlerts = class {
|
|
|
457
456
|
* 404 if it doesn't exist or belongs to another organization.
|
|
458
457
|
*/
|
|
459
458
|
async get(alert_id) {
|
|
460
|
-
const path = `/alerts/${enc(alert_id)}`;
|
|
459
|
+
const path = `/v1/alerts/${enc(alert_id)}`;
|
|
461
460
|
return await this.transport.request("GET", path);
|
|
462
461
|
}
|
|
463
462
|
/**
|
|
@@ -471,7 +470,7 @@ var EllipsisAlerts = class {
|
|
|
471
470
|
* this org near budget?" mid-task.
|
|
472
471
|
*/
|
|
473
472
|
async list(options = {}) {
|
|
474
|
-
const path = "/alerts";
|
|
473
|
+
const path = "/v1/alerts";
|
|
475
474
|
const query = buildQuery({ status: options.status, source: options.source, limit: options.limit, cursor: options.cursor });
|
|
476
475
|
const response = await this.transport.request("GET", path, { query });
|
|
477
476
|
return new Page(
|
|
@@ -500,7 +499,7 @@ var EllipsisAnalytics = class {
|
|
|
500
499
|
* no secrets.
|
|
501
500
|
*/
|
|
502
501
|
async metrics(options = {}) {
|
|
503
|
-
const path = "/analytics/metrics";
|
|
502
|
+
const path = "/v1/analytics/metrics";
|
|
504
503
|
const query = buildQuery({ days: options.days, start: options.start, end: options.end, repo: options.repo, author: options.author, account_type: options.account_type, status: options.status });
|
|
505
504
|
return await this.transport.request("GET", path, { query });
|
|
506
505
|
}
|
|
@@ -513,7 +512,7 @@ var EllipsisAnalytics = class {
|
|
|
513
512
|
* 30 days).
|
|
514
513
|
*/
|
|
515
514
|
async pullRequests(options = {}) {
|
|
516
|
-
const path = "/analytics/pull-requests";
|
|
515
|
+
const path = "/v1/analytics/pull-requests";
|
|
517
516
|
const query = buildQuery({ days: options.days, start: options.start, end: options.end, account_type: options.account_type, repository_id: options.repository_id, author_id: options.author_id, status: options.status });
|
|
518
517
|
return await this.transport.request("GET", path, { query });
|
|
519
518
|
}
|
|
@@ -528,7 +527,7 @@ var EllipsisAnalytics = class {
|
|
|
528
527
|
* (default: the last 30 days).
|
|
529
528
|
*/
|
|
530
529
|
async reviews(options = {}) {
|
|
531
|
-
const path = "/analytics/reviews";
|
|
530
|
+
const path = "/v1/analytics/reviews";
|
|
532
531
|
const query = buildQuery({ days: options.days, start: options.start, end: options.end, repo: options.repo, author: options.author, account_type: options.account_type, review_state: options.review_state });
|
|
533
532
|
return await this.transport.request("GET", path, { query });
|
|
534
533
|
}
|
|
@@ -546,7 +545,7 @@ var EllipsisAuthCli = class {
|
|
|
546
545
|
* Unauthenticated; the device code identifies the flow.
|
|
547
546
|
*/
|
|
548
547
|
async poll(options) {
|
|
549
|
-
const path = "/auth/cli/poll";
|
|
548
|
+
const path = "/v1/auth/cli/poll";
|
|
550
549
|
const body = buildBody({ device_code: options.device_code });
|
|
551
550
|
return await this.transport.request("POST", path, { body });
|
|
552
551
|
}
|
|
@@ -560,7 +559,7 @@ var EllipsisAuthCli = class {
|
|
|
560
559
|
* dashboard.
|
|
561
560
|
*/
|
|
562
561
|
async start() {
|
|
563
|
-
const path = "/auth/cli/start";
|
|
562
|
+
const path = "/v1/auth/cli/start";
|
|
564
563
|
return await this.transport.request("POST", path);
|
|
565
564
|
}
|
|
566
565
|
};
|
|
@@ -589,7 +588,7 @@ var EllipsisFiles = class {
|
|
|
589
588
|
* dashboard URL so callers never hard-code URL shapes.
|
|
590
589
|
*/
|
|
591
590
|
async create(options) {
|
|
592
|
-
const path = "/files";
|
|
591
|
+
const path = "/v1/files";
|
|
593
592
|
const body = buildBody({ content_type: options.content_type, data_b64: options.data_b64, filename: options.filename });
|
|
594
593
|
return await this.transport.request("POST", path, { body });
|
|
595
594
|
}
|
|
@@ -606,7 +605,7 @@ var EllipsisFiles = class {
|
|
|
606
605
|
* keys and user tokens may delete.
|
|
607
606
|
*/
|
|
608
607
|
async delete(file_id) {
|
|
609
|
-
const path = `/files/${enc(file_id)}`;
|
|
608
|
+
const path = `/v1/files/${enc(file_id)}`;
|
|
610
609
|
await this.transport.request("DELETE", path);
|
|
611
610
|
}
|
|
612
611
|
/**
|
|
@@ -622,7 +621,7 @@ var EllipsisFiles = class {
|
|
|
622
621
|
* `agent file get` wraps exactly that two-step.
|
|
623
622
|
*/
|
|
624
623
|
async get(file_id) {
|
|
625
|
-
const path = `/files/${enc(file_id)}`;
|
|
624
|
+
const path = `/v1/files/${enc(file_id)}`;
|
|
626
625
|
return await this.transport.request("GET", path);
|
|
627
626
|
}
|
|
628
627
|
/**
|
|
@@ -634,7 +633,7 @@ var EllipsisFiles = class {
|
|
|
634
633
|
* per row. session_id scopes the list to one run's uploads.
|
|
635
634
|
*/
|
|
636
635
|
async list(options = {}) {
|
|
637
|
-
const path = "/files";
|
|
636
|
+
const path = "/v1/files";
|
|
638
637
|
const query = buildQuery({ session_id: options.session_id, limit: options.limit, cursor: options.cursor });
|
|
639
638
|
const response = await this.transport.request("GET", path, { query });
|
|
640
639
|
return new Page(
|
|
@@ -661,7 +660,7 @@ var EllipsisIntegrationsGithub = class {
|
|
|
661
660
|
* link exists, and /slack/members carries the reverse link.
|
|
662
661
|
*/
|
|
663
662
|
async members() {
|
|
664
|
-
const path = "/integrations/github/members";
|
|
663
|
+
const path = "/v1/integrations/github/members";
|
|
665
664
|
return await this.transport.request("GET", path);
|
|
666
665
|
}
|
|
667
666
|
/**
|
|
@@ -670,7 +669,7 @@ var EllipsisIntegrationsGithub = class {
|
|
|
670
669
|
* List GitHub repositories connected to the installation.
|
|
671
670
|
*/
|
|
672
671
|
async repos() {
|
|
673
|
-
const path = "/integrations/github/repos";
|
|
672
|
+
const path = "/v1/integrations/github/repos";
|
|
674
673
|
return await this.transport.request("GET", path);
|
|
675
674
|
}
|
|
676
675
|
};
|
|
@@ -685,7 +684,7 @@ var EllipsisIntegrationsLinear = class {
|
|
|
685
684
|
* List the teams of the connected Linear workspace.
|
|
686
685
|
*/
|
|
687
686
|
async teams() {
|
|
688
|
-
const path = "/integrations/linear/teams";
|
|
687
|
+
const path = "/v1/integrations/linear/teams";
|
|
689
688
|
return await this.transport.request("GET", path);
|
|
690
689
|
}
|
|
691
690
|
};
|
|
@@ -700,7 +699,7 @@ var EllipsisIntegrationsSentry = class {
|
|
|
700
699
|
* List the connected Sentry organizations.
|
|
701
700
|
*/
|
|
702
701
|
async organizations() {
|
|
703
|
-
const path = "/integrations/sentry/organizations";
|
|
702
|
+
const path = "/v1/integrations/sentry/organizations";
|
|
704
703
|
return await this.transport.request("GET", path);
|
|
705
704
|
}
|
|
706
705
|
};
|
|
@@ -716,7 +715,7 @@ var EllipsisIntegrationsSlack = class {
|
|
|
716
715
|
* live from the Slack API.
|
|
717
716
|
*/
|
|
718
717
|
async channels() {
|
|
719
|
-
const path = "/integrations/slack/channels";
|
|
718
|
+
const path = "/v1/integrations/slack/channels";
|
|
720
719
|
return await this.transport.request("GET", path);
|
|
721
720
|
}
|
|
722
721
|
/**
|
|
@@ -726,7 +725,7 @@ var EllipsisIntegrationsSlack = class {
|
|
|
726
725
|
* live from the Slack API.
|
|
727
726
|
*/
|
|
728
727
|
async members() {
|
|
729
|
-
const path = "/integrations/slack/members";
|
|
728
|
+
const path = "/v1/integrations/slack/members";
|
|
730
729
|
return await this.transport.request("GET", path);
|
|
731
730
|
}
|
|
732
731
|
};
|
|
@@ -756,7 +755,7 @@ var EllipsisIntegrations = class {
|
|
|
756
755
|
* responses never include OAuth tokens or any other secret.
|
|
757
756
|
*/
|
|
758
757
|
async list() {
|
|
759
|
-
const path = "/integrations";
|
|
758
|
+
const path = "/v1/integrations";
|
|
760
759
|
return await this.transport.request("GET", path);
|
|
761
760
|
}
|
|
762
761
|
};
|
|
@@ -779,7 +778,7 @@ var EllipsisMemories = class {
|
|
|
779
778
|
* correcting an existing memory is an explicit edit.
|
|
780
779
|
*/
|
|
781
780
|
async create(options) {
|
|
782
|
-
const path = "/memories";
|
|
781
|
+
const path = "/v1/memories";
|
|
783
782
|
const body = buildBody({ content: options.content, description: options.description, path: options.path });
|
|
784
783
|
return await this.transport.request("POST", path, { body });
|
|
785
784
|
}
|
|
@@ -793,7 +792,7 @@ var EllipsisMemories = class {
|
|
|
793
792
|
* the memory's history for forensics, not for an undo API.
|
|
794
793
|
*/
|
|
795
794
|
async delete(memory_id, options = {}) {
|
|
796
|
-
const path = `/memories/${enc(memory_id)}`;
|
|
795
|
+
const path = `/v1/memories/${enc(memory_id)}`;
|
|
797
796
|
const query = buildQuery({ if_sha256: options.if_sha256 });
|
|
798
797
|
await this.transport.request("DELETE", path, { query });
|
|
799
798
|
}
|
|
@@ -810,7 +809,7 @@ var EllipsisMemories = class {
|
|
|
810
809
|
* a 409 instead of silently overwriting it.
|
|
811
810
|
*/
|
|
812
811
|
async edit(memory_id, options = {}) {
|
|
813
|
-
const path = `/memories/${enc(memory_id)}`;
|
|
812
|
+
const path = `/v1/memories/${enc(memory_id)}`;
|
|
814
813
|
const body = buildBody({ content: options.content, description: options.description, if_sha256: options.if_sha256 });
|
|
815
814
|
return await this.transport.request("PUT", path, { body });
|
|
816
815
|
}
|
|
@@ -822,7 +821,7 @@ var EllipsisMemories = class {
|
|
|
822
821
|
* The id comes from the index returned by listing memories.
|
|
823
822
|
*/
|
|
824
823
|
async get(memory_id) {
|
|
825
|
-
const path = `/memories/${enc(memory_id)}`;
|
|
824
|
+
const path = `/v1/memories/${enc(memory_id)}`;
|
|
826
825
|
return await this.transport.request("GET", path);
|
|
827
826
|
}
|
|
828
827
|
/**
|
|
@@ -836,7 +835,7 @@ var EllipsisMemories = class {
|
|
|
836
835
|
* the index, then fetch the ids whose content you want.
|
|
837
836
|
*/
|
|
838
837
|
async list(options = {}) {
|
|
839
|
-
const path = "/memories";
|
|
838
|
+
const path = "/v1/memories";
|
|
840
839
|
const query = buildQuery({ prefix: options.prefix });
|
|
841
840
|
return await this.transport.request("GET", path, { query });
|
|
842
841
|
}
|
|
@@ -859,7 +858,7 @@ var EllipsisModels = class {
|
|
|
859
858
|
* global.
|
|
860
859
|
*/
|
|
861
860
|
async list() {
|
|
862
|
-
const path = "/models";
|
|
861
|
+
const path = "/v1/models";
|
|
863
862
|
return await this.transport.request("GET", path);
|
|
864
863
|
}
|
|
865
864
|
};
|
|
@@ -884,7 +883,7 @@ var EllipsisReviews = class {
|
|
|
884
883
|
* itself is a pipeline rather than one process.
|
|
885
884
|
*/
|
|
886
885
|
async create(options) {
|
|
887
|
-
const path = "/reviews";
|
|
886
|
+
const path = "/v1/reviews";
|
|
888
887
|
const body = buildBody({ owner: options.owner, post: options.post, pull_request_number: options.pull_request_number, repo: options.repo, scope: options.scope });
|
|
889
888
|
return await this.transport.request("POST", path, { body });
|
|
890
889
|
}
|
|
@@ -901,7 +900,7 @@ var EllipsisReviews = class {
|
|
|
901
900
|
* streams a stage session and then re-fetches the review.
|
|
902
901
|
*/
|
|
903
902
|
async get(review_id) {
|
|
904
|
-
const path = `/reviews/${enc(review_id)}`;
|
|
903
|
+
const path = `/v1/reviews/${enc(review_id)}`;
|
|
905
904
|
return await this.transport.request("GET", path);
|
|
906
905
|
}
|
|
907
906
|
/**
|
|
@@ -915,7 +914,7 @@ var EllipsisReviews = class {
|
|
|
915
914
|
* me every review on this PR".
|
|
916
915
|
*/
|
|
917
916
|
async list(options = {}) {
|
|
918
|
-
const path = "/reviews";
|
|
917
|
+
const path = "/v1/reviews";
|
|
919
918
|
const query = buildQuery({ owner: options.owner, repo: options.repo, pull_request_number: options.pull_request_number, status: options.status, limit: options.limit, cursor: options.cursor });
|
|
920
919
|
const response = await this.transport.request("GET", path, { query });
|
|
921
920
|
return new Page(
|
|
@@ -939,7 +938,7 @@ var EllipsisSecrets = class {
|
|
|
939
938
|
* user token.
|
|
940
939
|
*/
|
|
941
940
|
async delete(name) {
|
|
942
|
-
const path = `/secrets/${enc(name)}`;
|
|
941
|
+
const path = `/v1/secrets/${enc(name)}`;
|
|
943
942
|
await this.transport.request("DELETE", path);
|
|
944
943
|
}
|
|
945
944
|
/**
|
|
@@ -951,7 +950,7 @@ var EllipsisSecrets = class {
|
|
|
951
950
|
* timestamps, never the stored value.
|
|
952
951
|
*/
|
|
953
952
|
async list() {
|
|
954
|
-
const path = "/secrets";
|
|
953
|
+
const path = "/v1/secrets";
|
|
955
954
|
return await this.transport.request("GET", path);
|
|
956
955
|
}
|
|
957
956
|
/**
|
|
@@ -965,7 +964,7 @@ var EllipsisSecrets = class {
|
|
|
965
964
|
* API key or user token.
|
|
966
965
|
*/
|
|
967
966
|
async set(options) {
|
|
968
|
-
const path = "/secrets";
|
|
967
|
+
const path = "/v1/secrets";
|
|
969
968
|
const body = buildBody({ secrets: options.secrets });
|
|
970
969
|
return await this.transport.request("PUT", path, { body });
|
|
971
970
|
}
|
|
@@ -989,7 +988,7 @@ var EllipsisSessions = class {
|
|
|
989
988
|
* it).
|
|
990
989
|
*/
|
|
991
990
|
async executions(session_id) {
|
|
992
|
-
const path = `/sessions/${enc(session_id)}/executions`;
|
|
991
|
+
const path = `/v1/sessions/${enc(session_id)}/executions`;
|
|
993
992
|
return await this.transport.request("GET", path);
|
|
994
993
|
}
|
|
995
994
|
/**
|
|
@@ -1007,7 +1006,7 @@ var EllipsisSessions = class {
|
|
|
1007
1006
|
* same data.
|
|
1008
1007
|
*/
|
|
1009
1008
|
async export(session_id) {
|
|
1010
|
-
const path = `/sessions/${enc(session_id)}/export`;
|
|
1009
|
+
const path = `/v1/sessions/${enc(session_id)}/export`;
|
|
1011
1010
|
return await this.transport.request("GET", path);
|
|
1012
1011
|
}
|
|
1013
1012
|
/**
|
|
@@ -1023,24 +1022,7 @@ var EllipsisSessions = class {
|
|
|
1023
1022
|
* live on the detail endpoints, not here.
|
|
1024
1023
|
*/
|
|
1025
1024
|
async get(session_id) {
|
|
1026
|
-
const path = `/sessions/${enc(session_id)}`;
|
|
1027
|
-
return await this.transport.request("GET", path);
|
|
1028
|
-
}
|
|
1029
|
-
/**
|
|
1030
|
-
* Get Agent Session Ide
|
|
1031
|
-
*
|
|
1032
|
-
* Return the IDE link for the session's sandbox.
|
|
1033
|
-
*
|
|
1034
|
-
* The membership-gated dashboard page, which performs the sandbox
|
|
1035
|
-
* proxy handoff itself.
|
|
1036
|
-
*
|
|
1037
|
-
* No credential is minted here — the URL grants nothing by
|
|
1038
|
-
* possession. 409 when the sandbox isn't running (send the
|
|
1039
|
-
* session a message to wake it first). Backs the `agent session
|
|
1040
|
-
* ide` CLI verb.
|
|
1041
|
-
*/
|
|
1042
|
-
async ide(session_id) {
|
|
1043
|
-
const path = `/sessions/${enc(session_id)}/ide`;
|
|
1025
|
+
const path = `/v1/sessions/${enc(session_id)}`;
|
|
1044
1026
|
return await this.transport.request("GET", path);
|
|
1045
1027
|
}
|
|
1046
1028
|
/**
|
|
@@ -1054,7 +1036,7 @@ var EllipsisSessions = class {
|
|
|
1054
1036
|
* Idempotent by transcript line uuid; tolerant of malformed lines.
|
|
1055
1037
|
*/
|
|
1056
1038
|
async ingestTranscript(session_id, options) {
|
|
1057
|
-
const path = `/sessions/${enc(session_id)}/transcript`;
|
|
1039
|
+
const path = `/v1/sessions/${enc(session_id)}/transcript`;
|
|
1058
1040
|
const body = buildBody({ lines: options.lines, offset: options.offset });
|
|
1059
1041
|
return await this.transport.request("POST", path, { body });
|
|
1060
1042
|
}
|
|
@@ -1068,7 +1050,7 @@ var EllipsisSessions = class {
|
|
|
1068
1050
|
* still going.
|
|
1069
1051
|
*/
|
|
1070
1052
|
async list(options = {}) {
|
|
1071
|
-
const path = "/sessions";
|
|
1053
|
+
const path = "/v1/sessions";
|
|
1072
1054
|
const query = buildQuery({ config_id: options.config_id, source: options.source, days: options.days, start: options.start, end: options.end, limit: options.limit, cursor: options.cursor, author_id: options.author_id, repo: options.repo, unfinished: options.unfinished });
|
|
1073
1055
|
const response = await this.transport.request("GET", path, { query });
|
|
1074
1056
|
return new Page(
|
|
@@ -1084,28 +1066,14 @@ var EllipsisSessions = class {
|
|
|
1084
1066
|
*
|
|
1085
1067
|
* The payload the agent submitted through its config-declared
|
|
1086
1068
|
* output.json_schema, as the raw JSON body with no envelope. 404
|
|
1087
|
-
* while the session is still running (poll GET /sessions/{id}),
|
|
1069
|
+
* while the session is still running (poll GET /v1/sessions/{id}),
|
|
1088
1070
|
* when the agent declares no output block, or when no execution
|
|
1089
1071
|
* produced output.
|
|
1090
1072
|
*/
|
|
1091
1073
|
async output(session_id) {
|
|
1092
|
-
const path = `/sessions/${enc(session_id)}/output`;
|
|
1074
|
+
const path = `/v1/sessions/${enc(session_id)}/output`;
|
|
1093
1075
|
await this.transport.request("GET", path);
|
|
1094
1076
|
}
|
|
1095
|
-
/**
|
|
1096
|
-
* Get Agent Session Port
|
|
1097
|
-
*
|
|
1098
|
-
* Return a preview link for a sandbox port.
|
|
1099
|
-
*
|
|
1100
|
-
* For a dev server running in the session's live sandbox: the
|
|
1101
|
-
* same dashboard page as the IDE, deep-linked to the port.
|
|
1102
|
-
*
|
|
1103
|
-
* Backs `agent session port`.
|
|
1104
|
-
*/
|
|
1105
|
-
async port(session_id, port) {
|
|
1106
|
-
const path = `/sessions/${enc(session_id)}/ports/${enc(String(port))}`;
|
|
1107
|
-
return await this.transport.request("GET", path);
|
|
1108
|
-
}
|
|
1109
1077
|
/**
|
|
1110
1078
|
* Get Agent Session Records
|
|
1111
1079
|
*
|
|
@@ -1115,11 +1083,10 @@ var EllipsisSessions = class {
|
|
|
1115
1083
|
* full retained transcript. Available to sandbox tokens too: an
|
|
1116
1084
|
* agent answering "did X look into Y?" needs to read the session
|
|
1117
1085
|
* it found via /sessions/search, and any org member sees the same
|
|
1118
|
-
* transcript in the dashboard
|
|
1119
|
-
* client-side before they are ever uploaded).
|
|
1086
|
+
* transcript in the dashboard.
|
|
1120
1087
|
*/
|
|
1121
1088
|
async records(session_id, options = {}) {
|
|
1122
|
-
const path = `/sessions/${enc(session_id)}/records`;
|
|
1089
|
+
const path = `/v1/sessions/${enc(session_id)}/records`;
|
|
1123
1090
|
const query = buildQuery({ cursor: options.cursor, limit: options.limit });
|
|
1124
1091
|
const response = await this.transport.request("GET", path, { query });
|
|
1125
1092
|
return new Page(
|
|
@@ -1139,7 +1106,7 @@ var EllipsisSessions = class {
|
|
|
1139
1106
|
* different model.
|
|
1140
1107
|
*/
|
|
1141
1108
|
async replay(session_id, options = {}) {
|
|
1142
|
-
const path = `/sessions/${enc(session_id)}/replay`;
|
|
1109
|
+
const path = `/v1/sessions/${enc(session_id)}/replay`;
|
|
1143
1110
|
const body = buildBody({ config_id: options.config_id, config_override: options.config_override, config_override_yaml: options.config_override_yaml, prompt: options.prompt });
|
|
1144
1111
|
return await this.transport.request("POST", path, { body });
|
|
1145
1112
|
}
|
|
@@ -1157,7 +1124,7 @@ var EllipsisSessions = class {
|
|
|
1157
1124
|
* (transcript).
|
|
1158
1125
|
*/
|
|
1159
1126
|
async search(options = {}) {
|
|
1160
|
-
const path = "/sessions/search";
|
|
1127
|
+
const path = "/v1/sessions/search";
|
|
1161
1128
|
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 });
|
|
1162
1129
|
return await this.transport.request("GET", path, { query });
|
|
1163
1130
|
}
|
|
@@ -1172,7 +1139,7 @@ var EllipsisSessions = class {
|
|
|
1172
1139
|
* message.
|
|
1173
1140
|
*/
|
|
1174
1141
|
async sendMessage(session_id, options) {
|
|
1175
|
-
const path = `/sessions/${enc(session_id)}/messages`;
|
|
1142
|
+
const path = `/v1/sessions/${enc(session_id)}/messages`;
|
|
1176
1143
|
const body = buildBody({ idempotency_key: options.idempotency_key, message: options.message });
|
|
1177
1144
|
return await this.transport.request("POST", path, { body });
|
|
1178
1145
|
}
|
|
@@ -1185,13 +1152,12 @@ var EllipsisSessions = class {
|
|
|
1185
1152
|
* config, or
|
|
1186
1153
|
* template_id; with none, the account's default-config ladder
|
|
1187
1154
|
* resolves the config. 400 when idle_start is combined with
|
|
1188
|
-
* prompt
|
|
1189
|
-
* any config source or override. 422 when the agent declares an
|
|
1155
|
+
* prompt or input. 422 when the agent declares an
|
|
1190
1156
|
* input schema and the request's input is absent or invalid.
|
|
1191
1157
|
*/
|
|
1192
1158
|
async start(options = {}) {
|
|
1193
|
-
const path = "/sessions";
|
|
1194
|
-
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,
|
|
1159
|
+
const path = "/v1/sessions";
|
|
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 });
|
|
1195
1161
|
return await this.transport.request("POST", path, { body });
|
|
1196
1162
|
}
|
|
1197
1163
|
/**
|
|
@@ -1203,23 +1169,9 @@ var EllipsisSessions = class {
|
|
|
1203
1169
|
* to a GitHub account.
|
|
1204
1170
|
*/
|
|
1205
1171
|
async stop(session_id) {
|
|
1206
|
-
const path = `/sessions/${enc(session_id)}/stop`;
|
|
1172
|
+
const path = `/v1/sessions/${enc(session_id)}/stop`;
|
|
1207
1173
|
return await this.transport.request("POST", path);
|
|
1208
1174
|
}
|
|
1209
|
-
/**
|
|
1210
|
-
* Sync Agent Session
|
|
1211
|
-
*
|
|
1212
|
-
* Sync a local Claude Code session to Ellipsis.
|
|
1213
|
-
*
|
|
1214
|
-
* Requires a user token (device-flow `agent login`): the user is
|
|
1215
|
-
* part of the sync's idempotency key, so API keys and sandbox
|
|
1216
|
-
* tokens are rejected with a 403 rather than silently attributed.
|
|
1217
|
-
*/
|
|
1218
|
-
async sync(options) {
|
|
1219
|
-
const path = "/sessions/sync";
|
|
1220
|
-
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 });
|
|
1221
|
-
return await this.transport.request("POST", path, { body });
|
|
1222
|
-
}
|
|
1223
1175
|
// ---- lifecycle sugar (hand-written layer over the generated core) ----
|
|
1224
1176
|
/** Start a session and return a handle over it. */
|
|
1225
1177
|
async run(options) {
|
|
@@ -1265,7 +1217,7 @@ var Ellipsis = class {
|
|
|
1265
1217
|
* Return the caller's current budget summary.
|
|
1266
1218
|
*/
|
|
1267
1219
|
async budget() {
|
|
1268
|
-
const path = "/budget";
|
|
1220
|
+
const path = "/v1/budget";
|
|
1269
1221
|
return await this.transport.request("GET", path);
|
|
1270
1222
|
}
|
|
1271
1223
|
/**
|
|
@@ -1274,7 +1226,7 @@ var Ellipsis = class {
|
|
|
1274
1226
|
* Return the identity behind the caller's credential.
|
|
1275
1227
|
*/
|
|
1276
1228
|
async me() {
|
|
1277
|
-
const path = "/me";
|
|
1229
|
+
const path = "/v1/me";
|
|
1278
1230
|
return await this.transport.request("GET", path);
|
|
1279
1231
|
}
|
|
1280
1232
|
/**
|
|
@@ -1283,7 +1235,7 @@ var Ellipsis = class {
|
|
|
1283
1235
|
* Return the caller's usage dashboard data.
|
|
1284
1236
|
*/
|
|
1285
1237
|
async usage() {
|
|
1286
|
-
const path = "/usage";
|
|
1238
|
+
const path = "/v1/usage";
|
|
1287
1239
|
return await this.transport.request("GET", path);
|
|
1288
1240
|
}
|
|
1289
1241
|
};
|
package/dist/store/index.d.ts
CHANGED
package/dist/stream/index.d.ts
CHANGED