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 280 to 281

Compare

+10 −6 in 1 place
Lines 211–235 at 281 (were 211–231 at 280)
211211
212212test("plainError words a refusal by whether a credential went, and a server that can't be reached", () => {
213213 const refused = new ApiError("GET /status answered 401: missing or wrong token", 401);
214− assert.equal(plainError(refused, false), "You're not signed in. Run abso login, then abso join <project>.");
215− assert.match(plainError(refused, true)!, /^The server didn't accept this folder's key.*abso doctor checks it/);
214+ assert.equal(plainError(refused, undefined), "You're not signed in. Run abso login, then abso join <project>.");
215+ assert.match(
216+ plainError(refused, "this folder's key")!,
217+ /^The server didn't accept this folder's key.*abso doctor checks it/,
218+ );
219+ assert.match(plainError(refused, "ABSO_TOKEN")!, /^The server didn't accept ABSO_TOKEN: /);
216220 assert.equal(
217− plainError(new ApiError("could not reach https://api.abso.dev: connect ECONNREFUSED"), true),
221+ plainError(new ApiError("could not reach https://api.abso.dev: connect ECONNREFUSED"), "this folder's key"),
218222 "Can't reach https://api.abso.dev: connect ECONNREFUSED. Check your connection; abso doctor checks the rest.",
219223 );
220224 assert.equal(
221225 plainError(
222226 new ApiError("could not reach http://x: refused. Nothing was pushed. Run the same command again."),
223− true,
227+ "this folder's key",
224228 ),
225229 "Can't reach http://x: refused. Nothing was pushed. Run the same command again.",
226230 );
227− assert.equal(plainError(new ApiError("GET /log answered 500: boom", 500), true), undefined);
228− assert.equal(plainError(new Error("anything else"), true), undefined);
231+ assert.equal(plainError(new ApiError("GET /log answered 500: boom", 500), "this folder's key"), undefined);
232+ assert.equal(plainError(new Error("anything else"), "this folder's key"), undefined);
229233});
230234
231235test("whoami with nothing named shows prod, and names the other servers this box is signed in to", async () => {
MCP
compare on this site's /mcp
CLI
abso diff 280 281 client/test/doctor.test.ts --json
JSON
/christopher/abso-core/compare/280..281?file=client%2Ftest%2Fdoctor.test.ts&format=json