@eigenpal/sdk 1.0.0-rc.3 → 1.0.0-rc.5
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/generated/operations.gen.d.ts +4 -0
- package/dist/generated/operations.gen.js +1 -0
- package/dist/generated/public.gen.d.ts +1 -1
- package/dist/generated/resources.gen.d.ts +20 -14
- package/dist/generated/resources.gen.js +38 -19
- package/dist/generated/types.gen.d.ts +55 -6
- package/dist/telemetry.d.ts +1 -1
- package/dist/telemetry.js +1 -1
- package/package.json +1 -1
|
@@ -182,6 +182,10 @@ export declare const OPERATIONS: {
|
|
|
182
182
|
readonly method: "GET";
|
|
183
183
|
readonly path: "/v1/projects/{id}/builds";
|
|
184
184
|
};
|
|
185
|
+
readonly 'projects.create': {
|
|
186
|
+
readonly method: "POST";
|
|
187
|
+
readonly path: "/v1/projects";
|
|
188
|
+
};
|
|
185
189
|
readonly 'projects.get': {
|
|
186
190
|
readonly method: "GET";
|
|
187
191
|
readonly path: "/v1/projects/{id}";
|
|
@@ -86,6 +86,7 @@ export const OPERATIONS = {
|
|
|
86
86
|
'humanReviews.reject': { method: 'POST', path: '/v1/reviews/{taskId}/reject' },
|
|
87
87
|
'models.list': { method: 'GET', path: '/v1/models' },
|
|
88
88
|
'projects.builds.list': { method: 'GET', path: '/v1/projects/{id}/builds' },
|
|
89
|
+
'projects.create': { method: 'POST', path: '/v1/projects' },
|
|
89
90
|
'projects.get': { method: 'GET', path: '/v1/projects/{id}' },
|
|
90
91
|
'projects.list': { method: 'GET', path: '/v1/projects' },
|
|
91
92
|
'projects.operations.get': { method: 'GET', path: '/v1/projects/{id}/operations/{operationId}' },
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** The types of the public SDK surface. */
|
|
2
|
-
export type { ApiCallOptions, ApiErrorEnvelope, ApiErrorIssue, AutomationDetail, AutomationKind, AutomationList, AutomationSummary, AutomationTriggerState, AutomationsGetOptions, AutomationsListOptions, CreatedProjectRelease, DatasetReviewCreateItemNote, DatasetReviewDetail, DatasetReviewEvent, DatasetReviewExpectedFile, DatasetReviewFieldDecision, DatasetReviewFileDecision, DatasetReviewFocusField, DatasetReviewInboxItem, DatasetReviewInboxList, DatasetReviewItem, DatasetReviewItemFieldNote, DatasetReviewProgress, DatasetsReviewsCreateOptions, DatasetsReviewsListOptions, DeleteEmailServerResponse, DeleteFileResponse, DeletePromotionRouteResponse, DeleteTemplateResponse, DeletedVariable, EmailServer, EmailServerList, EmailServersDeleteOptions, EmailServersGetOptions, EmailServersListOptions, EmailServersTestOptions, EvalResult, ExecutionObservability, Experiment, ExperimentDetail, ExperimentList, ExperimentRef, ExperimentsListOptions, File, FileUploadNegotiation, FilesDeleteOptions, FilesDownloadOptions, FilesGetOptions, HttpChunkedFileUploadSession, ModelList, ModelsListOptions, MultipartFileUploadFallback, PresignedFileUploadSession, PresignedMultipartFileUploadSession, Project, ProjectList, ProjectOperationError, ProjectOperationStep, ProjectPromotion, ProjectPromotionRecord, ProjectRelease, ProjectReleaseDetail, ProjectReleaseList, ProjectReleaseRequest, ProjectRollback, ProjectStatus, ProjectsListOptions, PromotionOperation, PromotionRoute, PromotionRouteCheck, PromotionRouteEnvironment, PromotionRouteList, PromotionRoutePlan, PublicModel, PublicModelCost, PublicModelLimits, PublicResendEmailServer, PublicSmtpEmailServer, ReleaseOperation, ReleasesGetOptions, ReleasesListOptions, ReleasesRestoreOptions, ReleasesWithdrawOptions, ReviewList, ReviewTaskDetail, ReviewsApproveOptions, ReviewsDownloadOptions, ReviewsGetOptions, ReviewsListOptions, ReviewsRejectOptions, ReviewsSetOptions, RoutesDeleteOptions, RoutesGetOptions, RoutesListOptions, RoutesSetOptions, Run, RunAccepted, RunArtifact, RunArtifactsResponse, RunBuild, RunCancelResponse, RunChildRun, RunComparison, RunDebug, RunError, RunEval, RunEvent, RunEventsResponse, RunFile, RunHumanReviewSummary, RunInput, RunList, RunListItem, RunRetry, RunReview, RunReviewCorrection, RunReviewSummary, RunStep, RunStepWait, RunTiming, RunTrigger, RunUsage, RunsCancelOptions, RunsGetOptions, RunsListOptions, RunsRerunOptions, StatusOptions, Template, TemplateList, TemplateRevision, TemplatesDeleteOptions, TemplatesDownloadOptions, TemplatesGetOptions, TemplatesListOptions, TestEmailServerResponse, Variable, VariableList, VariableSetResponse, VariablesDeleteOptions, VariablesListOptions, VariablesSetOptions, } from './types.gen.js';
|
|
2
|
+
export type { ApiCallOptions, ApiErrorEnvelope, ApiErrorIssue, AutomationDetail, AutomationKind, AutomationList, AutomationSummary, AutomationTriggerState, AutomationsGetOptions, AutomationsListOptions, CreatedProjectRelease, DatasetReviewCreateItemNote, DatasetReviewDetail, DatasetReviewEvent, DatasetReviewExpectedFile, DatasetReviewFieldDecision, DatasetReviewFileDecision, DatasetReviewFocusField, DatasetReviewInboxItem, DatasetReviewInboxList, DatasetReviewItem, DatasetReviewItemFieldNote, DatasetReviewProgress, DatasetsReviewsCreateOptions, DatasetsReviewsListOptions, DeleteEmailServerResponse, DeleteFileResponse, DeletePromotionRouteResponse, DeleteTemplateResponse, DeletedVariable, EmailServer, EmailServerList, EmailServersDeleteOptions, EmailServersGetOptions, EmailServersListOptions, EmailServersTestOptions, EvalResult, ExecutionObservability, Experiment, ExperimentDetail, ExperimentList, ExperimentRef, ExperimentsListOptions, File, FileUploadNegotiation, FilesDeleteOptions, FilesDownloadOptions, FilesGetOptions, HttpChunkedFileUploadSession, ModelList, ModelsListOptions, MultipartFileUploadFallback, PresignedFileUploadSession, PresignedMultipartFileUploadSession, Project, ProjectList, ProjectOperationError, ProjectOperationStep, ProjectPromotion, ProjectPromotionRecord, ProjectRelease, ProjectReleaseDetail, ProjectReleaseList, ProjectReleaseRequest, ProjectRollback, ProjectStatus, ProjectsCreateOptions, ProjectsListOptions, PromotionOperation, PromotionRoute, PromotionRouteCheck, PromotionRouteEnvironment, PromotionRouteList, PromotionRoutePlan, PublicModel, PublicModelCost, PublicModelLimits, PublicResendEmailServer, PublicSmtpEmailServer, ReleaseOperation, ReleasesGetOptions, ReleasesListOptions, ReleasesRestoreOptions, ReleasesWithdrawOptions, ReviewList, ReviewTaskDetail, ReviewsApproveOptions, ReviewsDownloadOptions, ReviewsGetOptions, ReviewsListOptions, ReviewsRejectOptions, ReviewsSetOptions, RoutesDeleteOptions, RoutesGetOptions, RoutesListOptions, RoutesSetOptions, Run, RunAccepted, RunArtifact, RunArtifactsResponse, RunBuild, RunCancelResponse, RunChildRun, RunComparison, RunDebug, RunError, RunEval, RunEvent, RunEventsResponse, RunFile, RunHumanReviewSummary, RunInput, RunList, RunListItem, RunRetry, RunReview, RunReviewCorrection, RunReviewSummary, RunStep, RunStepWait, RunTiming, RunTrigger, RunUsage, RunsCancelOptions, RunsGetOptions, RunsListOptions, RunsRerunOptions, StatusOptions, Template, TemplateList, TemplateRevision, TemplatesDeleteOptions, TemplatesDownloadOptions, TemplatesGetOptions, TemplatesListOptions, TestEmailServerResponse, Variable, VariableList, VariableSetResponse, VariablesDeleteOptions, VariablesListOptions, VariablesSetOptions, } from './types.gen.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Core } from '../core.js';
|
|
2
2
|
import type { PagePromise } from '../page.js';
|
|
3
3
|
import type { DatasetsReviews, EmailServers, Experiments, Files, Runs, Templates } from '../resources.js';
|
|
4
|
-
import type { ApiCallOptions, AutomationDetail, AutomationList, AutomationsGetOptions, AutomationsListOptions, AutomationSummary, DatasetReviewDetail, DatasetReviewInboxItem, DatasetReviewInboxList, DatasetsReviewsCreateOptions, DatasetsReviewsListOptions, DeletedVariable, DeleteEmailServerResponse, DeleteFileResponse, DeletePromotionRouteResponse, DeleteTemplateResponse, EmailServer, EmailServerList, EmailServersDeleteOptions, EmailServersGetOptions, EmailServersListOptions, EmailServersTestOptions, Experiment, ExperimentList, ExperimentsListOptions, File, FilesDeleteOptions, FilesDownloadOptions, FilesGetOptions, ModelList, ModelsListOptions, Project, ProjectList, ProjectRelease, ProjectReleaseDetail, ProjectReleaseList, ProjectsListOptions, ProjectStatus, PromotionRoute, PromotionRouteList, PromotionRoutePlan, PublicModel, ReleasesGetOptions, ReleasesListOptions, ReleasesRestoreOptions, ReleasesWithdrawOptions, ReviewList, ReviewsApproveOptions, ReviewsDownloadOptions, ReviewsGetOptions, ReviewsListOptions, ReviewsRejectOptions, ReviewsSetOptions, ReviewTaskDetail, RoutesDeleteOptions, RoutesGetOptions, RoutesListOptions, RoutesSetOptions, Run, RunAccepted, RunCancelResponse, RunList, RunListItem, RunsCancelOptions, RunsGetOptions, RunsListOptions, RunsRerunOptions, StatusOptions, Template, TemplateList, TemplatesDeleteOptions, TemplatesDownloadOptions, TemplatesGetOptions, TemplatesListOptions, TestEmailServerResponse, Variable, VariableList, VariablesDeleteOptions, VariableSetResponse, VariablesListOptions, VariablesSetOptions } from './types.gen.js';
|
|
4
|
+
import type { ApiCallOptions, AutomationDetail, AutomationList, AutomationsGetOptions, AutomationsListOptions, AutomationSummary, DatasetReviewDetail, DatasetReviewInboxItem, DatasetReviewInboxList, DatasetsReviewsCreateOptions, DatasetsReviewsListOptions, DeletedVariable, DeleteEmailServerResponse, DeleteFileResponse, DeletePromotionRouteResponse, DeleteTemplateResponse, EmailServer, EmailServerList, EmailServersDeleteOptions, EmailServersGetOptions, EmailServersListOptions, EmailServersTestOptions, Experiment, ExperimentList, ExperimentsListOptions, File, FilesDeleteOptions, FilesDownloadOptions, FilesGetOptions, ModelList, ModelsListOptions, Project, ProjectList, ProjectRelease, ProjectReleaseDetail, ProjectReleaseList, ProjectsCreateOptions, ProjectsListOptions, ProjectStatus, PromotionRoute, PromotionRouteList, PromotionRoutePlan, PublicModel, ReleasesGetOptions, ReleasesListOptions, ReleasesRestoreOptions, ReleasesWithdrawOptions, ReviewList, ReviewsApproveOptions, ReviewsDownloadOptions, ReviewsGetOptions, ReviewsListOptions, ReviewsRejectOptions, ReviewsSetOptions, ReviewTaskDetail, RoutesDeleteOptions, RoutesGetOptions, RoutesListOptions, RoutesSetOptions, Run, RunAccepted, RunCancelResponse, RunList, RunListItem, RunsCancelOptions, RunsGetOptions, RunsListOptions, RunsRerunOptions, StatusOptions, Template, TemplateList, TemplatesDeleteOptions, TemplatesDownloadOptions, TemplatesGetOptions, TemplatesListOptions, TestEmailServerResponse, Variable, VariableList, VariablesDeleteOptions, VariableSetResponse, VariablesListOptions, VariablesSetOptions } from './types.gen.js';
|
|
5
5
|
/** The hand-written classes that fill the custom methods. */
|
|
6
6
|
export interface ResourceImpls {
|
|
7
7
|
RunsResource: new (core: Core, impls: ResourceImpls) => Runs;
|
|
@@ -11,6 +11,24 @@ export interface ResourceImpls {
|
|
|
11
11
|
EmailServersResource: new (core: Core, impls: ResourceImpls) => EmailServers;
|
|
12
12
|
FilesResource: new (core: Core, impls: ResourceImpls) => Files;
|
|
13
13
|
}
|
|
14
|
+
export declare class ProjectsResource {
|
|
15
|
+
protected readonly core: Core;
|
|
16
|
+
constructor(core: Core, impls: ResourceImpls);
|
|
17
|
+
/**
|
|
18
|
+
* Create a project from a GitHub or GitLab repository (in a clone, link the clone too).
|
|
19
|
+
*
|
|
20
|
+
* CLI: `eigenpal projects create [name]` · Route: `POST /v1/projects`
|
|
21
|
+
*/
|
|
22
|
+
create(options: ProjectsCreateOptions): Promise<Project>;
|
|
23
|
+
/**
|
|
24
|
+
* The projects you can open.
|
|
25
|
+
*
|
|
26
|
+
* CLI: `eigenpal projects list` · Route: `GET /v1/projects`
|
|
27
|
+
*
|
|
28
|
+
* Answers a page; iterate it (`for await`) for every item.
|
|
29
|
+
*/
|
|
30
|
+
list(options?: ProjectsListOptions): PagePromise<Project, ProjectList>;
|
|
31
|
+
}
|
|
14
32
|
export declare class AutomationsResource {
|
|
15
33
|
protected readonly core: Core;
|
|
16
34
|
constructor(core: Core, impls: ResourceImpls);
|
|
@@ -257,18 +275,6 @@ export declare class VariablesResource {
|
|
|
257
275
|
*/
|
|
258
276
|
delete(name: string, options?: VariablesDeleteOptions): Promise<DeletedVariable>;
|
|
259
277
|
}
|
|
260
|
-
export declare class ProjectsResource {
|
|
261
|
-
protected readonly core: Core;
|
|
262
|
-
constructor(core: Core, impls: ResourceImpls);
|
|
263
|
-
/**
|
|
264
|
-
* The projects you can open.
|
|
265
|
-
*
|
|
266
|
-
* CLI: `eigenpal projects list` · Route: `GET /v1/projects`
|
|
267
|
-
*
|
|
268
|
-
* Answers a page; iterate it (`for await`) for every item.
|
|
269
|
-
*/
|
|
270
|
-
list(options?: ProjectsListOptions): PagePromise<Project, ProjectList>;
|
|
271
|
-
}
|
|
272
278
|
export declare class ModelsResource {
|
|
273
279
|
protected readonly core: Core;
|
|
274
280
|
constructor(core: Core, impls: ResourceImpls);
|
|
@@ -421,6 +427,7 @@ export declare abstract class FilesResource {
|
|
|
421
427
|
}
|
|
422
428
|
export declare abstract class EigenPalClientBase {
|
|
423
429
|
protected readonly core: Core;
|
|
430
|
+
readonly projects: ProjectsResource;
|
|
424
431
|
readonly automations: AutomationsResource;
|
|
425
432
|
readonly runs: Runs;
|
|
426
433
|
readonly experiments: Experiments;
|
|
@@ -428,7 +435,6 @@ export declare abstract class EigenPalClientBase {
|
|
|
428
435
|
readonly datasets: DatasetsResource;
|
|
429
436
|
readonly reviews: ReviewsResource;
|
|
430
437
|
readonly variables: VariablesResource;
|
|
431
|
-
readonly projects: ProjectsResource;
|
|
432
438
|
readonly models: ModelsResource;
|
|
433
439
|
readonly templates: Templates;
|
|
434
440
|
readonly emailServers: EmailServers;
|
|
@@ -1,4 +1,40 @@
|
|
|
1
1
|
// Generated by scripts/sdk-gen from openapi.json and the CLI command table. Do not edit.
|
|
2
|
+
export class ProjectsResource {
|
|
3
|
+
core;
|
|
4
|
+
constructor(core, impls) {
|
|
5
|
+
this.core = core;
|
|
6
|
+
void impls;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Create a project from a GitHub or GitLab repository (in a clone, link the clone too).
|
|
10
|
+
*
|
|
11
|
+
* CLI: `eigenpal projects create [name]` · Route: `POST /v1/projects`
|
|
12
|
+
*/
|
|
13
|
+
create(options) {
|
|
14
|
+
return this.core.request('projects.create', {
|
|
15
|
+
body: {
|
|
16
|
+
slug: options.slug,
|
|
17
|
+
connectionId: options.connectionId,
|
|
18
|
+
repository: options.repo,
|
|
19
|
+
rootDirectory: options.dir,
|
|
20
|
+
trackedBranch: options.branch,
|
|
21
|
+
previews: options.previews,
|
|
22
|
+
provider: options.provider,
|
|
23
|
+
},
|
|
24
|
+
signal: options.signal,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The projects you can open.
|
|
29
|
+
*
|
|
30
|
+
* CLI: `eigenpal projects list` · Route: `GET /v1/projects`
|
|
31
|
+
*
|
|
32
|
+
* Answers a page; iterate it (`for await`) for every item.
|
|
33
|
+
*/
|
|
34
|
+
list(options = {}) {
|
|
35
|
+
return this.core.page('projects.list', { query: { archived: options.archived }, signal: options.signal }, { list: { key: 'data', paging: 'none' } });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
2
38
|
export class AutomationsResource {
|
|
3
39
|
core;
|
|
4
40
|
constructor(core, impls) {
|
|
@@ -385,23 +421,6 @@ export class VariablesResource {
|
|
|
385
421
|
return this.core.request('variables.delete', { path: { name: name }, project: options.project, signal: options.signal }, { project: 'query' });
|
|
386
422
|
}
|
|
387
423
|
}
|
|
388
|
-
export class ProjectsResource {
|
|
389
|
-
core;
|
|
390
|
-
constructor(core, impls) {
|
|
391
|
-
this.core = core;
|
|
392
|
-
void impls;
|
|
393
|
-
}
|
|
394
|
-
/**
|
|
395
|
-
* The projects you can open.
|
|
396
|
-
*
|
|
397
|
-
* CLI: `eigenpal projects list` · Route: `GET /v1/projects`
|
|
398
|
-
*
|
|
399
|
-
* Answers a page; iterate it (`for await`) for every item.
|
|
400
|
-
*/
|
|
401
|
-
list(options = {}) {
|
|
402
|
-
return this.core.page('projects.list', { query: { archived: options.archived }, signal: options.signal }, { list: { key: 'data', paging: 'none' } });
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
424
|
export class ModelsResource {
|
|
406
425
|
core;
|
|
407
426
|
constructor(core, impls) {
|
|
@@ -612,6 +631,7 @@ export class FilesResource {
|
|
|
612
631
|
}
|
|
613
632
|
export class EigenPalClientBase {
|
|
614
633
|
core;
|
|
634
|
+
projects;
|
|
615
635
|
automations;
|
|
616
636
|
runs;
|
|
617
637
|
experiments;
|
|
@@ -619,7 +639,6 @@ export class EigenPalClientBase {
|
|
|
619
639
|
datasets;
|
|
620
640
|
reviews;
|
|
621
641
|
variables;
|
|
622
|
-
projects;
|
|
623
642
|
models;
|
|
624
643
|
templates;
|
|
625
644
|
emailServers;
|
|
@@ -627,6 +646,7 @@ export class EigenPalClientBase {
|
|
|
627
646
|
files;
|
|
628
647
|
constructor(core, impls) {
|
|
629
648
|
this.core = core;
|
|
649
|
+
this.projects = new ProjectsResource(core, impls);
|
|
630
650
|
this.automations = new AutomationsResource(core, impls);
|
|
631
651
|
this.runs = new impls.RunsResource(core, impls);
|
|
632
652
|
this.experiments = new impls.ExperimentsResource(core, impls);
|
|
@@ -634,7 +654,6 @@ export class EigenPalClientBase {
|
|
|
634
654
|
this.datasets = new DatasetsResource(core, impls);
|
|
635
655
|
this.reviews = new ReviewsResource(core, impls);
|
|
636
656
|
this.variables = new VariablesResource(core, impls);
|
|
637
|
-
this.projects = new ProjectsResource(core, impls);
|
|
638
657
|
this.models = new ModelsResource(core, impls);
|
|
639
658
|
this.templates = new impls.TemplatesResource(core, impls);
|
|
640
659
|
this.emailServers = new impls.EmailServersResource(core, impls);
|
|
@@ -161,10 +161,14 @@ export type CreatedProjectRelease = {
|
|
|
161
161
|
kind: 'workflow' | 'agent';
|
|
162
162
|
/** New or changed against the newest release before it (true in the first release). */
|
|
163
163
|
changed: boolean;
|
|
164
|
+
/** In the release before it but not in this one: the release takes it out (also changed). */
|
|
165
|
+
removed?: boolean;
|
|
164
166
|
}> | null;
|
|
165
167
|
release?: ProjectRelease;
|
|
166
|
-
/**
|
|
168
|
+
/** False when the commit was numbered already: that release is answered and no second number is made (a dry run says so up front). A bump word, or the same number again, on a commit that has a release always answers it. */
|
|
167
169
|
changed?: boolean;
|
|
170
|
+
/** Branch dry run with the approval step: the branch rule that leaves merging to a person (a ruleset, a protected branch, the token access), so a real call would stop at approval_required. */
|
|
171
|
+
approvalReason?: string | null;
|
|
168
172
|
/** Branch releases: the branch and where it stands against the tracked branch. */
|
|
169
173
|
branch?: {
|
|
170
174
|
name: string;
|
|
@@ -198,6 +202,20 @@ export type CreatedProjectRelease = {
|
|
|
198
202
|
/** GitHub and GitLab branch releases: the pull or merge request that lands the branch. */
|
|
199
203
|
request?: ProjectReleaseRequest | null;
|
|
200
204
|
};
|
|
205
|
+
export type CreateEigenpalProject = {
|
|
206
|
+
slug: string;
|
|
207
|
+
provider: 'eigenpal';
|
|
208
|
+
};
|
|
209
|
+
export type CreateProject = {
|
|
210
|
+
slug: string;
|
|
211
|
+
/** The Git provider connection to import through. Absent: the organization's connection that reaches the repository. */
|
|
212
|
+
connectionId?: string;
|
|
213
|
+
repository: string;
|
|
214
|
+
rootDirectory?: string;
|
|
215
|
+
trackedBranch?: string;
|
|
216
|
+
/** Preview builds for other branches; default true */
|
|
217
|
+
previews?: boolean;
|
|
218
|
+
};
|
|
201
219
|
export type DatasetDraftBody = {
|
|
202
220
|
/** The version the experiment will run, as `version` of the experiment request (informational). */
|
|
203
221
|
version?: string;
|
|
@@ -649,6 +667,8 @@ export type Experiment = {
|
|
|
649
667
|
/** Automation this experiment belongs to. */
|
|
650
668
|
automationId: string;
|
|
651
669
|
kind: AutomationKind;
|
|
670
|
+
/** Workflow experiments: what the runs ran. `live`: the automation itself (a release or a build); `draft`: a person's `eigenpal run` or `eigenpal eval` draft; `preview`: a branch or pull request preview. Drafts and previews are listed with their automation. */
|
|
671
|
+
source?: 'live' | 'draft' | 'preview';
|
|
652
672
|
/** Where the experiment stands, in the words runs use: queued, running, waiting (every unfinished run waits for a person), succeeded (finished; failed examples are counted in `failedCount` and `erroredCount`), failed (every run errored, so no example was graded), cancelled. */
|
|
653
673
|
state: 'queued' | 'running' | 'waiting' | 'succeeded' | 'failed' | 'cancelled';
|
|
654
674
|
/** Total runs in the experiment. */
|
|
@@ -661,7 +681,7 @@ export type Experiment = {
|
|
|
661
681
|
failedCount: number;
|
|
662
682
|
/** Runs that failed without their example expecting it: they have no output to grade, so no evaluator ran. */
|
|
663
683
|
erroredCount?: number;
|
|
664
|
-
/** Average automated evaluator score. */
|
|
684
|
+
/** Average automated evaluator score over the examples, an errored example counting as 0 (agent experiments: over the scored runs). */
|
|
665
685
|
avgScore: number | null;
|
|
666
686
|
createdAt: string;
|
|
667
687
|
completedAt: string | null;
|
|
@@ -696,6 +716,8 @@ export type ExperimentDetail = {
|
|
|
696
716
|
/** Automation this experiment belongs to. */
|
|
697
717
|
automationId: string;
|
|
698
718
|
kind: AutomationKind;
|
|
719
|
+
/** Workflow experiments: what the runs ran. `live`: the automation itself (a release or a build); `draft`: a person's `eigenpal run` or `eigenpal eval` draft; `preview`: a branch or pull request preview. Drafts and previews are listed with their automation. */
|
|
720
|
+
source?: 'live' | 'draft' | 'preview';
|
|
699
721
|
/** Where the experiment stands, in the words runs use: queued, running, waiting (every unfinished run waits for a person), succeeded (finished; failed examples are counted in `failedCount` and `erroredCount`), failed (every run errored, so no example was graded), cancelled. */
|
|
700
722
|
state: 'queued' | 'running' | 'waiting' | 'succeeded' | 'failed' | 'cancelled';
|
|
701
723
|
/** Total runs in the experiment. */
|
|
@@ -708,7 +730,7 @@ export type ExperimentDetail = {
|
|
|
708
730
|
failedCount: number;
|
|
709
731
|
/** Runs that failed without their example expecting it: they have no output to grade, so no evaluator ran. */
|
|
710
732
|
erroredCount?: number;
|
|
711
|
-
/** Average automated evaluator score. */
|
|
733
|
+
/** Average automated evaluator score over the examples, an errored example counting as 0 (agent experiments: over the scored runs). */
|
|
712
734
|
avgScore: number | null;
|
|
713
735
|
createdAt: string;
|
|
714
736
|
completedAt: string | null;
|
|
@@ -729,6 +751,10 @@ export type ExperimentDetail = {
|
|
|
729
751
|
evalScore: number | null;
|
|
730
752
|
/** Persisted aggregate evaluator verdict. */
|
|
731
753
|
evalPassed: boolean | null;
|
|
754
|
+
/** Why the run failed, for an errored run; null otherwise. */
|
|
755
|
+
error?: string | null;
|
|
756
|
+
/** True when the evaluation completed a review step of this run without a person: evaluations never wait for a review, they answer it with the edits in the example's meta.json, or unchanged. */
|
|
757
|
+
simulatedReview?: boolean;
|
|
732
758
|
createdAt: string;
|
|
733
759
|
completedAt: string | null;
|
|
734
760
|
}>;
|
|
@@ -985,7 +1011,7 @@ export type ProjectRelease = {
|
|
|
985
1011
|
notes: string | null;
|
|
986
1012
|
createdAt: string;
|
|
987
1013
|
createdBy: string | null;
|
|
988
|
-
/** The name (or email) of whoever made the release;
|
|
1014
|
+
/** The name (or email) of whoever made the release; null for releases from Git or a promotion. */
|
|
989
1015
|
createdByName?: string | null;
|
|
990
1016
|
/** Set while withdrawn: version ranges skip the release, its exact number still resolves. */
|
|
991
1017
|
withdrawn: {
|
|
@@ -1021,7 +1047,7 @@ export type ProjectReleaseDetail = {
|
|
|
1021
1047
|
notes: string | null;
|
|
1022
1048
|
createdAt: string;
|
|
1023
1049
|
createdBy: string | null;
|
|
1024
|
-
/** The name (or email) of whoever made the release;
|
|
1050
|
+
/** The name (or email) of whoever made the release; null for releases from Git or a promotion. */
|
|
1025
1051
|
createdByName?: string | null;
|
|
1026
1052
|
/** Set while withdrawn: version ranges skip the release, its exact number still resolves. */
|
|
1027
1053
|
withdrawn: {
|
|
@@ -1030,12 +1056,14 @@ export type ProjectReleaseDetail = {
|
|
|
1030
1056
|
} | null;
|
|
1031
1057
|
/** Its build is what is live here now. */
|
|
1032
1058
|
live: boolean;
|
|
1033
|
-
/** Every workflow and agent of the release's build. */
|
|
1059
|
+
/** Every workflow and agent of the release's build, then those it removed (removed). */
|
|
1034
1060
|
automations: Array<{
|
|
1035
1061
|
name: string;
|
|
1036
1062
|
kind: 'workflow' | 'agent';
|
|
1037
1063
|
/** New or changed since the release numbered before it; true in the first release. */
|
|
1038
1064
|
changed: boolean;
|
|
1065
|
+
/** In the release before it but not in this one: the release takes it out (also changed). */
|
|
1066
|
+
removed?: boolean;
|
|
1039
1067
|
}>;
|
|
1040
1068
|
};
|
|
1041
1069
|
export type ProjectReleaseList = {
|
|
@@ -1091,6 +1119,7 @@ export type ProjectRollbackBody = {
|
|
|
1091
1119
|
/** Answer what would happen (`planned`) and change nothing. */
|
|
1092
1120
|
dryRun?: boolean;
|
|
1093
1121
|
};
|
|
1122
|
+
export type ProjectsCreateBody = CreateProject | CreateEigenpalProject;
|
|
1094
1123
|
export type ProjectsOperationsGetResponse = ReleaseOperation | PromotionOperation;
|
|
1095
1124
|
export type ProjectsPromoteResponse = ProjectPromotion | PromotionOperation;
|
|
1096
1125
|
export type ProjectsReleasesCreateResponse = CreatedProjectRelease | ReleaseOperation;
|
|
@@ -1209,6 +1238,8 @@ export type ProjectStatus = {
|
|
|
1209
1238
|
id: string;
|
|
1210
1239
|
name: string;
|
|
1211
1240
|
}>;
|
|
1241
|
+
/** The agents of the branch's previewed build the caller can open, by name. Each runs at the build's commit (`<agent>@<branch>`), also before it has ever been live. */
|
|
1242
|
+
agents: string[];
|
|
1212
1243
|
}>;
|
|
1213
1244
|
previewLimit: number;
|
|
1214
1245
|
checks: Array<{
|
|
@@ -1569,6 +1600,8 @@ export type ReviewTaskDetail = {
|
|
|
1569
1600
|
}>;
|
|
1570
1601
|
instructions: string | null;
|
|
1571
1602
|
completedBy: string | null;
|
|
1603
|
+
/** Name (or email) of the person who approved or rejected the task. */
|
|
1604
|
+
completedByName?: string | null;
|
|
1572
1605
|
completedAt: string | null;
|
|
1573
1606
|
outcomeReason: string | null;
|
|
1574
1607
|
/** Optional lineage@1 document resolved from the extract sidecar. Omitted when missing or unreadable. Validate with @openparser/lineage. */
|
|
@@ -1583,6 +1616,8 @@ export type Run = {
|
|
|
1583
1616
|
project: string | null;
|
|
1584
1617
|
/** Name of the automation that ran. */
|
|
1585
1618
|
automation: string | null;
|
|
1619
|
+
/** What ran: `live` (a build of the branch the project tracks), `draft` (a CLI draft or its eval) or `preview` (a branch or pull request preview, its PR check included). An agent or sub-workflow a run invoked takes the source of that run. */
|
|
1620
|
+
source: 'live' | 'draft' | 'preview';
|
|
1586
1621
|
/** Release number that ran. When the source that ran is no release (a draft, a branch or a build made live without one), an agent run carries the version it asked for and a workflow run null. `commit` then says what ran. */
|
|
1587
1622
|
version: string | null;
|
|
1588
1623
|
/** Source commit that ran; null when none is recorded. */
|
|
@@ -1823,6 +1858,8 @@ export type RunListItem = {
|
|
|
1823
1858
|
project: string | null;
|
|
1824
1859
|
/** Name of the automation that ran. */
|
|
1825
1860
|
automation: string | null;
|
|
1861
|
+
/** What ran: `live` (a build of the branch the project tracks), `draft` (a CLI draft or its eval) or `preview` (a branch or pull request preview, its PR check included). An agent or sub-workflow a run invoked takes the source of that run. */
|
|
1862
|
+
source: 'live' | 'draft' | 'preview';
|
|
1826
1863
|
/** Release number that ran. When the source that ran is no release (a draft, a branch or a build made live without one), an agent run carries the version it asked for and a workflow run null. `commit` then says what ran. */
|
|
1827
1864
|
version: string | null;
|
|
1828
1865
|
/** Source commit that ran; null when none is recorded. */
|
|
@@ -2218,6 +2255,18 @@ export type WorkflowEvaluatorConfigResponse = {
|
|
|
2218
2255
|
evaluation?: AgentEvaluation | null;
|
|
2219
2256
|
config: WorkflowEvaluatorConfig;
|
|
2220
2257
|
};
|
|
2258
|
+
export interface ProjectsCreateOptions {
|
|
2259
|
+
slug: string | string;
|
|
2260
|
+
/** The Git provider connection to import through. Absent: the organization's connection that reaches the repository. */
|
|
2261
|
+
connectionId?: string;
|
|
2262
|
+
repo?: string;
|
|
2263
|
+
dir?: string;
|
|
2264
|
+
branch?: string;
|
|
2265
|
+
/** Preview builds for other branches; default true */
|
|
2266
|
+
previews?: boolean;
|
|
2267
|
+
provider?: 'eigenpal';
|
|
2268
|
+
signal?: AbortSignal;
|
|
2269
|
+
}
|
|
2221
2270
|
export interface StatusOptions {
|
|
2222
2271
|
/** false skips the environments (no Git host calls). Default true. */
|
|
2223
2272
|
environments?: boolean;
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -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.
|
|
19
|
+
export declare const SDK_VERSION = "1.0.0-rc.5";
|
|
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.
|
|
21
|
+
export const SDK_VERSION = '1.0.0-rc.5';
|
|
22
22
|
function detectRuntime() {
|
|
23
23
|
const g = globalThis;
|
|
24
24
|
if (g.Bun?.version)
|