UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

47 lines (46 loc) 1.08 kB
import { n as inheritOptionFromParent } from "./command-options-BDuSHeWG.js"; //#region src/cli/gateway-cli/run-options.ts const GATEWAY_RUN_VALUE_KEYS = [ "port", "bind", "token", "auth", "password", "passwordFile", "tailscale", "wsLog", "rawStreamPath" ]; const GATEWAY_RUN_BOOLEAN_KEYS = [ "tailscaleResetOnExit", "allowUnconfigured", "dev", "ambientChannels", "devAmbientChannels", "reset", "taskSupervisor", "force", "verbose", "cliBackendLogs", "claudeCliLogs", "compact", "rawStream" ]; function resolveGatewayRunOptions(opts, command) { const resolved = { ...opts }; for (const key of GATEWAY_RUN_VALUE_KEYS) { const inherited = inheritOptionFromParent(command, key); if (key === "wsLog") { resolved[key] = inherited ?? resolved[key]; continue; } resolved[key] = resolved[key] ?? inherited; } for (const key of GATEWAY_RUN_BOOLEAN_KEYS) { const inherited = inheritOptionFromParent(command, key); resolved[key] = Boolean(resolved[key] || inherited); } return resolved; } //#endregion export { resolveGatewayRunOptions as t };