// SPEC-597-EXEMPT: canonical mapping (npm-package↔framework, keyword catalogue)
// — must enumerate framework names by design; no detection logic to migrate.
// storage/supabase-store.ts — Supabase integration persistence (SPEC-437)
import { join } from 'node:path';
import { hashProjectPath, readJson, writeJson } from './base-store.js';
function projectDir(projectPath) {
    const id = hashProjectPath(projectPath);
    return join('data', 'projects', id, 'supabase');
}
function configPath(projectPath) {
    return join(projectDir(projectPath), 'config.json');
}
function syncPath(projectPath) {
    return join(projectDir(projectPath), 'sync.json');
}
export async function getSupabaseConfig(projectPath) {
    return readJson(configPath(projectPath), null);
}
export async function saveSupabaseConfig(projectPath, config) {
    await writeJson(configPath(projectPath), config);
}
export async function getSupabaseSyncResult(projectPath) {
    return readJson(syncPath(projectPath), null);
}
export async function saveSupabaseSyncResult(projectPath, result) {
    await writeJson(syncPath(projectPath), result);
}
//# sourceMappingURL=supabase-store.js.map