* Convert a LargeToolOutputConfig from the public API shape * (`outputDirectory`) to the wire shape (`outputDir`).
(
config: LargeToolOutputConfig | undefined
)
| 252 | * (`outputDirectory`) to the wire shape (`outputDir`). |
| 253 | */ |
| 254 | function toWireLargeOutput( |
| 255 | config: LargeToolOutputConfig | undefined |
| 256 | ): Record<string, unknown> | undefined { |
| 257 | if (!config) return undefined; |
| 258 | const { outputDirectory, ...rest } = config; |
| 259 | const wire: Record<string, unknown> = { ...rest }; |
| 260 | if (outputDirectory !== undefined) { |
| 261 | wire.outputDir = outputDirectory; |
| 262 | } |
| 263 | return wire; |
| 264 | } |
| 265 | |
| 266 | function toolFilterListToArray(value: string[] | ToolSet | undefined): string[] | undefined { |
| 267 | if (value === undefined) { |
no outgoing calls
no test coverage detected
searching dependent graphs…