eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
13 lines (12 loc) • 630 B
TypeScript
/**
* Resolves the absolute path to the installed eve binary from the app's
* perspective.
*
* Uses module resolution rather than assuming an app-local `node_modules/eve`:
* npm workspaces hoist eve to the workspace root, so the app-local path does
* not exist there, while pnpm symlinks it app-locally. eve does not export
* `./bin/eve.js`, but it does export `./package.json`, so we resolve that and
* derive the bin path from the package root. Falls back to the conventional
* app-local path when eve cannot be resolved (e.g. before install).
*/
export declare function resolveEveBinaryPath(appRoot: string): string;