Dashboard › cli › Distillation
a359d753-33d3-4c4a-833e-c357f63c4cfe["lore_tm_v1_wOpeph21E8BqYVsyyeTVA5k9noJTHn_cgG0Dm24Yk98"]
packages/cli/script/check-fragments.ts adds findDefaultInRouteMap(target: RouteMap): string | undefined, which identifies a route map’s default command by comparing target.getDefaultCommand() by object reference against target.getAllEntries() and returning the matching sub.name.original.packages/cli/script/check-fragments.ts adds getDefaultCommandName(routeName: string): string | undefined, which finds the named top-level route in routeMap.getAllEntries() and delegates to findDefaultInRouteMap(entry.target as RouteMap); this supports recognizing defaults such as "serve" for local.formatCommandExamples from ./generate-skill-markdown.js, calls formatCommandExamples(cmd.examples), and appends the resulting examples section after a command’s existing generated details when nonempty.formatCommandExamples renders command examples under **Examples:** in one fenced bash block, separating example entries with blank lines.getVisibleFlags(cmd) to exclude hidden flags and names in GLOBAL_FLAG_NAMES; visible flags are emitted under **Flags:** using formatFlag(flag, cmd.aliases).src/generated/skill-content.ts before dynamically importing the route tree by creating src/generated/ recursively and writing export const SKILL_FILES: ReadonlyMap<string, string> = new Map();\n; this prevents fresh-checkout module-resolution failure through app.ts → agent-skills.ts → skill-content.ts.extractCommandPathFromHeading(heading) parses a generated command heading with COMMAND_HEADING_RE and prefixes the captured path with sentry .generateReferenceFile(refName, groupRoutes, version) derives each per-route reference title as ${capitalize(refName)} Commands and its description from route.brief; groupRoutes is documented as a single-element array.