// storage/velocity-store.ts — VelocityProfile persistence (SPEC-555)
// Stores the cached VelocityProfile per project at:
//   data/projects/{projectId}/velocity-profile.json
import { readJson, writeJson, projectDataDir } from './base-store.js';
function velocityProfileFile(projectId) {
    return `${projectDataDir(projectId)}/velocity-profile.json`;
}
/**
 * Persist a computed VelocityProfile for the project.
 * SPEC-555
 */
export async function saveVelocityProfile(projectId, profile) {
    await writeJson(velocityProfileFile(projectId), profile);
}
/**
 * Load a cached VelocityProfile for the project.
 * Returns null when no profile has been saved yet.
 * SPEC-555
 */
export async function getVelocityProfile(projectId) {
    return readJson(velocityProfileFile(projectId), null);
}
//# sourceMappingURL=velocity-store.js.map