(env: EnvMap = process.env as EnvMap)
| 113 | } |
| 114 | |
| 115 | export function parsePtyTargetScenarioId(env: EnvMap = process.env as EnvMap): string { |
| 116 | const raw = env[PTY_TARGET_SCENARIO_ID_ENV]; |
| 117 | if (typeof raw !== "string" || raw.trim().length === 0) { |
| 118 | throw new Error(`${PTY_TARGET_SCENARIO_ID_ENV} is required`); |
| 119 | } |
| 120 | return raw.trim(); |
| 121 | } |
| 122 | |
| 123 | export function parsePtyTargetNativeConfig( |
| 124 | env: EnvMap = process.env as EnvMap, |
no outgoing calls