Dashboard › cli › Distillation
5fa0d0a5-9918-4044-875e-4d4eeac72aa7["lore_tm_v1_IYInUWM5G_p8vUQ2miRzdEPuJFDSoW9J9LT7F3NBaOw"]
Date: Sep 10, 2026
org view and project view mirror gh repo view: each works from detected DSN context or with an explicit argument.ContextError class.await readFile(path, "utf-8") and await writeFile(path, content) from node:fs/promises; existsSync(path) from node:fs; spawn() / execFile() and execSync() from node:child_process; executable lookup via the which helper in src/lib/which.ts; globbing via the scanner in src/lib/scan/; sleeping via await setTimeout(ms) from node:timers/promises; and JSON parsing via JSON.parse(await readFile(path, "utf-8")).list → ls; view → show; delete → remove, rm; create → new.buildPaginationContextKey(), resolveCursor(), advancePaginationState(), hasPreviousPage(), and the returned nextCursor; dispatchOrgScopedList handles most modes automatically, while a custom "org-all" override manually calls resolveCursor, advancePaginationState, and paginationHint.per_page value larger than API_MAX_PER_PAGE to the API because the server silently caps it and causes commands to return fewer items than requested.ValidationError for invalid input.upsert() helper from src/lib/db/utils.ts to reduce SQL boilerplate.1x for authentication, 2x for input/configuration, 3x for API/network, 4x for feature/billing, 5x for operations, and 6x for command-specific failures; the canonical definitions are in EXIT within src/lib/errors.ts, with full documentation at https://cli.sentry.dev/exit-codes/.useTestConfigDir imported from ../helpers.js for test configuration-directory isolation.fcAssert(property(...), { numRuns: DEFAULT_NUM_RUNS }), including symmetry and encode/decode round-trip invariants.SetCommand implements AsyncCommand<DbModel, RealDb> and verify that the real system matches the model.createIsolatedDbContext() and guarantee cleanup via try/finally.