import { type WorkflowRun } from '../engine/runtime.js'; import type { ApplicationIdentity } from '../workflow-application/index.js'; import type { EvalRunDetail } from './eval-run-types.js'; export interface EvalArchive { schema: 'comet.eval.archive.v1'; id: string; title: string; application: { id: string; version: string; base: string; root: string; contentHash: string; packageHash: string; }; files: Record; runs: Array<{ kind: 'creator' | 'application'; runId: string; file: string; }>; reports: Array<{ path: string; label: string; }>; artifactMappings?: Record; assessment: { task: string; taskCompleted: boolean; originalTestsPassed: number; regressionTestsPassed: number; models: string[]; limitations: string[]; createdAt?: string; completedAt?: string; durationSeconds?: number; tokens?: number; }; } export interface EvalArchiveObservation { archive: EvalArchive; runs: Array<{ kind: 'creator' | 'application'; run: WorkflowRun; identity: ApplicationIdentity | null; }>; } export declare function evalArchiveRoot(id: string): string; export declare function evalArchiveRunId(id: string): string; export declare function isEvalArchiveRunId(id: string): boolean; /** 仅读取清单声明且内容匹配的文件,不加载应用模块或恢复 Runtime。 */ export declare function readEvalArchiveFile(project: string, archive: EvalArchive, file: string): Promise; export declare function readEvalArchiveManifest(project: string, id: string): Promise; export declare function readEvalArchive(project: string, id: string): Promise; export declare function listEvalArchives(project: string): Promise<{ items: EvalArchiveObservation[]; errors: Array<{ id: string; message: string; }>; }>; export declare function archiveEvalDetail(archive: EvalArchive, diagnostic?: string): EvalRunDetail; export declare function readArchivedEvalRun(project: string, runId: string): Promise; export declare function archiveEvalError(id: string, message: string): EvalRunDetail; //# sourceMappingURL=eval-archives.d.ts.map