Versions 161 to 318
Lines 5–17 at 318 (were 5–14 at 161)
66import { type Answer, type BoxRecord, boxGet, boxText, originOf, readBox, signedInServers } from "./box.ts";
8−import { type Config, credentialLabel, findRoot, readConfig } from "./config.ts";
1010
11−/** The lowest Node major each kind of copy runs on: the npm package is built for 20, a checkout runs its .ts as is. */
12+ * The lowest Node major each kind of copy runs on: a built one (the npm package, or a checkout's client/bin/abso.mjs)
13+ * is built for 20; a checkout's client/abso.ts runs its .ts as is, which takes Node's type stripping.
Lines 26–38 at 318 (were 23–29 at 161)
2427
26− return { fetcher: fetch, now: Date.now(), node: process.versions.node, built: builtCopy() };
29+ // Bundled, this module is client/bin/abso.mjs (or the npm package's file); from client/abso.ts, it is this .ts.
2837
Lines 84–92 at 318 (were 75–81 at 161)
78− : "no key";
8091
Lines 327–340 at 318 (were 316–329 at 161)
316327
318329 * The commonest failures in plain words, with the next step: no credential, a credential the server refuses, and a
319− * server that can't be reached. Anything else is left as it was. `signedIn` is whether the call carried a key or token.
330+ * server that can't be reached. Anything else is left as it was. `sent` names the key or token the call carried, if any.
321−export function plainError(err: unknown, signedIn: boolean): string | undefined {
332+export function plainError(err: unknown, sent: string | undefined, tokenFileUnasked = false): string | undefined {
324− return signedIn
325− ? `The server didn't accept this folder's key: it may be revoked or expired. abso doctor checks it. (${err.message})`
326− : "You're not signed in. Run abso login, then abso join <project>.";
336+ ? `The server didn't accept ${sent}: it may be revoked or expired. abso doctor checks it. (${err.message})`
337+ : `You're not signed in. Run abso login, then abso join <project>.${tokenFileUnasked ? " ~/.abso/token is used only with --token-file." : ""}`;
329340 // A message that already gives its next step (publish's "Run the same command again.") keeps it as the last word.
- MCP
- compare on this site's /mcp
- CLI
- abso diff 161 318 client/src/doctor.ts --json
- JSON
- /christopher/abso-core/compare/161..318?file=client%2Fsrc%2Fdoctor.ts&format=json