chore: reduce design pipeline to runtime asset checks

This commit is contained in:
2026-08-12 18:24:40 +08:00
parent 964262f693
commit 5dabcd175e
30 changed files with 106 additions and 1698 deletions
@@ -40,19 +40,21 @@ test('顶层注册表拒绝未进入导入闭包的正式 owner', async (t) => {
)
})
test('真实 schema v3 注册表覆盖直接资产与三类正式生成 owner', async () => {
test('真实 schema v3 注册表覆盖应用资产与保留生成资产', async () => {
const registry = JSON.parse(await readFile(path.join(realManifestsDirectory, 'runtime-assets.json'), 'utf8'))
const auth = JSON.parse(await readFile(path.join(realManifestsDirectory, 'auth-runtime-assets.json'), 'utf8'))
const retained = JSON.parse(await readFile(path.join(realManifestsDirectory, 'retained-generated-runtime-assets.json'), 'utf8'))
assert.equal(registry.scope, 'schema-v3')
assert.deepEqual(registry.imports, [
'design-pipeline/manifests/auth-runtime-assets.json',
'design-pipeline/manifests/application-runtime-assets.json',
'design-pipeline/manifests/shared-scroll-skins-v3.json',
'design-pipeline/manifests/page-backgrounds-v3.json',
'design-pipeline/manifests/g01-state-frame-v3.json',
'design-pipeline/manifests/retained-generated-runtime-assets.json',
])
assert.deepEqual(auth.imports, [])
assert.equal(retained.assets.length, 11)
assert(retained.assets.every((asset) => asset.provenance === 'committed-binary'))
assert(retained.assets.every((asset) => asset.rebuildable === false))
await validateRuntimeAssetRegistry(
path.join(realManifestsDirectory, 'runtime-assets.json'),
workspaceDirectory,