| 1 | /** |
| 2 | * Base interface for command options that are shared across multiple commands |
| 3 | */ |
| 4 | export interface BaseCommandOptions { |
| 5 | /** Path to configuration file */ |
| 6 | config?: string; |
| 7 | /** Array of rule specifications (can be file paths, hub slugs, or string content) */ |
| 8 | rule?: string[]; |
| 9 | /** Array of tools to allow (overrides default policies) */ |
| 10 | allow?: string[]; |
| 11 | /** Array of tools to ask permission for (overrides default policies) */ |
| 12 | ask?: string[]; |
| 13 | /** Array of tools to exclude from use (overrides default policies) */ |
| 14 | exclude?: string[]; |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * Extended base options that include verbose and tool control flags |
| 19 | */ |
| 20 | export interface ExtendedCommandOptions extends BaseCommandOptions { |
| 21 | /** Enable verbose logging */ |
| 22 | verbose?: boolean; |
| 23 | /** Start in plan mode (backward compatibility) */ |
| 24 | readonly?: boolean; |
| 25 | /** Start in auto mode (all tools allowed) */ |
| 26 | auto?: boolean; |
| 27 | } |