import { CODEX_AGENT_WORKER_RESULT_SCHEMA_ID, codexAgentWorkerResultSchema } from './schemas/agent-worker-result.schema.js';
import { GPT_FINAL_ARBITER_RESULT_SCHEMA_ID, gptFinalArbiterResultSchema } from './gpt-final-review-schema.js';
export const CODEX_OUTPUT_SCHEMA_IDS = [
    CODEX_AGENT_WORKER_RESULT_SCHEMA_ID,
    'sks.patch-envelope-result.v1',
    'sks.verification-result.v1',
    'sks.research-digest.v1',
    'sks.release-failure-analysis.v1',
    'sks.ux-ppt-review-result.v1',
    'sks.core-skill-heldout-validation.v1',
    GPT_FINAL_ARBITER_RESULT_SCHEMA_ID
];
export function resolveCodexOutputSchema(schemaId, fallback) {
    if (schemaId === CODEX_AGENT_WORKER_RESULT_SCHEMA_ID)
        return codexAgentWorkerResultSchema;
    if (schemaId === GPT_FINAL_ARBITER_RESULT_SCHEMA_ID)
        return gptFinalArbiterResultSchema;
    if (fallback && typeof fallback === 'object')
        return fallback;
    return {
        type: 'object',
        required: ['status', 'summary', 'blockers'],
        properties: {
            status: { type: 'string' },
            summary: { type: 'string' },
            blockers: { type: 'array', items: { type: 'string' } }
        },
        additionalProperties: false
    };
}
//# sourceMappingURL=codex-output-schemas.js.map