Dashboard › cli › Distillation
fbd016a2-357d-40cf-abca-52d1416c9c3e["lore_tm_v1_kh9HsbDeGKF91Kr4W4JRzauvJdFO7XyfT-FkYv1lm14","lore_tm_v1_LFJgFi3Ri-4_fbVeMfRbo-TUzOpd892rFmg0d_fGd0I","lore_tm_v1__8T9FkjmydMx1xTiyocdXDKIOijgL1dGbOAXhsXZJ_k","lore_tm_v1_6AmJkoEeb_9b_8rF4K80E5QpO6ah5pNA-FlfIw-VxY4","lore_tm_v1_nB5HbPp81UDZSK4uhQN9KfH_3tTRfiTb8caQyutw-qs","lore_tm_v1_ZSfbpPUTVDmQaPW_g4lozyONBivsHu8-shUabLjHV5o","lore_tm_v1_LKgtxq8-Q-AyAumodj095ceDbepB9UXfAZupZTQWmjE","lore_tm_v1_SoqvtnGmu_e3ockCSiUanuJbpkjqXOJBKcVjNxqj6hc","lore_tm_v1_c8kkB0qtbQo5fD-3Gnt2qW6xzNBbzR2ijS69rRZry1s","lore_tm_v1_mlLpqOYfNnlW3Vf7wWUKHnEl5btJdwdmnG8HbpqD5-s","lore_tm_v1_yIxq_MdPqcFv944mxKqcFWYfVE2N4pYSmaRRYaj9pfo","lore_tm_v1_NuUU4X4kxNOAWFOGWFk_1VA5Tgz7yJSzKTedF-ldwVY","lore_tm_v1_6AuLZIDfLTSqUL8Z0Vd-urXUPVzFcmyR-evpJ9PK_nE","lore_tm_v1__l9dT6yCt9C0nS6-_w1Caope_K2PeJXVv7SpYEQ_IcM"]
/home/byk/Code/getsentry/cli-pr-1558/packages/cli/CONTRIBUTING.md states the CLI follows gh CLI conventions and uses optional positional context for list commands: sentry org list [--limit N] [--json], sentry project list [org] [--limit N] [--json], and sentry issue list [<org>/<project>] [--json].<org>/<project> explicitly selects an organization and project, e.g. my-org/frontend; 2. <org>/ selects all projects in an organization; 3. <project> searches by project name across accessible organizations; 4. omission triggers DSN/config auto-detection. Positional arguments were chosen for concision and consistency with gh.sentry org view [org-slug] [--json] [-w], sentry project view [<org>/<project>] [--json] [-w], sentry issue view <issue-id> [--json] [-w], and sentry event view [<org>/<project>] <event-id> [--json] [-w]; organization/project identifiers may be auto-detected, but issue and event IDs are required.-w/--web to open the resource in the default browser instead of displaying it in the terminal; org view and project view are modeled after gh repo view.<org>/<project> always wins; 2. defaults set through sentry config set; 3. DSN auto-detection from SENTRY_DSN or source code.--json for all view/list commands, -w/--web for all view commands, and --limit for list commands. Its instruction to define/support --json is legacy relative to the newer repository convention that the wrapper injects output flags.ContextError imported from ../../lib/errors.js: new ContextError("Organization", "sentry org view <org-slug>", ["Set SENTRY_DSN for auto-detection"]), producing an “Organization is required” message with primary usage and alternatives.resolveOrg() or resolveOrgAndProject() from lib/resolve-target.ts; 3. support JSON output; 4. add -w/--web to view commands; 5. use ContextError for missing context; 6. add E2E tests under test/e2e/.No files found./home/byk/Code/getsentry/cli-pr-1558/packages/cli/node_modules contained 48 entries, including fast-check, vitest, typescript, tsx, valibot, @stricli/, @sentry/, @anthropic-ai/, @mastra/, hono, ink, react, node-sqlite3-wasm, and uuidv7./home/byk/Code/getsentry/cli-pr-1558/packages/cli/node_modules/@stricli contains auto-complete/ and core/; @stricli/core/ contains dist/, package.json, and README.md./home/byk/Code/getsentry/cli-pr-1558/packages/cli/node_modules/@stricli/core/package.json identifies @stricli/core version 1.2.8, Apache-2.0, ESM package, repository https://github.com/bloomberg/stricli/tree/main/packages/core, author Michael Molisani, import export ./dist/index.js, require export ./dist/index.cjs, and typings dist/index.d.ts.@stricli/core@1.2.8 scripts include format, format:check, lint, lint:fix, typecheck, test, test:update-snapshots, coverage, build, and prepublishOnly; notable values are test: vitest --run, coverage: vitest --run --coverage.enabled, build: tsup --silent, and TypeScript 5.6.x./home/byk/Code/getsentry/cli-pr-1558/packages/cli/node_modules/@stricli/core/dist contains exactly index.cjs, index.d.cts, index.d.ts, and index.js.@stricli/core/dist/index.js found CLI-specific comments around a pluggable help renderer: config.documentation.renderHelp can render help for the resolved target, including structured --json help; the renderer receives helpRequested, and built-in text help remains the fallback.@stricli/core/dist/index.js, generateCommandHelpLines(parameters, docs, args) uses docs.customUsage in place of generated usage. A string entry renders as ${prefix} ${usage}; an object entry renders ${prefix} ${usage.input} followed by its italicized usage.brief. It then adds built-in flag usages, fullDescription ?? brief, aliases, flags, and positional arguments.buildCommand() in @stricli/core/dist/index.js reserves flags help, helpAll, and help-all, reserves alias h, checks boolean-negation collisions and invalid variadic separators, supports either a local func or asynchronous loader, and exposes brief, fullDescription, formatUsageLine, formatHelp, and usesFlag.no-<kebab-name> and no<Name> forms.@stricli/core/dist/index.d.ts defines CustomUsage as { readonly input: string; readonly brief: string }; CommandDocumentation contains required brief, optional fullDescription, and optional customUsage?: readonly (string | CustomUsage)[], described as sample usage replacing generated usage lines.@stricli/core/dist/index.d.ts documents booleanParser as accepting lowercase-normalized "true"/"false" and looseBooleanParser truthy inputs "true", "t", "yes", "y", "on", "1", "", versus false inputs "false", "f", "no", "n", "off", "0".@stricli/core/dist/index.d.ts defines route-map documentation with required brief, optional fullDescription, and hideRoute; RouteMapBuilderArguments.defaultCommand runs a specified route when inputs land directly on a route map, treating otherwise invalid routes as that command’s arguments/flags, but runtime rejects a defaultCommand that points to another route map./home/byk/Code/getsentry/cli-pr-1558/package.json maps patched dependency @stricli/core@1.2.8 to packages/cli/patches/@stricli%2Fcore@1.2.8.patch; /home/byk/Code/getsentry/cli-pr-1558/packages/cli/package.json pins "@stricli/core": "1.2.8"./home/byk/Code/getsentry/cli-pr-1558/pnpm-lock.yaml contains both @stricli/core@1.2.8 and @stricli/core@1.3.0; the CLI’s 1.2.8 resolution carries patch hash 892258f886d48063b409e0ac6141260023c396d1ed4f915231701f6a34edffcc.packages/cli/patches/@stricli%2Fcore@1.2.8.patch patches Stricli with a pluggable top-level/global-flags allow-list, forwarding recognized global flags—including value-taking and inline-value forms—through route scanning rather than requiring leaf commands to know them.versionRequested, preserves unprocessed top-level inputs, recognizes --help, -h, --helpAll, --help-all, and --version, and adds a host-supplied documentation.renderHelp hook; when the hook returns a string, the application writes it to context.process.stdout, while undefined falls back to built-in help.booleanFlags, and passes renderer context including the resolved route prefix, unprocessedInputs, and helpRequested: boolean | "all".PATCH(getsentry/cli) markers or expected patched constructs are missing, the CLI’s check:patches fails.