feat: run add-dependency installs in a PTY (#3167)
## Summary
- replace add-dependency command execution with a cross-platform
node-pty runner in the Electron main process
- preserve add-dependency output and failure handling while adding PTY
output normalization and command timeouts
- package node-pty correctly in Electron Forge by externalizing it from
Vite, rebuilding it, and unpacking its helper binaries
## Test plan
- npm run fmt
- npm run lint:fix
- npm run ts
- npm test
- npm run build
🤖 Generated with Claude Code
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/3167"
target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open with Devin">
</picture>
</a>
<!-- devin-review-badge-end -->
---------
Co-authored-by:
Will Chen <7344640+wwwillchen@users.noreply.github.com>
Co-authored-by:
Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by:
devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
正在显示
| ... | @@ -107,6 +107,7 @@ | ... | @@ -107,6 +107,7 @@ |
| "lexical-beautiful-mentions": "^0.1.47", | "lexical-beautiful-mentions": "^0.1.47", | ||
| "lucide-react": "^0.487.0", | "lucide-react": "^0.487.0", | ||
| "monaco-editor": "^0.52.2", | "monaco-editor": "^0.52.2", | ||
| "node-pty": "^1.1.0", | |||
| "perfect-freehand": "^1.2.2", | "perfect-freehand": "^1.2.2", | ||
| "posthog-js": "^1.265.1", | "posthog-js": "^1.265.1", | ||
| "react": "^19.2.4", | "react": "^19.2.4", | ||
| ... | ... |
rules/native-modules.md
0 → 100644
请
注册
或者
登录
后发表评论