plato-sandbox-sdk 1.1.44 → 1.1.45
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/chronos/index.d.mts +143 -1
- package/dist/chronos/index.d.ts +143 -1
- package/dist/chronos/index.js +77 -0
- package/dist/chronos/index.mjs +1 -1
- package/dist/{chunk-BCP2NTUP.mjs → chunk-F36PEOJ6.mjs} +77 -0
- package/dist/index.d.mts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +77 -0
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/chronos/api/experiments.ts +95 -0
- package/src/chronos/api/sessions.ts +5 -0
- package/src/chronos/api/workspace_repos.ts +30 -0
- package/src/chronos/models/CreateTestRunRequest.ts +18 -0
- package/src/chronos/models/ExperimentTestRunResponse.ts +27 -0
- package/src/chronos/models/ExperimentVersionResponse.ts +3 -1
- package/src/chronos/models/FullLineageNode.ts +18 -0
- package/src/chronos/models/FullLineageResponse.ts +14 -0
- package/src/chronos/models/TestRunListResponse.ts +12 -0
- package/src/chronos/models/UpdateTestRunRequest.ts +14 -0
- package/src/chronos/models/index.ts +6 -0
package/dist/chronos/index.d.mts
CHANGED
|
@@ -1201,6 +1201,24 @@ interface CreateStepResponse {
|
|
|
1201
1201
|
manifest_hash: string;
|
|
1202
1202
|
}
|
|
1203
1203
|
|
|
1204
|
+
/**
|
|
1205
|
+
* CreateTestRunRequest
|
|
1206
|
+
* Register a sub-experiment test run for an experiment version.
|
|
1207
|
+
*
|
|
1208
|
+
* Auto-generated - do not edit
|
|
1209
|
+
*/
|
|
1210
|
+
interface CreateTestRunRequest {
|
|
1211
|
+
session_public_id: string;
|
|
1212
|
+
hypothesis_id: string;
|
|
1213
|
+
hypothesis_statement?: string | null;
|
|
1214
|
+
test_plan_name: string;
|
|
1215
|
+
isolation_strategy?: string | null;
|
|
1216
|
+
expected_outcome?: string | null;
|
|
1217
|
+
config_overrides?: Record<string, unknown> | null;
|
|
1218
|
+
git_link?: string | null;
|
|
1219
|
+
commit_sha?: string | null;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1204
1222
|
/**
|
|
1205
1223
|
* CreateWorkspaceRefRequest
|
|
1206
1224
|
* Record an input or output workspace ref for a session.
|
|
@@ -1657,6 +1675,32 @@ interface ExperimentSessionSummary {
|
|
|
1657
1675
|
created_by?: UserInfo | null;
|
|
1658
1676
|
}
|
|
1659
1677
|
|
|
1678
|
+
/**
|
|
1679
|
+
* ExperimentTestRunResponse
|
|
1680
|
+
* Response model for a sub-experiment test run.
|
|
1681
|
+
*
|
|
1682
|
+
* Auto-generated - do not edit
|
|
1683
|
+
*/
|
|
1684
|
+
|
|
1685
|
+
interface ExperimentTestRunResponse {
|
|
1686
|
+
public_id: string;
|
|
1687
|
+
session_public_id: string;
|
|
1688
|
+
hypothesis_id: string;
|
|
1689
|
+
hypothesis_statement?: string | null;
|
|
1690
|
+
test_plan_name: string;
|
|
1691
|
+
isolation_strategy?: string | null;
|
|
1692
|
+
expected_outcome?: string | null;
|
|
1693
|
+
status: string;
|
|
1694
|
+
exit_code?: number | null;
|
|
1695
|
+
result_summary?: string | null;
|
|
1696
|
+
config_overrides?: Record<string, unknown> | null;
|
|
1697
|
+
git_link?: string | null;
|
|
1698
|
+
commit_sha?: string | null;
|
|
1699
|
+
session_status?: string | null;
|
|
1700
|
+
created_at: string;
|
|
1701
|
+
created_by?: UserInfo | null;
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1660
1704
|
/**
|
|
1661
1705
|
* ExperimentVersionResponse
|
|
1662
1706
|
* Full experiment version payload for the frontend.
|
|
@@ -1676,8 +1720,10 @@ interface ExperimentVersionResponse {
|
|
|
1676
1720
|
created_at: string;
|
|
1677
1721
|
created_by?: UserInfo | null;
|
|
1678
1722
|
attached_session_count?: number | null;
|
|
1723
|
+
test_run_count?: number | null;
|
|
1679
1724
|
config_json?: ExperimentLaunchConfig | null;
|
|
1680
1725
|
attached_sessions?: ExperimentSessionSummary[] | null;
|
|
1726
|
+
test_runs?: ExperimentTestRunResponse[] | null;
|
|
1681
1727
|
}
|
|
1682
1728
|
|
|
1683
1729
|
/**
|
|
@@ -1709,6 +1755,37 @@ interface FindOrCreateReviewBody {
|
|
|
1709
1755
|
session_id: string;
|
|
1710
1756
|
}
|
|
1711
1757
|
|
|
1758
|
+
/**
|
|
1759
|
+
* FullLineageNode
|
|
1760
|
+
* A session node in the full lineage tree.
|
|
1761
|
+
*
|
|
1762
|
+
* Auto-generated - do not edit
|
|
1763
|
+
*/
|
|
1764
|
+
interface FullLineageNode {
|
|
1765
|
+
session_public_id: string;
|
|
1766
|
+
status?: string | null;
|
|
1767
|
+
total_cost_usd?: number | null;
|
|
1768
|
+
created_at?: string | null;
|
|
1769
|
+
world_name?: string | null;
|
|
1770
|
+
workspace: string;
|
|
1771
|
+
ref_public_id?: string | null;
|
|
1772
|
+
step_name?: string | null;
|
|
1773
|
+
children?: FullLineageNode[] | null;
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
/**
|
|
1777
|
+
* FullLineageResponse
|
|
1778
|
+
* Full session lineage tree across all workspaces, with costs.
|
|
1779
|
+
*
|
|
1780
|
+
* Auto-generated - do not edit
|
|
1781
|
+
*/
|
|
1782
|
+
|
|
1783
|
+
interface FullLineageResponse {
|
|
1784
|
+
roots: FullLineageNode[];
|
|
1785
|
+
total_cost_usd: number;
|
|
1786
|
+
session_count: number;
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1712
1789
|
/**
|
|
1713
1790
|
* HTTPValidationError
|
|
1714
1791
|
*
|
|
@@ -3167,6 +3244,17 @@ interface TargetSessionRef {
|
|
|
3167
3244
|
target_session_url?: string | null;
|
|
3168
3245
|
}
|
|
3169
3246
|
|
|
3247
|
+
/**
|
|
3248
|
+
* TestRunListResponse
|
|
3249
|
+
* List of test runs for an experiment version.
|
|
3250
|
+
*
|
|
3251
|
+
* Auto-generated - do not edit
|
|
3252
|
+
*/
|
|
3253
|
+
|
|
3254
|
+
interface TestRunListResponse {
|
|
3255
|
+
test_runs: ExperimentTestRunResponse[];
|
|
3256
|
+
}
|
|
3257
|
+
|
|
3170
3258
|
/**
|
|
3171
3259
|
* TokenSummaryRecord
|
|
3172
3260
|
*
|
|
@@ -3483,6 +3571,20 @@ interface UpdateTagsRequest {
|
|
|
3483
3571
|
tags: string[];
|
|
3484
3572
|
}
|
|
3485
3573
|
|
|
3574
|
+
/**
|
|
3575
|
+
* UpdateTestRunRequest
|
|
3576
|
+
* Update a test run status and result.
|
|
3577
|
+
*
|
|
3578
|
+
* Auto-generated - do not edit
|
|
3579
|
+
*/
|
|
3580
|
+
interface UpdateTestRunRequest {
|
|
3581
|
+
status?: string | null;
|
|
3582
|
+
exit_code?: number | null;
|
|
3583
|
+
result_summary?: string | null;
|
|
3584
|
+
git_link?: string | null;
|
|
3585
|
+
commit_sha?: string | null;
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3486
3588
|
/**
|
|
3487
3589
|
* UpsertIterationRequest
|
|
3488
3590
|
* Upsert an iteration record. Keyed by (run_id, iteration).
|
|
@@ -4783,6 +4885,20 @@ interface RunExperimentTargetReviewsParams {
|
|
|
4783
4885
|
specIndex?: number;
|
|
4784
4886
|
xApiKey?: string;
|
|
4785
4887
|
}
|
|
4888
|
+
interface ListExperimentTestRunsParams {
|
|
4889
|
+
versionPublicId: string;
|
|
4890
|
+
xApiKey?: string;
|
|
4891
|
+
}
|
|
4892
|
+
interface CreateExperimentTestRunParams {
|
|
4893
|
+
versionPublicId: string;
|
|
4894
|
+
xApiKey?: string;
|
|
4895
|
+
body: CreateTestRunRequest;
|
|
4896
|
+
}
|
|
4897
|
+
interface UpdateExperimentTestRunParams {
|
|
4898
|
+
publicId: string;
|
|
4899
|
+
xApiKey?: string;
|
|
4900
|
+
body: UpdateTestRunRequest;
|
|
4901
|
+
}
|
|
4786
4902
|
declare class ExperimentsApi {
|
|
4787
4903
|
private client;
|
|
4788
4904
|
constructor(client: ApiClient);
|
|
@@ -4860,6 +4976,21 @@ declare class ExperimentsApi {
|
|
|
4860
4976
|
target_session_id set to the given session.
|
|
4861
4977
|
*/
|
|
4862
4978
|
runExperimentTargetReviews(params: RunExperimentTargetReviewsParams, options?: RequestOptions): Promise<RunReviewsResponse>;
|
|
4979
|
+
/**
|
|
4980
|
+
* List Test Runs
|
|
4981
|
+
* List test runs for an experiment version.
|
|
4982
|
+
*/
|
|
4983
|
+
listExperimentTestRuns(params: ListExperimentTestRunsParams, options?: RequestOptions): Promise<TestRunListResponse>;
|
|
4984
|
+
/**
|
|
4985
|
+
* Create Test Run
|
|
4986
|
+
* Register a sub-experiment test run for a specific experiment version.
|
|
4987
|
+
*/
|
|
4988
|
+
createExperimentTestRun(params: CreateExperimentTestRunParams, options?: RequestOptions): Promise<ExperimentTestRunResponse>;
|
|
4989
|
+
/**
|
|
4990
|
+
* Update Test Run
|
|
4991
|
+
* Update a test run's status and result.
|
|
4992
|
+
*/
|
|
4993
|
+
updateExperimentTestRun(params: UpdateExperimentTestRunParams, options?: RequestOptions): Promise<ExperimentTestRunResponse>;
|
|
4863
4994
|
}
|
|
4864
4995
|
|
|
4865
4996
|
/**
|
|
@@ -5393,6 +5524,8 @@ interface ListSessionsParams {
|
|
|
5393
5524
|
worldVersion?: string;
|
|
5394
5525
|
/** When true, show ONLY archived sessions. When false (default), exclude archived sessions. */
|
|
5395
5526
|
archivedOnly?: boolean;
|
|
5527
|
+
/** Filter to sessions linked to experiments in this folder. Use '__none__' for unfiled experiments. */
|
|
5528
|
+
experimentFolder?: string;
|
|
5396
5529
|
xApiKey?: string;
|
|
5397
5530
|
}
|
|
5398
5531
|
interface CreateSessionParams {
|
|
@@ -5990,6 +6123,10 @@ interface GetSessionLineageParams {
|
|
|
5990
6123
|
workspace: string;
|
|
5991
6124
|
xApiKey?: string;
|
|
5992
6125
|
}
|
|
6126
|
+
interface GetSessionFullLineageParams {
|
|
6127
|
+
sessionPublicId: string;
|
|
6128
|
+
xApiKey?: string;
|
|
6129
|
+
}
|
|
5993
6130
|
interface GetDownstreamSessionsParams {
|
|
5994
6131
|
refPublicId: string;
|
|
5995
6132
|
xApiKey?: string;
|
|
@@ -6117,6 +6254,11 @@ declare class WorkspaceReposApi {
|
|
|
6117
6254
|
* Walk backward through source_ref links to build session lineage for a workspace.
|
|
6118
6255
|
*/
|
|
6119
6256
|
getSessionLineage(params: GetSessionLineageParams, options?: RequestOptions): Promise<SessionLineageResponse>;
|
|
6257
|
+
/**
|
|
6258
|
+
* Get Session Full Lineage
|
|
6259
|
+
* Build a full lineage tree across all workspaces for a session, including costs.
|
|
6260
|
+
*/
|
|
6261
|
+
getSessionFullLineage(params: GetSessionFullLineageParams, options?: RequestOptions): Promise<FullLineageResponse>;
|
|
6120
6262
|
/**
|
|
6121
6263
|
* Get Downstream Sessions
|
|
6122
6264
|
* Find all sessions that consumed (forked/resumed from) a given workspace ref.
|
|
@@ -6307,4 +6449,4 @@ declare class ChronosClient {
|
|
|
6307
6449
|
getApiClient(): ApiClient;
|
|
6308
6450
|
}
|
|
6309
6451
|
|
|
6310
|
-
export { type ActiveAnalysis, type AddSessionsRequest, AdminApi, type AgentArtifactPath, type AgentCostRecord, type AgentCreate, type AgentInfo, type AgentIssue, type AgentListResponse, type AgentLookupResponse, type AgentResponse, type AgentSchemaResponse, type AgentStep, type AgentStepMetrics, type AgentTrace, type AgentTrajectory, type AgentVersionInfo, type AgentVersionsResponse, AgentsApi, type AnalysisProvenance, type AnalysisRecordInput, type AnalysisRecordOutput, type AnalyzerSessionRef, type AnchorSessionResponse, type AnnotationListResponse, type AnnotationMetricsResponse, type AnnotationResponse, type AnnotationTarget, AnnotationsApi, type AppConfigResponse, type Artifact, type AssignmentListResponse, type AssignmentPreviewItem, type AssignmentPreviewResponse, type AssignmentResponse, AssignmentsApi, type AuditEventCountsResponse, type AuditEventInput, type AuditEventResponse, type AuditEventsListResponse, type AuditSummaryEntry, type AuditSummaryResponse, AuthApi, type AuthSessionResponse, type AuthStatusResponse, type BatchCreateAssignmentsBody, type BranchInfo, type BranchListResponse, BrowserApi, type BulkRefAuditEventsRequest, type CheckpointListItem, type CheckpointListResponse, CheckpointsApi, type ChildSessionSummary, ApiClient as ChronosApiClient, type ChronosApiDatasetsFoldersListResponse, type ChronosApiDatasetsRenameFolderRequest, type ChronosApiDatasetsRenameFolderResponse, ApiError as ChronosApiError, type ChronosApiExperimentsFoldersListResponse, type ChronosApiExperimentsRenameFolderRequest, type ChronosApiExperimentsRenameFolderResponse, type ApiRequest as ChronosApiRequest, ChronosClient, type ClientConfig as ChronosClientConfig, type RequestOptions as ChronosRequestOptions, type ClaudeCodeOAuthRefreshRequest, type ClearDbResult, type CloseSessionResponse, type CompleteSessionRequest, type CompressionArtifactInventory, type CompressionArtifactRecord, type CompressionChunkRecord, type CompressionClusterRef, type CompressionCoverageInput, type CompressionCoverageOutput, type CompressionManifestInput, type CompressionManifestOutput, type CompressionMetrics, type CompressionNoteCounts, type CompressionRunRecordInput, type CompressionRunRecordOutput, type CopyAnnotationsRequest, type CostAnalysisRecordInput, type CostAnalysisRecordOutput, type CreateAnchorSessionRequest, type CreateAnnotationRequest, type CreateAssignmentBody, type CreateBranchRequest, type CreateBranchResponse, type CreateDatasetRequest, type CreateReviewRequest, type CreateSessionRequest, type CreateSessionResponse, type CreateStepFile, type CreateStepRequest, type CreateStepResponse, type CreateWorkspaceRefRequest, type CreatorsListResponse, type DVCManifestEntry, type DailyUsageBucketResponse, type DatasetColumn, type DatasetColumnType, type DatasetDetailResponse, type DatasetFileCreateRequest, type DatasetFileListResponse, type DatasetFileResponse, type DatasetFileUpdateRequest, type DatasetResponse, type DatasetSessionSummary, type DatasetVersionCreateRequest, type DatasetVersionResponse, type DatasetVersionUpdateRequest, DatasetsApi, DefaultApi, type DeleteSessionResult, type DirectoryListing, type DownstreamSessionEntry, type DownstreamSessionsResponse, type EnvInfo, type EnvInfoResponse, EventsApi, type ExperimentFileCreateRequest, type ExperimentFileListResponse, type ExperimentFileResponse, type ExperimentFileUpdateRequest, type ExperimentFileVersionCreateRequest, type ExperimentFileVersionUpdateRequest, type ExperimentLaunchConfig, type ExperimentSessionCountResponse, type ExperimentSessionSummary, type ExperimentVersionResponse, ExperimentsApi, type FeatureFlagCheckResult, type FeedbackWidget, type FindOrCreateReviewBody, type HTTPValidationError, HillclimbApi, type HillclimbIterationResponse, type HillclimbRunDetailResponse, type HillclimbRunResponse, type IssueReference, type IterationOutcome, type IterationSessionIcon, type IterationSessionResponse, JobsApi, type JsonValue, type LaunchExperimentRequest, type LaunchExperimentResponse, type LaunchExperimentSessionResult, type LaunchHillclimbRunRequest, type LaunchHillclimbRunResponse, type LaunchJobRequest, type LaunchJobResponse, type LiveLogsResponse, type LogCoverageRuleSet, type LogScopePartitioning, type LogsDownloadResponse, type ModelRef, type NavigateAnchorSessionRequest, type OAuthRefreshResponse, type OTelMetricDataPoint, type OTelSpanListResponse, type OTelSpanSchema, type OTelTraceResponse, OtelApi, type PageScopeConfig, type PerAgentReport, type PlatoUser, type PreservationRuleSet, type PreviewLaunchConfig, type PreviewResponse, type PromoteBranchRequest, type PublishedNoteRecord, type RegistryAgentListResponse, type RegistryAgentSchemaResponse, type RegistryAgentVersionInfo, type RegistryAgentVersionsResponse, RegistryApi, type RegistryWorldInfo, type RenderWidget, type RerunPreviewResponse, type RerunWithConfigRequest, type RetryConfig, type ReviewIssue, type ReviewListResponse, type ReviewResponse, type ReviewWidgetSchemaResponse, ReviewsApi, type RouteScopeConfig, type RunLifecycle, type RunProgress, type RunReviewsResponse, type SSOLoginRequest, type SavedFilterCreate, type SavedFilterListResponse, type SavedFilterResponse, SavedFiltersApi, type SavedSessionFilters, type ScreenshotResponse, type ServiceStatuses, type SessionCheckpointInfoResponse, type SessionCostEntry, type SessionCostSummaryResponse, type SessionCreator, type SessionEnvsResponse, type SessionLaunchConfig, type SessionLineageEntry, type SessionLineageResponse, type SessionListResponse, type SessionLogsResponse, type SessionLogsStreamEvent, type SessionMetricsResponse, type SessionNoteUserRef, type SessionNotesPayloadInput, type SessionNotesPayloadOutput, type SessionResponse, type SessionReviewReportInput, type SessionReviewReportOutput, type SessionReviewerNotesInput, type SessionReviewerNotesOutput, type SessionReviewerRunRecordInput, type SessionReviewerRunRecordOutput, type SessionReviewerSpanNote, type SessionStatusResponse, type SessionStoredWorldConfig, type SessionSummary, type SessionToolSummary, type SessionTrajectory, type SessionWorldInfo, SessionsApi, type SettingResponse, SettingsApi, type SlackLookupResponse, type StarredCheckpointCreate, type StarredCheckpointListResponse, type StarredCheckpointResponse, type StarredCheckpointUpdate, StarredCheckpointsApi, StatusApi, type StatusResponse, type SyncAllResult, type SyncResult, type TagsListResponse, type TargetReviewSpec, type TargetSessionRef, type TokenSummaryRecord, type ToolStat, type ToolUsageCount, type TrajectoryAgentInfo, type TrajectoryMetrics, type TrajectoryObservation, type TrajectoryObservationResult, type TrajectorySandboxInfo, type TrajectoryToolCall, type TrajectoryWorldInfo, type UpdateAnnotationRequest, type UpdateAssignmentBody, type UpdateDatasetRequest, type UpdateFileRequest, type UpdateFileResponse, type UpdateNotesRequest, type UpdateReviewRequest, type UpdateRunRequest, type UpdateSettingRequest, type UpdateSpanNoteRequest, type UpdateStatusRequest, type UpdateTagsRequest, type UpsertIterationRequest, type UpsertIterationSessionRequest, type UsageStatsResponse, type UserInfo, type UserLeaderboardEntry, type UserWorldStatsEntry, type VMResources, type ValidationError, type VersionResponse, type WorkspaceFilesResponse, type WorkspaceRefEntry, type WorkspaceRefResponse, type WorkspaceRefSearchResponse, type WorkspaceRefSearchResult, type WorkspaceRefsListResponse, type WorkspaceRepoCredentialsResponse, type WorkspaceRepoListItem, type WorkspaceRepoListResponse, type WorkspaceRepoResolveRequest, type WorkspaceRepoResolveResponse, type WorkspaceRepoSizeResponse, WorkspaceReposApi, type WorkspaceSnapshotInfo, type WorldCatalogDetailResponse, type WorldCatalogEntry, type WorldCatalogResponse, type WorldConfigAgentEntry, type WorldConfigInput, type WorldConfigNamedEntry, type WorldConfigOutput, type WorldConfigSchema, type WorldCreate, type WorldLeaderboardEntry, type WorldListResponse, type WorldResponse, type WorldRuntimeConfig, type WorldSchemaResponse, type WorldStep, type WorldVersionsResponse, WorldsApi };
|
|
6452
|
+
export { type ActiveAnalysis, type AddSessionsRequest, AdminApi, type AgentArtifactPath, type AgentCostRecord, type AgentCreate, type AgentInfo, type AgentIssue, type AgentListResponse, type AgentLookupResponse, type AgentResponse, type AgentSchemaResponse, type AgentStep, type AgentStepMetrics, type AgentTrace, type AgentTrajectory, type AgentVersionInfo, type AgentVersionsResponse, AgentsApi, type AnalysisProvenance, type AnalysisRecordInput, type AnalysisRecordOutput, type AnalyzerSessionRef, type AnchorSessionResponse, type AnnotationListResponse, type AnnotationMetricsResponse, type AnnotationResponse, type AnnotationTarget, AnnotationsApi, type AppConfigResponse, type Artifact, type AssignmentListResponse, type AssignmentPreviewItem, type AssignmentPreviewResponse, type AssignmentResponse, AssignmentsApi, type AuditEventCountsResponse, type AuditEventInput, type AuditEventResponse, type AuditEventsListResponse, type AuditSummaryEntry, type AuditSummaryResponse, AuthApi, type AuthSessionResponse, type AuthStatusResponse, type BatchCreateAssignmentsBody, type BranchInfo, type BranchListResponse, BrowserApi, type BulkRefAuditEventsRequest, type CheckpointListItem, type CheckpointListResponse, CheckpointsApi, type ChildSessionSummary, ApiClient as ChronosApiClient, type ChronosApiDatasetsFoldersListResponse, type ChronosApiDatasetsRenameFolderRequest, type ChronosApiDatasetsRenameFolderResponse, ApiError as ChronosApiError, type ChronosApiExperimentsFoldersListResponse, type ChronosApiExperimentsRenameFolderRequest, type ChronosApiExperimentsRenameFolderResponse, type ApiRequest as ChronosApiRequest, ChronosClient, type ClientConfig as ChronosClientConfig, type RequestOptions as ChronosRequestOptions, type ClaudeCodeOAuthRefreshRequest, type ClearDbResult, type CloseSessionResponse, type CompleteSessionRequest, type CompressionArtifactInventory, type CompressionArtifactRecord, type CompressionChunkRecord, type CompressionClusterRef, type CompressionCoverageInput, type CompressionCoverageOutput, type CompressionManifestInput, type CompressionManifestOutput, type CompressionMetrics, type CompressionNoteCounts, type CompressionRunRecordInput, type CompressionRunRecordOutput, type CopyAnnotationsRequest, type CostAnalysisRecordInput, type CostAnalysisRecordOutput, type CreateAnchorSessionRequest, type CreateAnnotationRequest, type CreateAssignmentBody, type CreateBranchRequest, type CreateBranchResponse, type CreateDatasetRequest, type CreateReviewRequest, type CreateSessionRequest, type CreateSessionResponse, type CreateStepFile, type CreateStepRequest, type CreateStepResponse, type CreateTestRunRequest, type CreateWorkspaceRefRequest, type CreatorsListResponse, type DVCManifestEntry, type DailyUsageBucketResponse, type DatasetColumn, type DatasetColumnType, type DatasetDetailResponse, type DatasetFileCreateRequest, type DatasetFileListResponse, type DatasetFileResponse, type DatasetFileUpdateRequest, type DatasetResponse, type DatasetSessionSummary, type DatasetVersionCreateRequest, type DatasetVersionResponse, type DatasetVersionUpdateRequest, DatasetsApi, DefaultApi, type DeleteSessionResult, type DirectoryListing, type DownstreamSessionEntry, type DownstreamSessionsResponse, type EnvInfo, type EnvInfoResponse, EventsApi, type ExperimentFileCreateRequest, type ExperimentFileListResponse, type ExperimentFileResponse, type ExperimentFileUpdateRequest, type ExperimentFileVersionCreateRequest, type ExperimentFileVersionUpdateRequest, type ExperimentLaunchConfig, type ExperimentSessionCountResponse, type ExperimentSessionSummary, type ExperimentTestRunResponse, type ExperimentVersionResponse, ExperimentsApi, type FeatureFlagCheckResult, type FeedbackWidget, type FindOrCreateReviewBody, type FullLineageNode, type FullLineageResponse, type HTTPValidationError, HillclimbApi, type HillclimbIterationResponse, type HillclimbRunDetailResponse, type HillclimbRunResponse, type IssueReference, type IterationOutcome, type IterationSessionIcon, type IterationSessionResponse, JobsApi, type JsonValue, type LaunchExperimentRequest, type LaunchExperimentResponse, type LaunchExperimentSessionResult, type LaunchHillclimbRunRequest, type LaunchHillclimbRunResponse, type LaunchJobRequest, type LaunchJobResponse, type LiveLogsResponse, type LogCoverageRuleSet, type LogScopePartitioning, type LogsDownloadResponse, type ModelRef, type NavigateAnchorSessionRequest, type OAuthRefreshResponse, type OTelMetricDataPoint, type OTelSpanListResponse, type OTelSpanSchema, type OTelTraceResponse, OtelApi, type PageScopeConfig, type PerAgentReport, type PlatoUser, type PreservationRuleSet, type PreviewLaunchConfig, type PreviewResponse, type PromoteBranchRequest, type PublishedNoteRecord, type RegistryAgentListResponse, type RegistryAgentSchemaResponse, type RegistryAgentVersionInfo, type RegistryAgentVersionsResponse, RegistryApi, type RegistryWorldInfo, type RenderWidget, type RerunPreviewResponse, type RerunWithConfigRequest, type RetryConfig, type ReviewIssue, type ReviewListResponse, type ReviewResponse, type ReviewWidgetSchemaResponse, ReviewsApi, type RouteScopeConfig, type RunLifecycle, type RunProgress, type RunReviewsResponse, type SSOLoginRequest, type SavedFilterCreate, type SavedFilterListResponse, type SavedFilterResponse, SavedFiltersApi, type SavedSessionFilters, type ScreenshotResponse, type ServiceStatuses, type SessionCheckpointInfoResponse, type SessionCostEntry, type SessionCostSummaryResponse, type SessionCreator, type SessionEnvsResponse, type SessionLaunchConfig, type SessionLineageEntry, type SessionLineageResponse, type SessionListResponse, type SessionLogsResponse, type SessionLogsStreamEvent, type SessionMetricsResponse, type SessionNoteUserRef, type SessionNotesPayloadInput, type SessionNotesPayloadOutput, type SessionResponse, type SessionReviewReportInput, type SessionReviewReportOutput, type SessionReviewerNotesInput, type SessionReviewerNotesOutput, type SessionReviewerRunRecordInput, type SessionReviewerRunRecordOutput, type SessionReviewerSpanNote, type SessionStatusResponse, type SessionStoredWorldConfig, type SessionSummary, type SessionToolSummary, type SessionTrajectory, type SessionWorldInfo, SessionsApi, type SettingResponse, SettingsApi, type SlackLookupResponse, type StarredCheckpointCreate, type StarredCheckpointListResponse, type StarredCheckpointResponse, type StarredCheckpointUpdate, StarredCheckpointsApi, StatusApi, type StatusResponse, type SyncAllResult, type SyncResult, type TagsListResponse, type TargetReviewSpec, type TargetSessionRef, type TestRunListResponse, type TokenSummaryRecord, type ToolStat, type ToolUsageCount, type TrajectoryAgentInfo, type TrajectoryMetrics, type TrajectoryObservation, type TrajectoryObservationResult, type TrajectorySandboxInfo, type TrajectoryToolCall, type TrajectoryWorldInfo, type UpdateAnnotationRequest, type UpdateAssignmentBody, type UpdateDatasetRequest, type UpdateFileRequest, type UpdateFileResponse, type UpdateNotesRequest, type UpdateReviewRequest, type UpdateRunRequest, type UpdateSettingRequest, type UpdateSpanNoteRequest, type UpdateStatusRequest, type UpdateTagsRequest, type UpdateTestRunRequest, type UpsertIterationRequest, type UpsertIterationSessionRequest, type UsageStatsResponse, type UserInfo, type UserLeaderboardEntry, type UserWorldStatsEntry, type VMResources, type ValidationError, type VersionResponse, type WorkspaceFilesResponse, type WorkspaceRefEntry, type WorkspaceRefResponse, type WorkspaceRefSearchResponse, type WorkspaceRefSearchResult, type WorkspaceRefsListResponse, type WorkspaceRepoCredentialsResponse, type WorkspaceRepoListItem, type WorkspaceRepoListResponse, type WorkspaceRepoResolveRequest, type WorkspaceRepoResolveResponse, type WorkspaceRepoSizeResponse, WorkspaceReposApi, type WorkspaceSnapshotInfo, type WorldCatalogDetailResponse, type WorldCatalogEntry, type WorldCatalogResponse, type WorldConfigAgentEntry, type WorldConfigInput, type WorldConfigNamedEntry, type WorldConfigOutput, type WorldConfigSchema, type WorldCreate, type WorldLeaderboardEntry, type WorldListResponse, type WorldResponse, type WorldRuntimeConfig, type WorldSchemaResponse, type WorldStep, type WorldVersionsResponse, WorldsApi };
|
package/dist/chronos/index.d.ts
CHANGED
|
@@ -1201,6 +1201,24 @@ interface CreateStepResponse {
|
|
|
1201
1201
|
manifest_hash: string;
|
|
1202
1202
|
}
|
|
1203
1203
|
|
|
1204
|
+
/**
|
|
1205
|
+
* CreateTestRunRequest
|
|
1206
|
+
* Register a sub-experiment test run for an experiment version.
|
|
1207
|
+
*
|
|
1208
|
+
* Auto-generated - do not edit
|
|
1209
|
+
*/
|
|
1210
|
+
interface CreateTestRunRequest {
|
|
1211
|
+
session_public_id: string;
|
|
1212
|
+
hypothesis_id: string;
|
|
1213
|
+
hypothesis_statement?: string | null;
|
|
1214
|
+
test_plan_name: string;
|
|
1215
|
+
isolation_strategy?: string | null;
|
|
1216
|
+
expected_outcome?: string | null;
|
|
1217
|
+
config_overrides?: Record<string, unknown> | null;
|
|
1218
|
+
git_link?: string | null;
|
|
1219
|
+
commit_sha?: string | null;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1204
1222
|
/**
|
|
1205
1223
|
* CreateWorkspaceRefRequest
|
|
1206
1224
|
* Record an input or output workspace ref for a session.
|
|
@@ -1657,6 +1675,32 @@ interface ExperimentSessionSummary {
|
|
|
1657
1675
|
created_by?: UserInfo | null;
|
|
1658
1676
|
}
|
|
1659
1677
|
|
|
1678
|
+
/**
|
|
1679
|
+
* ExperimentTestRunResponse
|
|
1680
|
+
* Response model for a sub-experiment test run.
|
|
1681
|
+
*
|
|
1682
|
+
* Auto-generated - do not edit
|
|
1683
|
+
*/
|
|
1684
|
+
|
|
1685
|
+
interface ExperimentTestRunResponse {
|
|
1686
|
+
public_id: string;
|
|
1687
|
+
session_public_id: string;
|
|
1688
|
+
hypothesis_id: string;
|
|
1689
|
+
hypothesis_statement?: string | null;
|
|
1690
|
+
test_plan_name: string;
|
|
1691
|
+
isolation_strategy?: string | null;
|
|
1692
|
+
expected_outcome?: string | null;
|
|
1693
|
+
status: string;
|
|
1694
|
+
exit_code?: number | null;
|
|
1695
|
+
result_summary?: string | null;
|
|
1696
|
+
config_overrides?: Record<string, unknown> | null;
|
|
1697
|
+
git_link?: string | null;
|
|
1698
|
+
commit_sha?: string | null;
|
|
1699
|
+
session_status?: string | null;
|
|
1700
|
+
created_at: string;
|
|
1701
|
+
created_by?: UserInfo | null;
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1660
1704
|
/**
|
|
1661
1705
|
* ExperimentVersionResponse
|
|
1662
1706
|
* Full experiment version payload for the frontend.
|
|
@@ -1676,8 +1720,10 @@ interface ExperimentVersionResponse {
|
|
|
1676
1720
|
created_at: string;
|
|
1677
1721
|
created_by?: UserInfo | null;
|
|
1678
1722
|
attached_session_count?: number | null;
|
|
1723
|
+
test_run_count?: number | null;
|
|
1679
1724
|
config_json?: ExperimentLaunchConfig | null;
|
|
1680
1725
|
attached_sessions?: ExperimentSessionSummary[] | null;
|
|
1726
|
+
test_runs?: ExperimentTestRunResponse[] | null;
|
|
1681
1727
|
}
|
|
1682
1728
|
|
|
1683
1729
|
/**
|
|
@@ -1709,6 +1755,37 @@ interface FindOrCreateReviewBody {
|
|
|
1709
1755
|
session_id: string;
|
|
1710
1756
|
}
|
|
1711
1757
|
|
|
1758
|
+
/**
|
|
1759
|
+
* FullLineageNode
|
|
1760
|
+
* A session node in the full lineage tree.
|
|
1761
|
+
*
|
|
1762
|
+
* Auto-generated - do not edit
|
|
1763
|
+
*/
|
|
1764
|
+
interface FullLineageNode {
|
|
1765
|
+
session_public_id: string;
|
|
1766
|
+
status?: string | null;
|
|
1767
|
+
total_cost_usd?: number | null;
|
|
1768
|
+
created_at?: string | null;
|
|
1769
|
+
world_name?: string | null;
|
|
1770
|
+
workspace: string;
|
|
1771
|
+
ref_public_id?: string | null;
|
|
1772
|
+
step_name?: string | null;
|
|
1773
|
+
children?: FullLineageNode[] | null;
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
/**
|
|
1777
|
+
* FullLineageResponse
|
|
1778
|
+
* Full session lineage tree across all workspaces, with costs.
|
|
1779
|
+
*
|
|
1780
|
+
* Auto-generated - do not edit
|
|
1781
|
+
*/
|
|
1782
|
+
|
|
1783
|
+
interface FullLineageResponse {
|
|
1784
|
+
roots: FullLineageNode[];
|
|
1785
|
+
total_cost_usd: number;
|
|
1786
|
+
session_count: number;
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1712
1789
|
/**
|
|
1713
1790
|
* HTTPValidationError
|
|
1714
1791
|
*
|
|
@@ -3167,6 +3244,17 @@ interface TargetSessionRef {
|
|
|
3167
3244
|
target_session_url?: string | null;
|
|
3168
3245
|
}
|
|
3169
3246
|
|
|
3247
|
+
/**
|
|
3248
|
+
* TestRunListResponse
|
|
3249
|
+
* List of test runs for an experiment version.
|
|
3250
|
+
*
|
|
3251
|
+
* Auto-generated - do not edit
|
|
3252
|
+
*/
|
|
3253
|
+
|
|
3254
|
+
interface TestRunListResponse {
|
|
3255
|
+
test_runs: ExperimentTestRunResponse[];
|
|
3256
|
+
}
|
|
3257
|
+
|
|
3170
3258
|
/**
|
|
3171
3259
|
* TokenSummaryRecord
|
|
3172
3260
|
*
|
|
@@ -3483,6 +3571,20 @@ interface UpdateTagsRequest {
|
|
|
3483
3571
|
tags: string[];
|
|
3484
3572
|
}
|
|
3485
3573
|
|
|
3574
|
+
/**
|
|
3575
|
+
* UpdateTestRunRequest
|
|
3576
|
+
* Update a test run status and result.
|
|
3577
|
+
*
|
|
3578
|
+
* Auto-generated - do not edit
|
|
3579
|
+
*/
|
|
3580
|
+
interface UpdateTestRunRequest {
|
|
3581
|
+
status?: string | null;
|
|
3582
|
+
exit_code?: number | null;
|
|
3583
|
+
result_summary?: string | null;
|
|
3584
|
+
git_link?: string | null;
|
|
3585
|
+
commit_sha?: string | null;
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3486
3588
|
/**
|
|
3487
3589
|
* UpsertIterationRequest
|
|
3488
3590
|
* Upsert an iteration record. Keyed by (run_id, iteration).
|
|
@@ -4783,6 +4885,20 @@ interface RunExperimentTargetReviewsParams {
|
|
|
4783
4885
|
specIndex?: number;
|
|
4784
4886
|
xApiKey?: string;
|
|
4785
4887
|
}
|
|
4888
|
+
interface ListExperimentTestRunsParams {
|
|
4889
|
+
versionPublicId: string;
|
|
4890
|
+
xApiKey?: string;
|
|
4891
|
+
}
|
|
4892
|
+
interface CreateExperimentTestRunParams {
|
|
4893
|
+
versionPublicId: string;
|
|
4894
|
+
xApiKey?: string;
|
|
4895
|
+
body: CreateTestRunRequest;
|
|
4896
|
+
}
|
|
4897
|
+
interface UpdateExperimentTestRunParams {
|
|
4898
|
+
publicId: string;
|
|
4899
|
+
xApiKey?: string;
|
|
4900
|
+
body: UpdateTestRunRequest;
|
|
4901
|
+
}
|
|
4786
4902
|
declare class ExperimentsApi {
|
|
4787
4903
|
private client;
|
|
4788
4904
|
constructor(client: ApiClient);
|
|
@@ -4860,6 +4976,21 @@ declare class ExperimentsApi {
|
|
|
4860
4976
|
target_session_id set to the given session.
|
|
4861
4977
|
*/
|
|
4862
4978
|
runExperimentTargetReviews(params: RunExperimentTargetReviewsParams, options?: RequestOptions): Promise<RunReviewsResponse>;
|
|
4979
|
+
/**
|
|
4980
|
+
* List Test Runs
|
|
4981
|
+
* List test runs for an experiment version.
|
|
4982
|
+
*/
|
|
4983
|
+
listExperimentTestRuns(params: ListExperimentTestRunsParams, options?: RequestOptions): Promise<TestRunListResponse>;
|
|
4984
|
+
/**
|
|
4985
|
+
* Create Test Run
|
|
4986
|
+
* Register a sub-experiment test run for a specific experiment version.
|
|
4987
|
+
*/
|
|
4988
|
+
createExperimentTestRun(params: CreateExperimentTestRunParams, options?: RequestOptions): Promise<ExperimentTestRunResponse>;
|
|
4989
|
+
/**
|
|
4990
|
+
* Update Test Run
|
|
4991
|
+
* Update a test run's status and result.
|
|
4992
|
+
*/
|
|
4993
|
+
updateExperimentTestRun(params: UpdateExperimentTestRunParams, options?: RequestOptions): Promise<ExperimentTestRunResponse>;
|
|
4863
4994
|
}
|
|
4864
4995
|
|
|
4865
4996
|
/**
|
|
@@ -5393,6 +5524,8 @@ interface ListSessionsParams {
|
|
|
5393
5524
|
worldVersion?: string;
|
|
5394
5525
|
/** When true, show ONLY archived sessions. When false (default), exclude archived sessions. */
|
|
5395
5526
|
archivedOnly?: boolean;
|
|
5527
|
+
/** Filter to sessions linked to experiments in this folder. Use '__none__' for unfiled experiments. */
|
|
5528
|
+
experimentFolder?: string;
|
|
5396
5529
|
xApiKey?: string;
|
|
5397
5530
|
}
|
|
5398
5531
|
interface CreateSessionParams {
|
|
@@ -5990,6 +6123,10 @@ interface GetSessionLineageParams {
|
|
|
5990
6123
|
workspace: string;
|
|
5991
6124
|
xApiKey?: string;
|
|
5992
6125
|
}
|
|
6126
|
+
interface GetSessionFullLineageParams {
|
|
6127
|
+
sessionPublicId: string;
|
|
6128
|
+
xApiKey?: string;
|
|
6129
|
+
}
|
|
5993
6130
|
interface GetDownstreamSessionsParams {
|
|
5994
6131
|
refPublicId: string;
|
|
5995
6132
|
xApiKey?: string;
|
|
@@ -6117,6 +6254,11 @@ declare class WorkspaceReposApi {
|
|
|
6117
6254
|
* Walk backward through source_ref links to build session lineage for a workspace.
|
|
6118
6255
|
*/
|
|
6119
6256
|
getSessionLineage(params: GetSessionLineageParams, options?: RequestOptions): Promise<SessionLineageResponse>;
|
|
6257
|
+
/**
|
|
6258
|
+
* Get Session Full Lineage
|
|
6259
|
+
* Build a full lineage tree across all workspaces for a session, including costs.
|
|
6260
|
+
*/
|
|
6261
|
+
getSessionFullLineage(params: GetSessionFullLineageParams, options?: RequestOptions): Promise<FullLineageResponse>;
|
|
6120
6262
|
/**
|
|
6121
6263
|
* Get Downstream Sessions
|
|
6122
6264
|
* Find all sessions that consumed (forked/resumed from) a given workspace ref.
|
|
@@ -6307,4 +6449,4 @@ declare class ChronosClient {
|
|
|
6307
6449
|
getApiClient(): ApiClient;
|
|
6308
6450
|
}
|
|
6309
6451
|
|
|
6310
|
-
export { type ActiveAnalysis, type AddSessionsRequest, AdminApi, type AgentArtifactPath, type AgentCostRecord, type AgentCreate, type AgentInfo, type AgentIssue, type AgentListResponse, type AgentLookupResponse, type AgentResponse, type AgentSchemaResponse, type AgentStep, type AgentStepMetrics, type AgentTrace, type AgentTrajectory, type AgentVersionInfo, type AgentVersionsResponse, AgentsApi, type AnalysisProvenance, type AnalysisRecordInput, type AnalysisRecordOutput, type AnalyzerSessionRef, type AnchorSessionResponse, type AnnotationListResponse, type AnnotationMetricsResponse, type AnnotationResponse, type AnnotationTarget, AnnotationsApi, type AppConfigResponse, type Artifact, type AssignmentListResponse, type AssignmentPreviewItem, type AssignmentPreviewResponse, type AssignmentResponse, AssignmentsApi, type AuditEventCountsResponse, type AuditEventInput, type AuditEventResponse, type AuditEventsListResponse, type AuditSummaryEntry, type AuditSummaryResponse, AuthApi, type AuthSessionResponse, type AuthStatusResponse, type BatchCreateAssignmentsBody, type BranchInfo, type BranchListResponse, BrowserApi, type BulkRefAuditEventsRequest, type CheckpointListItem, type CheckpointListResponse, CheckpointsApi, type ChildSessionSummary, ApiClient as ChronosApiClient, type ChronosApiDatasetsFoldersListResponse, type ChronosApiDatasetsRenameFolderRequest, type ChronosApiDatasetsRenameFolderResponse, ApiError as ChronosApiError, type ChronosApiExperimentsFoldersListResponse, type ChronosApiExperimentsRenameFolderRequest, type ChronosApiExperimentsRenameFolderResponse, type ApiRequest as ChronosApiRequest, ChronosClient, type ClientConfig as ChronosClientConfig, type RequestOptions as ChronosRequestOptions, type ClaudeCodeOAuthRefreshRequest, type ClearDbResult, type CloseSessionResponse, type CompleteSessionRequest, type CompressionArtifactInventory, type CompressionArtifactRecord, type CompressionChunkRecord, type CompressionClusterRef, type CompressionCoverageInput, type CompressionCoverageOutput, type CompressionManifestInput, type CompressionManifestOutput, type CompressionMetrics, type CompressionNoteCounts, type CompressionRunRecordInput, type CompressionRunRecordOutput, type CopyAnnotationsRequest, type CostAnalysisRecordInput, type CostAnalysisRecordOutput, type CreateAnchorSessionRequest, type CreateAnnotationRequest, type CreateAssignmentBody, type CreateBranchRequest, type CreateBranchResponse, type CreateDatasetRequest, type CreateReviewRequest, type CreateSessionRequest, type CreateSessionResponse, type CreateStepFile, type CreateStepRequest, type CreateStepResponse, type CreateWorkspaceRefRequest, type CreatorsListResponse, type DVCManifestEntry, type DailyUsageBucketResponse, type DatasetColumn, type DatasetColumnType, type DatasetDetailResponse, type DatasetFileCreateRequest, type DatasetFileListResponse, type DatasetFileResponse, type DatasetFileUpdateRequest, type DatasetResponse, type DatasetSessionSummary, type DatasetVersionCreateRequest, type DatasetVersionResponse, type DatasetVersionUpdateRequest, DatasetsApi, DefaultApi, type DeleteSessionResult, type DirectoryListing, type DownstreamSessionEntry, type DownstreamSessionsResponse, type EnvInfo, type EnvInfoResponse, EventsApi, type ExperimentFileCreateRequest, type ExperimentFileListResponse, type ExperimentFileResponse, type ExperimentFileUpdateRequest, type ExperimentFileVersionCreateRequest, type ExperimentFileVersionUpdateRequest, type ExperimentLaunchConfig, type ExperimentSessionCountResponse, type ExperimentSessionSummary, type ExperimentVersionResponse, ExperimentsApi, type FeatureFlagCheckResult, type FeedbackWidget, type FindOrCreateReviewBody, type HTTPValidationError, HillclimbApi, type HillclimbIterationResponse, type HillclimbRunDetailResponse, type HillclimbRunResponse, type IssueReference, type IterationOutcome, type IterationSessionIcon, type IterationSessionResponse, JobsApi, type JsonValue, type LaunchExperimentRequest, type LaunchExperimentResponse, type LaunchExperimentSessionResult, type LaunchHillclimbRunRequest, type LaunchHillclimbRunResponse, type LaunchJobRequest, type LaunchJobResponse, type LiveLogsResponse, type LogCoverageRuleSet, type LogScopePartitioning, type LogsDownloadResponse, type ModelRef, type NavigateAnchorSessionRequest, type OAuthRefreshResponse, type OTelMetricDataPoint, type OTelSpanListResponse, type OTelSpanSchema, type OTelTraceResponse, OtelApi, type PageScopeConfig, type PerAgentReport, type PlatoUser, type PreservationRuleSet, type PreviewLaunchConfig, type PreviewResponse, type PromoteBranchRequest, type PublishedNoteRecord, type RegistryAgentListResponse, type RegistryAgentSchemaResponse, type RegistryAgentVersionInfo, type RegistryAgentVersionsResponse, RegistryApi, type RegistryWorldInfo, type RenderWidget, type RerunPreviewResponse, type RerunWithConfigRequest, type RetryConfig, type ReviewIssue, type ReviewListResponse, type ReviewResponse, type ReviewWidgetSchemaResponse, ReviewsApi, type RouteScopeConfig, type RunLifecycle, type RunProgress, type RunReviewsResponse, type SSOLoginRequest, type SavedFilterCreate, type SavedFilterListResponse, type SavedFilterResponse, SavedFiltersApi, type SavedSessionFilters, type ScreenshotResponse, type ServiceStatuses, type SessionCheckpointInfoResponse, type SessionCostEntry, type SessionCostSummaryResponse, type SessionCreator, type SessionEnvsResponse, type SessionLaunchConfig, type SessionLineageEntry, type SessionLineageResponse, type SessionListResponse, type SessionLogsResponse, type SessionLogsStreamEvent, type SessionMetricsResponse, type SessionNoteUserRef, type SessionNotesPayloadInput, type SessionNotesPayloadOutput, type SessionResponse, type SessionReviewReportInput, type SessionReviewReportOutput, type SessionReviewerNotesInput, type SessionReviewerNotesOutput, type SessionReviewerRunRecordInput, type SessionReviewerRunRecordOutput, type SessionReviewerSpanNote, type SessionStatusResponse, type SessionStoredWorldConfig, type SessionSummary, type SessionToolSummary, type SessionTrajectory, type SessionWorldInfo, SessionsApi, type SettingResponse, SettingsApi, type SlackLookupResponse, type StarredCheckpointCreate, type StarredCheckpointListResponse, type StarredCheckpointResponse, type StarredCheckpointUpdate, StarredCheckpointsApi, StatusApi, type StatusResponse, type SyncAllResult, type SyncResult, type TagsListResponse, type TargetReviewSpec, type TargetSessionRef, type TokenSummaryRecord, type ToolStat, type ToolUsageCount, type TrajectoryAgentInfo, type TrajectoryMetrics, type TrajectoryObservation, type TrajectoryObservationResult, type TrajectorySandboxInfo, type TrajectoryToolCall, type TrajectoryWorldInfo, type UpdateAnnotationRequest, type UpdateAssignmentBody, type UpdateDatasetRequest, type UpdateFileRequest, type UpdateFileResponse, type UpdateNotesRequest, type UpdateReviewRequest, type UpdateRunRequest, type UpdateSettingRequest, type UpdateSpanNoteRequest, type UpdateStatusRequest, type UpdateTagsRequest, type UpsertIterationRequest, type UpsertIterationSessionRequest, type UsageStatsResponse, type UserInfo, type UserLeaderboardEntry, type UserWorldStatsEntry, type VMResources, type ValidationError, type VersionResponse, type WorkspaceFilesResponse, type WorkspaceRefEntry, type WorkspaceRefResponse, type WorkspaceRefSearchResponse, type WorkspaceRefSearchResult, type WorkspaceRefsListResponse, type WorkspaceRepoCredentialsResponse, type WorkspaceRepoListItem, type WorkspaceRepoListResponse, type WorkspaceRepoResolveRequest, type WorkspaceRepoResolveResponse, type WorkspaceRepoSizeResponse, WorkspaceReposApi, type WorkspaceSnapshotInfo, type WorldCatalogDetailResponse, type WorldCatalogEntry, type WorldCatalogResponse, type WorldConfigAgentEntry, type WorldConfigInput, type WorldConfigNamedEntry, type WorldConfigOutput, type WorldConfigSchema, type WorldCreate, type WorldLeaderboardEntry, type WorldListResponse, type WorldResponse, type WorldRuntimeConfig, type WorldSchemaResponse, type WorldStep, type WorldVersionsResponse, WorldsApi };
|
|
6452
|
+
export { type ActiveAnalysis, type AddSessionsRequest, AdminApi, type AgentArtifactPath, type AgentCostRecord, type AgentCreate, type AgentInfo, type AgentIssue, type AgentListResponse, type AgentLookupResponse, type AgentResponse, type AgentSchemaResponse, type AgentStep, type AgentStepMetrics, type AgentTrace, type AgentTrajectory, type AgentVersionInfo, type AgentVersionsResponse, AgentsApi, type AnalysisProvenance, type AnalysisRecordInput, type AnalysisRecordOutput, type AnalyzerSessionRef, type AnchorSessionResponse, type AnnotationListResponse, type AnnotationMetricsResponse, type AnnotationResponse, type AnnotationTarget, AnnotationsApi, type AppConfigResponse, type Artifact, type AssignmentListResponse, type AssignmentPreviewItem, type AssignmentPreviewResponse, type AssignmentResponse, AssignmentsApi, type AuditEventCountsResponse, type AuditEventInput, type AuditEventResponse, type AuditEventsListResponse, type AuditSummaryEntry, type AuditSummaryResponse, AuthApi, type AuthSessionResponse, type AuthStatusResponse, type BatchCreateAssignmentsBody, type BranchInfo, type BranchListResponse, BrowserApi, type BulkRefAuditEventsRequest, type CheckpointListItem, type CheckpointListResponse, CheckpointsApi, type ChildSessionSummary, ApiClient as ChronosApiClient, type ChronosApiDatasetsFoldersListResponse, type ChronosApiDatasetsRenameFolderRequest, type ChronosApiDatasetsRenameFolderResponse, ApiError as ChronosApiError, type ChronosApiExperimentsFoldersListResponse, type ChronosApiExperimentsRenameFolderRequest, type ChronosApiExperimentsRenameFolderResponse, type ApiRequest as ChronosApiRequest, ChronosClient, type ClientConfig as ChronosClientConfig, type RequestOptions as ChronosRequestOptions, type ClaudeCodeOAuthRefreshRequest, type ClearDbResult, type CloseSessionResponse, type CompleteSessionRequest, type CompressionArtifactInventory, type CompressionArtifactRecord, type CompressionChunkRecord, type CompressionClusterRef, type CompressionCoverageInput, type CompressionCoverageOutput, type CompressionManifestInput, type CompressionManifestOutput, type CompressionMetrics, type CompressionNoteCounts, type CompressionRunRecordInput, type CompressionRunRecordOutput, type CopyAnnotationsRequest, type CostAnalysisRecordInput, type CostAnalysisRecordOutput, type CreateAnchorSessionRequest, type CreateAnnotationRequest, type CreateAssignmentBody, type CreateBranchRequest, type CreateBranchResponse, type CreateDatasetRequest, type CreateReviewRequest, type CreateSessionRequest, type CreateSessionResponse, type CreateStepFile, type CreateStepRequest, type CreateStepResponse, type CreateTestRunRequest, type CreateWorkspaceRefRequest, type CreatorsListResponse, type DVCManifestEntry, type DailyUsageBucketResponse, type DatasetColumn, type DatasetColumnType, type DatasetDetailResponse, type DatasetFileCreateRequest, type DatasetFileListResponse, type DatasetFileResponse, type DatasetFileUpdateRequest, type DatasetResponse, type DatasetSessionSummary, type DatasetVersionCreateRequest, type DatasetVersionResponse, type DatasetVersionUpdateRequest, DatasetsApi, DefaultApi, type DeleteSessionResult, type DirectoryListing, type DownstreamSessionEntry, type DownstreamSessionsResponse, type EnvInfo, type EnvInfoResponse, EventsApi, type ExperimentFileCreateRequest, type ExperimentFileListResponse, type ExperimentFileResponse, type ExperimentFileUpdateRequest, type ExperimentFileVersionCreateRequest, type ExperimentFileVersionUpdateRequest, type ExperimentLaunchConfig, type ExperimentSessionCountResponse, type ExperimentSessionSummary, type ExperimentTestRunResponse, type ExperimentVersionResponse, ExperimentsApi, type FeatureFlagCheckResult, type FeedbackWidget, type FindOrCreateReviewBody, type FullLineageNode, type FullLineageResponse, type HTTPValidationError, HillclimbApi, type HillclimbIterationResponse, type HillclimbRunDetailResponse, type HillclimbRunResponse, type IssueReference, type IterationOutcome, type IterationSessionIcon, type IterationSessionResponse, JobsApi, type JsonValue, type LaunchExperimentRequest, type LaunchExperimentResponse, type LaunchExperimentSessionResult, type LaunchHillclimbRunRequest, type LaunchHillclimbRunResponse, type LaunchJobRequest, type LaunchJobResponse, type LiveLogsResponse, type LogCoverageRuleSet, type LogScopePartitioning, type LogsDownloadResponse, type ModelRef, type NavigateAnchorSessionRequest, type OAuthRefreshResponse, type OTelMetricDataPoint, type OTelSpanListResponse, type OTelSpanSchema, type OTelTraceResponse, OtelApi, type PageScopeConfig, type PerAgentReport, type PlatoUser, type PreservationRuleSet, type PreviewLaunchConfig, type PreviewResponse, type PromoteBranchRequest, type PublishedNoteRecord, type RegistryAgentListResponse, type RegistryAgentSchemaResponse, type RegistryAgentVersionInfo, type RegistryAgentVersionsResponse, RegistryApi, type RegistryWorldInfo, type RenderWidget, type RerunPreviewResponse, type RerunWithConfigRequest, type RetryConfig, type ReviewIssue, type ReviewListResponse, type ReviewResponse, type ReviewWidgetSchemaResponse, ReviewsApi, type RouteScopeConfig, type RunLifecycle, type RunProgress, type RunReviewsResponse, type SSOLoginRequest, type SavedFilterCreate, type SavedFilterListResponse, type SavedFilterResponse, SavedFiltersApi, type SavedSessionFilters, type ScreenshotResponse, type ServiceStatuses, type SessionCheckpointInfoResponse, type SessionCostEntry, type SessionCostSummaryResponse, type SessionCreator, type SessionEnvsResponse, type SessionLaunchConfig, type SessionLineageEntry, type SessionLineageResponse, type SessionListResponse, type SessionLogsResponse, type SessionLogsStreamEvent, type SessionMetricsResponse, type SessionNoteUserRef, type SessionNotesPayloadInput, type SessionNotesPayloadOutput, type SessionResponse, type SessionReviewReportInput, type SessionReviewReportOutput, type SessionReviewerNotesInput, type SessionReviewerNotesOutput, type SessionReviewerRunRecordInput, type SessionReviewerRunRecordOutput, type SessionReviewerSpanNote, type SessionStatusResponse, type SessionStoredWorldConfig, type SessionSummary, type SessionToolSummary, type SessionTrajectory, type SessionWorldInfo, SessionsApi, type SettingResponse, SettingsApi, type SlackLookupResponse, type StarredCheckpointCreate, type StarredCheckpointListResponse, type StarredCheckpointResponse, type StarredCheckpointUpdate, StarredCheckpointsApi, StatusApi, type StatusResponse, type SyncAllResult, type SyncResult, type TagsListResponse, type TargetReviewSpec, type TargetSessionRef, type TestRunListResponse, type TokenSummaryRecord, type ToolStat, type ToolUsageCount, type TrajectoryAgentInfo, type TrajectoryMetrics, type TrajectoryObservation, type TrajectoryObservationResult, type TrajectorySandboxInfo, type TrajectoryToolCall, type TrajectoryWorldInfo, type UpdateAnnotationRequest, type UpdateAssignmentBody, type UpdateDatasetRequest, type UpdateFileRequest, type UpdateFileResponse, type UpdateNotesRequest, type UpdateReviewRequest, type UpdateRunRequest, type UpdateSettingRequest, type UpdateSpanNoteRequest, type UpdateStatusRequest, type UpdateTagsRequest, type UpdateTestRunRequest, type UpsertIterationRequest, type UpsertIterationSessionRequest, type UsageStatsResponse, type UserInfo, type UserLeaderboardEntry, type UserWorldStatsEntry, type VMResources, type ValidationError, type VersionResponse, type WorkspaceFilesResponse, type WorkspaceRefEntry, type WorkspaceRefResponse, type WorkspaceRefSearchResponse, type WorkspaceRefSearchResult, type WorkspaceRefsListResponse, type WorkspaceRepoCredentialsResponse, type WorkspaceRepoListItem, type WorkspaceRepoListResponse, type WorkspaceRepoResolveRequest, type WorkspaceRepoResolveResponse, type WorkspaceRepoSizeResponse, WorkspaceReposApi, type WorkspaceSnapshotInfo, type WorldCatalogDetailResponse, type WorldCatalogEntry, type WorldCatalogResponse, type WorldConfigAgentEntry, type WorldConfigInput, type WorldConfigNamedEntry, type WorldConfigOutput, type WorldConfigSchema, type WorldCreate, type WorldLeaderboardEntry, type WorldListResponse, type WorldResponse, type WorldRuntimeConfig, type WorldSchemaResponse, type WorldStep, type WorldVersionsResponse, WorldsApi };
|
package/dist/chronos/index.js
CHANGED
|
@@ -1513,6 +1513,62 @@ var ExperimentsApi = class {
|
|
|
1513
1513
|
...options
|
|
1514
1514
|
});
|
|
1515
1515
|
}
|
|
1516
|
+
/**
|
|
1517
|
+
* List Test Runs
|
|
1518
|
+
* List test runs for an experiment version.
|
|
1519
|
+
*/
|
|
1520
|
+
async listExperimentTestRuns(params, options) {
|
|
1521
|
+
let path = "/api/experiments/versions/{version_public_id}/test-runs";
|
|
1522
|
+
path = path.replace("{version_public_id}", encodeURIComponent(String(params.versionPublicId)));
|
|
1523
|
+
const headers = {};
|
|
1524
|
+
if (params.xApiKey !== void 0) {
|
|
1525
|
+
headers["X-API-Key"] = String(params.xApiKey);
|
|
1526
|
+
}
|
|
1527
|
+
return this.client.request({
|
|
1528
|
+
method: "GET",
|
|
1529
|
+
path,
|
|
1530
|
+
headers,
|
|
1531
|
+
...options
|
|
1532
|
+
});
|
|
1533
|
+
}
|
|
1534
|
+
/**
|
|
1535
|
+
* Create Test Run
|
|
1536
|
+
* Register a sub-experiment test run for a specific experiment version.
|
|
1537
|
+
*/
|
|
1538
|
+
async createExperimentTestRun(params, options) {
|
|
1539
|
+
let path = "/api/experiments/versions/{version_public_id}/test-runs";
|
|
1540
|
+
path = path.replace("{version_public_id}", encodeURIComponent(String(params.versionPublicId)));
|
|
1541
|
+
const headers = {};
|
|
1542
|
+
if (params.xApiKey !== void 0) {
|
|
1543
|
+
headers["X-API-Key"] = String(params.xApiKey);
|
|
1544
|
+
}
|
|
1545
|
+
return this.client.request({
|
|
1546
|
+
method: "POST",
|
|
1547
|
+
path,
|
|
1548
|
+
headers,
|
|
1549
|
+
body: params.body,
|
|
1550
|
+
...options
|
|
1551
|
+
});
|
|
1552
|
+
}
|
|
1553
|
+
/**
|
|
1554
|
+
* Update Test Run
|
|
1555
|
+
* Update a test run's status and result.
|
|
1556
|
+
*/
|
|
1557
|
+
async updateExperimentTestRun(params, options) {
|
|
1558
|
+
let path = "/api/experiments/test-runs/{public_id}";
|
|
1559
|
+
path = path.replace("{public_id}", encodeURIComponent(String(params.publicId)));
|
|
1560
|
+
const headers = {};
|
|
1561
|
+
if (params.xApiKey !== void 0) {
|
|
1562
|
+
headers["X-API-Key"] = String(params.xApiKey);
|
|
1563
|
+
}
|
|
1564
|
+
return this.client.request({
|
|
1565
|
+
method: "PATCH",
|
|
1566
|
+
path,
|
|
1567
|
+
headers,
|
|
1568
|
+
body: params.body,
|
|
1569
|
+
...options
|
|
1570
|
+
});
|
|
1571
|
+
}
|
|
1516
1572
|
};
|
|
1517
1573
|
|
|
1518
1574
|
// src/chronos/api/hillclimb.ts
|
|
@@ -2477,6 +2533,9 @@ var SessionsApi = class {
|
|
|
2477
2533
|
if (params.archivedOnly !== void 0) {
|
|
2478
2534
|
query["archived_only"] = String(params.archivedOnly);
|
|
2479
2535
|
}
|
|
2536
|
+
if (params.experimentFolder !== void 0) {
|
|
2537
|
+
query["experiment_folder"] = String(params.experimentFolder);
|
|
2538
|
+
}
|
|
2480
2539
|
const headers = {};
|
|
2481
2540
|
if (params.xApiKey !== void 0) {
|
|
2482
2541
|
headers["X-API-Key"] = String(params.xApiKey);
|
|
@@ -3709,6 +3768,24 @@ var WorkspaceReposApi = class {
|
|
|
3709
3768
|
...options
|
|
3710
3769
|
});
|
|
3711
3770
|
}
|
|
3771
|
+
/**
|
|
3772
|
+
* Get Session Full Lineage
|
|
3773
|
+
* Build a full lineage tree across all workspaces for a session, including costs.
|
|
3774
|
+
*/
|
|
3775
|
+
async getSessionFullLineage(params, options) {
|
|
3776
|
+
let path = "/api/workspace-repos/sessions/{session_public_id}/full-lineage";
|
|
3777
|
+
path = path.replace("{session_public_id}", encodeURIComponent(String(params.sessionPublicId)));
|
|
3778
|
+
const headers = {};
|
|
3779
|
+
if (params.xApiKey !== void 0) {
|
|
3780
|
+
headers["X-API-Key"] = String(params.xApiKey);
|
|
3781
|
+
}
|
|
3782
|
+
return this.client.request({
|
|
3783
|
+
method: "GET",
|
|
3784
|
+
path,
|
|
3785
|
+
headers,
|
|
3786
|
+
...options
|
|
3787
|
+
});
|
|
3788
|
+
}
|
|
3712
3789
|
/**
|
|
3713
3790
|
* Get Downstream Sessions
|
|
3714
3791
|
* Find all sessions that consumed (forked/resumed from) a given workspace ref.
|