(value, generatedContextNames)
| 282 | ]); |
| 283 | |
| 284 | function isGeneratedIdempotencyKey(value, generatedContextNames) { |
| 285 | if (typeof value !== 'string') return false; |
| 286 | if (value.startsWith('$generate:uuid_v4')) return true; |
| 287 | const contextMatch = value.match(/^\$context\.([A-Za-z0-9_]+)$/); |
| 288 | return Boolean(contextMatch && generatedContextNames.has(contextMatch[1])); |
| 289 | } |
| 290 | |
| 291 | function rememberGeneratedUuidContextOutputs(step, generatedContextNames) { |
| 292 | for (const output of step?.context_outputs ?? []) { |