/** * Path Utilities for CLI * Issue #96: npm install CLI support * * Provides utilities to resolve package installation directory * regardless of where the CLI is invoked from. */ /** * Get the root directory of the CommandMate package installation. * * When installed globally via npm, the CLI runs from: * /commandmate/dist/cli/utils/paths.js * * This function returns the package root: * /commandmate/ * * @returns Absolute path to the package root directory */ export declare function getPackageRoot(): string; /** * Get the path to package.json * @returns Absolute path to package.json */ export declare function getPackageJsonPath(): string; /** * Issue #3731: the file a `start --daemon` server's stdout/stderr is appended to. * * Lives under `/logs/` next to the PID files' config, not under `CM_LOG_DIR`: * that variable is read by the server itself (conversation logs, served through the API), * while this path must be known before the server is spawned and by `status` afterwards. * Worktree servers (`--issue`) get their own file so parallel servers never share one. * * @param issueNo - Issue number of a worktree server; omit for the main server * @returns `/logs/server.log` or `/logs/server-.log` */ export declare function getServerLogPath(issueNo?: number): string; //# sourceMappingURL=paths.d.ts.map