New folders keep their state in .abso/ and ~/.abso/; older ones keep working on .avcs/
DonereviewOpened
The product is abso, but a folder's state lived in .avcs/ and the machine's in ~/.avcs/. New folders (abso init, abso join) now keep it in .abso/, and the machine's sign-in, servers and admin token are read from ~/.abso/ first.
A folder made before, with only .avcs/, is left exactly as it is: it keeps working, is never half-moved, and no older client or installed mod loses it. abso login writes only to ~/.abso/ and leaves an old ~/.avcs/ file alone; logout removes both. The edit and view mods read either.
Not in this change: the project file avcs.json (the server reads it by that name, so abso.json needs the server to learn it first), .avcsignore, environment variable names and wire headers. A later abso migrate will move an old folder.
New folders keep their state in .abso/, and the machine's sign-in, servers and admin token are read from ~/.abso/ first, then ~/.avcs/. A folder made before, with only .avcs/, is untouched: it keeps working, is never half-moved, and no older client or mod loses it. stateDir(root) and homeFile/homeWritePath are in the new client/src/state-dir.ts and replace the old AVCS_DIR constant everywhere. abso login writes only to ~/.abso/ and leaves ~/.avcs/ alone; logout removes both copies. The edit mod and the view mod read either folder. .abso is skipped like .avcs (including its odd spellings), the git exclude names whichever folder is in use, and the messages name .abso. Not changed: avcs.json (the server reads that name, so abso.json needs the server to learn it first), .avcsignore, env var names and wire headers. Tests: 709 run, 708 pass (one is skipped), including new ones for the folder choice, the home-file order and box sign-in; biome ci has no errors.
client/hooks/register.test.ts+5−5client/hooks/register.ts+24−14client/src/blobs.ts+3−3client/src/box-commands.ts+5−4client/src/box.ts+13−16client/src/check-ignore.ts+1−1client/src/command-env.ts+1−1client/src/commands.ts+4−3and 24 more
Activity
1 version · last
review
You can read this issue. Commenting is for the project's members.