Download src/process/supervisor/adapters/env.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 395 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/process/supervisor/adapters/env.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/process/supervisor/adapters/env.ts
-
curl -L -o env.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/process/supervisor/adapters/env.ts
395 Bytes
| /** Convert Node's optional env values into the concrete string map spawn adapters expect. */ | |
| export function toStringEnv(env?: NodeJS.ProcessEnv): Record<string, string> { | |
| if (!env) { | |
| return {}; | |
| } | |
| const out: Record<string, string> = {}; | |
| for (const [key, value] of Object.entries(env)) { | |
| if (value === undefined) { | |
| continue; | |
| } | |
| out[key] = value; | |
| } | |
| return out; | |
| } | |