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',