@ellipsis-dev/sdk 0.4.0 → 0.6.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 { A as AgentSessionWire, L as ListSessionRecordsResponse, a as ListSessionTurnsResponse, b as ListSessionExecutionsResponse, S as SessionMessageWire, C as CreateReviewRequest, R as Review, c as ListReviewsResponse } from './types-CtTRS9eJ.js';
2
- export { d as AgentSessionExitStatus, e as AgentSessionPr, f as AgentSessionSource, g as AgentSessionStatus, h as AgentTurn, i as AgentTurnStatus, j as AttributionType, B as BudgetSource, D as DefaultResolution, k as DeltaFrame, l as DoneFrame, E as ErrorFrame, F as Finding, G as GithubAccountSnippet, m as GithubAccountType, H as Harness, n as HeartbeatFrame, P as ParentKind, o as PromptBlockedReason, p as RecordsAppendFrame, q as ResolvedReviewScope, r as ReviewCounters, s as ReviewScope, t as ReviewScopeKind, u as SendSessionMessageRequest, v as SessionExecutionWire, w as SessionFrame, x as SessionLiveness, y as SessionMessageStatus, z as SessionPrompting, I as SessionRecordWire, J as SessionState, K as SessionStreamFrame, M as SessionSurface, N as SnapshotFrame, O as StreamFrame, T as TokensInfo, Q as components, U as paths } from './types-CtTRS9eJ.js';
1
+ import { A as AgentSessionWire, L as ListSessionRecordsResponse, a as ListSessionTurnsResponse, b as ListSessionExecutionsResponse, S as SessionMessageWire, C as CreateReviewRequest, R as Review, c as ListReviewsResponse } from './types-BtzdOaNv.js';
2
+ export { d as AgentSessionExitStatus, e as AgentSessionPr, f as AgentSessionSource, g as AgentSessionStatus, h as AgentTurn, i as AgentTurnStatus, j as AttributionType, B as BudgetSource, D as DefaultResolution, k as DeltaFrame, l as DoneFrame, E as ErrorFrame, F as Finding, G as GithubAccountSnippet, m as GithubAccountType, H as Harness, n as HeartbeatFrame, P as ParentKind, o as PromptBlockedReason, p as RecordsAppendFrame, q as ResolvedReviewScope, r as ReviewConfiguration, s as ReviewCounters, t as ReviewFinding, u as ReviewRequester, v as ReviewScope, w as ReviewScopeKind, x as ReviewStage, y as ReviewedCommit, z as SendSessionMessageRequest, I as SessionExecutionWire, J as SessionFrame, K as SessionLiveness, M as SessionMessageStatus, N as SessionPrompting, O as SessionRecordWire, Q as SessionState, T as SessionStreamFrame, U as SessionSurface, V as SnapshotFrame, W as StreamFrame, X as TokensInfo, Y as components, Z as paths } from './types-BtzdOaNv.js';
3
3
 
4
4
  type FetchJson = (path: string, init?: {
5
5
  method?: string;
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ var EllipsisClient = class {
8
8
  // stream's session frames carry.
9
9
  async getSession(sessionId) {
10
10
  return await this.fetchJson(
11
- `/v1/sessions/${encodeURIComponent(sessionId)}`
11
+ `/sessions/${encodeURIComponent(sessionId)}`
12
12
  );
13
13
  }
14
14
  // The record log + inbox messages (§4.3). Bare call = the full transcript;
@@ -20,14 +20,14 @@ var EllipsisClient = class {
20
20
  if (options.limit != null) params.set("limit", String(options.limit));
21
21
  const query = params.toString();
22
22
  return await this.fetchJson(
23
- `/v1/sessions/${encodeURIComponent(sessionId)}/records` + (query ? `?${query}` : "")
23
+ `/sessions/${encodeURIComponent(sessionId)}/records` + (query ? `?${query}` : "")
24
24
  );
25
25
  }
26
26
  // The session's turns — the structural conversation history (message ->
27
27
  // response exchanges with status/cost).
28
28
  async getSessionTurns(sessionId) {
29
29
  return await this.fetchJson(
30
- `/v1/sessions/${encodeURIComponent(sessionId)}/turns`
30
+ `/sessions/${encodeURIComponent(sessionId)}/turns`
31
31
  );
32
32
  }
33
33
  // The session's executions (initial start, cold wakes, infra retries) with
@@ -37,7 +37,7 @@ var EllipsisClient = class {
37
37
  // config.
38
38
  async getSessionExecutions(sessionId) {
39
39
  return await this.fetchJson(
40
- `/v1/sessions/${encodeURIComponent(sessionId)}/executions`
40
+ `/sessions/${encodeURIComponent(sessionId)}/executions`
41
41
  );
42
42
  }
43
43
  // Send a message into the session's inbox (§4.2). Returns the created (or,
@@ -47,7 +47,7 @@ var EllipsisClient = class {
47
47
  // (surface the server's curated copy).
48
48
  async sendSessionMessage(sessionId, message, options = {}) {
49
49
  return await this.fetchJson(
50
- `/v1/sessions/${encodeURIComponent(sessionId)}/messages`,
50
+ `/sessions/${encodeURIComponent(sessionId)}/messages`,
51
51
  {
52
52
  method: "POST",
53
53
  body: {
@@ -64,7 +64,7 @@ var EllipsisClient = class {
64
64
  // with nothing new to look at comes back with `status: 'skipped'`, not an
65
65
  // error.
66
66
  async createReview(request) {
67
- return await this.fetchJson("/v1/reviews", {
67
+ return await this.fetchJson("/reviews", {
68
68
  method: "POST",
69
69
  body: request
70
70
  });
@@ -72,7 +72,7 @@ var EllipsisClient = class {
72
72
  // One review: scope, findings, parser counters, and the posting outcome.
73
73
  async getReview(reviewId) {
74
74
  return await this.fetchJson(
75
- `/v1/reviews/${encodeURIComponent(reviewId)}`
75
+ `/reviews/${encodeURIComponent(reviewId)}`
76
76
  );
77
77
  }
78
78
  // Reviews newest first, `findings` omitted (counters only). Includes
@@ -88,7 +88,7 @@ var EllipsisClient = class {
88
88
  if (options.limit != null) params.set("limit", String(options.limit));
89
89
  const query = params.toString();
90
90
  return await this.fetchJson(
91
- "/v1/reviews" + (query ? `?${query}` : "")
91
+ "/reviews" + (query ? `?${query}` : "")
92
92
  );
93
93
  }
94
94
  };
@@ -1,4 +1,4 @@
1
- import { I as SessionRecordWire, A as AgentSessionWire, S as SessionMessageWire, O as StreamFrame } from '../types-CtTRS9eJ.js';
1
+ import { O as SessionRecordWire, A as AgentSessionWire, S as SessionMessageWire, W as StreamFrame } from '../types-BtzdOaNv.js';
2
2
 
3
3
  interface ChatToolNode {
4
4
  key: string;
@@ -1,4 +1,4 @@
1
- import { O as StreamFrame, A as AgentSessionWire } from '../types-CtTRS9eJ.js';
1
+ import { W as StreamFrame, A as AgentSessionWire } from '../types-BtzdOaNv.js';
2
2
 
3
3
  declare const SESSION_STREAM_PROTOCOL_VERSION = 3;
4
4
  declare const WS_CLOSE_NORMAL = 1000;