(
input: ConnectionValueInput,
)
| 3252 | // pasted `value`/`values` are used directly; `from` origins resolve through |
| 3253 | // their provider. Single-secret sugar lands on the `token` variable. |
| 3254 | const resolveInFlightValues = ( |
| 3255 | input: ConnectionValueInput, |
| 3256 | ): Effect.Effect<Record<string, string | null>, StorageFailure> => |
| 3257 | Effect.gen(function* () { |
| 3258 | const out: Record<string, string | null> = {}; |
| 3259 | for (const { variable, origin } of normalizeConnectionInputs(input)) { |
| 3260 | if ("value" in origin) { |
| 3261 | out[variable] = origin.value; |
| 3262 | continue; |
| 3263 | } |
| 3264 | const provider = credentialProviders.get(String(origin.from.provider)); |
| 3265 | if (!provider) { |
| 3266 | return yield* new StorageError({ |
| 3267 | message: `Credential provider "${origin.from.provider}" is not registered.`, |
| 3268 | cause: undefined, |
| 3269 | }); |
| 3270 | } |
| 3271 | out[variable] = yield* provider.get(origin.from.id); |
| 3272 | } |
| 3273 | return out; |
| 3274 | }); |
| 3275 | |
| 3276 | /** Stamp the verdict + which path produced it onto the enclosing health |
| 3277 | * span. Every health outcome is HTTP 200, so WITHOUT these attributes the |
no test coverage detected