#!/usr/bin/env node
import {a,f,g}from'./chunk-QT2LKB3P.js';import'./chunk-XHJ27CER.js';import*as i from'path';import t from'chalk';import d from'ora';async function h(a$1){let c=process.cwd(),g$1=i.resolve(c,a$1);console.log(t.blue(`
\u{1F50D} Validating Gate Configuration...
`));let e=d(`Parsing ${a$1}...`).start();try{let o=await a(g$1);e.succeed("Parsed portal.yaml");let s=f(o);console.log(t.white(`
Gates: ${o.gates.length}`)),console.log(t.white(`Flows: ${o.flows.length}`)),console.log(g(s)),s.valid||process.exit(1),console.log("");}catch(o){e.fail("Validation failed"),console.log(t.red(`Error: ${o.message}
`)),process.exit(1);}}export{h as gateValidateCommand};