Dashboard › cli › Distillation
c9ef50fc-d596-4069-a2f3-0c4e20545ec3["lore_tm_v1_MbSW9Cs-YFDshqtnTxl9xU-hBC1fwdNRmLGVmpHWagk"]
packages/cli/script/check-fragments.ts, including route-aware fragment validation helpers: getMultiCommandRoutes(), findDefaultInRouteMap(target: RouteMap), and getDefaultCommandName(routeName: string). Standalone routes are skipped when they have at most one command whose path is exactly sentry ${route.name}; default subcommands are identified by object-reference equality against target.getAllEntries().src/generated/skill-content.ts exists before dynamically importing the route tree. If absent, it creates src/generated/ and writes the exact stub export const SKILL_FILES: [string, string][] = [];\n; subsequent generate:skill execution is expected to overwrite the stub.<!-- GENERATED:END -->, separating regenerated content above from hand-written custom content below.(default: ${JSON.stringify(flag.default)}) only when a default exists, the flag is not boolean, and the brief does not already contain default:.formatFlag(flag: FlagInfo, aliases: Record<string, string>) implementation formats aliases as -${alias}, --${flag.name}, adds <value> for non-variadic parsed/enum flags or <value>... for variadic flags, and appends non-boolean defaults as (default: ${JSON.stringify(flag.default)}) without the visible duplicate-default guard.generateCommandSection(cmd). Full reference documentation uses generateFullCommandDoc(cmd), with headings formatted as ### \${cmd.path} ${cmd.positional}`` when positional syntax exists.["**Examples:**", "", "```bash", examples.join("\n\n"), "```"], placing blank lines between examples.All commands also support \--json`, `--fields`, `--help`, `--log-level`, and `--verbose` flags.`api and cli as acronyms that must be fully uppercased.COMMAND_HEADING_RE = /^sentry\s+([^<[\s]+(?:\s+[^<[\s]+))(?:\s(?:<|[)[^]*)?$/`, documented as stopping before positional usage.[...commandPaths].sort((a, b) => b.length - a.length).const { routes } = await import("../src/app.js"); and reads the YAML-frontmatter version from package.json.