diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 8ef01033c..b6f3bf368 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -37,7 +37,7 @@ concurrency: env: GO_VERSION: "1.26.5" GOLANGCI_LINT_VERSION: "v2.12.2" - NODE_VERSION: "22" + NODE_VERSION: "24" PNPM_VERSION: "10.32.1" jobs: diff --git a/.github/workflows/release-readiness.yml b/.github/workflows/release-readiness.yml index 8abb4082f..bfdcbadbe 100644 --- a/.github/workflows/release-readiness.yml +++ b/.github/workflows/release-readiness.yml @@ -39,7 +39,7 @@ concurrency: env: GO_VERSION: "1.26.5" - NODE_VERSION: "22" + NODE_VERSION: "24" PNPM_VERSION: "10.32.1" jobs: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cd6f7e1ca..02a2e4ed2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ concurrency: env: GO_VERSION: "1.26.5" - NODE_VERSION: "22" + NODE_VERSION: "24" PNPM_VERSION: "10.32.1" jobs: diff --git a/README.md b/README.md index 2cd716e11..f4dc711b3 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ AgentHub 让你像在 IM 群聊里协作一样,把真人好友、Builder、Rev ## 快速开始 -最小本地启动路径(5 步)。需要 OpenSSL、Docker、Go 1.26+、Node 22+/corepack、pnpm 10+。 +最小本地启动路径(5 步)。需要 OpenSSL、Docker、Go 1.26+、Node 24+/corepack、pnpm 10+。 ```bash cp .env.example .env && secret="$(openssl rand -hex 32)" && sed -i.bak "s/^AGENTHUB_JWT_SECRET=.*/AGENTHUB_JWT_SECRET=$secret/" .env && rm -f .env.bak && export AGENTHUB_JWT_SECRET="$secret" && unset secret # 1. 复制配置并生成随机开发 secret diff --git a/app/Dockerfile b/app/Dockerfile index 28922dded..ac489b3fe 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -4,7 +4,7 @@ # tsc typecheck is handled by CI (cd-pr-check.yml); Docker build # runs only vite build for production optimised output. -FROM --platform=$BUILDPLATFORM node:22-alpine AS builder +FROM --platform=$BUILDPLATFORM node:24-alpine AS builder RUN corepack enable && corepack prepare pnpm@10 --activate WORKDIR /app diff --git a/app/package.json b/app/package.json index 3e7cd4e70..6dbbc1647 100644 --- a/app/package.json +++ b/app/package.json @@ -4,6 +4,9 @@ "private": true, "type": "module", "packageManager": "pnpm@10.32.1", + "engines": { + "node": ">=24" + }, "scripts": { "dev": "pnpm --filter agenthub-desktop dev", "dev:web": "pnpm --filter agenthub-web dev", diff --git a/docs/developer-quickstart.md b/docs/developer-quickstart.md index 57b906186..90fa82041 100644 --- a/docs/developer-quickstart.md +++ b/docs/developer-quickstart.md @@ -9,7 +9,7 @@ | 工具 | 用途 | |---|---| | Go 1.26+ | Hub Server / Edge Server | -| Node.js 22+ + corepack | pnpm workspace 和前端构建 | +| Node.js 24+ + corepack | pnpm workspace 和前端构建 | | PostgreSQL 16+ | Hub 数据库 | | Redis 7+ | Hub cache/session | | Git 2.40+;OpenSSL | 分支和 worktree;POSIX shell 生成本地 JWT secret |