Versions 42 to 318
Lines 8–20 at 318 (were 8–18 at 42)
11−import { newerCommitNote } from "./client-version.ts";
Lines 28–34 at 318 (were 26–31 at 42)
Lines 40–46 at 318 (were 37–42 at 42)
Lines 72–95 at 318 (were 68–80 at 42)
72−export function crlfOnly(root: string): string[] {
77− if (normalize(disk) === readKnown(root, rel)) out.push(rel);
Lines 150–157 at 318 (were 135–142 at 42)
138− ? "This folder is a reader now: status, sync, log, show, files and export work, and nothing it does is recorded or published. abso reader off undoes it."
139− : "This folder records and publishes again.",
153+ ? "This folder is a reader now: status, pull, log, show, files and export work, and nothing it does is recorded or pushed. abso reader off undoes it."
Lines 160–166 at 318 (were 145–151 at 42)
148− `${plural(open.length, "collision")} to settle before you publish (keep yours, theirs or a mix and delete the marker lines, or abso settle <file> --yours|--theirs|--both):`,
163+ `${plural(open.length, "collision")} to settle before you push (keep yours, theirs or a mix and delete the marker lines, or abso settle <file> --yours|--theirs|--both):`,
151166 ` ${c.file} lines ${c.lines[0]}-${c.lines[1]}, with ${c.theirs.agent}'s version ${c.theirs.version} ("${c.theirs.message}")`,
Lines 218–224 at 318 (were 203–209 at 42)
206− `Moved ${from} to ${to} in your draft; its lines keep their history. It reaches shared with your next publish.`,
221+ `Moved ${from} to ${to} in your draft; its lines keep their history. It reaches shared with your next push.`,
Lines 262–268 at 318 (were 247–253 at 42)
250− `Settled ${counts.map(([rel, n]) => `${plural(n, "block")} in ${rel}`).join(", ")}, keeping ${which}.${keep === "both" ? " Both sides stay in the file; when you publish, the other author hears that you kept both." : ""}`,
265+ `Settled ${counts.map(([rel, n]) => `${plural(n, "block")} in ${rel}`).join(", ")}, keeping ${which}.${keep === "both" ? " Both sides stay in the file; when you push, the other author hears that you kept both." : ""}`,
252267 json: { keep, files: counts.map(([file, blocks]) => ({ file, blocks })), recorded: recorded.sent },
Lines 276–316 at 318 (were 261–287 at 42)
264− `Missing from this folder though your view has ${missing.length === 1 ? "it" : "them"} (abso sync --full writes ${missing.length === 1 ? "it" : "them"}; abso files lists them all): ${some}`,
279+ `Missing from this folder though your view has ${missing.length === 1 ? "it" : "them"} (abso pull --full writes ${missing.length === 1 ? "it" : "them"}; abso files lists them all): ${some}`,
267282
286+ // A folder that reads signed out: shared's version and whether it's green. It holds no files to compare.
290+ `Project ${config.project}: shared is at version ${status.version}. This folder reads it signed out, sending no sign-in: status, log, show, files, blame, why, where, issues, issue and search work here. To work on it: abso login, then abso join ${config.project} in a new folder.`,
293+ json: { project: config.project, version: status.version, visitor: true, ci: status.ci ?? null },
271297 const { files: view, ...status } = short ? { ...(await api.status()), files: undefined } : await api.statusAndFiles();
272− const pending = unrecorded(root);
273300 const local = new Set([...pending.files.keys(), ...pending.blobs.keys(), ...Object.keys(pending.modes)]);
279− const word = `${me?.draft ? `${me.draft}@` : ""}${me?.base ?? "none"}${unpublished ? "+unpublished" : ""}${(me?.queued?.length ?? 0) > 0 ? "+queued" : ""}`;
307+ const word = `${me?.draft ? `${me.draft}@` : ""}${me?.base ?? "none"}${unpublished ? "+unpushed" : ""}${(me?.queued?.length ?? 0) > 0 ? "+queued" : ""}`;
280308 return { text: word, json: { version: me?.base ?? null, draft: me?.draft ?? null, unpublished, word } };
284− const crlf = crlfOnly(root);
285314 // Files an earlier record added to the draft and that are gone again (#37: scratch files a run
286315 // recorded, deleted after): nothing reached shared, and the next record takes them out of the draft.
Lines 326–336 at 318 (were 297–305 at 42)
297326 const space = (draft: string | null | undefined): string => (draft ? `draft ${draft}` : "shared");
300− const behind = await newerCommitNote(config.server);
302− `Project ${config.project}: shared is at version ${status.version}. This folder is ${config.agent}${config.reader || me?.reader ? ", a reader (it records and publishes nothing)" : ""}, working in ${space(me?.draft)}.${config.follow ? ` It follows label ${config.follow}: syncs take it to the newest version with that label.` : ""} Signed in with ${credential.kind}${credential.id ? ` ${credential.id}` : ""}.`,
333+ `Project ${config.project}: shared is at version ${status.version}. This folder is ${config.agent}${config.reader || me?.reader ? ", a reader (it records and pushes nothing)" : ""}, working in ${space(me?.draft)}.${config.follow ? ` It follows label ${config.follow}: pulls take it to the newest version with that label.` : ""}${localProject ? ` It's a local project, in ${join(config.localStore ?? "", config.project)}.` : ` Signed in with ${credential.kind}${credential.id ? ` ${credential.id}` : ""}.`}`,
Lines 345–351 at 318 (were 314–320 at 42)
317− `Added to your draft by an earlier record and deleted since, so they never reach shared; the next record (sync, publish, run) takes them out of your draft: ${neverShared.join(", ")}`,
348+ `Added to your draft by an earlier record and deleted since, so they never reach shared; the next record (pull, push, run) takes them out of your draft: ${neverShared.join(", ")}`,
Lines 353–359 at 318 (were 322–327 at 42)
327359 `${plural(crlf.length, "file")} differ${crlf.length === 1 ? "s" : ""} from what abso recorded only in line endings (CRLF here; abso records and abso run sends LF). Harmless; abso fix-eol rewrites ${crlf.length === 1 ? "it" : "them"} with LF.`,
- MCP
- compare on this site's /mcp
- CLI
- abso diff 42 318 client/src/status-commands.ts --json
- JSON
- /christopher/abso-core/compare/42..318?file=client%2Fsrc%2Fstatus-commands.ts&format=json