@ellipsis-dev/sdk 0.11.0 → 0.12.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 CHANGED
@@ -1,5 +1,5 @@
1
- import { c as components } from './types-DDQQ1Yfh.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-DDQQ1Yfh.js';
1
+ import { c as components } from './types-BN5YExTm.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-BN5YExTm.js';
3
3
 
4
4
  interface CursorResponse {
5
5
  has_more: boolean;
@@ -717,20 +717,6 @@ declare class EllipsisSessions {
717
717
  * live on the detail endpoints, not here.
718
718
  */
719
719
  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
720
  /**
735
721
  * Ingest Agent Session Transcript
736
722
  *
@@ -773,22 +759,11 @@ declare class EllipsisSessions {
773
759
  *
774
760
  * The payload the agent submitted through its config-declared
775
761
  * output.json_schema, as the raw JSON body with no envelope. 404
776
- * while the session is still running (poll GET /sessions/{id}),
762
+ * while the session is still running (poll GET /v1/sessions/{id}),
777
763
  * when the agent declares no output block, or when no execution
778
764
  * produced output.
779
765
  */
780
766
  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
767
  /**
793
768
  * Get Agent Session Records
794
769
  *
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,7 +357,7 @@ 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
  }
@@ -372,7 +372,7 @@ var EllipsisAgentsDefaults = class {
372
372
  * omitted, a repo rung is "owner/name" — never by row id.
373
373
  */
374
374
  async list() {
375
- const path = "/agents/defaults";
375
+ const path = "/v1/agents/defaults";
376
376
  return await this.transport.request("GET", path);
377
377
  }
378
378
  /**
@@ -389,7 +389,7 @@ var EllipsisAgentsDefaults = class {
389
389
  * foreign repository is a 404.
390
390
  */
391
391
  async set(options) {
392
- const path = "/agents/defaults";
392
+ const path = "/v1/agents/defaults";
393
393
  const body = buildBody({ config_id: options.config_id, repository: options.repository });
394
394
  return await this.transport.request("PUT", path, { body });
395
395
  }
@@ -405,7 +405,7 @@ var EllipsisAgentsTemplates = class {
405
405
  * Return one built-in agent template by slug.
406
406
  */
407
407
  async get(template_id) {
408
- const path = `/agents/templates/${enc(template_id)}`;
408
+ const path = `/v1/agents/templates/${enc(template_id)}`;
409
409
  return await this.transport.request("GET", path);
410
410
  }
411
411
  /**
@@ -417,7 +417,7 @@ var EllipsisAgentsTemplates = class {
417
417
  * product content shared by the dashboard, landing site, and CLI.
418
418
  */
419
419
  async list() {
420
- const path = "/agents/templates";
420
+ const path = "/v1/agents/templates";
421
421
  return await this.transport.request("GET", path);
422
422
  }
423
423
  };
@@ -446,7 +446,7 @@ var EllipsisAlerts = class {
446
446
  * 409 when the alert is not open; 404 when it doesn't exist.
447
447
  */
448
448
  async dismiss(alert_id) {
449
- const path = `/alerts/${enc(alert_id)}/dismiss`;
449
+ const path = `/v1/alerts/${enc(alert_id)}/dismiss`;
450
450
  return await this.transport.request("POST", path);
451
451
  }
452
452
  /**
@@ -457,7 +457,7 @@ var EllipsisAlerts = class {
457
457
  * 404 if it doesn't exist or belongs to another organization.
458
458
  */
459
459
  async get(alert_id) {
460
- const path = `/alerts/${enc(alert_id)}`;
460
+ const path = `/v1/alerts/${enc(alert_id)}`;
461
461
  return await this.transport.request("GET", path);
462
462
  }
463
463
  /**
@@ -471,7 +471,7 @@ var EllipsisAlerts = class {
471
471
  * this org near budget?" mid-task.
472
472
  */
473
473
  async list(options = {}) {
474
- const path = "/alerts";
474
+ const path = "/v1/alerts";
475
475
  const query = buildQuery({ status: options.status, source: options.source, limit: options.limit, cursor: options.cursor });
476
476
  const response = await this.transport.request("GET", path, { query });
477
477
  return new Page(
@@ -500,7 +500,7 @@ var EllipsisAnalytics = class {
500
500
  * no secrets.
501
501
  */
502
502
  async metrics(options = {}) {
503
- const path = "/analytics/metrics";
503
+ const path = "/v1/analytics/metrics";
504
504
  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
505
  return await this.transport.request("GET", path, { query });
506
506
  }
@@ -513,7 +513,7 @@ var EllipsisAnalytics = class {
513
513
  * 30 days).
514
514
  */
515
515
  async pullRequests(options = {}) {
516
- const path = "/analytics/pull-requests";
516
+ const path = "/v1/analytics/pull-requests";
517
517
  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
518
  return await this.transport.request("GET", path, { query });
519
519
  }
@@ -528,7 +528,7 @@ var EllipsisAnalytics = class {
528
528
  * (default: the last 30 days).
529
529
  */
530
530
  async reviews(options = {}) {
531
- const path = "/analytics/reviews";
531
+ const path = "/v1/analytics/reviews";
532
532
  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
533
  return await this.transport.request("GET", path, { query });
534
534
  }
@@ -546,7 +546,7 @@ var EllipsisAuthCli = class {
546
546
  * Unauthenticated; the device code identifies the flow.
547
547
  */
548
548
  async poll(options) {
549
- const path = "/auth/cli/poll";
549
+ const path = "/v1/auth/cli/poll";
550
550
  const body = buildBody({ device_code: options.device_code });
551
551
  return await this.transport.request("POST", path, { body });
552
552
  }
@@ -560,7 +560,7 @@ var EllipsisAuthCli = class {
560
560
  * dashboard.
561
561
  */
562
562
  async start() {
563
- const path = "/auth/cli/start";
563
+ const path = "/v1/auth/cli/start";
564
564
  return await this.transport.request("POST", path);
565
565
  }
566
566
  };
@@ -589,7 +589,7 @@ var EllipsisFiles = class {
589
589
  * dashboard URL so callers never hard-code URL shapes.
590
590
  */
591
591
  async create(options) {
592
- const path = "/files";
592
+ const path = "/v1/files";
593
593
  const body = buildBody({ content_type: options.content_type, data_b64: options.data_b64, filename: options.filename });
594
594
  return await this.transport.request("POST", path, { body });
595
595
  }
@@ -606,7 +606,7 @@ var EllipsisFiles = class {
606
606
  * keys and user tokens may delete.
607
607
  */
608
608
  async delete(file_id) {
609
- const path = `/files/${enc(file_id)}`;
609
+ const path = `/v1/files/${enc(file_id)}`;
610
610
  await this.transport.request("DELETE", path);
611
611
  }
612
612
  /**
@@ -622,7 +622,7 @@ var EllipsisFiles = class {
622
622
  * `agent file get` wraps exactly that two-step.
623
623
  */
624
624
  async get(file_id) {
625
- const path = `/files/${enc(file_id)}`;
625
+ const path = `/v1/files/${enc(file_id)}`;
626
626
  return await this.transport.request("GET", path);
627
627
  }
628
628
  /**
@@ -634,7 +634,7 @@ var EllipsisFiles = class {
634
634
  * per row. session_id scopes the list to one run's uploads.
635
635
  */
636
636
  async list(options = {}) {
637
- const path = "/files";
637
+ const path = "/v1/files";
638
638
  const query = buildQuery({ session_id: options.session_id, limit: options.limit, cursor: options.cursor });
639
639
  const response = await this.transport.request("GET", path, { query });
640
640
  return new Page(
@@ -661,7 +661,7 @@ var EllipsisIntegrationsGithub = class {
661
661
  * link exists, and /slack/members carries the reverse link.
662
662
  */
663
663
  async members() {
664
- const path = "/integrations/github/members";
664
+ const path = "/v1/integrations/github/members";
665
665
  return await this.transport.request("GET", path);
666
666
  }
667
667
  /**
@@ -670,7 +670,7 @@ var EllipsisIntegrationsGithub = class {
670
670
  * List GitHub repositories connected to the installation.
671
671
  */
672
672
  async repos() {
673
- const path = "/integrations/github/repos";
673
+ const path = "/v1/integrations/github/repos";
674
674
  return await this.transport.request("GET", path);
675
675
  }
676
676
  };
@@ -685,7 +685,7 @@ var EllipsisIntegrationsLinear = class {
685
685
  * List the teams of the connected Linear workspace.
686
686
  */
687
687
  async teams() {
688
- const path = "/integrations/linear/teams";
688
+ const path = "/v1/integrations/linear/teams";
689
689
  return await this.transport.request("GET", path);
690
690
  }
691
691
  };
@@ -700,7 +700,7 @@ var EllipsisIntegrationsSentry = class {
700
700
  * List the connected Sentry organizations.
701
701
  */
702
702
  async organizations() {
703
- const path = "/integrations/sentry/organizations";
703
+ const path = "/v1/integrations/sentry/organizations";
704
704
  return await this.transport.request("GET", path);
705
705
  }
706
706
  };
@@ -716,7 +716,7 @@ var EllipsisIntegrationsSlack = class {
716
716
  * live from the Slack API.
717
717
  */
718
718
  async channels() {
719
- const path = "/integrations/slack/channels";
719
+ const path = "/v1/integrations/slack/channels";
720
720
  return await this.transport.request("GET", path);
721
721
  }
722
722
  /**
@@ -726,7 +726,7 @@ var EllipsisIntegrationsSlack = class {
726
726
  * live from the Slack API.
727
727
  */
728
728
  async members() {
729
- const path = "/integrations/slack/members";
729
+ const path = "/v1/integrations/slack/members";
730
730
  return await this.transport.request("GET", path);
731
731
  }
732
732
  };
@@ -756,7 +756,7 @@ var EllipsisIntegrations = class {
756
756
  * responses never include OAuth tokens or any other secret.
757
757
  */
758
758
  async list() {
759
- const path = "/integrations";
759
+ const path = "/v1/integrations";
760
760
  return await this.transport.request("GET", path);
761
761
  }
762
762
  };
@@ -779,7 +779,7 @@ var EllipsisMemories = class {
779
779
  * correcting an existing memory is an explicit edit.
780
780
  */
781
781
  async create(options) {
782
- const path = "/memories";
782
+ const path = "/v1/memories";
783
783
  const body = buildBody({ content: options.content, description: options.description, path: options.path });
784
784
  return await this.transport.request("POST", path, { body });
785
785
  }
@@ -793,7 +793,7 @@ var EllipsisMemories = class {
793
793
  * the memory's history for forensics, not for an undo API.
794
794
  */
795
795
  async delete(memory_id, options = {}) {
796
- const path = `/memories/${enc(memory_id)}`;
796
+ const path = `/v1/memories/${enc(memory_id)}`;
797
797
  const query = buildQuery({ if_sha256: options.if_sha256 });
798
798
  await this.transport.request("DELETE", path, { query });
799
799
  }
@@ -810,7 +810,7 @@ var EllipsisMemories = class {
810
810
  * a 409 instead of silently overwriting it.
811
811
  */
812
812
  async edit(memory_id, options = {}) {
813
- const path = `/memories/${enc(memory_id)}`;
813
+ const path = `/v1/memories/${enc(memory_id)}`;
814
814
  const body = buildBody({ content: options.content, description: options.description, if_sha256: options.if_sha256 });
815
815
  return await this.transport.request("PUT", path, { body });
816
816
  }
@@ -822,7 +822,7 @@ var EllipsisMemories = class {
822
822
  * The id comes from the index returned by listing memories.
823
823
  */
824
824
  async get(memory_id) {
825
- const path = `/memories/${enc(memory_id)}`;
825
+ const path = `/v1/memories/${enc(memory_id)}`;
826
826
  return await this.transport.request("GET", path);
827
827
  }
828
828
  /**
@@ -836,7 +836,7 @@ var EllipsisMemories = class {
836
836
  * the index, then fetch the ids whose content you want.
837
837
  */
838
838
  async list(options = {}) {
839
- const path = "/memories";
839
+ const path = "/v1/memories";
840
840
  const query = buildQuery({ prefix: options.prefix });
841
841
  return await this.transport.request("GET", path, { query });
842
842
  }
@@ -859,7 +859,7 @@ var EllipsisModels = class {
859
859
  * global.
860
860
  */
861
861
  async list() {
862
- const path = "/models";
862
+ const path = "/v1/models";
863
863
  return await this.transport.request("GET", path);
864
864
  }
865
865
  };
@@ -884,7 +884,7 @@ var EllipsisReviews = class {
884
884
  * itself is a pipeline rather than one process.
885
885
  */
886
886
  async create(options) {
887
- const path = "/reviews";
887
+ const path = "/v1/reviews";
888
888
  const body = buildBody({ owner: options.owner, post: options.post, pull_request_number: options.pull_request_number, repo: options.repo, scope: options.scope });
889
889
  return await this.transport.request("POST", path, { body });
890
890
  }
@@ -901,7 +901,7 @@ var EllipsisReviews = class {
901
901
  * streams a stage session and then re-fetches the review.
902
902
  */
903
903
  async get(review_id) {
904
- const path = `/reviews/${enc(review_id)}`;
904
+ const path = `/v1/reviews/${enc(review_id)}`;
905
905
  return await this.transport.request("GET", path);
906
906
  }
907
907
  /**
@@ -915,7 +915,7 @@ var EllipsisReviews = class {
915
915
  * me every review on this PR".
916
916
  */
917
917
  async list(options = {}) {
918
- const path = "/reviews";
918
+ const path = "/v1/reviews";
919
919
  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
920
  const response = await this.transport.request("GET", path, { query });
921
921
  return new Page(
@@ -939,7 +939,7 @@ var EllipsisSecrets = class {
939
939
  * user token.
940
940
  */
941
941
  async delete(name) {
942
- const path = `/secrets/${enc(name)}`;
942
+ const path = `/v1/secrets/${enc(name)}`;
943
943
  await this.transport.request("DELETE", path);
944
944
  }
945
945
  /**
@@ -951,7 +951,7 @@ var EllipsisSecrets = class {
951
951
  * timestamps, never the stored value.
952
952
  */
953
953
  async list() {
954
- const path = "/secrets";
954
+ const path = "/v1/secrets";
955
955
  return await this.transport.request("GET", path);
956
956
  }
957
957
  /**
@@ -965,7 +965,7 @@ var EllipsisSecrets = class {
965
965
  * API key or user token.
966
966
  */
967
967
  async set(options) {
968
- const path = "/secrets";
968
+ const path = "/v1/secrets";
969
969
  const body = buildBody({ secrets: options.secrets });
970
970
  return await this.transport.request("PUT", path, { body });
971
971
  }
@@ -989,7 +989,7 @@ var EllipsisSessions = class {
989
989
  * it).
990
990
  */
991
991
  async executions(session_id) {
992
- const path = `/sessions/${enc(session_id)}/executions`;
992
+ const path = `/v1/sessions/${enc(session_id)}/executions`;
993
993
  return await this.transport.request("GET", path);
994
994
  }
995
995
  /**
@@ -1007,7 +1007,7 @@ var EllipsisSessions = class {
1007
1007
  * same data.
1008
1008
  */
1009
1009
  async export(session_id) {
1010
- const path = `/sessions/${enc(session_id)}/export`;
1010
+ const path = `/v1/sessions/${enc(session_id)}/export`;
1011
1011
  return await this.transport.request("GET", path);
1012
1012
  }
1013
1013
  /**
@@ -1023,24 +1023,7 @@ var EllipsisSessions = class {
1023
1023
  * live on the detail endpoints, not here.
1024
1024
  */
1025
1025
  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`;
1026
+ const path = `/v1/sessions/${enc(session_id)}`;
1044
1027
  return await this.transport.request("GET", path);
1045
1028
  }
1046
1029
  /**
@@ -1054,7 +1037,7 @@ var EllipsisSessions = class {
1054
1037
  * Idempotent by transcript line uuid; tolerant of malformed lines.
1055
1038
  */
1056
1039
  async ingestTranscript(session_id, options) {
1057
- const path = `/sessions/${enc(session_id)}/transcript`;
1040
+ const path = `/v1/sessions/${enc(session_id)}/transcript`;
1058
1041
  const body = buildBody({ lines: options.lines, offset: options.offset });
1059
1042
  return await this.transport.request("POST", path, { body });
1060
1043
  }
@@ -1068,7 +1051,7 @@ var EllipsisSessions = class {
1068
1051
  * still going.
1069
1052
  */
1070
1053
  async list(options = {}) {
1071
- const path = "/sessions";
1054
+ const path = "/v1/sessions";
1072
1055
  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
1056
  const response = await this.transport.request("GET", path, { query });
1074
1057
  return new Page(
@@ -1084,28 +1067,14 @@ var EllipsisSessions = class {
1084
1067
  *
1085
1068
  * The payload the agent submitted through its config-declared
1086
1069
  * output.json_schema, as the raw JSON body with no envelope. 404
1087
- * while the session is still running (poll GET /sessions/{id}),
1070
+ * while the session is still running (poll GET /v1/sessions/{id}),
1088
1071
  * when the agent declares no output block, or when no execution
1089
1072
  * produced output.
1090
1073
  */
1091
1074
  async output(session_id) {
1092
- const path = `/sessions/${enc(session_id)}/output`;
1075
+ const path = `/v1/sessions/${enc(session_id)}/output`;
1093
1076
  await this.transport.request("GET", path);
1094
1077
  }
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
1078
  /**
1110
1079
  * Get Agent Session Records
1111
1080
  *
@@ -1119,7 +1088,7 @@ var EllipsisSessions = class {
1119
1088
  * client-side before they are ever uploaded).
1120
1089
  */
1121
1090
  async records(session_id, options = {}) {
1122
- const path = `/sessions/${enc(session_id)}/records`;
1091
+ const path = `/v1/sessions/${enc(session_id)}/records`;
1123
1092
  const query = buildQuery({ cursor: options.cursor, limit: options.limit });
1124
1093
  const response = await this.transport.request("GET", path, { query });
1125
1094
  return new Page(
@@ -1139,7 +1108,7 @@ var EllipsisSessions = class {
1139
1108
  * different model.
1140
1109
  */
1141
1110
  async replay(session_id, options = {}) {
1142
- const path = `/sessions/${enc(session_id)}/replay`;
1111
+ const path = `/v1/sessions/${enc(session_id)}/replay`;
1143
1112
  const body = buildBody({ config_id: options.config_id, config_override: options.config_override, config_override_yaml: options.config_override_yaml, prompt: options.prompt });
1144
1113
  return await this.transport.request("POST", path, { body });
1145
1114
  }
@@ -1157,7 +1126,7 @@ var EllipsisSessions = class {
1157
1126
  * (transcript).
1158
1127
  */
1159
1128
  async search(options = {}) {
1160
- const path = "/sessions/search";
1129
+ const path = "/v1/sessions/search";
1161
1130
  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
1131
  return await this.transport.request("GET", path, { query });
1163
1132
  }
@@ -1172,7 +1141,7 @@ var EllipsisSessions = class {
1172
1141
  * message.
1173
1142
  */
1174
1143
  async sendMessage(session_id, options) {
1175
- const path = `/sessions/${enc(session_id)}/messages`;
1144
+ const path = `/v1/sessions/${enc(session_id)}/messages`;
1176
1145
  const body = buildBody({ idempotency_key: options.idempotency_key, message: options.message });
1177
1146
  return await this.transport.request("POST", path, { body });
1178
1147
  }
@@ -1190,7 +1159,7 @@ var EllipsisSessions = class {
1190
1159
  * input schema and the request's input is absent or invalid.
1191
1160
  */
1192
1161
  async start(options = {}) {
1193
- const path = "/sessions";
1162
+ const path = "/v1/sessions";
1194
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, 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 });
1195
1164
  return await this.transport.request("POST", path, { body });
1196
1165
  }
@@ -1203,7 +1172,7 @@ var EllipsisSessions = class {
1203
1172
  * to a GitHub account.
1204
1173
  */
1205
1174
  async stop(session_id) {
1206
- const path = `/sessions/${enc(session_id)}/stop`;
1175
+ const path = `/v1/sessions/${enc(session_id)}/stop`;
1207
1176
  return await this.transport.request("POST", path);
1208
1177
  }
1209
1178
  /**
@@ -1216,7 +1185,7 @@ var EllipsisSessions = class {
1216
1185
  * tokens are rejected with a 403 rather than silently attributed.
1217
1186
  */
1218
1187
  async sync(options) {
1219
- const path = "/sessions/sync";
1188
+ const path = "/v1/sessions/sync";
1220
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 });
1221
1190
  return await this.transport.request("POST", path, { body });
1222
1191
  }
@@ -1265,7 +1234,7 @@ var Ellipsis = class {
1265
1234
  * Return the caller's current budget summary.
1266
1235
  */
1267
1236
  async budget() {
1268
- const path = "/budget";
1237
+ const path = "/v1/budget";
1269
1238
  return await this.transport.request("GET", path);
1270
1239
  }
1271
1240
  /**
@@ -1274,7 +1243,7 @@ var Ellipsis = class {
1274
1243
  * Return the identity behind the caller's credential.
1275
1244
  */
1276
1245
  async me() {
1277
- const path = "/me";
1246
+ const path = "/v1/me";
1278
1247
  return await this.transport.request("GET", path);
1279
1248
  }
1280
1249
  /**
@@ -1283,7 +1252,7 @@ var Ellipsis = class {
1283
1252
  * Return the caller's usage dashboard data.
1284
1253
  */
1285
1254
  async usage() {
1286
- const path = "/usage";
1255
+ const path = "/v1/usage";
1287
1256
  return await this.transport.request("GET", path);
1288
1257
  }
1289
1258
  };
@@ -1,4 +1,4 @@
1
- import { K as SessionRecord, r as Session, x as SessionMessage, X as StreamFrame } from '../types-DDQQ1Yfh.js';
1
+ import { K as SessionRecord, r as Session, x as SessionMessage, X as StreamFrame } from '../types-BN5YExTm.js';
2
2
 
3
3
  interface ChatToolNode {
4
4
  key: string;
@@ -1,4 +1,4 @@
1
- import { X as StreamFrame, r as Session } from '../types-DDQQ1Yfh.js';
1
+ import { X as StreamFrame, r as Session } from '../types-BN5YExTm.js';
2
2
 
3
3
  declare const SESSION_STREAM_PROTOCOL_VERSION = 3;
4
4
  declare const WS_CLOSE_NORMAL = 1000;