fix: harden prerender publication boundary

This commit is contained in:
2026-09-02 02:44:23 +03:00
parent 3dd4a818d0
commit c16c4c57da
22 changed files with 1275 additions and 231 deletions

View File

@@ -0,0 +1,14 @@
export interface DirectoryIdentity {
dev: number;
ino: number;
}
export function captureDirectoryIdentity(path: string): Promise<DirectoryIdentity>;
export function publishStagedDirectory(options: {
repositoryRoot: string;
finalRoot: string;
stagingRoot: string;
expectedStagingIdentity: DirectoryIdentity;
renameDirectory?: (from: string, to: string) => Promise<void>;
beforeCommit?: () => Promise<void>;
}): Promise<void>;