#!/usr/bin/env node /** * Hari Seldon CLI * * Command-line interface for the Hari Seldon MCP server. * Provides commands for starting the server, initializing configuration, * listing roles, and validating configuration. */ export declare const VERSION = "3.0.2"; /** * Supported CLI commands. */ export type Command = "setup" | "start" | "init" | "list-roles" | "validate" | "version" | "help" | "provider" | "install-skills" | "status" | "recover" | "orphans" | "state" | "project"; /** * Provider subcommands. */ export type ProviderSubcommand = "add" | "test" | "list"; /** * Orphans subcommands. */ export type OrphansSubcommand = "list" | "cleanup"; /** * State subcommands. */ export type StateSubcommand = "export" | "import"; /** * Project subcommands. */ export type ProjectSubcommand = "set-coder" | "set-orchestrator" | "set-fallback" | "show" | "reset"; /** * Parsed CLI options. */ export interface CLIOptions { /** The command to execute */ command: Command; /** Path to config file (--config, -c) */ configPath?: string; /** Profile name (--profile, -p) */ profile?: string; /** Enable verbose logging (--verbose, -v) */ verbose: boolean; /** Show help (--help, -h) */ help: boolean; /** Provider subcommand (for 'provider' command) */ providerSubcommand?: ProviderSubcommand; /** Provider name argument (for 'provider add' and 'provider test') */ providerName?: string; /** Orphans subcommand (for 'orphans' command) */ orphansSubcommand?: OrphansSubcommand; /** State subcommand (for 'state' command) */ stateSubcommand?: StateSubcommand; /** Path argument (for 'state export/import') */ statePath?: string; /** Dry run flag (--dry-run) */ dryRun?: boolean; /** Force flag (--force, -f) */ force?: boolean; /** Auto cleanup flag (--auto-cleanup) */ autoCleanup?: boolean; /** Project subcommand (for 'project' command) */ projectSubcommand?: ProjectSubcommand; /** Provider/model argument for project commands */ projectProvider?: string; /** Fallback providers for set-fallback (comma-separated) */ projectFallbacks?: string; /** Role name for set-fallback */ projectRole?: string; } /** * Parse command line arguments into CLIOptions. * * @param argv - Array of command line arguments (process.argv.slice(2)) * @returns Parsed CLI options */ export declare function parseArgs(argv: string[]): CLIOptions; /** * Run the CLI with the given options. * * @param options - Parsed CLI options */ export declare function runCLI(options: CLIOptions): Promise; /** * Main entry point for the CLI. * Parses arguments and executes the appropriate command. */ export declare function main(): void; //# sourceMappingURL=cli.d.ts.map