/** * CLEO home + project DB path resolution for `@cleocode/brain`. * * Path resolution delegates to the `@cleocode/paths` SSoT * ({@link getCleoHome}). Project data (tasks.db, brain.db, conduit.db) is * resolved via projectId → nexus.db registry lookup * ({@link resolveProjectByCwd} + {@link resolveCanonicalCleoDir}), with a * `CLEO_ROOT` / `process.cwd()` fallback for non-project contexts. * * Previously this module imported `env-paths` directly which caused a Windows * path mismatch with the rest of the CLEO ecosystem (the CLI used env-paths * returning `%LOCALAPPDATA%\cleo\Data` while brain used a bare * `%LOCALAPPDATA%\cleo`, looking up `nexus.db` one directory shallower than * where it was written). Fixed in T1874 (Closes #102, supersedes #103). * * @task T1874 (original Windows fix) * @task T1886 (migrated to @cleocode/paths SSoT) * @task T11040 (verified 2026-05-27: projectId-based resolution confirmed; 72/72 tests pass) */ import { getCleoHome } from '@cleocode/paths'; export { getCleoHome }; /** * Returns the project's `.cleo/` directory. * * Resolution order: * 1. {@link resolveProjectByCwd} — reads `.cleo/project-info.json` for a stable * `projectId`, then resolves the canonical `.cleo/` path via * {@link resolveCanonicalCleoDir} (nexus.db registry lookup). * 2. Fallback: `CLEO_ROOT` env var or `process.cwd()` + `'.cleo'` for * non-project contexts (e.g., before `cleo init`). * * @task T11040 — migrate from CWD-walk-up to projectId-based resolution */ export declare function getCleoProjectDir(): string; /** Returns the absolute path to the global nexus.db file. */ export declare function getNexusDbPath(): string; /** Returns the absolute path to the project-scoped brain.db file. */ export declare function getBrainDbPath(): string; /** Returns the absolute path to the project-scoped tasks.db file. */ export declare function getTasksDbPath(): string; /** Returns the absolute path to the project-scoped conduit.db file. */ export declare function getConduitDbPath(): string; /** Returns the absolute path to the global signaldock.db file. */ export declare function getAgentRegistryDbPath(): string; /** Returns true when the given DB file exists on disk. */ export declare function dbExists(dbPath: string): boolean; //# sourceMappingURL=cleo-home.d.ts.map