fix(artifacts): share decoding budgets and centralize xar validation

This commit is contained in:
morluto
2026-10-08 17:29:51 +08:00
parent 8ee7d23cae
commit be14aa0de9
9 changed files with 383 additions and 53 deletions
@@ -172,8 +172,10 @@ const materializeSelection = async ({
registry.add(path, expandable ? "directory" : entry.kind);
if (expandable) {
const parent = frame.reader;
const nested = new CpioArtifactReader((nestedSignal) =>
parent.open(entry, nestedSignal),
const nested = new CpioArtifactReader(
(nestedSignal) => parent.open(entry, nestedSignal),
"fail",
parent.decodedBudget,
);
stack.push({
reader: nested,