(env: Record<string, string | undefined>)
| 48 | |
| 49 | /** Which web keys are set / missing, given an env-like map. PURE. */ |
| 50 | export function webKeyStatus(env: Record<string, string | undefined>): { set: ServiceKey[]; missing: ServiceKey[] } { |
| 51 | const set: ServiceKey[] = [], missing: ServiceKey[] = []; |
| 52 | for (const k of WEB_SERVICE_KEYS) (env[k.env] ? set : missing).push(k); |
| 53 | return { set, missing }; |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * The "your search is running degraded" message: shown when a web task failed (or fell back to |
no test coverage detected