Versions 149 to 150
new file, 174 lines
3+// Worker pushes ends "abso-version: N" ("avcs-version: N" before the rename); the commits above the newest such
10+
13+
17+
23+ /** Oldest first, each with its whole tree as text and every file's mode. Binary files are left out. */
34+
39+
55+
56+/** main's head on the project's repo, or null when there's no repo or no main yet. Cheap: one ref listing. */
57+export async function remoteHead(artifacts: Artifacts, project: string): Promise<string | null> {
60+ const refs = await git.listServerRefs({ http, url: access.url, onAuth: access.onAuth, prefix: "refs/heads/main" });
63+
68+/** Stores a binary file's bytes and answers their SHA-256, or null when they're over the limit. */
70+
109+ if (base === undefined) throw new Error(`no abso-version commit in main's last ${DEPTH} commits`);
118+ return { head, author: fresh.at(-1)?.commit.author.name ?? "git", base, commits, tooBig: [...tooBig] };
120+
133+): Promise<{ files: Record<string, string>; modes: FileModes; blobs: Record<string, string> }> {
- MCP
- compare on this site's /mcp
- CLI
- abso diff 149 150 server/src/ingest.ts --json
- JSON
- /christopher/abso-core/compare/149..150?file=server%2Fsrc%2Fingest.ts&format=json