import { claudeCodeRulePack } from '../../hosts/claude-code/coach.js';
import { codexRulePack } from '../../hosts/codex/coach.js';
import { geminiRulePack } from '../../hosts/gemini/coach.js';
const RULE_PACKS = {
    'claude-code': claudeCodeRulePack,
    codex: codexRulePack,
    gemini: geminiRulePack,
};
/**
 * Return the coach rule pack for the given host.
 * Defaults to 'claude-code' if host is unrecognised.
 */
export function loadRulePack(host) {
    return RULE_PACKS[host];
}
/**
 * Detect active host from environment / conventions.
 * Priority: PLANU_HOST env var > 'claude-code' default.
 */
export function getActiveHost() {
    const envHost = process.env.PLANU_HOST;
    if (envHost === 'codex' || envHost === 'gemini' || envHost === 'claude-code') {
        return envHost;
    }
    return 'claude-code';
}
//# sourceMappingURL=loader.js.map