mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-10 01:08:08 +08:00
chore: backport selected main commits to v4.14.x (#6840)
* chore: bump pro submodule for hydration stability (#6808) * sandbox-sync-agent * refactor: host pro as submodule * chore: checkpoint host pro restructure * refactor workspace test layout and startup init * chore: update next turbopack setup * chore: snapshot current work before actions fix * chore: update pro submodule * chore: point pro submodule url to upstream https * fix: Dockerfile * chore: update pro submodule * ci: support private pro submodule token and skip fork jobs * fix(ci): build sdk workspace deps before code-sandbox bundle * fix(app): exclude vitest configs from production typecheck * fix(app-image): build sdk packages before next build * fix(ci): align dockerfiles with workspace sdk build flow * chore(docker): upgrade node20 docker images to node24 * fix(ci): read admin coverage output path in pro test workflow * fix(app-image): include next-i18next config and locale assets * chore: update pro submodule * chore: do not specify branch for submodule * chore: remove most ts-nocheck sign * chore: update pro submodule * chore: remove sandbox-agent-sync package * chore: do not modify "pushData" file logic * fix: health check * chore: restore dev axios proxy state * fix: test-fastgpt report workflow * fix: use valid vitest coverage action inputs * update shell (#6830) * .codex (#6832) * fix: home chat file uploads (#6838) * chore: update actions workflow yamls * chore: update turbo.json * fix: split admin preview image workflows * fix: allow home chat file uploads * chore: add skip file type check env (#6839) * chore: update actions workflow yamls (#6835) * chore: update actions workflow yamls * fix: allow pro workflows on fork pull requests * chore: update turbo.json * fix: split admin preview image workflows * chore: bump pro submodule for admin typecheck * chore: update pro submodule * chore: bump pro submodule for turbo ignore * chore: update pro submodule for file download api --------- Co-authored-by: Archer <545436317@qq.com>
This commit is contained in:
@@ -5,12 +5,13 @@ WORKDIR /app
|
||||
ARG proxy
|
||||
|
||||
# 安装 pnpm
|
||||
RUN apk add --no-cache nodejs npm && npm install -g pnpm@9
|
||||
RUN apk add --no-cache nodejs npm && npm install -g pnpm@10.33.2
|
||||
|
||||
# 复制 workspace 配置和依赖包
|
||||
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json ./
|
||||
COPY packages/global ./packages/global
|
||||
COPY packages/service ./packages/service
|
||||
COPY sdk ./sdk
|
||||
COPY projects/code-sandbox/ ./projects/code-sandbox/
|
||||
|
||||
RUN [ -z "$proxy" ] || sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
|
||||
@@ -23,6 +24,9 @@ RUN if [ -z "$proxy" ]; then \
|
||||
pnpm install --frozen-lockfile --ignore-scripts --registry=https://registry.npmmirror.com; \
|
||||
fi
|
||||
|
||||
# 先构建 SDK workspace 包,确保 dist 入口可被 bun build 解析
|
||||
RUN pnpm --filter @fastgpt-sdk/logger --filter @fastgpt-sdk/otel --filter @fastgpt-sdk/storage build
|
||||
|
||||
# 编译主入口文件
|
||||
RUN cd /app/projects/code-sandbox && pnpm build
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "code-sandbox",
|
||||
"name": "@fastgpt/code-sandbox",
|
||||
"version": "5.0.0",
|
||||
"description": "FastGPT Code Sandbox - Bun + Hono + 统一子进程模型",
|
||||
"author": "",
|
||||
@@ -14,10 +14,10 @@
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20",
|
||||
"pnpm": "9.x"
|
||||
"pnpm": "10.x"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fastgpt-sdk/logger": "catalog:",
|
||||
"@fastgpt-sdk/logger": "workspace:*",
|
||||
"@fastgpt/service": "workspace:*",
|
||||
"axios": "catalog:",
|
||||
"crypto-js": "^4.2.0",
|
||||
@@ -33,9 +33,9 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "^1.2.4",
|
||||
"@types/node": "^20.14.2",
|
||||
"vitest": "^3.0.9",
|
||||
"@vitest/coverage-v8": "^3.0.9",
|
||||
"typescript": "^5.7.3"
|
||||
"@types/node": "catalog:",
|
||||
"vitest": "catalog:",
|
||||
"@vitest/coverage-v8": "catalog:",
|
||||
"typescript": "catalog:"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ export default defineConfig({
|
||||
enabled: true,
|
||||
reporter: ['text', 'text-summary', 'html', 'json-summary', 'json'],
|
||||
reportOnFailure: true,
|
||||
all: false, // 只包含被测试实际覆盖的文件,不包含空目录
|
||||
include: ['src/**/*.ts'],
|
||||
cleanOnRerun: false
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user