v0.2.0: Git-native architecture (#1)
This commit was merged in pull request #1.
This commit is contained in:
@@ -133,6 +133,18 @@ export class ArtifactManager {
|
||||
return JSON.parse(fs.readFileSync(filePath, "utf-8"));
|
||||
}
|
||||
|
||||
savePipelineState(state: Record<string, boolean>, currentPhase: number, currentStage: string, lastAgent: string, lastAction: string): void {
|
||||
const manifest: StateManifest = {
|
||||
current_phase: currentPhase,
|
||||
current_stage: currentStage,
|
||||
last_agent: lastAgent,
|
||||
last_action: lastAction,
|
||||
updated_at: new Date().toISOString(),
|
||||
pipeline_progress: state,
|
||||
};
|
||||
this.writeState(manifest);
|
||||
}
|
||||
|
||||
writePhaseArtifact(
|
||||
phase: number,
|
||||
artifactName: string,
|
||||
|
||||
Reference in New Issue
Block a user