Dashboard › cli › Distillation
16ee66e3-7fe1-41ca-8b8b-27b7ff395f32["lore_tm_v1_s74Gwk1Y64240HLflNd1849ycn4p9UTd_k-BhRMLQFM"]
Date: Sep 10, 2026
/home/byk/Code/getsentry/cli-pr-1558/packages/cli/src/lib/route-map.ts is a drop-in wrapper for Stricli’s buildRouteMap and is intended to be the only file importing buildRouteMap from @stricli/core; all other files should import the local wrapper./home/byk/Code/getsentry/cli-pr-1558/packages/cli/src/lib/route-map.ts:21-26 defines STANDARD_ALIASES mappings: list → ls, view → show, delete → remove and rm, and create → new.buildRouteMap<R extends string, CONTEXT extends CommandContext = CommandContext>() in /home/byk/Code/getsentry/cli-pr-1558/packages/cli/src/lib/route-map.ts:42-65 derives route keys from Object.keys(args.routes), injects standard aliases only when the canonical route exists, silently skips an alias that collides with an actual route name, and calls stricliRouteMap() with merged aliases./home/byk/Code/getsentry/cli-pr-1558/packages/cli/src/lib/route-map.ts:59-64, alias merge order is { ...autoAliases, ...args.aliases }, so manually supplied aliases take precedence over auto-generated aliases; the merged object is cast to RouteMapBuilderArguments<R, CONTEXT>["aliases"].