{"record":{"id":"5a88014396c4786b","repo":"paperclipai/paperclip","slug":"pnpm-deploy-failed-with-exit-code-deployed-statu","errorCode":null,"errorMessage":"pnpm deploy failed with exit code ${deployed.status}","messagePattern":"pnpm deploy failed with exit code (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/paperclip-runner/scripts/build-provider-pack.mjs","lineNumber":129,"sourceCode":"    ].join(\"\\n\"),\n  );\n  chmodSync(shimPath, 0o755);\n}\n\ntry {\n  const deployed = spawnSync(\n    \"pnpm\",\n    [\n      \"--filter\",\n      \"@paperclipai/paperclip-runner\",\n      \"deploy\",\n      \"--prod\",\n      temporaryRoot,\n    ],\n    { cwd: workspaceRoot, encoding: \"utf8\", stdio: \"inherit\" },\n  );\n  if (deployed.status !== 0) {\n    throw new Error(`pnpm deploy failed with exit code ${deployed.status}`);\n  }\n\n  // Fail the image build if a bridge silently brings back an older/private\n  // provider CLI. A direct dependency alone does not deduplicate pnpm's graph.\n  const packRequire = createRequire(join(temporaryRoot, \"package.json\"));\n  const codexAcpRequire = createRequire(packRequire.resolve(\"@agentclientprotocol/codex-acp/package.json\"));\n  if (realpathSync(codexAcpRequire.resolve(\"@openai/codex/package.json\")) !==\n      realpathSync(packRequire.resolve(\"@openai/codex/package.json\"))) {\n    throw new Error(\"Codex ACP must share the image's Codex installation\");\n  }\n\n  // Reuse the already-qualified build interpreter instead of introducing a\n  // package-manager lifecycle hook or a second binary supply chain. The pack\n  // manifest binds the copied bytes, platform, architecture, and minimum\n  // version before any provider is launched.\n  const minimumNodeVersion = [24, 11, 0];\n  const actualNodeVersion = process.versions.node.split(\".\").map(Number);\n  if (","sourceCodeStart":111,"sourceCodeEnd":147,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/packages/paperclip-runner/scripts/build-provider-pack.mjs#L111-L147","documentation":"Guard in build-provider-pack.mjs: `pnpm --filter @paperclipai/paperclip-runner deploy --prod` exited non-zero while assembling the provider pack into the temporary root. It wraps a packaging-tool failure (dependency resolution, build script, or registry error) reported via exit code with inherited stdio.","triggerScenarios":"Thrown at packages/paperclip-runner/scripts/build-provider-pack.mjs:129 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the pnpm deploy output printed above the error for the underlying failure","Ensure workspace dependencies resolve and install cleanly (`pnpm install`) before building the pack","Clear pnpm store/fetch cache if the failure is a corrupted fetch"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-09-10T03:14:50.855Z","contentChangedAt":"2026-09-10T03:14:50.855Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}