/** * RunMeta — 実行メタデータの管理モジュール * * ランのメタデータ(task, workflow, status, 開始・終了時刻など)を * .takt/runs/{slug}/meta.json へ書き出す責務を担う。 */ import { type RunFailure, type RunResumeSource } from '../../../core/workflow/run/run-meta.js'; import type { RunPaths } from '../../../core/workflow/run/run-paths.js'; import type { WorkflowResumePoint } from '../../../core/models/index.js'; import type { WorkflowTraceDiscovery } from '../../../core/workflow/observability/traceDiscovery.js'; import { type PullRequestContext } from '../../../core/workflow/pr-context.js'; export interface RunMetaManagerOptions { readonly startTime?: string; readonly traceDiscovery?: WorkflowTraceDiscovery; /** resume-artifacts.json(継承 manifest)への相対パス。SSOT は manifest 側。 */ readonly resumeArtifactsRel?: string; readonly operationJournalRunSlug?: string; readonly operationClaimToken?: string; readonly prContext?: PullRequestContext; } export declare function finalizeFileRunMeta(input: { readonly runPaths: RunPaths; readonly status: 'completed' | 'aborted' | 'failed'; readonly iterations: number; readonly reason?: string; readonly failure?: RunFailure; readonly endTime: string; }): void; export declare class RunMetaManager { private readonly runMeta; private readonly metaAbs; constructor(runPaths: RunPaths, task: string, workflowName: string, resumeSource?: RunResumeSource, options?: RunMetaManagerOptions); updateStep(stepName: string, iteration: number, resumePoint?: WorkflowResumePoint): void; updatePhase(stepName: string, iteration: number, phase: 1 | 2 | 3): void; updateResumePoint(resumePoint?: WorkflowResumePoint): void; projectTerminal(input: { readonly status: 'completed' | 'aborted' | 'failed'; readonly iterations: number; readonly reason?: string; readonly failure?: RunFailure; readonly endTime: string; }): void; private writeRunMeta; } //# sourceMappingURL=runMeta.d.ts.map