diff --git a/.github/workflows/update-visual-baselines.yml b/.github/workflows/update-visual-baselines.yml index 6410f95e..d10309d1 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 0d0d026b..22c290c1 100644 --- a/.github/workflows/webui-ci.yml +++ b/.github/workflows/webui-ci.yml @@ -48,7 +48,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 3d4e2c0f..214c29d1 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 78c34f39..dd63c099 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 d60cebcb..b2b6e9d2 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/docs/installation.md b/docs/installation.md index eaa64b2a..99337660 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 08b098b7..1363fe73 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 5e1b0987..7e1fcf0c 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 d5fa7ce1..b02f4680 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -32,3 +32,25 @@ packages: - packages/oauth-core - packages/oauth-lease-protocol - packages/mcode-tools-host + +nodeLinker: hoisted + +allowBuilds: + '@google/genai': false + better-sqlite3: true + canvas: false + esbuild: true + node-pty: true + protobufjs: false + +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