(chain: string[])
| 36 | * safe to extend. |
| 37 | */ |
| 38 | export function validateCallChain(chain: string[]): string | null { |
| 39 | if (chain.length >= MAX_CALL_CHAIN_DEPTH) { |
| 40 | return `Maximum workflow call chain depth (${MAX_CALL_CHAIN_DEPTH}) exceeded.` |
| 41 | } |
| 42 | |
| 43 | return null |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Builds the next call chain by appending the current workflow ID. |
no outgoing calls
no test coverage detected