// storage/steering-store.ts — SPEC-434: Persistence for steering generation results
import { join } from 'node:path';
import { hashProjectPath, readJson, writeJson } from './base-store.js';
function steeringPath(projectPath) {
    const hash = hashProjectPath(projectPath);
    return join('data', 'projects', hash, 'steering', 'result.json');
}
/** Load the last steering generation result for a project, or null if not found. */
export async function getSteeringResult(projectPath) {
    const file = steeringPath(projectPath);
    const result = await readJson(file, null);
    return result;
}
/** Persist a steering generation result for a project. */
export async function saveSteeringResult(projectPath, result) {
    const file = steeringPath(projectPath);
    await writeJson(file, result);
}
//# sourceMappingURL=steering-store.js.map