fix: persist public file shares across daemon restarts (#7002)

* fix: persist public file shares across restarts

* fix(daemon): redact unpersisted public snapshots

Generated-By: looper 0.11.8 (runner=fixer, agent=codex)

* fix(web): expose public share recovery action

Generated-By: looper 0.11.8 (runner=fixer, agent=codex)
This commit is contained in:
Ray Xi
2026-08-18 15:49:39 +00:00
committed by GitHub
parent 42faa84d0c
commit aa5bb5d67a
13 changed files with 839 additions and 30 deletions
+23
View File
@@ -17,6 +17,29 @@ import type {
export type CollabMemberRole = 'owner' | 'admin' | 'member';
/** Public single-file snapshot returned by the daemon publish routes. */
export interface PublicProjectFilePublication {
url: string;
slug: string;
fileName: string;
}
export const PUBLIC_FILE_MANUAL_REVOKE_REQUIRED =
'PUBLIC_FILE_MANUAL_REVOKE_REQUIRED' as const;
/** Recovery data returned when a new public snapshot could not be persisted or redacted. */
export interface PublicFileManualRevokeRequiredData extends PublicProjectFilePublication {
projectId: string;
}
export interface PublicFileManualRevokeRequiredResponse {
error: {
code: typeof PUBLIC_FILE_MANUAL_REVOKE_REQUIRED;
message: string;
data: PublicFileManualRevokeRequiredData;
};
}
/** A member present in a shared project (heartbeat identity). */
export interface CollabPresenceMember {
memberId: string;