Download src/daemon/container-context.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 527 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/daemon/container-context.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/daemon/container-context.ts
-
curl -L -o container-context.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/daemon/container-context.ts
527 Bytes
| /** Detects whether a daemon was launched by OpenClaw's container-aware service wrapper. */ | |
| import { normalizeOptionalString } from "@openclaw/normalization-core/string-coerce"; | |
| /** Resolves the daemon container hint exposed by managed service environments. */ | |
| export function resolveDaemonContainerContext( | |
| env: Record<string, string | undefined> = process.env, | |
| ): string | null { | |
| return ( | |
| normalizeOptionalString(env.OPENCLAW_CONTAINER_HINT) || | |
| normalizeOptionalString(env.OPENCLAW_CONTAINER) || | |
| null | |
| ); | |
| } | |