From 053c65593ba3c48de6000b55cac4c0d4f417cfc3 Mon Sep 17 00:00:00 2001 From: Jiaxiaoyuan Date: Fri, 20 Nov 2026 09:53:56 +0800 Subject: [PATCH 1/2] fix(build): migrate pnpm policy to workspace settings --- .aoci/baseline.json | 54 +++++++++---------- .github/workflows/update-visual-baselines.yml | 2 +- .github/workflows/webui-ci.yml | 2 +- .npmrc | 1 - README.md | 2 +- README_ZH.md | 2 +- aoci.code.txt | 6 +-- docs/installation.md | 4 +- package.json | 21 +------- pnpm-lock.yaml | 24 ++++----- pnpm-workspace.yaml | 19 +++++++ 11 files changed, 68 insertions(+), 69 deletions(-) diff --git a/.aoci/baseline.json b/.aoci/baseline.json index 5e71736b3..461305439 100644 --- a/.aoci/baseline.json +++ b/.aoci/baseline.json @@ -1,7 +1,7 @@ { "version": 1, "created_at": "2026-11-19T05:53:26Z", - "updated_at": "2026-11-20T01:35:42Z", + "updated_at": "2026-11-20T01:53:35Z", "files": { ".agents/skills/changelog-card-publish/SKILL.md": { "role": "index", @@ -311,15 +311,15 @@ }, ".github/workflows/update-visual-baselines.yml": { "role": "index", - "sha256": "337dc5296a75179117225dc39301867b3e21cb8899beabc3e1ae2180d5baf8e5", - "size": 3977, - "normalized_sha256": "337dc5296a75179117225dc39301867b3e21cb8899beabc3e1ae2180d5baf8e5" + "sha256": "e40ef7f76a516b911e87f146443665089120372b3a2d458cec2267244410d881", + "size": 3978, + "normalized_sha256": "e40ef7f76a516b911e87f146443665089120372b3a2d458cec2267244410d881" }, ".github/workflows/webui-ci.yml": { "role": "index", - "sha256": "e2865cc4e50add9047c5465b698ad43e78e2db0a43d742e48620475dcd41ac59", - "size": 4267, - "normalized_sha256": "e2865cc4e50add9047c5465b698ad43e78e2db0a43d742e48620475dcd41ac59" + "sha256": "1dc540cf7f06145ca67cc607675582cf824fd5bca0c852519d99027f533d1a10", + "size": 4268, + "normalized_sha256": "1dc540cf7f06145ca67cc607675582cf824fd5bca0c852519d99027f533d1a10" }, ".gitignore": { "role": "index", @@ -749,15 +749,15 @@ }, "README.md": { "role": "index", - "sha256": "700ab9c2c1d50e19bcfa06352317356de4eaac125ba2c7c60620b305dbbfff2b", - "size": 10399, - "normalized_sha256": "700ab9c2c1d50e19bcfa06352317356de4eaac125ba2c7c60620b305dbbfff2b" + "sha256": "fe69e95184d0ed3fded5d59807f23408a722aabf0af9b5f2b6a6e6659e75b759", + "size": 10400, + "normalized_sha256": "fe69e95184d0ed3fded5d59807f23408a722aabf0af9b5f2b6a6e6659e75b759" }, "README_ZH.md": { "role": "index", - "sha256": "b65f5f21b16e1385d380377d26177d4cc828dc709bc74e5464b02659800df182", - "size": 9738, - "normalized_sha256": "b65f5f21b16e1385d380377d26177d4cc828dc709bc74e5464b02659800df182" + "sha256": "6a22ecc0e3a8bbffa342d05cae54dd09aff5dc70f4a30ee8d76e79488511a167", + "size": 9739, + "normalized_sha256": "6a22ecc0e3a8bbffa342d05cae54dd09aff5dc70f4a30ee8d76e79488511a167" }, "SECURITY.md": { "role": "index", @@ -773,9 +773,9 @@ }, "aoci.code.txt": { "role": "index", - "sha256": "251d96fb088590d8761d51f2d6033c31857b5c6cc4d3c7265f303fd80292731c", - "size": 636382, - "normalized_sha256": "251d96fb088590d8761d51f2d6033c31857b5c6cc4d3c7265f303fd80292731c" + "sha256": "288c8e5e441122c9efc2ed8bc083e603be4c5eb1e11ab74e53c7b2b2dfb1b980", + "size": 636621, + "normalized_sha256": "288c8e5e441122c9efc2ed8bc083e603be4c5eb1e11ab74e53c7b2b2dfb1b980" }, "aoci.meta.txt": { "role": "index", @@ -1660,9 +1660,9 @@ }, "docs/installation.md": { "role": "index", - "sha256": "668b1ce5ee5c9b96cd2a5384f82bf059a26e9a2b6b6d95d565254e0421606bc5", - "size": 13733, - "normalized_sha256": "668b1ce5ee5c9b96cd2a5384f82bf059a26e9a2b6b6d95d565254e0421606bc5" + "sha256": "87ccff10faf12c4682aaf58f51f493cea66696109213d8b166a5f3b2919a2f8d", + "size": 13735, + "normalized_sha256": "87ccff10faf12c4682aaf58f51f493cea66696109213d8b166a5f3b2919a2f8d" }, "docs/maintainers.md": { "role": "index", @@ -1876,9 +1876,9 @@ }, "package.json": { "role": "index", - "sha256": "36e566e563cb4071ef3200a5eaa07e8796189ef01d236e8cfc1d149e562230ff", - "size": 3910, - "normalized_sha256": "36e566e563cb4071ef3200a5eaa07e8796189ef01d236e8cfc1d149e562230ff" + "sha256": "d2029d72dd16bbe09e7634248aa9cf1d1ee8e36fe941e2c740f0eecfc494b04c", + "size": 3412, + "normalized_sha256": "d2029d72dd16bbe09e7634248aa9cf1d1ee8e36fe941e2c740f0eecfc494b04c" }, "packages/agent-core/package.json": { "role": "index", @@ -32010,15 +32010,15 @@ }, "pnpm-lock.yaml": { "role": "observe", - "sha256": "191de049eae2276a8742a8673e423c524051e932f555c5b30ba79de44683ce1a", + "sha256": "0f18b7c807876024dcd5f3dc734ffeaac2f313550657eb3dd3302dd63cf8884f", "size": 325615, - "normalized_sha256": "191de049eae2276a8742a8673e423c524051e932f555c5b30ba79de44683ce1a" + "normalized_sha256": "0f18b7c807876024dcd5f3dc734ffeaac2f313550657eb3dd3302dd63cf8884f" }, "pnpm-workspace.yaml": { "role": "index", - "sha256": "7aee9e0cf42db40701270cfffdecec2f2dfa7dd41c657879c365fa4f3a0379f4", - "size": 1131, - "normalized_sha256": "7aee9e0cf42db40701270cfffdecec2f2dfa7dd41c657879c365fa4f3a0379f4" + "sha256": "1206a71467d8535c12cf15c89bda62b06a67d2a0fde52236229af8d0406f8837", + "size": 1516, + "normalized_sha256": "1206a71467d8535c12cf15c89bda62b06a67d2a0fde52236229af8d0406f8837" }, "release/dependency-licenses.json": { "role": "index", diff --git a/.github/workflows/update-visual-baselines.yml b/.github/workflows/update-visual-baselines.yml index 6410f95ed..d10309d16 100644 --- a/.github/workflows/update-visual-baselines.yml +++ b/.github/workflows/update-visual-baselines.yml @@ -37,7 +37,7 @@ jobs: persist-credentials: true - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 with: - version: 9.12.0 + version: 10.34.9 - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: "24" diff --git a/.github/workflows/webui-ci.yml b/.github/workflows/webui-ci.yml index 733b2b77d..f415dd5a6 100644 --- a/.github/workflows/webui-ci.yml +++ b/.github/workflows/webui-ci.yml @@ -37,7 +37,7 @@ jobs: fi - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 with: - version: 9.12.0 + version: 10.34.9 - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: "24" diff --git a/.npmrc b/.npmrc index 3d4e2c0f3..214c29d13 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1 @@ registry=https://registry.npmjs.org/ -node-linker=hoisted diff --git a/README.md b/README.md index 78c34f39c..dd63c0999 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ Plugins and Mini Apps can depend on platform capabilities, additional setup, or ## Build from source -You need Git, a supported Node.js version, and **pnpm 9.12.0**. On Windows, keep the checkout on a local NTFS volume outside cloud-synced folders. +You need Git, a supported Node.js version, and **pnpm 10.34.9**. On Windows, keep the checkout on a local NTFS volume outside cloud-synced folders. ```bash git clone https://github.com/mcode-webui/minimax-code.git diff --git a/README_ZH.md b/README_ZH.md index d60cebcb8..b2b6e9d27 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -135,7 +135,7 @@ npm uninstall --global @minimax-webui/minimax-code ## 从源码构建 -需要 Git、支持的 Node.js 版本以及 **pnpm 9.12.0**。Windows 上请把仓库放在本地 NTFS 卷中,并避开云同步目录。 +需要 Git、支持的 Node.js 版本以及 **pnpm 10.34.9**。Windows 上请把仓库放在本地 NTFS 卷中,并避开云同步目录。 ```bash git clone https://github.com/mcode-webui/minimax-code.git diff --git a/aoci.code.txt b/aoci.code.txt index b6c5f1a9e..4833a15c2 100644 --- a/aoci.code.txt +++ b/aoci.code.txt @@ -15,9 +15,9 @@ README.md[SG4S]: F:Introduces MiniMax Code and explains installation, source bui README_ZH.md[SG4S]: F:Explains MiniMax Code installation, source builds from main, sign-in, model configuration and usage in Chinese. | R:- | A:- | S:- SECURITY.md[SG4T]: F:Defines security reporting and source, account, and managed-service boundaries. | R:- | A:- | S:- THIRD_PARTY_NOTICES.md[SG4T]: F:Preserves third-party license and attribution notices, including AI Node Canvas. | R:- | A:- | S:- -package.json[FV5T]: F:Declares workspace dependencies and root scripts for builds, releases, and verification. | R:- | A:- | S:- +package.json[FV5T]: F:Pins the pnpm version and declares root dependencies and build, release and verification commands. | R:code:pnpm-workspace.yaml | A:- | S:- playwright.config.mjs[SE4T]: F:Configures Playwright projects and the browser test server. | R:- | A:- | S:- -pnpm-workspace.yaml[SE4T]: F:Declares pnpm workspace package roots. | R:- | A:- | S:- +pnpm-workspace.yaml[FV5T]: F:Declares workspace package roots, hoisted linking, dependency overrides and the native build allowlist. | R:code:package.json | A:- | S:Build permissions use allowBuilds because pnpm 11 ignores the legacy allowlist keys. tsconfig.node.json[SE4T]: F:Configures TypeScript for Node-side code. | R:- | A:- | S:- tsconfig.standalone.json[SE4L]: F:Configures standalone TypeScript checking and workspace path aliases. | R:- | A:- | S:- vitest.oss.config.mjs[SE4T]: F:Configures the public distribution Vitest environment and module resolution. | R:- | A:- | S:- @@ -197,7 +197,7 @@ architecture.md[SG4T]: F:Explains package boundaries and integration among clien demo.md[SG4T]: F:Walks through a recorded product demo that turns a request into a verified code change. | R:- | A:- | S:- examples.md[SG4M]: F:Provides practical examples for editing code, running tests, and using a custom model. | R:- | A:- | S:- hooks.md[SG4T]: F:Specifies how hook messages reach the TUI and model context, including event limits. | R:- | A:- | S:- -installation.md[SG4S]: F:Documents checksum-verified release archive installation and source builds. | R:- | A:- | S:- +installation.md[SG4S]: F:Documents verified release installation and source builds with the repository-pinned package manager. | R:code:package.json | A:- | S:- maintainers.md[SG4T]: F:Defines maintainer responsibilities, issue triage, and release and review ownership. | R:- | A:- | S:- open-source-status.md[SG4T]: F:Records the public source release baseline, supported scope, and evidence boundaries. | R:- | A:- | S:- performance-ci.md[SG4S]: F:Defines performance CI profiles, suite selection, and required comparison evidence. | R:- | A:- | S:- diff --git a/docs/installation.md b/docs/installation.md index eaa64b2af..99337660b 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -39,7 +39,7 @@ For npm, use the command in the README: it explicitly selects the public registr This guide builds the 0.6.3 source preview. Workspace/local build manifests remain `private: true` to prevent accidental publishing. A source checkout may contain additional reviewed distribution changes; matching version strings alone do not establish byte-for-byte or build-provenance equivalence with the official npm tarball. Use the committed source revision and release receipt to identify a source build. -For a source build, you need Git, Node.js 22.19+ (22.x), 24.2+ (24.x), 25, or 26, and pnpm 9.12.0. Regular CI uses Node.js 24 across Linux and macOS. The weekly and manual compatibility matrix covers Node.js 22.19.0, 24.2.0, 25, and 26 on both platforms. Windows CI and source-candidate validation are temporarily paused while their checks are made reliable. Initial installation and build require access to public npm. +For a source build, you need Git, Node.js 22.19+ (22.x), 24.2+ (24.x), 25, or 26, and pnpm 10.34.9. Regular CI uses Node.js 24 across Linux and macOS. The weekly and manual compatibility matrix covers Node.js 22.19.0, 24.2.0, 25, and 26 on both platforms. Windows CI and source-candidate validation are temporarily paused while their checks are made reliable. Initial installation and build require access to public npm. On Windows, check out this repository on a local NTFS volume before running `pnpm install`. The repository uses pnpm workspace links for vendored packages, and those links require NTFS junctions. FAT32/exFAT volumes, network shares, and other non-local Windows volumes cannot create the required junctions. The preflight command below verifies the volume and stops with a clear message before pnpm creates workspace links; run it immediately before `pnpm install`. It queries structured volume properties through Windows PowerShell and CIM, without requiring an elevated shell or parsing localized `fsutil` output. If PowerShell or CIM is unavailable or blocked, verification fails with the query error. A local NTFS volume can still contain a cloud-synced folder, which the preflight cannot identify reliably; keep the checkout outside OneDrive, Google Drive, Dropbox, and similar synced folders. @@ -49,7 +49,7 @@ Node 24.0 and 24.1 are unsupported: their bundled libuv can return inconsistent git clone https://github.com/MiniMax-AI/minimax-code.git cd minimax-code corepack enable -corepack prepare pnpm@9.12.0 --activate +corepack prepare pnpm@10.34.9 --activate node scripts/check-windows-source-location.mjs pnpm install --frozen-lockfile pnpm build diff --git a/package.json b/package.json index 08b098b7e..1363fe730 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "description": "Standalone MiniMax Code TUI with managed accounts, BYOK models, cloud tools, plugins and ACP.", - "packageManager": "pnpm@9.12.0", + "packageManager": "pnpm@10.34.9", "engines": { "node": ">=22.19 <23 || >=24.2 <27" }, @@ -71,24 +71,5 @@ "vitest": "4.1.11", "yaml": "2.9.0" }, - "pnpm": { - "onlyBuiltDependencies": [ - "better-sqlite3", - "esbuild", - "node-pty" - ], - "overrides": { - "react": "18.3.1", - "react-dom": "18.3.1", - "@modelcontextprotocol/sdk>@hono/node-server": "2.0.12", - "minimatch@>=10.2.5>brace-expansion": "5.0.9", - "ajv>fast-uri": "3.1.6", - "express-rate-limit>ip-address": "10.4.0", - "vitest": "4.1.11", - "@vitest/coverage-v8": "4.1.11", - "vite": "7.3.6", - "hono": "4.13.5" - } - }, "license": "MIT" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 438c19983..91df089d7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -632,10 +632,6 @@ importers: zod: specifier: ^3 version: 3.25.76 - optionalDependencies: - '@larksuiteoapi/node-sdk': - specifier: ^1.60.0 - version: 1.73.3 devDependencies: '@types/js-yaml': specifier: ^4 @@ -658,6 +654,10 @@ importers: vitest: specifier: 4.1.11 version: 4.1.11(@opentelemetry/api@1.9.0)(@types/node@20.19.43)(@vitest/coverage-v8@4.1.11)(vite@7.3.6(@types/node@20.19.43)(jiti@2.7.0)(tsx@4.23.15)(yaml@2.9.1)) + optionalDependencies: + '@larksuiteoapi/node-sdk': + specifier: ^1.60.0 + version: 1.73.3 packages/local-runtime-v2: dependencies: @@ -886,10 +886,6 @@ importers: ws: specifier: ^8.20.0 version: 8.21.3 - optionalDependencies: - '@mariozechner/clipboard': - specifier: 0.3.9 - version: 0.3.9 devDependencies: '@earendil-works/pi-ai': specifier: workspace:* @@ -918,6 +914,10 @@ importers: vitest: specifier: 4.1.11 version: 4.1.11(@opentelemetry/api@1.9.0)(@types/node@20.19.43)(@vitest/coverage-v8@4.1.11)(vite@7.3.6(@types/node@20.19.43)(jiti@2.7.0)(tsx@4.23.15)(yaml@2.9.1)) + optionalDependencies: + '@mariozechner/clipboard': + specifier: 0.3.9 + version: 0.3.9 packages/webui: dependencies: @@ -1167,10 +1167,6 @@ importers: yaml: specifier: 2.9.0 version: 2.9.0 - optionalDependencies: - '@mariozechner/clipboard': - specifier: 0.3.9 - version: 0.3.9 devDependencies: '@types/cross-spawn': specifier: 6.0.6 @@ -1199,6 +1195,10 @@ importers: vitest: specifier: 4.1.11 version: 4.1.11(@opentelemetry/api@1.9.0)(@types/node@24.12.4)(@vitest/coverage-v8@4.1.11)(vite@7.3.6(@types/node@24.12.4)(jiti@2.7.0)(tsx@4.23.15)(yaml@2.9.0)) + optionalDependencies: + '@mariozechner/clipboard': + specifier: 0.3.9 + version: 0.3.9 third_party/pi-mono/packages/tui: dependencies: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index d5fa7ce10..c1c2bca5d 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -32,3 +32,22 @@ packages: - packages/oauth-core - packages/oauth-lease-protocol - packages/mcode-tools-host + +nodeLinker: hoisted + +allowBuilds: + better-sqlite3: true + esbuild: true + node-pty: true + +overrides: + react: 18.3.1 + react-dom: 18.3.1 + '@modelcontextprotocol/sdk>@hono/node-server': 2.0.12 + 'minimatch@>=10.2.5>brace-expansion': 5.0.9 + 'ajv>fast-uri': 3.1.6 + 'express-rate-limit>ip-address': 10.4.0 + vitest: 4.1.11 + '@vitest/coverage-v8': 4.1.11 + vite: 7.3.6 + hono: 4.13.5 From 726597fc17fac0f59e920a6da2880f462fb377f0 Mon Sep 17 00:00:00 2001 From: Jiaxiaoyuan Date: Fri, 20 Nov 2026 09:56:36 +0800 Subject: [PATCH 2/2] fix(build): declare rejected pnpm lifecycle scripts --- .aoci/baseline.json | 14 +++++++------- aoci.code.txt | 2 +- pnpm-workspace.yaml | 3 +++ 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.aoci/baseline.json b/.aoci/baseline.json index 461305439..a5d512d9a 100644 --- a/.aoci/baseline.json +++ b/.aoci/baseline.json @@ -1,7 +1,7 @@ { "version": 1, "created_at": "2026-11-19T05:53:26Z", - "updated_at": "2026-11-20T01:53:35Z", + "updated_at": "2026-11-20T01:56:16Z", "files": { ".agents/skills/changelog-card-publish/SKILL.md": { "role": "index", @@ -773,9 +773,9 @@ }, "aoci.code.txt": { "role": "index", - "sha256": "288c8e5e441122c9efc2ed8bc083e603be4c5eb1e11ab74e53c7b2b2dfb1b980", - "size": 636621, - "normalized_sha256": "288c8e5e441122c9efc2ed8bc083e603be4c5eb1e11ab74e53c7b2b2dfb1b980" + "sha256": "3bc831dadbb52d19cd648c85e77c68b61e81cde8938050925cf239238ed4b20b", + "size": 636642, + "normalized_sha256": "3bc831dadbb52d19cd648c85e77c68b61e81cde8938050925cf239238ed4b20b" }, "aoci.meta.txt": { "role": "index", @@ -32016,9 +32016,9 @@ }, "pnpm-workspace.yaml": { "role": "index", - "sha256": "1206a71467d8535c12cf15c89bda62b06a67d2a0fde52236229af8d0406f8837", - "size": 1516, - "normalized_sha256": "1206a71467d8535c12cf15c89bda62b06a67d2a0fde52236229af8d0406f8837" + "sha256": "fd103bbe6e1724be5a358d277bdd51d69805b3f5db41546e65a22bb8a1b4de6c", + "size": 1577, + "normalized_sha256": "fd103bbe6e1724be5a358d277bdd51d69805b3f5db41546e65a22bb8a1b4de6c" }, "release/dependency-licenses.json": { "role": "index", diff --git a/aoci.code.txt b/aoci.code.txt index 4833a15c2..11f39db5a 100644 --- a/aoci.code.txt +++ b/aoci.code.txt @@ -17,7 +17,7 @@ SECURITY.md[SG4T]: F:Defines security reporting and source, account, and managed THIRD_PARTY_NOTICES.md[SG4T]: F:Preserves third-party license and attribution notices, including AI Node Canvas. | R:- | A:- | S:- package.json[FV5T]: F:Pins the pnpm version and declares root dependencies and build, release and verification commands. | R:code:pnpm-workspace.yaml | A:- | S:- playwright.config.mjs[SE4T]: F:Configures Playwright projects and the browser test server. | R:- | A:- | S:- -pnpm-workspace.yaml[FV5T]: F:Declares workspace package roots, hoisted linking, dependency overrides and the native build allowlist. | R:code:package.json | A:- | S:Build permissions use allowBuilds because pnpm 11 ignores the legacy allowlist keys. +pnpm-workspace.yaml[FV5T]: F:Declares pnpm workspace roots, hoisted linking, dependency overrides and dependency build permissions. | R:code:package.json | A:- | S:pnpm 11 requires explicit denial for known unapproved install scripts when strict build checks are active. tsconfig.node.json[SE4T]: F:Configures TypeScript for Node-side code. | R:- | A:- | S:- tsconfig.standalone.json[SE4L]: F:Configures standalone TypeScript checking and workspace path aliases. | R:- | A:- | S:- vitest.oss.config.mjs[SE4T]: F:Configures the public distribution Vitest environment and module resolution. | R:- | A:- | S:- diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index c1c2bca5d..b02f4680d 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -36,9 +36,12 @@ packages: nodeLinker: hoisted allowBuilds: + '@google/genai': false better-sqlite3: true + canvas: false esbuild: true node-pty: true + protobufjs: false overrides: react: 18.3.1