refactor(artifacts): centralize stable inventory identities

This commit is contained in:
morluto
2026-10-09 00:49:30 +08:00
parent d4c2c3c18f
commit 135d102f9d
6 changed files with 347 additions and 82 deletions
+5 -1
View File
@@ -189,10 +189,14 @@ export const projectAppleApplication = (
};
return appleApplicationProjectionResultSchema.parse({
...withoutId,
projection_id: `aap_${digest(withoutId)}`,
projection_id: appleProjectionId(withoutId),
});
};
/** Identify the complete projection, including source Evidence provenance. */
export const appleProjectionId = (projection: unknown): string =>
`aap_${digest(projection)}`;
/**
* IPA projection keeps every archive component, as before. Directory, ZIP,
* and DMG inventories can hold installers and other siblings, so only