"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ExecutionIntent_1 = require("./orchestrator/ExecutionIntent");
const ExecutionRouter_1 = require("./orchestrator/ExecutionRouter");
function assert(condition, message) {
    if (!condition)
        throw new Error(message);
}
const router = new ExecutionRouter_1.ExecutionRouter();
const defaultIntent = (0, ExecutionIntent_1.normalizeExecutionIntent)({ goal: 'foo' });
assert(defaultIntent.mode === 'task', 'default mode should be task');
assert(router.route(defaultIntent) === 'task', 'router should route default to task');
const serviceIntent = (0, ExecutionIntent_1.normalizeExecutionIntent)({ goal: 'foo', mode: 'service' });
assert(router.route(serviceIntent) === 'service', 'router should route explicit service');
console.log('TEST_DUAL_MODE_OK');
