/** * configure command - Display and validate SDK configuration * * This command provides utilities to: * - Display current effective configuration (merged defaults + env) * - Validate current configuration * - Show important paths (runs dir, etc.) * * Subcommands: * - configure show - Display current effective configuration * - configure validate - Validate current configuration * - configure paths - Show important paths */ /** * Options for the configure command */ export interface ConfigureOptions { /** Output in JSON format for machine consumption */ json?: boolean; /** Show only default values (ignore env overrides) */ defaultsOnly?: boolean; /** Working directory (defaults to cwd) */ cwd?: string; } /** * Configuration value with source information */ export interface ConfigValue { /** Configuration key name */ key: string; /** Current effective value */ value: unknown; /** Source of the value: "default" or "env" */ source: "default" | "env"; /** Environment variable name that can override this value */ envVar?: string; /** Documentation link for this configuration option */ docLink: string; /** Human-readable description */ description: string; } /** * Result of the configure show subcommand */ export interface ConfigureShowResult { /** All configuration values with their sources */ values: ConfigValue[]; /** Timestamp of when the configuration was read */ timestamp: string; } /** * Result of the configure validate subcommand */ export interface ConfigureValidateResult { /** Whether the configuration is valid */ valid: boolean; /** Validation errors */ errors: string[]; /** Validation warnings */ warnings: string[]; /** Timestamp of when the validation was performed */ timestamp: string; } /** * Path information */ export interface PathInfo { /** Name of the path */ name: string; /** Absolute path value */ path: string; /** Whether the path exists */ exists: boolean; /** Description of what the path is used for */ description: string; } /** * Result of the configure paths subcommand */ export interface ConfigurePathsResult { /** All important paths */ paths: PathInfo[]; /** Timestamp of when the paths were resolved */ timestamp: string; } /** * Execute the "configure show" subcommand */ export declare function configureShow(options: ConfigureOptions): ConfigureShowResult; /** * Execute the "configure validate" subcommand */ export declare function configureValidate(options: ConfigureOptions): ConfigureValidateResult; /** * Execute the "configure paths" subcommand */ export declare function configurePaths(options: ConfigureOptions): Promise; /** * CLI entry point for the configure command * * @param args - Subcommand arguments (e.g., ["show"], ["validate"], ["paths"]) * @param options - Parsed CLI options * @returns Exit code (0 for success, 1 for failure) * * @example * ```ts * // Show current configuration * await handleConfigureCommand(["show"], {}); * * // Show configuration in JSON format * await handleConfigureCommand(["show"], { json: true }); * * // Show only default values * await handleConfigureCommand(["show"], { defaultsOnly: true }); * * // Validate configuration * await handleConfigureCommand(["validate"], {}); * * // Show paths * await handleConfigureCommand(["paths"], {}); * ``` */ export declare function handleConfigureCommand(args: string[], options: ConfigureOptions): Promise; //# sourceMappingURL=configure.d.ts.map