File size: 527 Bytes
d197cf3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | /** 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
);
}
|