@eigenpal/sdk 1.0.0-rc.3 → 1.0.0-rc.4
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 +42 -1
- 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);
|
|
@@ -163,8 +163,10 @@ export type CreatedProjectRelease = {
|
|
|
163
163
|
changed: boolean;
|
|
164
164
|
}> | null;
|
|
165
165
|
release?: ProjectRelease;
|
|
166
|
-
/**
|
|
166
|
+
/** 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
167
|
changed?: boolean;
|
|
168
|
+
/** 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. */
|
|
169
|
+
approvalReason?: string | null;
|
|
168
170
|
/** Branch releases: the branch and where it stands against the tracked branch. */
|
|
169
171
|
branch?: {
|
|
170
172
|
name: string;
|
|
@@ -198,6 +200,20 @@ export type CreatedProjectRelease = {
|
|
|
198
200
|
/** GitHub and GitLab branch releases: the pull or merge request that lands the branch. */
|
|
199
201
|
request?: ProjectReleaseRequest | null;
|
|
200
202
|
};
|
|
203
|
+
export type CreateEigenpalProject = {
|
|
204
|
+
slug: string;
|
|
205
|
+
provider: 'eigenpal';
|
|
206
|
+
};
|
|
207
|
+
export type CreateProject = {
|
|
208
|
+
slug: string;
|
|
209
|
+
/** The Git provider connection to import through. Absent: the organization's connection that reaches the repository. */
|
|
210
|
+
connectionId?: string;
|
|
211
|
+
repository: string;
|
|
212
|
+
rootDirectory?: string;
|
|
213
|
+
trackedBranch?: string;
|
|
214
|
+
/** Preview builds for other branches; default true */
|
|
215
|
+
previews?: boolean;
|
|
216
|
+
};
|
|
201
217
|
export type DatasetDraftBody = {
|
|
202
218
|
/** The version the experiment will run, as `version` of the experiment request (informational). */
|
|
203
219
|
version?: string;
|
|
@@ -649,6 +665,8 @@ export type Experiment = {
|
|
|
649
665
|
/** Automation this experiment belongs to. */
|
|
650
666
|
automationId: string;
|
|
651
667
|
kind: AutomationKind;
|
|
668
|
+
/** 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. */
|
|
669
|
+
source?: 'live' | 'draft' | 'preview';
|
|
652
670
|
/** 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
671
|
state: 'queued' | 'running' | 'waiting' | 'succeeded' | 'failed' | 'cancelled';
|
|
654
672
|
/** Total runs in the experiment. */
|
|
@@ -696,6 +714,8 @@ export type ExperimentDetail = {
|
|
|
696
714
|
/** Automation this experiment belongs to. */
|
|
697
715
|
automationId: string;
|
|
698
716
|
kind: AutomationKind;
|
|
717
|
+
/** 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. */
|
|
718
|
+
source?: 'live' | 'draft' | 'preview';
|
|
699
719
|
/** 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
720
|
state: 'queued' | 'running' | 'waiting' | 'succeeded' | 'failed' | 'cancelled';
|
|
701
721
|
/** Total runs in the experiment. */
|
|
@@ -729,6 +749,8 @@ export type ExperimentDetail = {
|
|
|
729
749
|
evalScore: number | null;
|
|
730
750
|
/** Persisted aggregate evaluator verdict. */
|
|
731
751
|
evalPassed: boolean | null;
|
|
752
|
+
/** Why the run failed, for an errored run; null otherwise. */
|
|
753
|
+
error?: string | null;
|
|
732
754
|
createdAt: string;
|
|
733
755
|
completedAt: string | null;
|
|
734
756
|
}>;
|
|
@@ -1091,6 +1113,7 @@ export type ProjectRollbackBody = {
|
|
|
1091
1113
|
/** Answer what would happen (`planned`) and change nothing. */
|
|
1092
1114
|
dryRun?: boolean;
|
|
1093
1115
|
};
|
|
1116
|
+
export type ProjectsCreateBody = CreateProject | CreateEigenpalProject;
|
|
1094
1117
|
export type ProjectsOperationsGetResponse = ReleaseOperation | PromotionOperation;
|
|
1095
1118
|
export type ProjectsPromoteResponse = ProjectPromotion | PromotionOperation;
|
|
1096
1119
|
export type ProjectsReleasesCreateResponse = CreatedProjectRelease | ReleaseOperation;
|
|
@@ -1209,6 +1232,8 @@ export type ProjectStatus = {
|
|
|
1209
1232
|
id: string;
|
|
1210
1233
|
name: string;
|
|
1211
1234
|
}>;
|
|
1235
|
+
/** 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. */
|
|
1236
|
+
agents: string[];
|
|
1212
1237
|
}>;
|
|
1213
1238
|
previewLimit: number;
|
|
1214
1239
|
checks: Array<{
|
|
@@ -1583,6 +1608,8 @@ export type Run = {
|
|
|
1583
1608
|
project: string | null;
|
|
1584
1609
|
/** Name of the automation that ran. */
|
|
1585
1610
|
automation: string | null;
|
|
1611
|
+
/** 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. */
|
|
1612
|
+
source: 'live' | 'draft' | 'preview';
|
|
1586
1613
|
/** 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
1614
|
version: string | null;
|
|
1588
1615
|
/** Source commit that ran; null when none is recorded. */
|
|
@@ -1823,6 +1850,8 @@ export type RunListItem = {
|
|
|
1823
1850
|
project: string | null;
|
|
1824
1851
|
/** Name of the automation that ran. */
|
|
1825
1852
|
automation: string | null;
|
|
1853
|
+
/** 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. */
|
|
1854
|
+
source: 'live' | 'draft' | 'preview';
|
|
1826
1855
|
/** 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
1856
|
version: string | null;
|
|
1828
1857
|
/** Source commit that ran; null when none is recorded. */
|
|
@@ -2218,6 +2247,18 @@ export type WorkflowEvaluatorConfigResponse = {
|
|
|
2218
2247
|
evaluation?: AgentEvaluation | null;
|
|
2219
2248
|
config: WorkflowEvaluatorConfig;
|
|
2220
2249
|
};
|
|
2250
|
+
export interface ProjectsCreateOptions {
|
|
2251
|
+
slug: string | string;
|
|
2252
|
+
/** The Git provider connection to import through. Absent: the organization's connection that reaches the repository. */
|
|
2253
|
+
connectionId?: string;
|
|
2254
|
+
repo?: string;
|
|
2255
|
+
dir?: string;
|
|
2256
|
+
branch?: string;
|
|
2257
|
+
/** Preview builds for other branches; default true */
|
|
2258
|
+
previews?: boolean;
|
|
2259
|
+
provider?: 'eigenpal';
|
|
2260
|
+
signal?: AbortSignal;
|
|
2261
|
+
}
|
|
2221
2262
|
export interface StatusOptions {
|
|
2222
2263
|
/** false skips the environments (no Git host calls). Default true. */
|
|
2223
2264
|
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.4";
|
|
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.4';
|
|
22
22
|
function detectRuntime() {
|
|
23
23
|
const g = globalThis;
|
|
24
24
|
if (g.Bun?.version)
|