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 223 to 224

Compare

+10 −0 in 2 places
Lines 50–64 at 224 (were 50–55 at 223)
5050 return { server: serverFrom(args, env), project, agent: agentFrom(args) };
5151}
5252
53+/**
54+ * A new project has nothing in it yet: say what comes next, since the join itself wrote nothing. Not for a reader, which
55+ * can't push, or when files were already in the folder (the join's own line names them).
56+ */
57+export function emptyHint(version: number, written: number, kept: number, reader: boolean): string[] {
58+ if (reader || version !== 0 || written > 0 || kept > 0) return [];
59+ return ['The project is empty. Put its files in this folder, then abso push -m "why" publishes them.'];
60+}
5362export async function runInit(args: Parsed, env: Env): Promise<Output> {
5463 if (args.positionals.length > 1) throw new UsageError("init takes one folder");
5564 const root = resolve(env.cwd, args.positionals[0] ?? ".");
Lines 359–365 at 224 (were 350–355 at 223)
350359 `These files were already here and differ from shared, so they were left alone: ${synced.kept.join(", ")}. abso record sends them as your changes.`,
351360 ]
352361 : []),
362+ ...emptyHint(synced.version, synced.written.length, synced.kept.length, reader),
353363 ...setupHint(root),
354364 hookHint(env.env),
355365 ...(root === resolve(env.cwd) ? [] : [`cd ${relative(env.cwd, root) || root}`]),
MCP
compare on this site's /mcp
CLI
abso diff 223 224 client/src/join-commands.ts --json
JSON
/christopher/abso-core/compare/223..224?file=client%2Fsrc%2Fjoin-commands.ts&format=json