@eigenpal/sdk 1.0.0-rc.2 → 1.0.0-rc.3
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.
|
@@ -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, 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, 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';
|
|
@@ -444,7 +444,7 @@ export declare abstract class EigenPalClientBase {
|
|
|
444
444
|
/**
|
|
445
445
|
* Run an automation and wait for the result. In a project folder the local source runs as a draft; nothing live changes.
|
|
446
446
|
*
|
|
447
|
-
* CLI: `eigenpal run [<project>/]<automation>[@<version|range|live>] [file]` · Route: `POST /v1/runs`
|
|
447
|
+
* CLI: `eigenpal run [<project>/]<automation>[@<version|range|live|branch|commit>] [file]` · Route: `POST /v1/runs`
|
|
448
448
|
*
|
|
449
449
|
* Waits by default (`timeoutMs`, default 30 minutes).
|
|
450
450
|
*/
|
|
@@ -452,7 +452,7 @@ export declare abstract class EigenPalClientBase {
|
|
|
452
452
|
/**
|
|
453
453
|
* Run the dataset as an experiment; report what failed. Nothing live changes.
|
|
454
454
|
*
|
|
455
|
-
* CLI: `eigenpal eval <automation>[@<version|range|live>]` · Route: `POST /v1/automations/{id}/experiments`
|
|
455
|
+
* CLI: `eigenpal eval <automation>[@<version|range|live|branch|commit>]` · Route: `POST /v1/automations/{id}/experiments`
|
|
456
456
|
*
|
|
457
457
|
* Waits by default (`timeoutMs`, default 30 minutes).
|
|
458
458
|
*/
|
|
@@ -285,10 +285,7 @@ export class ReviewsResource {
|
|
|
285
285
|
* CLI: `eigenpal reviews get <task>` · Route: `GET /v1/reviews/{taskId}`
|
|
286
286
|
*/
|
|
287
287
|
get(task, options = {}) {
|
|
288
|
-
return this.core.request('humanReviews.get', {
|
|
289
|
-
path: { taskId: task },
|
|
290
|
-
signal: options.signal,
|
|
291
|
-
});
|
|
288
|
+
return this.core.request('humanReviews.get', { path: { taskId: task }, project: options.project, signal: options.signal }, { project: 'query' });
|
|
292
289
|
}
|
|
293
290
|
/**
|
|
294
291
|
* Set one field of a review task. Does not approve it.
|
|
@@ -29,6 +29,7 @@ export type AgentEvaluation = {
|
|
|
29
29
|
kind: 'llm_judge';
|
|
30
30
|
prompt: string;
|
|
31
31
|
model?: string;
|
|
32
|
+
judgedOnly?: string[];
|
|
32
33
|
}>;
|
|
33
34
|
pass: {
|
|
34
35
|
kind: 'callback';
|
|
@@ -90,6 +91,11 @@ export type AuthCheckResponse = {
|
|
|
90
91
|
id: string;
|
|
91
92
|
slug: string;
|
|
92
93
|
} | null;
|
|
94
|
+
/** Whether new projects can be hosted on EigenPal Git on this server. When not, `message` says why and what to do instead (connect a GitHub or GitLab repository). */
|
|
95
|
+
eigenpalGit: {
|
|
96
|
+
available: boolean;
|
|
97
|
+
message: string | null;
|
|
98
|
+
};
|
|
93
99
|
};
|
|
94
100
|
export type AutomationDetail = {
|
|
95
101
|
/** Implementation id for the automation. Workflow automations use workflow ids; agent automations use agent workflow ids. */
|
|
@@ -643,7 +649,7 @@ export type Experiment = {
|
|
|
643
649
|
/** Automation this experiment belongs to. */
|
|
644
650
|
automationId: string;
|
|
645
651
|
kind: AutomationKind;
|
|
646
|
-
/** 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`), failed (every run
|
|
652
|
+
/** 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. */
|
|
647
653
|
state: 'queued' | 'running' | 'waiting' | 'succeeded' | 'failed' | 'cancelled';
|
|
648
654
|
/** Total runs in the experiment. */
|
|
649
655
|
runCount: number;
|
|
@@ -653,6 +659,8 @@ export type Experiment = {
|
|
|
653
659
|
passedCount: number;
|
|
654
660
|
/** Runs whose evaluator scores failed. */
|
|
655
661
|
failedCount: number;
|
|
662
|
+
/** Runs that failed without their example expecting it: they have no output to grade, so no evaluator ran. */
|
|
663
|
+
erroredCount?: number;
|
|
656
664
|
/** Average automated evaluator score. */
|
|
657
665
|
avgScore: number | null;
|
|
658
666
|
createdAt: string;
|
|
@@ -688,7 +696,7 @@ export type ExperimentDetail = {
|
|
|
688
696
|
/** Automation this experiment belongs to. */
|
|
689
697
|
automationId: string;
|
|
690
698
|
kind: AutomationKind;
|
|
691
|
-
/** 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`), failed (every run
|
|
699
|
+
/** 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. */
|
|
692
700
|
state: 'queued' | 'running' | 'waiting' | 'succeeded' | 'failed' | 'cancelled';
|
|
693
701
|
/** Total runs in the experiment. */
|
|
694
702
|
runCount: number;
|
|
@@ -698,6 +706,8 @@ export type ExperimentDetail = {
|
|
|
698
706
|
passedCount: number;
|
|
699
707
|
/** Runs whose evaluator scores failed. */
|
|
700
708
|
failedCount: number;
|
|
709
|
+
/** Runs that failed without their example expecting it: they have no output to grade, so no evaluator ran. */
|
|
710
|
+
erroredCount?: number;
|
|
701
711
|
/** Average automated evaluator score. */
|
|
702
712
|
avgScore: number | null;
|
|
703
713
|
createdAt: string;
|
|
@@ -975,6 +985,8 @@ export type ProjectRelease = {
|
|
|
975
985
|
notes: string | null;
|
|
976
986
|
createdAt: string;
|
|
977
987
|
createdBy: string | null;
|
|
988
|
+
/** The name (or email) of whoever made the release; listing only, null for releases from Git or a promotion. */
|
|
989
|
+
createdByName?: string | null;
|
|
978
990
|
/** Set while withdrawn: version ranges skip the release, its exact number still resolves. */
|
|
979
991
|
withdrawn: {
|
|
980
992
|
at: string;
|
|
@@ -1009,6 +1021,8 @@ export type ProjectReleaseDetail = {
|
|
|
1009
1021
|
notes: string | null;
|
|
1010
1022
|
createdAt: string;
|
|
1011
1023
|
createdBy: string | null;
|
|
1024
|
+
/** The name (or email) of whoever made the release; listing only, null for releases from Git or a promotion. */
|
|
1025
|
+
createdByName?: string | null;
|
|
1012
1026
|
/** Set while withdrawn: version ranges skip the release, its exact number still resolves. */
|
|
1013
1027
|
withdrawn: {
|
|
1014
1028
|
at: string;
|
|
@@ -1273,6 +1287,18 @@ export type ProjectStatus = {
|
|
|
1273
1287
|
} | null;
|
|
1274
1288
|
problem: string | null;
|
|
1275
1289
|
}>;
|
|
1290
|
+
/** GitHub projects: the permissions EigenPal's GitHub App needs on the repository and lacks (Contents and Pull requests write for releases, Checks write for the pull request check). Null when none is missing or it is unknown. */
|
|
1291
|
+
repositoryAccess: {
|
|
1292
|
+
repository: string;
|
|
1293
|
+
missing: Array<{
|
|
1294
|
+
/** GitHub's name of the permission: `contents`. */
|
|
1295
|
+
key: string;
|
|
1296
|
+
level: 'read' | 'write';
|
|
1297
|
+
}>;
|
|
1298
|
+
message: string;
|
|
1299
|
+
/** How to grant the missing permissions. */
|
|
1300
|
+
hint: string;
|
|
1301
|
+
} | null;
|
|
1276
1302
|
};
|
|
1277
1303
|
export type PromotionOperation = {
|
|
1278
1304
|
/** Operation id (opaque). */
|
|
@@ -1947,6 +1973,8 @@ export type RunStep = {
|
|
|
1947
1973
|
error: string | null;
|
|
1948
1974
|
errorTruncated: boolean;
|
|
1949
1975
|
skippedReason: string | null;
|
|
1976
|
+
/** While the step waits: what it waits for (a person on a review, another run it started, a timer, a retry or a free sandbox). Null otherwise. */
|
|
1977
|
+
waitingOn: RunStepWait | null;
|
|
1950
1978
|
};
|
|
1951
1979
|
export type RunStepDetail = {
|
|
1952
1980
|
/** Step id: read it in full at GET /runs/{id}/steps/{stepId}. */
|
|
@@ -1968,6 +1996,8 @@ export type RunStepDetail = {
|
|
|
1968
1996
|
error: string | null;
|
|
1969
1997
|
errorTruncated: boolean;
|
|
1970
1998
|
skippedReason: string | null;
|
|
1999
|
+
/** While the step waits: what it waits for (a person on a review, another run it started, a timer, a retry or a free sandbox). Null otherwise. */
|
|
2000
|
+
waitingOn: RunStepWait | null;
|
|
1971
2001
|
/** The step's resolved input. */
|
|
1972
2002
|
input: unknown;
|
|
1973
2003
|
/** The step's output (the workflow's own shape). */
|
|
@@ -1984,6 +2014,23 @@ export type RunStepDetail = {
|
|
|
1984
2014
|
provider: string | null;
|
|
1985
2015
|
}>;
|
|
1986
2016
|
};
|
|
2017
|
+
export type RunStepWait = {
|
|
2018
|
+
kind: 'review';
|
|
2019
|
+
/** The review task a person must answer. */
|
|
2020
|
+
reviewTaskId: string | null;
|
|
2021
|
+
} | {
|
|
2022
|
+
kind: 'run';
|
|
2023
|
+
/** The run this step started and waits for (an agent or a workflow). */
|
|
2024
|
+
runId: string;
|
|
2025
|
+
} | {
|
|
2026
|
+
kind: 'timer';
|
|
2027
|
+
/** When the wait ends. */
|
|
2028
|
+
until: string | null;
|
|
2029
|
+
} | {
|
|
2030
|
+
kind: 'retry';
|
|
2031
|
+
} | {
|
|
2032
|
+
kind: 'sandbox';
|
|
2033
|
+
};
|
|
1987
2034
|
export type RunTiming = {
|
|
1988
2035
|
createdAt: string;
|
|
1989
2036
|
startedAt: string | null;
|
|
@@ -2333,6 +2380,8 @@ export interface ReviewsListOptions {
|
|
|
2333
2380
|
signal?: AbortSignal;
|
|
2334
2381
|
}
|
|
2335
2382
|
export interface ReviewsGetOptions {
|
|
2383
|
+
/** Project slug or id; defaults to the client project. */
|
|
2384
|
+
project?: string;
|
|
2336
2385
|
signal?: AbortSignal;
|
|
2337
2386
|
}
|
|
2338
2387
|
export interface ReviewsSetOptions {
|
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.3";
|
|
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.3';
|
|
22
22
|
function detectRuntime() {
|
|
23
23
|
const g = globalThis;
|
|
24
24
|
if (g.Bun?.version)
|