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
MCP
code on this site's /mcp
CLI
none: the JSON below is the answer
JSON
/christopher/abso-core/files/client/src/state-dir.ts?draft=names-only-client&format=json
16 linesreview 63% · pinch 31% · First import 6%Last change pinch in version 1, 1 version changed it
1// Where abso keeps its state: .abso/ in each folder, and ~/.abso/ for the user's files.
2// Nothing here imports from the rest of the client, so any module can use this.
3
4import { join } from "node:path";
5
6export const STATE_DIR = ".abso";
7
8/** A folder's state folder. */
9export function stateDir(root: string): string {
10 return join(root, STATE_DIR);
13/** A file under the user's home: ~/.abso/<parts>. */
14export function homeFile(home: string, ...parts: string[]): string {
15 return join(home, STATE_DIR, ...parts);