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/src/gitview/errors.ts?version=277&format=json
25 linesFirst import 100%Last change First import in version 0, 1 version changed it

You're reading version 277. The newest is 318, and no version since then changed this file. Go to the newestCompare with 318

1// Errors the git view and ingest throw on bad input. Engine errors (an unknown
2// atom or ref, for example) pass through unchanged as EngineError.
3
4export type GitViewErrorCode =
5 /** The set to view has no atoms. */
6 | "empty-set"
7 /** An explicit set to view is missing some atom's dependencies. */
8 | "not-closed"
9 /** writeView was pointed at a directory that already has files in it. */
10 | "dir-not-empty"
11 /** A projected path can't be a git path (empty part, "..", ".git", or a file that is also a directory). */
12 | "bad-path"
13 /** The repo can't be read (no HEAD, or the ref doesn't resolve). */
14 | "bad-repo"
15 /** No commit on HEAD's first-parent chain is a view of this graph or an ingested commit. */
16 | "no-view-base";
18export class GitViewError extends Error {
19 readonly code: GitViewErrorCode;
20 constructor(code: GitViewErrorCode, message: string) {
21 super(message);
22 this.name = "GitViewError";
23 this.code = code;
24 }