fix: pnpm-lock sync, per-group build-script allowlist, ppnpm typos
- Regenerate pnpm-lock.yaml to match v2 package.json (Baileys 6.17.16, @chat-adapter/linear 4.26.0) - src/container-runner.ts: when install_packages rebuilds a per-group image, append each installed package to /root/.npmrc's only-built-dependencies before pnpm install -g, so packages with postinstall scripts (playwright, puppeteer, native addons) don't install silently broken - Fix stray 'ppnpm uninstall' in 13 skill files (REMOVE.md + SKILL.md) left over from the npm→pnpm sed pass Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -322,7 +322,12 @@ export async function buildAgentGroupImage(agentGroupId: string): Promise<void>
|
||||
dockerfile += `RUN apt-get update && apt-get install -y ${aptPackages.join(' ')} && rm -rf /var/lib/apt/lists/*\n`;
|
||||
}
|
||||
if (npmPackages.length > 0) {
|
||||
dockerfile += `RUN pnpm install -g ${npmPackages.join(' ')}\n`;
|
||||
// pnpm skips build scripts unless packages are allowlisted. Append each
|
||||
// to /root/.npmrc (base image sets it up for agent-browser) so packages
|
||||
// with postinstall — e.g. playwright, puppeteer, native addons — don't
|
||||
// install silently broken.
|
||||
const allowlist = npmPackages.map((p) => `echo 'only-built-dependencies[]=${p}' >> /root/.npmrc`).join(' && ');
|
||||
dockerfile += `RUN ${allowlist} && pnpm install -g ${npmPackages.join(' ')}\n`;
|
||||
}
|
||||
dockerfile += 'USER node\n';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user