UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 594 B
import path from"node:path";import{fileURLToPath,pathToFileURL}from"node:url";const dependencyDirectoryEntrypoints={npm:`npm-cli.js`,npx:`npx-cli.js`};const distRoot=resolveRuntimeProcessDistRoot(fileURLToPath(import.meta.url));function resolveRuntimeProcessDistRoot(e){const t=e.replaceAll(path.sep,`/`).lastIndexOf(`/dist/`);return t>=0?e.slice(0,t+6):void 0}function resolveRuntimeDependencyEntrypointUrlFromDirectory(e,t){return pathToFileURL(path.join(t,dependencyDirectoryEntrypoints[e]))}export{resolveRuntimeProcessDistRoot as n,resolveRuntimeDependencyEntrypointUrlFromDirectory as t};