@eigenpal/sdk 1.0.0-rc.6 → 1.0.0-rc.7

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.
@@ -221,6 +221,15 @@ export declare class ReviewsResource {
221
221
  updatedAt: string;
222
222
  /** What the task is about, to tell tasks apart in a queue: its input file names. Null when it has none. Never a reviewed value. */
223
223
  subject?: string | null;
224
+ /** The run the task belongs to, to tell tasks of one automation apart and to keep draft runs apart from live ones. Never a reviewed value. */
225
+ run?: {
226
+ /** What the run ran: the live release, a draft (`eigenpal run` or the editor) or a branch or pull request preview. */
227
+ source: 'live' | 'draft' | 'preview';
228
+ /** How the run started (`api`, `cli`, `manual`, `email`, `schedule`, ...). */
229
+ trigger: string | null;
230
+ /** When the run was started. */
231
+ startedAt: string;
232
+ } | null;
224
233
  /** When the task was approved, rejected or cancelled. Null while pending. */
225
234
  completedAt?: string | null;
226
235
  /** Name (or email) of the person who approved or rejected the task. */
@@ -105,6 +105,7 @@ export class RunsResource {
105
105
  limit: options.limit,
106
106
  ids: options.ids,
107
107
  experiments: options.experiments,
108
+ includeMerged: options.includeMerged,
108
109
  parent: options.parent,
109
110
  reviewStatus: options.reviewStatus,
110
111
  reviewVerdict: options.reviewVerdict,
@@ -195,6 +196,7 @@ export class ExperimentsResource {
195
196
  createdAfter: options.createdAfter,
196
197
  createdBefore: options.createdBefore,
197
198
  tag: options.tag,
199
+ includeMerged: options.includeMerged,
198
200
  cursor: options.cursor,
199
201
  },
200
202
  signal: options.signal,
@@ -1535,6 +1535,15 @@ export type ReviewList = {
1535
1535
  updatedAt: string;
1536
1536
  /** What the task is about, to tell tasks apart in a queue: its input file names. Null when it has none. Never a reviewed value. */
1537
1537
  subject?: string | null;
1538
+ /** The run the task belongs to, to tell tasks of one automation apart and to keep draft runs apart from live ones. Never a reviewed value. */
1539
+ run?: {
1540
+ /** What the run ran: the live release, a draft (`eigenpal run` or the editor) or a branch or pull request preview. */
1541
+ source: 'live' | 'draft' | 'preview';
1542
+ /** How the run started (`api`, `cli`, `manual`, `email`, `schedule`, ...). */
1543
+ trigger: string | null;
1544
+ /** When the run was started. */
1545
+ startedAt: string;
1546
+ } | null;
1538
1547
  /** When the task was approved, rejected or cancelled. Null while pending. */
1539
1548
  completedAt?: string | null;
1540
1549
  /** Name (or email) of the person who approved or rejected the task. */
@@ -1567,6 +1576,15 @@ export type ReviewTaskDetail = {
1567
1576
  updatedAt: string;
1568
1577
  /** What the task is about, to tell tasks apart in a queue: its input file names. Null when it has none. Never a reviewed value. */
1569
1578
  subject?: string | null;
1579
+ /** The run the task belongs to, to tell tasks of one automation apart and to keep draft runs apart from live ones. Never a reviewed value. */
1580
+ run?: {
1581
+ /** What the run ran: the live release, a draft (`eigenpal run` or the editor) or a branch or pull request preview. */
1582
+ source: 'live' | 'draft' | 'preview';
1583
+ /** How the run started (`api`, `cli`, `manual`, `email`, `schedule`, ...). */
1584
+ trigger: string | null;
1585
+ /** When the run was started. */
1586
+ startedAt: string;
1587
+ } | null;
1570
1588
  completedAt: string | null;
1571
1589
  /** Name (or email) of the person who approved or rejected the task. */
1572
1590
  completedByName?: string | null;
@@ -2141,7 +2159,7 @@ export type RunTraceResponse = {
2141
2159
  nextCursor: string | null;
2142
2160
  };
2143
2161
  export type RunTrigger = {
2144
- type: 'api' | 'cli' | 'manual' | 'webhook' | 'email' | 'eval' | null;
2162
+ type: 'api' | 'cli' | 'manual' | 'webhook' | 'email' | 'eval' | 'workflow' | null;
2145
2163
  by: {
2146
2164
  id: string;
2147
2165
  name: string | null;
@@ -2337,7 +2355,7 @@ export interface RunsListOptions {
2337
2355
  /** Only runs that stand in one of these states. */
2338
2356
  state?: Array<'queued' | 'running' | 'waiting' | 'succeeded' | 'failed' | 'cancelled'>;
2339
2357
  /** Only runs started by one of these triggers. */
2340
- trigger?: Array<'api' | 'cli' | 'manual' | 'webhook' | 'email' | 'eval'>;
2358
+ trigger?: Array<'api' | 'cli' | 'manual' | 'webhook' | 'email' | 'eval' | 'workflow'>;
2341
2359
  /** Only runs these users started (user ids), or `__system__` for runs no user started. */
2342
2360
  triggeredBy?: string[];
2343
2361
  batchId?: string;
@@ -2354,6 +2372,8 @@ export interface RunsListOptions {
2354
2372
  ids?: string[];
2355
2373
  /** false leaves out the runs of experiments. Default true. */
2356
2374
  experiments?: boolean;
2375
+ /** true also lists, with `hasExample` or `exampleId`, the runs of pull request check evals that stopped because the request merged. Default false (the release scores the same content). Asking for the `cancelled` state or one `batchId` lists them too. */
2376
+ includeMerged?: boolean;
2357
2377
  /** `none`: only runs nothing else started (no agent or sub-workflow runs a workflow step started). Run ids (comma separated, at most 100): only the runs those runs started. */
2358
2378
  parent?: string;
2359
2379
  reviewStatus?: Array<'open' | 'closed' | 'wont_fix'>;
@@ -2409,6 +2429,8 @@ export interface ExperimentsListOptions {
2409
2429
  createdBefore?: string;
2410
2430
  /** Only experiments whose runs carry this tag (workflow experiments). */
2411
2431
  tag?: string;
2432
+ /** true also lists the pull request check evals that stopped because the request merged. Default false: the release scores the same content. */
2433
+ includeMerged?: 'true' | 'false';
2412
2434
  /** The `nextCursor` of the page before. */
2413
2435
  cursor?: string;
2414
2436
  signal?: AbortSignal;
@@ -16,5 +16,5 @@
16
16
  * for log lines and proxies that don't surface custom headers.
17
17
  */
18
18
  export declare const SDK_LANGUAGE = "typescript";
19
- export declare const SDK_VERSION = "1.0.0-rc.6";
19
+ export declare const SDK_VERSION = "1.0.0-rc.7";
20
20
  export declare function buildTelemetryHeaders(): Record<string, string>;
package/dist/telemetry.js CHANGED
@@ -18,7 +18,7 @@
18
18
  export const SDK_LANGUAGE = 'typescript';
19
19
  // Rewritten at publish time by scripts/release/platform/render-sdk-versions.sh.
20
20
  // Keep this string literal exactly stable — sed matches on it.
21
- export const SDK_VERSION = '1.0.0-rc.6';
21
+ export const SDK_VERSION = '1.0.0-rc.7';
22
22
  function detectRuntime() {
23
23
  const g = globalThis;
24
24
  if (g.Bun?.version)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eigenpal/sdk",
3
- "version": "1.0.0-rc.6",
3
+ "version": "1.0.0-rc.7",
4
4
  "description": "Official TypeScript SDK for the EigenPal API",
5
5
  "type": "module",
6
6
  "engines": {