Versions 1 to 318
new file, 72 lines
1+// compare's summary (abso issue 680): every file a full compare lists, with its size in UTF-8 bytes and SHA-256 before
2+// and after instead of its texts, or its blob's hash for a binary file. The same on a writer-backed project as in
4+
12+
16+
27+
44+
46+
52+ if ("summary" in full || !("summary" in summary)) throw Error("compare answered the wrong shape");
60+ text === null ? null : blob ? { blob } : { size: Buffer.byteLength(text, "utf8"), sha256: sha(text) };
67+ assert.deepEqual(edited.after, { size: Buffer.byteLength("one\nzwei ü\n", "utf8"), sha256: sha("one\nzwei ü\n") });
- MCP
- compare on this site's /mcp
- CLI
- abso diff 1 318 worker/project/test/compare-summary.test.ts --json
- JSON
- /christopher/abso-core/compare/1..318?file=worker%2Fproject%2Ftest%2Fcompare-summary.test.ts&format=json