openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 496 B
JavaScript
import e from"node:path";import{fileURLToPath as t,pathToFileURL as n}from"node:url";const r={npm:`npm-cli.js`,npx:`npx-cli.js`};resolveRuntimeProcessDistRoot(t(import.meta.url));function resolveRuntimeProcessDistRoot(t){let n=t.replaceAll(e.sep,`/`).lastIndexOf(`/dist/`);return n>=0?t.slice(0,n+6):void 0}function resolveRuntimeDependencyEntrypointUrlFromDirectory(t,i){return n(e.join(i,r[t]))}export{resolveRuntimeProcessDistRoot as n,resolveRuntimeDependencyEntrypointUrlFromDirectory as t};