/** * Single source of truth for rolebox state-file naming and workspace paths. * The read side (`monitor` CLI) and write side (dispatch/function/graph stores) * MUST derive names through this module so they cannot drift apart and produce * different file names for the same workspace. */ export declare const ROLEBOX_DIR = ".rolebox"; export declare const STATE_SUBDIR = "state"; export declare function shortHash(seed: string): string; /** * Canonicalize a workspace directory so the same physical location always * hashes identically. `realpathSync.native` resolves symlinks (e.g. macOS * `/var` → `/private/var`, or a symlinked project root) so the plugin * (opencode's `directory`) and the CLI (`process.cwd()`) agree. Falls back to * the resolved path when the directory does not exist yet (realpath throws). */ export declare function normalizeWorkspaceDir(dir: string): string; export declare function workspaceHash(dir: string): string; export declare function stateDirFor(dir: string): string; /** * Return the path to the memory SQLite database file for the given * workspace directory. The file lives directly under `.rolebox/`. */ export declare function memoryDbPath(dir: string): string; //# sourceMappingURL=state-paths.d.ts.map