* Resolve the engine identifier from aw_info.json, aw_context propagation, or env vars. * * Priority: * 1. `awInfo.engine_id` – set by generate_aw_info.cjs on the agent job * 2. `awInfo.context.engine_id` – propagated via aw_context for auxiliary / dispatched jobs * 3. `process.env.GH_AW_INFO_E
(awInfo)
| 213 | * @returns {string} |
| 214 | */ |
| 215 | function resolveEngineId(awInfo) { |
| 216 | return readContextString(awInfo.engine_id) || readContextString(awInfo.context?.engine_id) || process.env.GH_AW_INFO_ENGINE_ID || ""; |
| 217 | } |
| 218 | |
| 219 | /** |
| 220 | * Resolve live episode correlation attributes directly from runtime context. |
no test coverage detected