← Files RivetARCHIVED FILE
node_modules/rivet-design/dist/cli/commandNames.js
1.06 KB · Nov 7, 2026 · 13:16 UTC
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizeCliInvocation = exports.isCliControlCommand = exports.CLI_CONTROL_COMMANDS = void 0;
exports.CLI_CONTROL_COMMANDS = new Set([
'open',
'stop',
'status',
'update',
'version',
'wait',
'variants',
'evidence',
'reference',
'profile',
'context',
'auth',
'mcp',
'__serve',
'__hub',
]);
const isCliControlCommand = (command) => command !== undefined && exports.CLI_CONTROL_COMMANDS.has(command);
exports.isCliControlCommand = isCliControlCommand;
const normalizeCliInvocation = (args) => {
const first = args[0];
if (!first)
return ['open'];
if (['--help', '-h', '--version', '-v'].includes(first))
return args;
if (first === 'agent')
return ['open', ...args.slice(1)];
if (first.startsWith('-'))
return ['open', ...args.map((arg) => (arg === '-d' ? '--debug' : arg))];
return args;
};
exports.normalizeCliInvocation = normalizeCliInvocation;
//# sourceMappingURL=commandNames.js.mapSHA-256: e7e0629f4d97bba718dd6618951a3b5486f3155afcbd89845777d54bcc55c5fb