Dashboard › cli › Distillation
69932362-5c7d-4a29-9d78-572b70c06bd0["lore_tm_v1_ytv_Cm6ZW-bnE5pGoaOZugSE8T7UqT1b-OEi--4LRZM","lore_tm_v1_hmYh1oD6G5q5Pm-WB2pAdNbEKBBLgmiwvKEMT0EcoL0"]
packages/cli/src/lib/introspect.ts lines 286-311 define buildCommandInfo(cmd: Command, path: string, examples: string[] = []): CommandInfo; it extracts jsonFields from cmd.__jsonSchema via extractSchemaFields(), then returns path, brief, fullDescription, flags from extractFlags(cmd.parameters.flags), positional from cmd.__primaryUsage ?? getPositionalString(cmd.parameters.positional), positionals from extractPositionals(cmd.parameters.positional), aliases from cmd.parameters.aliases ?? {}, examples, and non-empty JSON fields.buildCommandInfo() at packages/cli/src/lib/introspect.ts lines 304-308, non-empty cmd.__examples take precedence over the examples argument and are mapped to strings formatted exactly as # ${description}\n${command}; otherwise the passed examples array is used.buildCommandInfo() at packages/cli/src/lib/introspect.ts line 309, jsonFields is returned only when jsonFields?.length is truthy; otherwise it is undefined.packages/cli/src/lib/introspect.ts lines 320-339 define extractRouteGroupCommands(routeMap: RouteMap, routeName: string, docExamples: Map<string, string[]> = new Map()): CommandInfo[]; it iterates routeMap.getAllEntries(), skips entries where subEntry.hidden is true, and processes command and nested-route targets.extractRouteGroupCommands(), direct command paths are built as sentry ${routeName} ${subEntry.name.original}; documentation examples are looked up with docExamples.get(path) ?? [], and command metadata is added with buildCommandInfo(subTarget, path, examples).extractRouteGroupCommands(), nested route prefixes are built as ${routeName} ${subEntry.name.original} before recursively collecting nested commands.bbaa7b3b… worktree, stated that one contradiction had been confirmed, and said remaining metadata paths and tests were still being traced before a findings-first verdict.