Repository navigation
feat(cli): @upwell/cli with local document commands (plan 05 session 1) - #12
Merged
Merged
Conversation
New workspace package `packages/cli`, published as `@upwell/cli` with an
`upwell` bin: policy validate, policy set latest|minimum|ota-runtime,
releases add (incl. --from-eas-update), releases list|remove|validate,
explain and schema.
- --json on every command with a stable { ok, data | error } shape, error
codes and exit codes (0 ok, 1 failed, 2 usage, 3 confirmation required)
- never prompts without a terminal, with CI set or with --json: writes need
--yes, changes that affect existing installs (raising minimum, lowering
latest, changing the OTA runtime) need --confirm and say who is affected
- edits keep the file's formatting (jsonc-parser modify), so a change only
touches its own lines in review; --dry-run shows the diff
- explain runs @upwell/core's engine, with flags for Play / App Store / OTA
info and --no-policy
- Jest tests run commands in-process; CI also runs the built bundle
- docs: reference/cli page, CLI in "Validating in CI"; plan 05 updated
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
# Conflicts: # docs/plans/README.md
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 1: the
packages/cliworkspace package, published as@upwell/cliwith anupwellbin.Commands
policy validate,policy set latest|minimum|ota-runtimereleases add(also--from-eas-updatewith the output ofeas update --json),releases list|remove|validateexplain: runs@upwell/core's engine for a device described by flags (--play-version-code,--app-store-version,--ota,--no-policy,--now, …)schema policy|releasesBehavior
--jsonon every command:{ ok: true, data }or{ ok: false, error: { code, message, … } }. Exit codes: 0 ok · 1 failed · 2 usage · 3 confirmation required.CIset, or with--json. Writes show a diff and need--yes. Changes that affect existing installs (raisingminimum, loweringlatest, changingota.latestRuntimeVersion) need--confirmand say who is affected.--dry-runeverywhere.jsonc-parser'smodify(), so settinglatestondocs/examples/policy.jsonis a one-line diff and inline objects stay inline.Decisions that differ from the plan (recorded in
docs/plans/05-cli.md): Jest instead of Vitest (one runner in the repo),--kindrequired even with--from-eas-update, plus areleases validatecommand.Testing
CI,--json, risks, formatting, EAS output with shared and per-platform runtimes).npm run test:bundle -w @upwell/cliruns the builtdist/index.js. It already caughtjsonc-parser's UMDmain, which the bundler can't follow (now aliased to its ESM build).reference/clipage.Before releasing
@upwell/clion npm by hand once and add the trusted publisher (as in plan 02). Do this before merging the "version packages" PR that includes@upwell/cli, or its publish fails.package-lock.jsonchurn comes from npm re-hoisting dev dependencies for the new workspace (tsdown 0.23.7 / rolldown 1.3.2 now hoisted) and from syncing a stale@upwell/coreentry.🤖 Generated with Claude Code
https://claude.ai/code/session_01RX4BmNghPADsZ6GMRb2ALH