browser-debugger-cli
Version:
DevTools telemetry in your terminal. For humans and agents. Direct WebSocket to Chrome's debugging port.
44 lines • 1.64 kB
JavaScript
import { registerCdpCommand } from './commands/cdp.js';
import { registerCleanupCommand } from './commands/cleanup.js';
import { registerConsoleCommand } from './commands/console.js';
import { registerDetailsCommand } from './commands/details.js';
import { registerFormInteractionCommands } from './commands/dom/formInteraction.js';
import { registerDomCommands } from './commands/dom/index.js';
import { registerNetworkCommands } from './commands/network/index.js';
import { registerPeekCommand } from './commands/peek.js';
import { registerStartCommands } from './commands/start.js';
import { registerStatusCommand } from './commands/status.js';
import { registerStopCommand } from './commands/stop.js';
import { registerTailCommand } from './commands/tail.js';
/**
* Helper to add a command group
*/
const addCommandGroup = (groupName) => {
return (program) => {
program.commandsGroup(groupName);
};
};
/**
* Registry of all CLI commands with grouping
* Order matters: groups organize commands in help output
*/
export const commandRegistry = [
registerStartCommands,
addCommandGroup('Session Management:'),
registerStatusCommand,
registerStopCommand,
registerCleanupCommand,
addCommandGroup('Data Inspection:'),
registerPeekCommand,
registerTailCommand,
registerDetailsCommand,
registerDomCommands,
registerFormInteractionCommands,
addCommandGroup('CDP Commands:'),
registerCdpCommand,
addCommandGroup('Network Commands:'),
registerNetworkCommands,
addCommandGroup('Console Commands:'),
registerConsoleCommand,
];
//# sourceMappingURL=commands.js.map