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 26 to 27

Compare

+10 −4 in 3 places
Lines 1–6 at 27 (were 1–6 at 26)
11// abso export <dir> [--version N]: one published version of this folder's
22// space, written to a folder of its own, for a build that doesn't move while
3−// shared does (#37, Playtester 1). The folder gets .avcs-export.json naming
3+// shared does (#37, Playtester 1). The folder gets .abso-export.json (.avcs-export.json before the rename) naming
44// the version, to stamp the build with. Exporting again replaces the folder,
55// keeping node_modules (and what --keep names) so a build needs no new install.
66//
Lines 19–27 at 27 (were 19–25 at 26)
1919import { type Refused, unsafePath } from "./safety.ts";
2020
2121/** The file an export leaves in its folder: what it holds, and the sign that the folder is one export may replace. */
22−export const EXPORT_STAMP = ".avcs-export.json";
22+export const EXPORT_STAMP = ".abso-export.json";
23+/** The name before the rename: an export made then still counts as one. */
24+const OLD_EXPORT_STAMP = ".avcs-export.json";
2325
2426/** Where an export may go: outside the abso folder, or in a part of it abso leaves out. Empty, or an earlier export. */
2527function checkTarget(root: string, target: string): void {
Lines 31–46 at 27 (were 29–40 at 26)
2931 }
3032 if (inside !== undefined && !ignoredHere(loadIgnore(root), inside, true)) {
3133 throw new UsageError(
32− `${inside} is inside this abso folder, so abso would record the export as your edits. Export outside the folder, or into a folder .avcsignore leaves out`,
34+ `${inside} is inside this abso folder, so abso would record the export as your edits. Export outside the folder, or into a folder .absoignore leaves out`,
3335 );
3436 }
3537 if (!existsSync(target)) return;
3638 if (!statSync(target).isDirectory()) throw new UsageError(`${target} is a file; export to a folder`);
37− if (readdirSync(target).length > 0 && !existsSync(join(target, EXPORT_STAMP))) {
39+ if (
40+ readdirSync(target).length > 0 &&
41+ !existsSync(join(target, EXPORT_STAMP)) &&
42+ !existsSync(join(target, OLD_EXPORT_STAMP))
43+ ) {
3844 throw new UsageError(
3945 `${target} has files in it; export to an empty folder (an export replaces only a folder an earlier export made)`,
4046 );
MCP
compare on this site's /mcp
CLI
abso diff 26 27 client/src/export.ts --json
JSON
/christopher/abso-core/compare/26..27?file=client%2Fsrc%2Fexport.ts&format=json