"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ReleaseWorkflow_1 = require("./orchestrator/ReleaseWorkflow");
function assert(condition, message) {
    if (!condition)
        throw new Error(message);
}
async function main() {
    const workflow = new ReleaseWorkflow_1.ReleaseWorkflow();
    const checklist = workflow.create('release-gate-test', [
        { name: 'doctor:models.json', ok: true },
        { name: 'runtime:codex', ok: true },
        { name: 'harness:runtime-policy-chain', ok: true }
    ]);
    assert(Array.isArray(checklist.checks), 'release gate workflow should return checks');
    assert(checklist.checks.length === 3, 'release gate workflow should persist provided checks');
    assert(checklist.approved === true, 'release gate workflow should approve when all checks pass');
    console.log('TEST_RELEASE_GATE_OK');
}
main().catch((error) => {
    console.error(error.message || error);
    process.exit(1);
});
