UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

16 lines (15 loc) • 732 B
import { a as resolveCliParentCommandPath } from "./config-output-mode-B_Eb6adL.mjs"; import { a as getPrimaryCommand, l as isHelpOrVersionInvocation, n as getCommandPathWithRootOptions, u as isRootHelpInvocation } from "./argv-CbnKpH-r.mjs"; import { i as resolveGatewayCommandPath } from "./gateway-run-argv-CMDDyZ3j.mjs"; //#region src/cli/argv-invocation.ts function resolveCliArgvInvocation(e) { return { argv: e, commandPath: resolveGatewayCommandPath(e) ?? resolveCliParentCommandPath(e) ?? getCommandPathWithRootOptions(e, 2), primary: getPrimaryCommand(e), hasHelpOrVersion: isHelpOrVersionInvocation(e), isRootHelpInvocation: isRootHelpInvocation(e) }; } //#endregion export { resolveCliArgvInvocation as t };