( nestedCommands: readonly string[] = STRUCTURED_BATCH_COMMAND_NAMES, )
| 46 | }; |
| 47 | |
| 48 | export function createBatchCommandMetadata( |
| 49 | nestedCommands: readonly string[] = STRUCTURED_BATCH_COMMAND_NAMES, |
| 50 | ): CommandMetadata<'batch', BatchInput> { |
| 51 | const fields = batchFields(nestedCommands); |
| 52 | return defineCommandMetadata({ |
| 53 | name: 'batch', |
| 54 | description: 'Run multiple structured command steps in one daemon request.', |
| 55 | inputSchema: fieldsInputSchema(fields), |
| 56 | readInput: (input) => readBatchInput(input, fields), |
| 57 | }); |
| 58 | } |
| 59 | |
| 60 | function batchFields(nestedCommands: readonly string[]) { |
| 61 | return { |
no test coverage detected
searching dependent graphs…