feat(cli): auto-install TanStack Intent during scaffolding #442
Mergedtannerlinsleymerged 3 commits into
main fromrefs/pull/442/headmerged by tannerlinsley tannerlinsley merged this37e83fb
tannerlinsley closed this
Sign in to join this conversation.
Caution
Review failed#
Pull request was closed or merged during review
📝 Walkthrough
Walkthrough#
Introduces automatic TanStack Intent installation during
tanstack createandtanstack addoperations via new--intent/--no-intentCLI flags (enabled by default), persisting user preference to.cta.jsonfor consistency across subsequent commands, with intent setup failures surfaced as warnings rather than aborting the scaffolding process.Changes#
packages/cli/src/types.ts,packages/create/src/types.tsintent: booleanfield toCliOptionsinterface and requiredintent: booleanfield toOptionsinterface.packages/cli/src/cli.ts,packages/cli/src/command-line.ts--intent/--no-intentCLI flags for create and add commands; extended telemetry payloads with intent field; normalized options to default intent totrue.packages/create/src/create-app.ts,packages/create/src/add-to-app.tssetupIntentinvocation into post-dependency-install workflows; added optional intent override toaddToAppfunction signature.packages/create/src/integrations/intent.tssetupIntenthandler that conditionally executes intent package installation via package manager, converting installation failures to warnings with recovery instructions.packages/create/src/custom-add-ons/shared.tsfalsedefault when absent from stored configuration.packages/cli/src/dev-watch.tsintent: falsewhen instantiating app creation in development scenarios..changeset/intent-auto-install.mdEstimated code review effort#
🎯 3 (Moderate) | ⏱️ ~25 minutes
Poem#
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)#
✅ Passed checks (4 passed)
✨ Finishing Touches
📝 Generate docstrings
🧪 Generate unit tests (beta)
Review rate limit: 4/5 reviews remaining, refill in 12 minutes. Comment `@coderabbitai help` to get the list of available commands and usage tips.