( command: unknown, stepNumber: number, )
| 55 | } |
| 56 | |
| 57 | export function readStructuredBatchCommandName( |
| 58 | command: unknown, |
| 59 | stepNumber: number, |
| 60 | ): StructuredBatchCommandName { |
| 61 | const normalized = normalizeBatchCommandName(command); |
| 62 | if (isStructuredBatchCommandName(normalized)) return normalized; |
| 63 | throw new AppError( |
| 64 | 'INVALID_ARGS', |
| 65 | `Batch step ${stepNumber} command is not available through command batch: ${String(command)}`, |
| 66 | ); |
| 67 | } |
| 68 | |
| 69 | export function assertBatchRuntimeCommandAllowed(command: string, stepNumber: number): void { |
| 70 | if (BATCH_BLOCKED_COMMANDS.has(command)) { |
no test coverage detected