Repository navigation
feat(cli): init and doctor (plan 05 session 2) - #13
Merged
Merged
Conversation
`upwell init` sets Upwell up in an Expo app after one confirmation (or --yes): npx expo install upwell (and expo-updates with --with-expo-updates), "upwell" added to app.json plugins (instructions for a dynamic app.config), upwell/policy.json at the current version and builds (with the OTA runtime when it can be computed) and upwell.json, then the provider snippet. Never edits source files; nothing is written when the install fails. `upwell doctor` reads the resolved app config (npx expo config, falling back to app.json), package.json, eas.json, upwell.json and the documents, fetches the published policy like a device, and reports findings with a code, severity and fix: packages, expo-updates setup (update URL, runtime version, channel, upwell >= 0.1.3 for runtime policies), local and published documents (HTTPS, reachability, validity, Cache-Control, out of date) and the policy against the app being built. Exits 1 on errors. Tried on a fresh create-expo-app project and on the smoke app; the bundle test now also runs doctor. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RX4BmNghPADsZ6GMRb2ALH
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Plan 05 session 2. Stacked on #12: review and merge that first; this PR then retargets to
main.upwell initShows a plan and asks once (or
--yes), then:npx expo install upwell(plusexpo-updateswith--with-expo-updates)"upwell"topluginsinapp.json, keeping its formatting (inline arrays stay inline); for a dynamicapp.config.*it prints what to add instead, since it never edits codeupwell/policy.jsonwithlatest=minimum= the app's current version and builds, plusota.latestRuntimeVersionwhen it can be computed (a fixed string,appVersionornativeVersion)upwell.jsonUpwellProvidersnippet and next stepsNothing is written if the install fails.
--dry-run,--skip-install,--static.upwell doctorReads the resolved app config (
npx expo config, falling back toapp.json),package.json,eas.json,upwell.jsonand the documents, fetches the published copies like a device does, and reports each finding with a code, a severity and a fix. Exits 1 when there are errors (CHECKS_FAILED, with all findings in--json).What it checks:
updates.url,runtimeVersion, upwell ≥ 0.1.3 for runtime policies, channel in eas.json or headers,checkAutomatically10.0.2.2), reachable, valid,Cache-Control≤ 5 min, matches the local filelatestbehind the app, OTA runtime differs (it tells an outdated build apart from a new one), missingios.appStoreIdTried for real
create-expo-app(blank-typescript, SDK 58):init --with-expo-updates --yesinstalled upwell 0.2.1 and expo-updates from npm, added the plugin and wrote the files.doctorthen flagged the missingupdates.url, runtime version and channel (exit 1), andinitnow points toeas update:configurein that case.Tests
84 Jest tests, with fixtures modelled on the smoke app before and after its device-testing fixes. The bundle test now also runs
doctor --static --offlineon a temporary app. The docs site builds;reference/clihasinitanddoctorsections and the installation page has a callout.🤖 Generated with Claude Code
https://claude.ai/code/session_01RX4BmNghPADsZ6GMRb2ALH