feat(POSTV1-ASSET-ALL-16): 发布完整素材注册清单
Dada P0-A isolated Windows CI / validate-and-package (push) Waiting to run

This commit is contained in:
suyx
2026-08-06 11:30:09 +08:00
parent 910e32917f
commit fd4cd277cc
5 changed files with 87 additions and 66 deletions
+4 -4
View File
@@ -90,17 +90,17 @@ const familyCounts = Object.fromEntries(["text_template", "font_panel", "color_c
]));
const fullP0Enabled = complex.manifest.items.filter((item) => item.release_tier === "full_p0" && item.release_status === "enabled").length;
const publicJson = JSON.stringify(manifest);
const hiddenIds = ["FLOWER009", "H009", "TAG008", "SIMPLE009", "COLOR003", "DYN005"];
const completionIds = ["FLOWER145", "H119", "TAG051", "SIMPLE017", "FONT086", "COLOR016", "DYN035"];
const response = {
counts: manifest.counts,
full_p0_enabled: fullP0Enabled,
hidden_ids_absent: hiddenIds.every((id) => !publicJson.includes(id)),
complete_catalog_present: completionIds.every((id) => publicJson.includes(id)),
no_absolute_paths: !/[A-Za-z]:[\\/]/.test(publicJson),
release_tier: manifest.release_tier,
status: "passed",
};
const registrationValidation = {
allowlist: {
public_catalog: {
color_cards: P0A_COLOR_CARD_IDS,
dynamic_stickers: P0A_DYNAMIC_STICKER_IDS,
font_panel_items: P0A_REQUIRED_FONT_PANEL_IDS,
@@ -112,7 +112,7 @@ const registrationValidation = {
source_mutations: complex.report.source_mutations + staticResult.report.source_mutations,
static_parts: Object.keys(staticResult.catalog.part_counts).length,
static_stickers: staticResult.catalog.count,
status: response.hidden_ids_absent && response.no_absolute_paths && fullP0Enabled === 0 ? "passed" : "failed",
status: response.complete_catalog_present && response.no_absolute_paths && fullP0Enabled === 0 ? "passed" : "failed",
};
if (registrationValidation.status !== "passed") throw new Error("P0-A registration validation failed");