/** * Canonical workspace identity resolution. * * The identity must be stable across symlink/junction-safe realpaths, distinct * per repository and per worktree, and carry no secret content. Branch and HEAD * are metadata, never the sole identity. */ /** Current workspace index schema version. */ export declare const INDEX_SCHEMA_VERSION = 1; export interface ResolvedWorkspaceIdentity { workspaceId: string; canonicalRoot: string; filesystemIdentity: string; gitRepositoryId?: string; gitCommonDir?: string; worktreeId?: string; branch?: string; headCommit?: string; } /** * Resolve canonical root (symlink/junction-safe) and git identity for a path. * Never throws for a usable filesystem path. */ export declare function resolveWorkspaceIdentity(cwd: string): ResolvedWorkspaceIdentity; export interface IdentityMeta extends ResolvedWorkspaceIdentity { indexVersion: number; } export declare function toIdentityMeta(identity: ResolvedWorkspaceIdentity): IdentityMeta; /** * Compute the storage root for workspace index data. Never inside the source * directory by default. Per-workspace isolation is achieved with subdirectories * keyed by workspace id. */ export declare function defaultIndexRoot(): string; export declare function workspaceIndexDir(root: string, workspaceId: string): string; /** Temporary sibling used during atomic generation replacement. */ export declare function tempDirUnder(root: string): string; export declare function systemTempDir(): string; //# sourceMappingURL=identity.d.ts.map