fix(create-app): Fix critical CLI validation bugs and improve error handling #34472
+541
−144
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR addresses critical bugs in the create-app CLI tool and significantly enhances validation, error handling, and robustness.
Changes
Critical Bug Fixes
Validation Enhancements
../, absolute paths)--localis used with cloud parameters and warns appropriatelyError Handling Improveme### - Enhanced
fetchWithRetrywith configurable timeout (default 10s)Code Quality
validation.tsmodule with reusable validation utilitiesescapeShellPathutility for cross-platform shell safetyFiles Changed
core-web/libs/sdk/create-app/README.md: Updated documentation for new validation featurescore-web/libs/sdk/create-app/src/asks.ts: Fixed typocore-web/libs/sdk/create-app/src/index.ts: Added early validation and improved flow controlcore-web/libs/sdk/create-app/src/utils/index.ts: EnhancedfetchWithRetryand added shell escapingcore-web/libs/sdk/create-app/src/utils/validation.ts: Ne-core-web/libs/sdk/create-app/src/utils/validation.ts: Ne- `core-web/libs/sdk/create-app/src/utionCo-Authored-By: Warp [email protected]