feat: 上架视频剪辑固定材料与作者契约

This commit is contained in:
yige committed 2026-11-02 21:52:36 +08:00
1 parent 9577e9a411
commit eef65008eb
18 files changed
+5658 -198

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
/** 作者 release 使用受审的新契约;普通条目仍由已发布 global Schema 校验。 */
export const AUTHORED_ENTRY_SCHEMA_FILENAME = 'registry-entry.v4.3.schema.json'
export function isAuthoredRegistryEntry(entry) {
return entry?.type === 'web-bundle' || (entry !== null && typeof entry === 'object' && Object.hasOwn(entry, 'appRelease'))
}
export function isApplicationEntry(entry) {
return ['docker-app', 'native-app', 'artifact', 'web-bundle'].includes(entry?.type)
}