feat(supabase): publish gate on the Rust core's sheet.check, fail closed
publishSheetVersion(client, versionId, validate) takes the core's sheet.check (the package never loads the module itself); anything but a publishable verdict refuses publication before the RPC: invalid_shape, not_publishable (same message as before: first error code), and validator_unavailable when the core cannot run. Tests run on the real Node core; the shape case now asserts the closed kind instead of any throw. The package no longer depends on @faunosteo/domain.
This commit is contained in:
1 parent
21906c4358
commit
6891f9ea25
6 files changed
+119
-18
No files matched your search
@@ -43,7 +43,14 @@ export {
|
||||
} from './profiles'
|
||||
/** owner | admin | moderator | support. Not a professional status. */
|
||||
export { fetchOwnPlatformRoles, type PlatformRole } from './platform-roles'
|
||||
export { publishSheetVersion } from './anatomical-sheets'
|
||||
export {
|
||||
publishSheetVersion,
|
||||
SheetPublishError,
|
||||
type SheetCheckOutcome,
|
||||
type SheetIssue,
|
||||
type SheetPublishErrorKind,
|
||||
type SheetValidator,
|
||||
} from './anatomical-sheets'
|
||||
export {
|
||||
ASSET_FAILURE_KINDS,
|
||||
ASSET_OWNER_COLUMNS,
|
||||
|
||||
Reference in new issue
Block a user