Repository navigation
refactor(cli): migrate series assets onto shared request execution - #518
justinmakaila wants to merge 1 commit into
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📜 Recent review details
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
7b845ec to
b6cc1ba
Compare
b6cc1ba to
a1376a2
Compare
a1376a2 to
39b414e
Compare
39b414e to
83bd834
Compare
Summary
Migrate
iracing-data assets seriesonto the request/executor architecture introduced in #516 and extended in car-assets PR #517. This PR targets the actual car branch, not main.Stack: #516 → #517 (car) → #518 (this series PR) → #519 (track). This PR targets the car branch, not main.
Scope
Execution path
RawOptionsSchemaandOptionsSchema→ Commander dispatch →makeSeriesAssetsServiceownsIRacingAPI.withAccessToken(token).series.getSeriesAssets()→ existing shared request/output executor → existing injected returned-link materializer (outside generated-request error mapping) → JSON stdout and success diagnostics.series/scope.ts; adds lazy typedIRacingAPI.seriesaccessor.Generated Files
None.
Package and Release Notes
None. This only changes private CLI internals.
Validation
The local repository was unavailable in this execution environment; verification below is from GitHub Actions, not local command execution.
pnpm --filter @iracing-data/cli test— cannot execute locally in this environment; repository/dependencies not present.pnpm verify:js— not locally run for same reason.pnpm verify:repo— not locally run for same reason.Replaced the series scope-based tests with schema/Commander/service and generated API selection, credential and error boundary, once-only materialization, stdout fidelity, no registration-time execution, and OpenAPI parity assertions.
Notes for Reviewers
Review relative to
refactor/cli-assets-car(#517), not main. Most important files arecommands/assets/series/service.ts,src/api.ts, and the updated series tests. The inherited materializer security behavior comes from #517; there are no new asset downloads or output modes.Related: #515, #516, #517.
Summary by CodeRabbit