Dashboard › cli › Distillation
b7f2eafc-d683-4429-aec3-1dead485723f["lore_tm_v1_35bhvjmEmsBCBYLLxYSqTcL5vISSyM81W_1yTSLLCoU"]
Date: Sep 10, 2026
fcAssert(property(...), { numRuns: DEFAULT_NUM_RUNS }), including symmetry and encode/decode round-trip properties.buildCommand() with docs, output, parameters, and an async generator func; output may define human, optional jsonTransform, and optional jsonExclude, while commands yield CommandOutput and may return a user hint.src/bin.ts is the entry point; src/app.ts contains Stricli application setup; src/context.ts provides dependency injection; src/commands/ contains command groups and standalone commands; src/lib/ contains shared utilities including api/, db/, dsn/, and formatters/; src/types/ contains TypeScript types and Zod schemas; test/ mirrors src/ and includes unit, *.property.test.ts, *.model-based.test.ts, e2e/, fixtures/, and mocks/; ../../apps/cli-docs/ is the Astro + Starlight documentation site; script/ contains build/utility scripts; .cursor/rules/ contains Cursor AI rules; biome.jsonc is the lint configuration.src/lib/mutate-command.ts, paralleling list-command.ts.src/lib/mutate-command.ts provides: isConfirmationBypassed(flags) for detecting --yes or --force; guardNonInteractive(flags) to throw in non-interactive mode without --yes; confirmByTyping(expected, message) for typed confirmation; requireExplicitTarget(parsed, entityType, usage) to block unsafe auto-detection; and spreadable DESTRUCTIVE_FLAGS / DESTRUCTIVE_ALIASES.-c prev when hasPreviousPage() returns true, show -c next when hasMore is true, and include both nextCursor and hasPrev in the JSON envelope."date" rather than "time" for timestamp-based sorting; export sort types from the API layer, such as SpanSortValue from api/traces.ts, and import them into commands, matching issue list, trace list, and span list.ContextError when the user omitted a required value, such as no org/project; use ResolutionError when a user-provided value was not found, such as project 'cli'; use ValidationError for malformed input, such as an invalid hex ID.createIsolatedDbContext() and invoke cleanup() in a finally block to prevent test interference.