(input: unknown)
| 157 | } |
| 158 | |
| 159 | function stripMcpConfigFields(input: unknown): unknown { |
| 160 | if (!input || typeof input !== 'object' || Array.isArray(input)) return input; |
| 161 | const { |
| 162 | stateDir: _stateDir, |
| 163 | mcpOutputFormat: _mcpOutputFormat, |
| 164 | includeCost: _includeCost, |
| 165 | responseLevel: _responseLevel, |
| 166 | ...commandInput |
| 167 | } = input as Record<string, unknown>; |
| 168 | return commandInput; |
| 169 | } |
| 170 | |
| 171 | function withMcpConfigSchema(schema: JsonSchema): JsonSchema { |
| 172 | return { |
no outgoing calls
no test coverage detected