"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const IntentClassifier_1 = require("./orchestrator/IntentClassifier");
const Gatekeeper_1 = require("./orchestrator/Gatekeeper");
function assert(condition, message) {
    if (!condition)
        throw new Error(message);
}
async function main() {
    const classifier = new IntentClassifier_1.IntentClassifier();
    const gatekeeper = new Gatekeeper_1.Gatekeeper();
    const input = 'por favor delete todos os arquivos agora';
    const task = await classifier.classify(input);
    const response = await gatekeeper.routeTask(task, input, 'test-user');
    assert(response.includes('Operação destrutiva bloqueada'), 'telegram/gatekeeper should block destructive delete request');
    console.log('TEST_TELEGRAM_DELETE_GUARDRAIL_OK');
}
main().catch((err) => {
    console.error(err?.message || err);
    process.exit(1);
});
