OpfsEffects
Defined in: packages/client/src/opfs-effects.ts:40
The effects surface the store-boot wiring drives (create-if-absent / delete-if-present / never-creating observe).
Methods
Section titled “Methods”deleteSentinel()
Section titled “deleteSentinel()”deleteSentinel():
Promise<void>
Defined in: packages/client/src/opfs-effects.ts:44
Delete-if-present the commitment sentinel (NotFoundError swallowed).
Returns
Section titled “Returns”Promise<void>
deleteStoreDirectory()
Section titled “deleteStoreDirectory()”deleteStoreDirectory():
Promise<void>
Defined in: packages/client/src/opfs-effects.ts:46
Recursively delete-if-present the store directory pgxsinkit/stores/<identity> (NotFoundError swallowed).
Returns
Section titled “Returns”Promise<void>
getStoreDirectoryHandle()
Section titled “getStoreDirectoryHandle()”getStoreDirectoryHandle():
Promise<unknown>
Defined in: packages/client/src/opfs-effects.ts:53
Create-if-absent chain to the store directory, returning its handle for the opfs-repacked factory.
Returns
Section titled “Returns”Promise<unknown>
observeCommitmentNamespace()
Section titled “observeCommitmentNamespace()”observeCommitmentNamespace():
Promise<{sentinelPresent:boolean;storeDirectoryPresent:boolean; } |"unobservable">
Defined in: packages/client/src/opfs-effects.ts:51
Never-creating walk of the commitment namespace. A root/API failure (or the API being absent) reads as
"unobservable" — this method NEVER throws.
Returns
Section titled “Returns”Promise<{ sentinelPresent: boolean; storeDirectoryPresent: boolean; } | "unobservable">
publishSentinel()
Section titled “publishSentinel()”publishSentinel():
Promise<void>
Defined in: packages/client/src/opfs-effects.ts:42
Create-if-absent the commitment sentinel file at pgxsinkit/commitments/<identity>.
Returns
Section titled “Returns”Promise<void>