"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.shouldUseCursorCliproxyShortcut = exports.isCursorSubcommandToken = exports.CURSOR_CLIPROXY_SHORTCUT_FLAGS = exports.CURSOR_SUBCOMMANDS = exports.LEGACY_CURSOR_PROFILE_NAME = void 0;
exports.LEGACY_CURSOR_PROFILE_NAME = 'legacy-cursor';
exports.CURSOR_SUBCOMMANDS = [
    'auth',
    'status',
    'probe',
    'models',
    'start',
    'stop',
    'enable',
    'disable',
    'help',
    '--help',
    '-h',
];
exports.CURSOR_CLIPROXY_SHORTCUT_FLAGS = new Set([
    '--auth',
    '--logout',
    '--config',
    '--accounts',
]);
function isCursorSubcommandToken(token) {
    return (Boolean(token) && exports.CURSOR_SUBCOMMANDS.includes(token));
}
exports.isCursorSubcommandToken = isCursorSubcommandToken;
function shouldUseCursorCliproxyShortcut(args) {
    if (args[0] !== 'cursor') {
        return false;
    }
    for (const token of args.slice(1)) {
        if (token === '--') {
            break;
        }
        if (exports.CURSOR_CLIPROXY_SHORTCUT_FLAGS.has(token)) {
            return true;
        }
        if (!token.startsWith('-')) {
            return false;
        }
    }
    return false;
}
exports.shouldUseCursorCliproxyShortcut = shouldUseCursorCliproxyShortcut;
//# sourceMappingURL=constants.js.map