fix: fall back to node-pty when Bun is not defined (Electron/Node.js) (#1446)

Co-authored-by: Letta Code <noreply@letta.com>
This commit is contained in:
Shubham Naik
2026-03-19 08:56:15 -07:00
committed by GitHub
parent 674472b76a
commit 850a6b7c88
3 changed files with 227 additions and 140 deletions

View File

@@ -73,7 +73,7 @@
"test:update-chain:manual": "bun run src/tests/update-chain-smoke.ts --mode manual",
"test:update-chain:startup": "bun run src/tests/update-chain-smoke.ts --mode startup",
"prepublishOnly": "bun run build",
"postinstall": "node scripts/postinstall-patches.js || echo letta: vendor patches skipped"
"postinstall": "node scripts/postinstall-patches.js || echo letta: vendor patches skipped && node -e \"try{require('fs').chmodSync(require('path').join(require.resolve('node-pty/package.json'),'../prebuilds/darwin-arm64/spawn-helper'),0o755)}catch(e){}\" || true"
},
"lint-staged": {
"*.{ts,tsx,js,jsx,json}": [