openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 984 B
JavaScript
import{o as getCommandPositionalsWithRootOptions}from"./cli-root-options-eez2TgAl.mjs";const GATEWAY_RUN_VALUE_FLAGS=/* @__PURE__ */ new Set([`--port`,`--bind`,`--token`,`--token-file`,`--auth`,`--password`,`--password-file`,`--tailscale`,`--ws-log`,`--raw-stream-path`]);const GATEWAY_RUN_BOOLEAN_FLAGS=/* @__PURE__ */ new Set([`--tailscale-reset-on-exit`,`--allow-unconfigured`,`--dev`,`--ambient-channels`,`--dev-ambient-channels`,`--reset`,`--update-canary`,`--force`,`--verbose`,`--cli-backend-logs`,`--claude-cli-logs`,`--compact`,`--raw-stream`]);function isForegroundGatewayRunArgv(e){const t=getCommandPositionalsWithRootOptions(e,{commandPath:[`gateway`],booleanFlags:[...GATEWAY_RUN_BOOLEAN_FLAGS,`--task-supervisor`],valueFlags:[...GATEWAY_RUN_VALUE_FLAGS,`--task-supervisor-child`],mode:`command-path`});if(!t)return false;return t.length===0||t.length===1&&t[0]===`run`}export{GATEWAY_RUN_VALUE_FLAGS as n,isForegroundGatewayRunArgv as r,GATEWAY_RUN_BOOLEAN_FLAGS as t};