@ellipsis-dev/sdk 0.20.0 → 0.21.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-D2YZTvgg.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-D2YZTvgg.js';
1
+ import { c as components } from './types-DXHI6EPF.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 SessionExitStatus, N as SessionFrame, O as SessionGit, Q as SessionLiveness, T as SessionMessage, U as SessionMessageResponse, V as SessionMessageStatus, W as SessionPrompting, X as SessionRecord, Y as SessionRecordsListResponse, Z as SessionResponse, _ as SessionSource, $ as SessionState, a0 as SessionStatus, a1 as SessionStreamFrame, a2 as SessionSurface, a3 as SessionsListResponse, a4 as SnapshotFrame, a5 as StreamFrame, a6 as TokensInfo, a7 as paths } from './types-DXHI6EPF.js';
3
3
 
4
4
  interface CursorResponse {
5
5
  has_more: boolean;
@@ -409,7 +409,7 @@ declare class EllipsisIntegrationsGithub {
409
409
  * List the GitHub organization roster.
410
410
  *
411
411
  * (Or the account itself for a personal workspace) — the universe of author_id values for
412
- * /sessions and /sessions/search.
412
+ * /sessions.
413
413
  *
414
414
  * Members carry their linked Slack identity when a Slack-GitHub
415
415
  * link exists, and /slack/members carries the reverse link.
@@ -553,23 +553,6 @@ declare class EllipsisMemories {
553
553
  prefix?: string | null;
554
554
  }): Promise<S['MemoriesListResponse']>;
555
555
  }
