Pro release shape
MESA Pro 的源码不发布到 npm;发布物只有两种:
- 私有源码产物(私有 tarball,默认渠道):私发客户。
- 纯二进制 npm 包(2026-12-04 起,公开渠道,
mesa-mcp):scripts/build-npm.mjs三平台 bun compile →mesa-mcpwrapper +mesa-mcp-<platform>平台包;包内只有二进制 +LICENSE-COMMERCIAL,不含src/、不含 sourcemap。运行时 license 校验 (MESA_LICENSE_FILE,未设置则开发模式)。
源码产物仍是私有 artifact bundle:
npm run pack:pro
# artifacts/
# mesa-pro-<version>.tgz
# SHA256SUMS
# pro-release.json
pro-release.json records version, git commit, pinned @modu/contracts version and asset sha256/bytes.
src/plugins/release.mjs validates the shape; test/release-manifest.test.mjs is the gate.
Policy references: versioning.md, compatibility.md, support-matrix.md.
Versioning
- Pro version is independent (
0.1.0now); bump on any shipped surface change. @modu/contractspin is recorded inscripts/install-contracts.mjsand the release manifest.- Base CLI compatibility is checked by
scripts/e2e-base.mjs; a release requires e2e green. - Private artifact distribution + checksum is the release channel; no registry publish.
Install from artifact
sha256sum -c SHA256SUMS
npm install -g ./mesa-pro-<version>.tgz # or unpack and use bins from the checkout
Keep the previous artifact for rollback; Pro does not migrate .modu/ data.
Release checklist
MESA_BASE_DIR=/path/to/mesa npm run release:check
Release-candidate acceptance:
MESA_BASE_DIR=/path/to/mesa npm run acceptance:check
It runs tests → pack/manifest → e2e → onboarding → delivery+ledger, all without publishing.
Use --out artifacts/acceptance.json to keep the release evidence. The delivery step hashes the
pre-delivery acceptance evidence and records it in the delivery manifest/ledger automatically. A customer
bundle is then built from the manifest/license to prove the tarball path works (not published); the final
summary also contains a support-ticket object (customer/serial/pro/base/evidence) ready to paste into
templates/support-ticket.example.json. The default
output is artifacts/acceptance/customer-bundle.tar.gz; the delivery ledger is retained at
artifacts/acceptance/ledger.jsonl, and CI uploads all three.
The lighter check runs node --test, pack:pro, validates pro-release.json, and e2e when MESA_BASE_DIR is set.
Then align docs/plans/registry/migration and record the artifact sha256 in the delivery ticket.
源文件 · mesa-pro/docs/release.md