Dashboard › cli › Distillation
b185e0a1-d7c7-4643-bf44-ada3e51c3d13["lore_tm_v1_d2xMDYT7a0TvUGC1YN6G-3oc53B7WEASOdMYNkZx8So","lore_tm_v1_mreAD6fBxw80z10D0FlPxmORqHvGBMDYgxP8mgX235A","lore_tm_v1_ue72MmOfSpqMN2sVydPdtommpyYBj9Y_5yLQAbR7jAI"]
Date: Sep 9, 2026
--log-level flag is always stripped; flags in ALWAYS_STRIP are always removed before command execution, so the command never sees them.--fields is always injected when output: { human: ... }, regardless of whether a command-defined json flag causes the injected JSON_FLAG to be skipped.package.json for the latest scripts; commands run from packages/cli or via pnpm --filter sentry run <script> from the repository root.pnpm add -D <package>, including the -D flag.async *func() generators, yield new CommandOutput(data), and return { hint }; output.human receives the same data object serialized to JSON, avoiding divergent data paths.json flag and not to use stdout.write() or if (flags.json) branching because the wrapper auto-injects --json and --fields and handles output.DRY_RUN_FLAG and DRY_RUN_ALIASES for consistent dry-run support.pnpm run generate:docs, which runs generate:command-docs followed by generate:skill; generation also runs automatically during dev, build, typecheck, and test.src/lib/formatters/time-utils.ts via formatDurationCompact or formatDurationVerbose; hex ID handling via validateHexId, tryNormalizeHexId, or normalizeHexId in src/lib/hex-id.ts; relative time via formatRelativeTime; table/Markdown output from src/lib/formatters/; pagination from src/lib/db/pagination.ts and src/lib/list-command.ts; errors from src/lib/errors.ts rather than ad-hoc error types; and search query construction from src/lib/search-query.ts and src/lib/arg-parsing.ts.explore datasets verify the filtering mechanism expected by the underlying API and implement dataset-specific behavior in resolveDatasetConfig; sort, query, fetch, and field validation should remain centralized there rather than using scattered if (dataset === ...) checks in the func body.a op b = b op a; 4. idempotent operations where f(f(x)) = f(x); 5. validation functions where valid inputs are accepted and invalid inputs rejected..env files and JavaScript, Python, Go, Java, Ruby, and PHP source; project-root detection via VCS, language, and build markers; directory-name inference using bidirectional word-boundary matching; multi-region fan-out to us.sentry.io and de.sentry.io; monorepo short aliases; Seer AI issue explain and issue plan; and OAuth Device Flow authentication without browser redirects.parseSlashSeparatedArg and parseOrgProjectArg imported from ../../lib/arg-parsing.js.upsert("users", { id: 1, name: "Bob", created_at: now }, ["id"], { excludeFromUpdate: ["created_at"] }) as the pattern for excluding created_at from updates.try { data = await fetchOptionalData(); } catch { return []; } as wrong because the error vanishes silently./home/byk/Code/getsentry/cli-pr-1558/AGENTS.md, /home/byk/Code/getsentry/cli-pr-1558/packages/cli/CONTRIBUTING.md, and /home/byk/Code/getsentry/cli-pr-1558/packages/cli/AGENTS.md.No files found.