556
- declare class EllipsisModels {
557
- private readonly transport;
558
- constructor(transport: Transport);
559
- /**
560
- * List Supported Models
561
- *
562
- * List selectable agent models.
563
- *
564
- * Most expensive first, with the platform default flagged.
565
- *
566
- * Reads the same registry as the dashboard's rate table, so a
567
- * client's model picker can never drift from what's offered.
568
- * Behind auth but not account-scoped — the selectable set is
569
- * global.
570
- */
571
- list(): Promise<S['ModelsListResponse']>;
572
- }
573
556
  declare class EllipsisReviews {
574
557
  private readonly transport;
575
558
  constructor(transport: Transport);
@@ -665,19 +648,6 @@ declare class EllipsisSecrets {
665
648
  declare class EllipsisSessions {
666
649
  private readonly transport;
667
650
  constructor(transport: Transport);
668
- /**
669
- * Get Agent Session Executions
670
- *
671
- * Return the session's executions and launch context.
672
- *
673
- * Most notably system_prompt_append, the text Ellipsis appends to
674
- * Claude Code's default system prompt (platform section + response
675
- * instructions + the config's own instructions).
676
- *
677
- * Per execution because each cold wake persists its own launch
678
- * config (a config edit between wakes changes it).
679
- */
680
- executions(session_id: string): Promise<S['SessionExecutionsListResponse']>;
681
651
  /**
682
652
  * Export Agent Session
683
653
  *
@@ -760,40 +730,14 @@ declare class EllipsisSessions {
760
730
  *
761
731
  * Pagination is opt-in (cursor/limit); a bare call returns the
762
732
  * full retained transcript. Available to sandbox tokens too: an
763
- * agent answering "did X look into Y?" needs to read the session
764
- * it found via /sessions/search, and any org member sees the same
765
- * transcript in the dashboard.
733
+ * agent answering "did X look into Y?" needs to read the sessions
734
+ * it finds, and any org member sees the same transcript in the
735
+ * dashboard.
766
736
  */
767
737
  records(session_id: string, options?: {
768
738
  cursor?: string | null;
769
739
  limit?: number | null;
770
740
  }): Promise<Page<S['ClaudeSessionRecord'] | S['CodexSessionRecord'] | S['LifecycleSessionRecord'], S['SessionRecordsListResponse']>>;
771
- /**
772
- * Search Agent Sessions
773
- *
774
- * Search sessions over steps, recaps, and pull requests.
775
- *
776
- * Grouped by session, over everything a session left behind: step text, recap text, created
777
- * PRs, and recap-embedding similarity.
778
- *
779
- * This is how an agent answers "did Tony look into X?": resolve
780
- * the author via /github/members, search, then read the winning
781
- * session via /sessions/{id} (recap) and /sessions/{id}/records
782
- * (transcript).
783
- */
784
- search(options?: {
785
- q?: string;
786
- scope?: S['SessionSearchScope'];
787
- source?: (S['SessionSource'])[] | null;
788
- author_id?: (number)[] | null;
789
- config_id?: (string)[] | null;
790
- session_ids?: (string)[] | null;
791
- repo?: string | null;
792
- status?: (S['SessionStatus'])[] | null;
793
- start?: string | null;
794
- end?: string | null;
795
- limit?: number;
796
- }): Promise<S['SessionSearchResponse']>;
797
741
  /**
798
742
  * Send Agent Session Message
799
743
  *
@@ -915,7 +859,6 @@ declare class Ellipsis {
915
859
  readonly files: EllipsisFiles;
916
860
  readonly integrations: EllipsisIntegrations;
917
861
  readonly memories: EllipsisMemories;
918
- readonly models: EllipsisModels;
919
862
  readonly reviews: EllipsisReviews;
920
863
  readonly secrets: EllipsisSecrets;
921
864
  readonly sessions: EllipsisSessions;
package/dist/index.js CHANGED
@@ -642,7 +642,7 @@ var EllipsisIntegrationsGithub = class {
642
642
  * List the GitHub organization roster.
643
643
  *
644
644
  * (Or the account itself for a personal workspace) — the universe of author_id values for
645
- * /sessions and /sessions/search.
645
+ * /sessions.
646
646
  *
647
647
  * Members carry their linked Slack identity when a Slack-GitHub
648
648
  * link exists, and /slack/members carries the reverse link.
@@ -828,28 +828,6 @@ var EllipsisMemories = class {
828
828
  return await this.transport.request("GET", path, { query });
829
829
  }
830
830
  };
831
- var EllipsisModels = class {
832
- constructor(transport) {
833
- this.transport = transport;
834
- }
835
- transport;
836
- /**
837
- * List Supported Models
838
- *
839
- * List selectable agent models.
840
- *
841
- * Most expensive first, with the platform default flagged.
842
- *
843
- * Reads the same registry as the dashboard's rate table, so a
844
- * client's model picker can never drift from what's offered.
845
- * Behind auth but not account-scoped — the selectable set is
846
- * global.
847
- */
848
- async list() {
849
- const path = "/v1/models";
850
- return await this.transport.request("GET", path);
851
- }
852
- };
853
831
  var EllipsisReviews = class {
854
832
  constructor(transport) {
855
833
  this.transport = transport;
@@ -962,22 +940,6 @@ var EllipsisSessions = class {
962
940
  this.transport = transport;
963
941
  }
964
942
  transport;
965
- /**
966
- * Get Agent Session Executions
967
- *
968
- * Return the session's executions and launch context.
969
- *
970
- * Most notably system_prompt_append, the text Ellipsis appends to
971
- * Claude Code's default system prompt (platform section + response
972
- * instructions + the config's own instructions).
973
- *
974
- * Per execution because each cold wake persists its own launch
975
- * config (a config edit between wakes changes it).
976
- */
977
- async executions(session_id) {
978
- const path = `/v1/sessions/${enc(session_id)}/executions`;
979
- return await this.transport.request("GET", path);
980
- }
981
943
  /**
982
944
  * Export Agent Session
983
945
  *
@@ -1068,9 +1030,9 @@ var EllipsisSessions = class {
1068
1030
  *
1069
1031
  * Pagination is opt-in (cursor/limit); a bare call returns the
1070
1032
  * full retained transcript. Available to sandbox tokens too: an
1071
- * agent answering "did X look into Y?" needs to read the session
1072
- * it found via /sessions/search, and any org member sees the same
1073
- * transcript in the dashboard.
1033
+ * agent answering "did X look into Y?" needs to read the sessions
1034
+ * it finds, and any org member sees the same transcript in the
1035
+ * dashboard.
1074
1036
  */
1075
1037
  async records(session_id, options = {}) {
1076
1038
  const path = `/v1/sessions/${enc(session_id)}/records`;
@@ -1082,24 +1044,6 @@ var EllipsisSessions = class {
1082
1044
  (cursor) => this.records(session_id, { ...options, cursor })
1083
1045
  );
1084
1046
  }
1085
- /**
1086
- * Search Agent Sessions
1087
- *
1088
- * Search sessions over steps, recaps, and pull requests.
1089
- *
1090
- * Grouped by session, over everything a session left behind: step text, recap text, created
1091
- * PRs, and recap-embedding similarity.
1092
- *
1093
- * This is how an agent answers "did Tony look into X?": resolve
1094
- * the author via /github/members, search, then read the winning
1095
- * session via /sessions/{id} (recap) and /sessions/{id}/records
1096
- * (transcript).
1097
- */
1098
- async search(options = {}) {
1099
- const path = "/v1/sessions/search";
1100
- 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 });
1101
- return await this.transport.request("GET", path, { query });
1102
- }
1103
1047
  /**
1104
1048
  * Send Agent Session Message
1105
1049
  *
@@ -1240,7 +1184,6 @@ var Ellipsis = class {
1240
1184
  files;
1241
1185
  integrations;
1242
1186
  memories;
1243
- models;
1244
1187
  reviews;
1245
1188
  secrets;
1246
1189
  sessions;
@@ -1256,7 +1199,6 @@ var Ellipsis = class {
1256
1199
  this.files = new EllipsisFiles(this.transport);
1257
1200
  this.integrations = new EllipsisIntegrations(this.transport);
1258
1201
  this.memories = new EllipsisMemories(this.transport);
1259
- this.models = new EllipsisModels(this.transport);
1260
1202
  this.reviews = new EllipsisReviews(this.transport);
1261
1203
  this.secrets = new EllipsisSecrets(this.transport);
1262
1204
  this.sessions = new EllipsisSessions(this.transport);
@@ -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-D2YZTvgg.js';
1
+ import { X as SessionRecord, a8 as CodexFileChangeItem, b as CodexEvent, a9 as CodexMcpToolCallItem, x as SdkRecord, K as Session, T as SessionMessage, a5 as StreamFrame } from '../types-DXHI6EPF.js';
2
2
 
3
3
  interface ChatToolNode {
4
4
  key: string;
@@ -1,4 +1,4 @@
1
- import { a7 as StreamFrame, K as Session } from '../types-D2YZTvgg.js';
1
+ import { a5 as StreamFrame, K as Session } from '../types-DXHI6EPF.js';
2
2
 
3
3
  declare const SESSION_STREAM_PROTOCOL_VERSION = 3;
4
4
  declare const WS_CLOSE_NORMAL = 1000;