fix(artifacts): admit bounded reads and preserve source identity

Validation: integrated changes passed formatting, typecheck, lint, resolved module-boundary verification and git diff --check. Tests and real-provider workflows were not run.
This commit is contained in:
morluto
2026-10-11 00:03:18 +08:00
parent 2a0b58e440
commit 6d4cefc4f7
21 changed files with 502 additions and 189 deletions
+7 -2
View File
@@ -76,7 +76,12 @@ export const publishWebScripts = async (
bytes: bytes.length,
},
});
await tree.write("manifest.json", Readable.from([bytes]), digest, signal);
await tree.write(
"manifest.json",
Readable.from([bytes]),
{ sha256: digest, bytes: bytes.byteLength },
signal,
);
signal?.throwIfAborted();
await tree.commit();
return result;
@@ -109,7 +114,7 @@ const publishPlannedScript = async (
tree.write(
`files/${relativePath}`,
Readable.from([content.bytes]),
content.sha256,
{ sha256: content.sha256, bytes: content.bytes.byteLength },
signal,
);
try {