"use strict";
/**
 * Shared Copilot command tokens and aliases.
 * Keep all copilot subcommand routing in one place to avoid drift.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.isCopilotSubcommandToken = exports.normalizeCopilotSubcommand = exports.COPILOT_SUBCOMMAND_TOKENS = exports.COPILOT_FLAG_ALIASES = exports.COPILOT_SUBCOMMANDS = void 0;
exports.COPILOT_SUBCOMMANDS = [
    'auth',
    'status',
    'models',
    'usage',
    'start',
    'stop',
    'enable',
    'disable',
];
exports.COPILOT_FLAG_ALIASES = Object.freeze({
    '--auth': 'auth',
    '--status': 'status',
    '--models': 'models',
    '--usage': 'usage',
    '--start': 'start',
    '--stop': 'stop',
    '--enable': 'enable',
    '--disable': 'disable',
});
exports.COPILOT_SUBCOMMAND_TOKENS = Object.freeze([
    ...exports.COPILOT_SUBCOMMANDS,
    ...Object.keys(exports.COPILOT_FLAG_ALIASES),
    'help',
    '--help',
    '-h',
]);
function normalizeCopilotSubcommand(token) {
    if (!token)
        return token;
    const alias = exports.COPILOT_FLAG_ALIASES[token];
    return alias || token;
}
exports.normalizeCopilotSubcommand = normalizeCopilotSubcommand;
function isCopilotSubcommandToken(token) {
    return Boolean(token) && exports.COPILOT_SUBCOMMAND_TOKENS.includes(token);
}
exports.isCopilotSubcommandToken = isCopilotSubcommandToken;
//# sourceMappingURL=constants.js.map