docs(cli): document npm install and release operations - #3197
Conversation
Document the installed CLI lifecycle, validation matrix, and Eval prerequisites in English and Chinese. Add the staged-publishing runbook and ship the version-matched Chinese guide in the release tarball. Generated-by: Codex
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Included review availability: Your plan includes up to 3 reviews per rolling hour; 2 remain after this review. 📝 WalkthroughWhat this PR solves
Source of truth and scopeThis PR extends the existing README, CLI documentation, release documentation, and release tooling. It does not create a competing runtime or publishing path. The release runbook becomes the operational source of truth for npm publishing. The Chinese documents provide the corresponding translated guidance. The workflow and validation command enforce the documented release controls. The changes are the smallest coherent solution for the stated goals. Packaging support is required for the Chinese guide. Draft release recovery and exact asset verification are required for safe retries. The added tests cover the new release validation and workflow policy. Simplification opportunitiesNo deletion or simplification is evident without reducing documentation coverage, release controls, packaging checks, or regression coverage. Validation and risksValidation covered:
The final status of required checks is unverified without direct check results. Complexity delta
Total maintenance complexity increases. The increase is justified by stronger release safety, user guidance, and language support. No evidence indicates an unjustified increase. Review-relevant risks
Material changes in these protected areas require independent human review under repository policy. The person performing the merge reviews the final diff, and a maintainer makes the final determination. WalkthroughThe PR expands bilingual CLI documentation, defines npm release operations, validates GitHub Release artifacts, hardens Finalize workflow recovery, links the guides from repository documentation, and includes the Chinese README in staged npm packages. ChangesCLI documentation and release publication
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: ⚪ Minimal · up to This PR adds bilingual CLI installation and release documentation alongside the related packaging and release updates; no actionable merge-blocking risk remains after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant FinalizeWorkflow
participant GitHubRelease
participant ReleaseValidator
FinalizeWorkflow->>GitHubRelease: create or recover draft release
FinalizeWorkflow->>GitHubRelease: upload and publish verified assets
FinalizeWorkflow->>ReleaseValidator: validate release metadata and digests
ReleaseValidator-->>FinalizeWorkflow: return validated release record
Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
PR Summary by QodoDocument CLI npm usage and release operations
AI Description
Diagram
High-Level Assessment
Files changed (8)
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: c0885a94-7c15-4194-90cc-b9041c661322
📒 Files selected for processing (8)
README.mdREADME.zh-CN.mddocs/README.mddocs/cli-npm-release.mddocs/cli-npm-release.zh-CN.mdpackages/cli/README.mdpackages/cli/README.zh-CN.mdscripts/release-cli-package.mjs
Included review availability: Your plan includes up to 3 reviews per rolling hour; 1 remains after this review.
Code Review by Qodo
1.
|
Resume partial GitHub Release creation through an explicit draft boundary and accept published releases only after exact metadata and asset-digest verification. Correct the documented release toolchain prerequisites and rollback target so recovery instructions remain immediately actionable.\n\nGenerated-by: Codex
Generated-by: Codex
Summary
English
Refs #3166
简体中文
关联 #3166
Verification
English
npx --yes npm@11.19.0 run rebuildnpx --yes npm@11.19.0 run check:releasenpx --yes npm@11.19.0 run release:cli:packnpx --yes npm@11.19.0 run release:cli:smoke简体中文
AI use
Select exactly one:
Tool(s) and scope: Codex drafted the bilingual documentation, updated the release document whitelist, and ran the reported validation.
Checklist
Does this PR entail a change in behavior?