Merge shared runtime changes onto current main

This commit is contained in:
vorotamoroz committed 2026-11-01 05:14:55 +00:00
commit 6211597d2d
128 files changed
+9204 -1285

No files matched your search

+15
View File
@@ -73,6 +73,21 @@ test("CLI file operations: push / cat / ls / info / rm / resolve / cat-rev / pul
console.log("[PASS] push/cat roundtrip matched");
});
await t.step("push/pull binary roundtrip", async () => {
const source = workDir.join("binary-source.bin");
const restored = workDir.join("binary-restored.bin");
const remotePath = "test/blob-roundtrip.bin";
const content = Uint8Array.from({ length: 1025 }, (_, index) => index % 256);
await Deno.writeFile(source, content);
await run("push", source, remotePath);
await run("pull", remotePath, restored);
assertEquals(await Deno.readFile(restored), content, "Binary push/pull must preserve every byte");
const info = JSON.parse(await run("info", remotePath));
assertEquals(info.size, content.byteLength, "Binary Metadata must retain the original byte length");
});
// ------------------------------------------------------------------
// ls: single file
// ------------------------------------------------------------------