Files
YANG QIA d3763a2e2a feat(studio): pack the runner and nb-studio into every build and serve them (#10716)
* feat(studio): pack the runner and nb-studio into every build and serve them

Studio's pnpm build now packs the universal nocobase-runner and nb-studio
packages into dist/runners at the exact versions it records in
served-versions.json, and fails when they differ. Studio serves that
directory by default, after agents.dist.dir and NB_STUDIO_RUNNERS_DIST,
so every deployment serves the runner and CLI it was built with; npm
remains the fallback for a Studio without packages.

The release image workflow no longer builds the packages separately or
uploads them as an artifact, and the Dockerfile drops its runners-dist
stage and rejects a prebuilt dist/ without dist/runners. The published
Studio package now includes ai/, which packing nb-studio needs.

* feat(studio-cli): share Studio's version line

nb-studio was served at Studio's version (1.0.0-beta.51) by earlier Studio
builds, so a CLI versioned 0.0.x would never be offered by `nb-studio update`.
@nocobase/studio-cli now starts at Studio's version and joins it in a fixed
changesets group, so both release as 1.0.0-beta.52 and move together.
2026-10-11 00:43:22 +08:00
..