Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed

Versions 99 to 100

Compare

+51 −33 in 20 places
Lines 292–298 at 100 (were 292–298 at 99)
292292 flags: { server: "string", agent: "string", dir: "string", reader: "boolean" },
293293 usage: "abso join <project> [--agent <name>] [--dir <folder>] [--server <url>] [--reader]",
294294 about:
295− "Join a project as a new agent and write its shared files into a folder: --dir, else here when this folder is empty, else ./<project> (which has to be new or empty). Without --agent the agent is named after this box (the name abso login gave it, lower-cased), or the next free <name>-2, <name>-3; that needs the box signed in with abso login. The server is --server, else ABSO_SERVER, else the one this box signed in to with abso login, else https://api.abso.dev. --reader joins as a reader: it reads everything and records nothing, and the server refuses its edits, records and publishes. With --reader and no sign-in, a public project is joined to read signed out: the folder holds only its settings, sends no sign-in, and runs status, log, show, files, blame, why, where, issues, issue and search; every other command is refused.",
295+ "Join a project as a new agent and write its shared files into a folder: --dir, else here when this folder is empty, else ./<project> (which has to be new or empty). Without --agent the agent is named after this box (the name abso login gave it, lower-cased), or the next free <name>-2, <name>-3; that needs the box signed in with abso login. The server is --server, else ABSO_SERVER, else the one this box signed in to with abso login, else https://api.abso.dev. --reader joins as a reader: it reads everything and records nothing, and the server refuses its edits, records and pushes. With --reader and no sign-in, a public project is joined to read signed out: the folder holds only its settings, sends no sign-in, and runs status, log, show, files, blame, why, where, issues, issue and search; every other command is refused.",
296296 run: runJoin,
297297 },
298298 record: {
Lines 302–308 at 100 (were 302–308 at 99)
302302 "Send every file that changed since the server last heard about it (--all: every file). For edits the hook did not see.",
303303 run: runRecord,
304304 },
305− publish: {
305+ push: {
306306 flags: {
307307 message: "string",
308308 binary: "string",
Lines 313–321 at 100 (were 313–321 at 99)
313313 "no-wait": "boolean",
314314 done: "boolean",
315315 },
316− usage: 'abso publish -m "<why>" [--as-is] [--check ["<command>"]] [--wait <seconds> | --no-wait] [--done]',
316+ usage: 'abso push -m "<why>" [--as-is] [--check ["<command>"]] [--wait <seconds> | --no-wait] [--done]',
317317 about:
318− 'Record, then add your draft to shared. Refused when it collides with work published since your last sync, or when lines a sync showed changed on both sides are still untouched (--as-is publishes both sides\' lines anyway). --check "<command>" (e.g. --check "npm run typecheck") first syncs, then runs the command in your box on your draft with newest shared, and publishes only if it exits 0, so two changes that each pass alone can\'t turn shared red. --check alone runs the "build" and then the "check" in the project\'s avcs.json (your draft\'s copy), as the server does on each new version. With the merge queue on ("queue": true in avcs.json), a publish to shared is queued and lands only once the project\'s check passes on shared with it on top: publish waits up to 100 s for that (--wait <seconds> changes it, --no-wait returns at once), then says it landed (exit 0), was pulled with the check\'s output (exit 2, its changes still in your draft), or is still queued (exit 3; the outcome comes as news). --check alone is skipped then, since the queue runs the check. --done takes your start note back once it\'s published: this publish finishes that work.',
318+ 'Record, then add your draft to shared. Refused when it collides with work pushed since your last pull, or when lines a pull showed changed on both sides are still untouched (--as-is pushes both sides\' lines anyway). --check "<command>" (e.g. --check "npm run typecheck") first pulls, then runs the command in your box on your draft with newest shared, and pushes only if it exits 0, so two changes that each pass alone can\'t turn shared red. --check alone runs the "build" and then the "check" in the project\'s avcs.json (your draft\'s copy), as the server does on each new version. With the merge queue on ("queue": true in avcs.json), a push to shared is queued and lands only once the project\'s check passes on shared with it on top: push waits up to 100 s for that (--wait <seconds> changes it, --no-wait returns at once), then says it landed (exit 0), was turned back with the check\'s output (exit 2, its changes still in your draft), or is still queued (exit 3; the outcome comes as news). --check alone is skipped then, since the queue runs the check. --done takes your start note back once it\'s pushed: this push finishes that work.',
319319 run: runPublish,
320320 },
321321 bisect: {
Lines 330–350 at 100 (were 330–350 at 99)
330330 flags: {},
331331 usage: "abso reader on|off",
332332 about:
333− "Make this folder's agent a reader, which reads everything and records nothing (the server refuses its edits, records and publishes), or a writer again. Refused while it has unpublished or parked work.",
333+ "Make this folder's agent a reader, which reads everything and records nothing (the server refuses its edits, records and pushes), or a writer again. Refused while it has unpushed or parked work.",
334334 run: runReader,
335335 },
336336 settle: {
337337 flags: { yours: "boolean", theirs: "boolean", both: "boolean" },
338338 usage: "abso settle <file...> --yours|--theirs|--both",
339339 about:
340− "Settle the collisions a sync marked in these files: each marker block becomes your lines, theirs, or both (yours first), then it records. abso status lists the files with markers.",
340+ "Settle the collisions a pull marked in these files: each marker block becomes your lines, theirs, or both (yours first), then it records. abso status lists the files with markers.",
341341 run: runSettle,
342342 },
343− sync: {
343+ pull: {
344344 flags: { verbose: "boolean", full: "boolean" },
345− usage: "abso sync [--full]",
345+ usage: "abso pull [--full]",
346346 about:
347− "Record, then bring shared's new work into the folder. Lines changed on both sides are listed as collisions to settle. --full writes any file of yours the folder is missing, not only what changed since your last sync.",
347+ "Record, then bring shared's new work into the folder. Lines changed on both sides are listed as collisions to settle. --full writes any file of yours the folder is missing, not only what changed since your last pull.",
348348 run: runSync,
349349 },
350350 run: {
Lines 378–391 at 100 (were 378–391 at 99)
378378 flags: {},
379379 usage: "abso mv <from> <to>",
380380 about:
381− "Move a file in your draft, its lines keeping their history (as git mv), recorded as a move rather than guessed from the folder. The way to change a file's case: README.md and readme.md are one file in abso, and a write under another spelling goes to the existing one, with a warning that names abso mv. It reaches shared with your next publish.",
381+ "Move a file in your draft, its lines keeping their history (as git mv), recorded as a move rather than guessed from the folder. The way to change a file's case: README.md and readme.md are one file in abso, and a write under another spelling goes to the existing one, with a warning that names abso mv. It reaches shared with your next push.",
382382 run: runMv,
383383 },
384384 review: {
385385 flags: { since: "string" },
386386 usage: "abso review [<id> | v<version> | <agent>] [--since <position|2h>]",
387387 about:
388− "Review is reading what landed. With no change: the changes with anything new since you last looked, newest first (a change is one start note's work, a named draft's, or a lone publish), and the mark moves on; --since 2h (or a log position) looks further back without moving it. With a change id, v<version> (the change holding that version of shared) or an agent (its newest change): that change's page, with what it set out to do, its versions, what it settled, its reviewers and its notes.",
388+ "Review is reading what landed. With no change: the changes with anything new since you last looked, newest first (a change is one start note's work, a named draft's, or a lone push), and the mark moves on; --since 2h (or a log position) looks further back without moving it. With a change id, v<version> (the change holding that version of shared) or an agent (its newest change): that change's page, with what it set out to do, its versions, what it settled, its reviewers and its notes.",
389389 run: runReview,
390390 },
391391 note: {
Lines 402–408 at 100 (were 402–408 at 99)
402402 usage:
403403 'abso note <file>:<line>[-<line>] "<text>" [--object | --read] [--draft <agent> | --at <version>] | abso note --reply <id> "<text>" | abso note --close <id> --resolved|--withdrawn',
404404 about:
405− "A note on lines: it sits on those lines and follows them as the file changes. The lines' authors and the change's agent hear it as news. The line numbers are as your folder shows the file (it records first); --draft <agent> notes their unpublished work as their draft shows it, --at <version> a version of shared. --object asks for a fix (it shows as addressed once all its lines change); --read says you read it, telling nobody. --reply answers a note; --close closes one of yours.",
405+ "A note on lines: it sits on those lines and follows them as the file changes. The lines' authors and the change's agent hear it as news. The line numbers are as your folder shows the file (it records first); --draft <agent> notes their unpushed work as their draft shows it, --at <version> a version of shared. --object asks for a fix (it shows as addressed once all its lines change); --read says you read it, telling nobody. --reply answers a note; --close closes one of yours.",
406406 run: runNote,
407407 },
408408 notes: {
Lines 425–431 at 100 (were 425–431 at 99)
425425 usage:
426426 "abso issues [--open] [--status <status>] [--agent <agent>] [--parent <N>] [--label <l,l>] | abso issues --labels",
427427 about:
428− "The project's issues, most recently updated first, each with its status, agents, labels, versions and who it waits on. --label keeps the issues with every label named (friction, say); --labels lists the labels in use, with how many issues are open under each; --drafts lists your drafts. A status comes from the work: abso start --issue N puts an issue In progress, an open ask makes it Blocked (or In review, for a review), and publish --done closes it.",
428+ "The project's issues, most recently updated first, each with its status, agents, labels, versions and who it waits on. --label keeps the issues with every label named (friction, say); --labels lists the labels in use, with how many issues are open under each; --drafts lists your drafts. A status comes from the work: abso start --issue N puts an issue In progress, an open ask makes it Blocked (or In review, for a review), and push --done closes it.",
429429 run: runIssues,
430430 },
431431 issue: {
Lines 457–463 at 100 (were 457–463 at 99)
457457 usage:
458458 'abso issue <N> --save-attachments <folder> | abso issue <N> --copy-to <project> [--clean <file>] [--dry-run] | abso issue <N> [--comment "..." [--attach <file,file>] | --object "..." | --drop | --reopen | --done [--done-by <version>]] | abso issue <N> [--title "..."] [--description "..."] [--parent <N|none>] [--agent <agent|none>] [--blocked-by <N,N|none>] [--label <l,l>] [--unlabel <l,l>] [--notify <who,who> | --quiet] | abso issue new "<title>" [--description "..."] [--parent <N>] [--lines <file>:<from>-<to>@<version>] [--agent <agent>] [--blocked-by <N,N>] [--notify <who,who>] [--label <l,l>] [--attach <file,file>]',
459459 about:
460− "One issue: its description, Agent, Blocked by, labels, asks, comments, edits, sub-issues and watchers. --comment comments on it and --object objects; its agents hear either. A comment holds up to 4000 characters: a longer --comment (or --comment-file) goes up in parts, split at paragraph breaks and each starting (1/3), (2/3) and so on, and a longer --object is refused before anything is sent. --drop drops it. --reopen opens a dropped issue again. --done marks it done by hand, and --done-by <version> names the published version that did it. publish --done still marks it done too. --title, --description, --parent, --agent and --blocked-by edit it, and the edit tells its watchers (who opened it, its Agent and agents, its Reviewer, whoever was named in Notify, and whoever commented); --notify tells more people, --quiet tells nobody. --label adds labels and --unlabel takes them off (friction, area:client: lower-case letters, digits and - _ . :); a label-only edit tells nobody unless --notify names people. An issue is Blocked until each issue it's blocked by is Done. abso issue new opens one; --lines ties it to lines at a version of shared, --agent says who it's for, --notify tells people now, and --label labels it. --attach shot.png,after.png puts images on a new issue or a comment (png, jpeg, gif or webp, 10 MB each; the server checks the type by the bytes and takes out metadata such as where a photo was taken. An svg, up to 1 MB, is drawn as a png, and its own file is kept as a download, on servers that take svg), and prints each one's id for the text to point at; the issue's page lists them with a link, and --save-attachments <folder> saves every one on the issue and its comments there as <id>-<name> (an svg's own file too), outside the abso folder or where abso leaves files out. --copy-to <project> copies the issue into another project, with its comments, answered asks and labels, each keeping its author and time; --dry-run shows what would go and writes nothing, and --clean <file> gives cleaned texts by source id as JSON ({title, description, comments: [{id, text}], asks: [{id, question, answer}]}; a comment left out of a given list isn't copied). Copying out of a project on a live server takes an owner of that project. abso issue draft \"<title>\" [the same fields] saves a draft instead: yours alone, with no number and no news; abso issue draft <D> [fields] changes it, --open opens it as an issue, --delete deletes it.",
460+ "One issue: its description, Agent, Blocked by, labels, asks, comments, edits, sub-issues and watchers. --comment comments on it and --object objects; its agents hear either. A comment holds up to 4000 characters: a longer --comment (or --comment-file) goes up in parts, split at paragraph breaks and each starting (1/3), (2/3) and so on, and a longer --object is refused before anything is sent. --drop drops it. --reopen opens a dropped issue again. --done marks it done by hand, and --done-by <version> names the pushed version that did it. push --done still marks it done too. --title, --description, --parent, --agent and --blocked-by edit it, and the edit tells its watchers (who opened it, its Agent and agents, its Reviewer, whoever was named in Notify, and whoever commented); --notify tells more people, --quiet tells nobody. --label adds labels and --unlabel takes them off (friction, area:client: lower-case letters, digits and - _ . :); a label-only edit tells nobody unless --notify names people. An issue is Blocked until each issue it's blocked by is Done. abso issue new opens one; --lines ties it to lines at a version of shared, --agent says who it's for, --notify tells people now, and --label labels it. --attach shot.png,after.png puts images on a new issue or a comment (png, jpeg, gif or webp, 10 MB each; the server checks the type by the bytes and takes out metadata such as where a photo was taken. An svg, up to 1 MB, is drawn as a png, and its own file is kept as a download, on servers that take svg), and prints each one's id for the text to point at; the issue's page lists them with a link, and --save-attachments <folder> saves every one on the issue and its comments there as <id>-<name> (an svg's own file too), outside the abso folder or where abso leaves files out. --copy-to <project> copies the issue into another project, with its comments, answered asks and labels, each keeping its author and time; --dry-run shows what would go and writes nothing, and --clean <file> gives cleaned texts by source id as JSON ({title, description, comments: [{id, text}], asks: [{id, question, answer}]}; a comment left out of a given list isn't copied). Copying out of a project on a live server takes an owner of that project. abso issue draft \"<title>\" [the same fields] saves a draft instead: yours alone, with no number and no news; abso issue draft <D> [fields] changes it, --open opens it as an issue, --delete deletes it.",
461461 run: runIssue,
462462 },
463463 ask: {
Lines 489–495 at 100 (were 489–495 at 99)
489489 flags: { of: "string", mine: "boolean", asked: "boolean" },
490490 usage: "abso waiting [--of <agent or person:id>] [--mine] [--asked]",
491491 about:
492− "The open asks, soonest due first: every one, those waiting on someone (--of), or those waiting on you (--mine), each with its newest reply. An ask waits on the one asked until they answer, or on the asker after a reply with --question, until the asker replies. --mine also lists your publishes still in the merge queue and where each stands; the outcome comes as news. --asked lists the asks you sent instead, open ones first, then the latest answered.",
492+ "The open asks, soonest due first: every one, those waiting on someone (--of), or those waiting on you (--mine), each with its newest reply. An ask waits on the one asked until they answer, or on the asker after a reply with --question, until the asker replies. --mine also lists your pushes still in the merge queue and where each stands; the outcome comes as news. --asked lists the asks you sent instead, open ones first, then the latest answered.",
493493 run: runWaiting,
494494 },
495495 answer: {
Lines 518–524 at 100 (were 518–524 at 99)
518518 flags: {},
519519 usage: "abso unqueue",
520520 about:
521− "Take back your publishes still waiting in the merge queue: their changes stay in your draft, unpublished. Refused while one is being checked; it lands or is pulled within a few minutes (abso drop takes it back after it lands).",
521+ "Take back your pushes still waiting in the merge queue: their changes stay in your draft, unpushed. Refused while one is being checked; it lands or is turned back within a few minutes (abso drop takes it back after it lands).",
522522 run: runUnqueue,
523523 },
524524 visibility: {
Lines 600–613 at 100 (were 600–613 at 99)
600600 flags: { short: "boolean" },
601601 usage: "abso status [--short]",
602602 about:
603− "The shared version, whether shared is green or red by the project's CI (abso ci has more), who waits in the merge queue, every agent's base and draft, and what in this folder is not yet recorded. --short prints one word for stamping a build: the version this folder is on (214), with the named draft (coast@3), +unpublished when it holds changes not yet published, and +queued when a publish of yours waits in the merge queue.",
603+ "The shared version, whether shared is green or red by the project's CI (abso ci has more), who waits in the merge queue, every agent's base and draft, and what in this folder is not yet recorded. --short prints one word for stamping a build: the version this folder is on (214), with the named draft (coast@3), +unpushed when it holds changes not yet pushed, and +queued when a push of yours waits in the merge queue.",
604604 run: runStatus,
605605 },
606606 switch: {
607607 flags: { carry: "boolean", verbose: "boolean" },
608608 usage: "abso switch <draft> | abso switch -c <new draft> | abso switch shared",
609609 about:
610− "Move this folder to a named draft, or back to shared. Your unpublished changes are parked where you leave and come back when you return; -c carries them into a new draft instead.",
610+ "Move this folder to a named draft, or back to shared. Your unpushed changes are parked where you leave and come back when you return; -c carries them into a new draft instead.",
611611 run: runSwitch,
612612 },
613613 land: {
Lines 617–625 at 100 (were 617–625 at 99)
617617 "Land your named draft in shared, as one unit. Refused only on a collision with work that landed in shared since the draft began.",
618618 run: runLand,
619619 },
620− "draft-sync": {
620+ "draft-pull": {
621621 flags: {},
622− usage: "abso draft-sync",
622+ usage: "abso draft-pull",
623623 about: "Move your named draft onto shared's newest version, then bring that into this folder.",
624624 run: runDraftSync,
625625 },
Lines 627–647 at 100 (were 627–647 at 99)
627627 flags: { draft: "string", agent: "string" },
628628 usage: "abso diff [file...] [--agent <name>] | abso diff <from> <to> [file...] [--draft <name>]",
629629 about:
630− "Your unpublished changes, line by line, as git prints them (records first). --agent <name>: that agent's recorded, unpublished changes instead, to review them; it changes nothing. With two versions: what changed between them in this space.",
630+ "Your unpushed changes, line by line, as git prints them (records first). --agent <name>: that agent's recorded, unpushed changes instead, to review them; it changes nothing. With two versions: what changed between them in this space.",
631631 run: runDiff,
632632 },
633633 restore: {
634634 flags: { all: "boolean" },
635635 usage: "abso restore <file...> | abso restore <file>:<line>[-<line>] | abso restore --all",
636636 about:
637− "Discard your unpublished changes to those files (--all: to every file), like git restore. The files go back to how your space has them. <file>:<lines> puts back only the changes that touch those lines (numbered as abso diff shows the file now) and keeps your other changes to it.",
637+ "Discard your unpushed changes to those files (--all: to every file), like git restore. The files go back to how your space has them. <file>:<lines> puts back only the changes that touch those lines (numbered as abso diff shows the file now) and keeps your other changes to it.",
638638 run: runRestore,
639639 },
640640 export: {
641641 flags: { version: "string", keep: "string" },
642642 usage: "abso export <dir> [--version <N>] [--keep <glob>]",
643643 about:
644− "Write one published version of this folder's space (the newest unless --version) into a folder of its own, for a build that doesn't move. The folder must be empty, an earlier export (which it replaces, keeping node_modules and what --keep names), or one .absoignore leaves out; .avcs-export.json there names the version.",
644+ "Write one pushed version of this folder's space (the newest unless --version) into a folder of its own, for a build that doesn't move. The folder must be empty, an earlier export (which it replaces, keeping node_modules and what --keep names), or one .absoignore leaves out; .avcs-export.json there names the version.",
645645 run: runExport,
646646 },
647647 files: {
Lines 656–668 at 100 (were 656–668 at 99)
656656 usage:
657657 "abso log [file] [-n <count>] [--before <version>] [--draft <name>] [--since <version|30m|2h|1d|date>] [--by <agent,...>] [--count]",
658658 about:
659− "The published versions of this folder's space (shared or a named draft), newest first: who, when, why and which files, and for shared, whether the version passed CI's check (abso ci). With a file: only the versions that changed it. --before <version> starts below that version, so any stretch of history can be listed; the end of the list names the --before for the next older ones. --since takes a version (the versions after it), a span back from now (30m, 2h, 1d), a clock time today (20:00) or a date and time; --by keeps one agent's versions (or several, comma-separated); --count prints versions and files per agent instead of the list.",
659+ "The pushed versions of this folder's space (shared or a named draft), newest first: who, when, why and which files, and for shared, whether the version passed CI's check (abso ci). With a file: only the versions that changed it. --before <version> starts below that version, so any stretch of history can be listed; the end of the list names the --before for the next older ones. --since takes a version (the versions after it), a span back from now (30m, 2h, 1d), a clock time today (20:00) or a date and time; --by keeps one agent's versions (or several, comma-separated); --count prints versions and files per agent instead of the list.",
660660 run: runLog,
661661 },
662662 show: {
663663 flags: { draft: "string" },
664664 usage: "abso show <version> | abso show <version>:<file> [--draft <name>]",
665− about: "One version: who published it, why, and its diff. With :<file>, that file's text as it was then.",
665+ about: "One version: who pushed it, why, and its diff. With :<file>, that file's text as it was then.",
666666 run: runShow,
667667 },
668668 announce: {
Lines 676–682 at 100 (were 676–682 at 99)
676676 flags: { done: "boolean", issue: "string" },
677677 usage: 'abso start "<what>" [files...] [--issue <n>] | abso start --done',
678678 about:
679− "Say what you are starting on, before your first edit, so abso where shows it to everyone. Names who already has unpublished changes in those files, and tells them. Nothing is locked; publishing ends the note.",
679+ "Say what you are starting on, before your first edit, so abso where shows it to everyone. Names who already has unpushed changes in those files, and tells them. Nothing is locked; pushing ends the note.",
680680 run: runStart,
681681 },
682682 news: {
Lines 697–730 at 100 (were 697–730 at 99)
697697 flags: {},
698698 usage: "abso who <file...>",
699699 about:
700− "For each file: who last changed it, who has unpublished changes in it (and where), and whose abso start note names it. Ask before you start in someone's file.",
700+ "For each file: who last changed it, who has unpushed changes in it (and where), and whose abso start note names it. Ask before you start in someone's file.",
701701 run: runWho,
702702 },
703703 where: {
704704 flags: {},
705705 usage: "abso where",
706− about: "Who is working where: each file with unpublished changes, whose they are, and which lines.",
706+ about: "Who is working where: each file with unpushed changes, whose they are, and which lines.",
707707 run: runWhere,
708708 },
709709 blame: {
710710 flags: { from: "string", to: "string", version: "string", draft: "string", mine: "boolean" },
711711 usage: "abso blame <file> [--from <n>] [--to <n>] [--version <n>] [--draft <name> | --mine]",
712712 about:
713− "Who wrote each line of the file as shared has it (or had it at --version), and the publish that brought it in. --draft reads a named draft; --mine reads your own view, marking your unpublished lines with *.",
713+ "Who wrote each line of the file as shared has it (or had it at --version), and the push that brought it in. --draft reads a named draft; --mine reads your own view, marking your unpushed lines with *.",
714714 run: runBlame,
715715 },
716716 why: {
717717 flags: { draft: "string", mine: "boolean" },
718718 usage: "abso why <file>:<line> [--draft <name> | --mine]",
719719 about:
720− "Why one line of shared (or of a named draft, or your own view) is the way it is: its change, its publish, its reasons, and any collision it settled.",
720+ "Why one line of shared (or of a named draft, or your own view) is the way it is: its change, its push, its reasons, and any collision it settled.",
721721 run: runWhy,
722722 },
723723 drop: {
724724 flags: { message: "string", "with-dependents": "boolean" },
725725 usage: 'abso drop <version...> -m "<why>" [--with-dependents]',
726726 about:
727− "Take published versions back out of shared, as a new version: like git revert. History keeps them. Refused when later versions build on them, unless --with-dependents drops those too.",
727+ "Take pushed versions back out of shared, as a new version: like git revert. History keeps them. Refused when later versions build on them, unless --with-dependents drops those too.",
728728 run: runDrop,
729729 },
730730 pluck: {
Lines 738–744 at 100 (were 738–744 at 99)
738738 flags: { message: "string" },
739739 usage: 'abso amend -m "<new message>"',
740740 about:
741− "Correct the message of your newest publish in this space. Only the message changes; the log keeps the original.",
741+ "Correct the message of your newest push in this space. Only the message changes; the log keeps the original.",
742742 run: runAmend,
743743 },
744744 label: {
Lines 758–764 at 100 (were 758–764 at 99)
758758 flags: { none: "boolean" },
759759 usage: "abso follow <label> | abso follow --none",
760760 about:
761− "Make this folder follow a label: every sync takes it to the newest version of shared with that label, not the newest version. --none goes back to following shared.",
761+ "Make this folder follow a label: every pull takes it to the newest version of shared with that label, not the newest version. --none goes back to following shared.",
762762 run: runFollow,
763763 },
764764 "check-ignore": {
Lines 872–889 at 100 (were 872–877 at 99)
872872 }
873873}
874874
875+/** git's forms of push and pull that abso doesn't have (#427): one plain line naming the abso way. */
876+function gitOnlyForm(command: string, words: readonly string[]): string | undefined {
877+ const has = (...forms: string[]) => words.some((w) => forms.some((f) => w === f || w.startsWith(`${f}=`)));
878+ if (command === "push" && has("-f", "--force", "--force-with-lease", "--force-if-includes"))
879+ return "abso push has no --force: nothing overwrites shared. When a push is refused, abso pull brings in the other side and abso settle keeps yours, theirs or both.";
880+ if (command === "push" && has("-u", "--set-upstream", "--all", "--tags"))
881+ return "abso push has no upstreams, branches or tags: it adds your draft to shared. A named draft is abso switch <name>; a label is abso label.";
882+ if (command === "pull" && has("--rebase", "-r", "--no-rebase", "--ff-only", "--ff", "--no-ff", "--squash"))
883+ return "abso pull has no --rebase or merge modes: it always brings shared under your draft, and lines changed on both sides are listed for abso settle.";
884+ return undefined;
885+}
875887export async function main(argv: readonly string[], env: Env): Promise<MainResult> {
876888 const command = argv[0];
877889 const json = argv.includes("--json") && command !== "run" && command !== "logs";
Lines 921–933 at 100 (were 909–915 at 99)
909921 throw new UsageError(
910922 `unknown command ${JSON.stringify(command)}; the commands are ${Object.keys(COMMANDS).join(", ")}, hook, mcp`,
911923 );
924+ const gitOnly = gitOnlyForm(command, argv.slice(1));
925+ if (gitOnly) throw new UsageError(gitOnly);
912926 const parsed = parseArgs(command, argv.slice(1), withBodyFiles(command, def.flags), def.rest);
927+ if ((command === "push" || command === "pull") && parsed.positionals.length > 0)
928+ throw new UsageError(
929+ `abso ${command} takes no remote or branch: it ${command === "push" ? "adds your draft to shared" : "brings shared into this folder"}. A named draft is abso switch <name>.`,
930+ );
913931 if (bool(parsed, "help")) {
914932 const files = bodyFilesHelp(command, def.flags);
915933 return { stdout: `${def.usage}\n ${def.about}\n${files ? ` ${files}\n` : ""}`, stderr: "", exit: EXIT.ok };
MCP
compare on this site's /mcp
CLI
abso diff 99 100 client/src/main.ts --json
JSON
/christopher/abso-core/compare/99..100?file=client%2Fsrc%2Fmain.ts&format=json