export async function buildSourceHealth(store, options) {
    const files = await store.listSourceFiles({ project: options.project, limit: options.limit });
    const counts = { tracked: 0, changed: 0, missing: 0, archived: 0, ignored: 0 };
    const tombstones = [];
    for (const file of files) {
        counts[file.status] += 1;
        if (file.status === 'archived') {
            tombstones.push({ path: file.path, archivedAt: file.archivedAt });
        }
    }
    return { counts, tombstones };
}
