Versions 44 to 318
Lines 28–39 at 318 (were 28–38 at 44)
3132
32−/** The space to read: --draft (where "shared" means shared), else the one this agent is in. */
33+/** The space to read: --draft (where "shared" means shared), else the one this agent is in (shared, in a folder with no agent). */
35− if (named === undefined) return { agent };
3839
Lines 88–94 at 318 (were 87–93 at 44)
90− ? `Your view holds ${what}: ${spaceName(answer.draft)} at version ${answer.version}, with your unpublished changes.${missing.size > 0 ? ` ${missing.size} of them ${missing.size === 1 ? "is" : "are"} missing from this folder (abso sync --full writes them).` : ""}`
91+ ? `Your view holds ${what}: ${spaceName(answer.draft)} at version ${answer.version}, with your unpushed changes.${missing.size > 0 ? ` ${missing.size} of them ${missing.size === 1 ? "is" : "are"} missing from this folder (abso pull --full writes them).` : ""}`
Lines 142–166 at 318 (were 141–146 at 44)
143144
145+ // --agent: someone else's draft, to review it. What they've recorded, not their folder; nothing here is recorded.
149+ throw new UsageError("--agent shows that agent's unpushed changes: abso diff [file...] --agent <name>");
153+ const where = `${spaceName(answer.draft)}${answer.base === null ? "" : ` (on version ${answer.base})`}`;
157+ : `${other}'s recorded, unpushed changes${inPaths(only, "to")} in ${where}: ${totals(files)}.`;
160+ json: { agent: other, draft: answer.draft, base: answer.base, files: d.json, unmatched: unmatched(files) },
163+
Lines 180–186 at 318 (were 160–166 at 44)
160180
163− "--draft goes with two versions (abso diff <from> <to>); abso diff alone shows your own unpublished changes",
183+ "--draft goes with two versions (abso diff <from> <to>); abso diff alone shows your own unpushed changes",
Lines 190–197 at 318 (were 170–177 at 44)
170190 const where = `${spaceName(answer.draft)}${answer.base === null ? "" : ` (on version ${answer.base})`}`;
173− ? `No unpublished changes${inPaths(only, "to")} in ${where}.`
174− : `Your unpublished changes${inPaths(only, "to")} in ${where}: ${totals(files)}.`;
Lines 288–294 at 318 (were 268–274 at 44)
270290 if (v.droppedIn !== undefined) out.push(` dropped in version ${v.droppedIn}: shared no longer has these changes`);
271− if (v.originalMessage !== undefined) out.push(` amended; first published as: ${v.originalMessage}`);
291+ if (v.originalMessage !== undefined) out.push(` amended; first pushed as: ${v.originalMessage}`);
274294
Lines 426–474 at 318 (were 406–411 at 44)
408428
429+/** abso show <version>[:<file>] --without <versions>: what differs with them left out, or that file then. */
438+ if ("draft" in where && where.draft !== null) throw new UsageError("--without reads shared, not a named draft");
453+ if (same.text !== null) return { text: same.text, json: { ...same, without: answer.without } };
454+ } else if (file.after !== null) return { text: file.after, json: { ...file, without: answer.without } };
465+ changed.length === 0 ? `No file differs from version ${v}.` : `Compared with version ${v}: ${totals(changed)}.`,
471+
411474 throw new UsageError("show takes one version: abso show <version> or abso show <version>:<file>");
Lines 476–483 at 318 (were 413–418 at 44)
416481
Lines 644–655 at 318 (were 579–590 at 44)
582− ? "Nothing to restore: no unpublished changes there."
583− : `Discarded your unpublished changes to ${plural(restored.length + deleted.length, "file")}:`,
587− ? [`No unpublished changes to: ${untouched.join(", ")}`]
- MCP
- compare on this site's /mcp
- CLI
- abso diff 44 318 client/src/changes.ts --json
- JSON
- /christopher/abso-core/compare/44..318?file=client%2Fsrc%2Fchanges.ts&format=json