From 0187f26c5b0f43fd94af6cda31b590f2ce81ee4c Mon Sep 17 00:00:00 2001 From: john Date: Mon, 29 Jun 2026 11:23:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(release):=20=E5=B0=86=20skills/=20=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E6=89=93=E5=85=A5=20Portal=20runtime=20=E4=BA=A7?= =?UTF-8?q?=E7=89=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 生产 Agent 需从 live 目录读取平台技能(含 docx-generate),无源码 runtime 必须携带 skills 树。 Co-authored-by: Cursor --- scripts/build-portal-runtime.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/build-portal-runtime.mjs b/scripts/build-portal-runtime.mjs index 15ad61d..a5ad9fe 100755 --- a/scripts/build-portal-runtime.mjs +++ b/scripts/build-portal-runtime.mjs @@ -131,6 +131,12 @@ async function copyRuntimeAssets() { if (await exists(schemaFile)) { await fs.copyFile(schemaFile, path.join(runtimeRoot, 'schema.sql')); } + + const skillsDir = path.join(root, 'skills'); + if (await exists(skillsDir)) { + console.log('==> 拷贝平台 skills 目录'); + await copyDir(skillsDir, path.join(runtimeRoot, 'skills')); + } } async function copyNodeModules() { @@ -233,6 +239,8 @@ async function writeMetadata() { 'Bundled alongside server.mjs (required for sandbox-fs MCP):', ' mindspace-sandbox-mcp.mjs (esbuild bundle; includes schedule-service deps)', '', + 'Platform agent skills (synced into user workspaces):', + ' skills/', 'Key runtime differences must stay in .env, not in the artifact:', ' DATABASE_URL / MYSQL_*', ' H5_PUBLIC_BASE_URL',