(block: {
subBlocks?: Record<string, unknown>
})
| 231 | } |
| 232 | |
| 233 | export function getLegacyStarterMode(block: { |
| 234 | subBlocks?: Record<string, unknown> |
| 235 | }): 'manual' | 'api' | 'chat' | null { |
| 236 | const modeValue = readSubBlockValue(block.subBlocks, 'startWorkflow') |
| 237 | if (modeValue === 'chat') return 'chat' |
| 238 | if (modeValue === 'api' || modeValue === 'run') return 'api' |
| 239 | if (modeValue === undefined || modeValue === 'manual') return 'manual' |
| 240 | return null |
| 241 | } |
| 242 | |
| 243 | /** |
| 244 | * Mapping from reference alias (used in inline refs like <api.*>, <chat.*>, etc.) |
no test coverage detected