const SECURITY_REPORT_KINDS = new Set([
    'quickback-security-contract-report',
    'quickback-security-contract-signature',
]);
export function isSecurityReportArtifactContent(content) {
    try {
        const parsed = JSON.parse(content);
        return SECURITY_REPORT_KINDS.has(parsed?.kind ?? '');
    }
    catch {
        return false;
    }
}
export function isStateArtifactFile(file) {
    if (file.path.startsWith('drizzle/'))
        return true;
    if (!file.path.endsWith('.json'))
        return false;
    return isSecurityReportArtifactContent(file.content);
}
export function partitionGeneratedFiles(files) {
    const runtimeFiles = [];
    const stateFiles = [];
    for (const file of files) {
        if (isStateArtifactFile(file)) {
            stateFiles.push(file);
        }
        else {
            runtimeFiles.push(file);
        }
    }
    return { runtimeFiles, stateFiles };
}
//# sourceMappingURL=artifact-routing.js.map