From 2b61ebbfadd5f13ce77480c425d2881716b78646 Mon Sep 17 00:00:00 2001 From: adryserage <17680194+adryserage@users.noreply.github.com> Date: Fri, 19 Dec 2025 06:32:26 -0500 Subject: [PATCH] fix(deps): update imports to use @lydell/node-pty directly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous commit (e1aee6a) updated package.json to use @lydell/node-pty but the source files still imported from 'node-pty'. This caused the app to fail on startup with "Cannot find module 'node-pty'" error. This commit updates all imports and the vite external config to reference @lydell/node-pty directly, completing the migration. Files changed: - src/main/terminal/pty-manager.ts - src/main/terminal/pty-daemon.ts - src/main/terminal/types.ts - electron.vite.config.ts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- auto-claude-ui/electron.vite.config.ts | 2 +- auto-claude-ui/src/main/terminal/pty-daemon.ts | 2 +- auto-claude-ui/src/main/terminal/pty-manager.ts | 2 +- auto-claude-ui/src/main/terminal/types.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/auto-claude-ui/electron.vite.config.ts b/auto-claude-ui/electron.vite.config.ts index 7d3b23aa..968c7fc3 100644 --- a/auto-claude-ui/electron.vite.config.ts +++ b/auto-claude-ui/electron.vite.config.ts @@ -20,7 +20,7 @@ export default defineConfig({ index: resolve(__dirname, 'src/main/index.ts') }, // Only node-pty needs to be external (native module rebuilt by electron-builder) - external: ['node-pty'] + external: ['@lydell/node-pty'] } } }, diff --git a/auto-claude-ui/src/main/terminal/pty-daemon.ts b/auto-claude-ui/src/main/terminal/pty-daemon.ts index 9c430efc..7e5bf2d5 100644 --- a/auto-claude-ui/src/main/terminal/pty-daemon.ts +++ b/auto-claude-ui/src/main/terminal/pty-daemon.ts @@ -10,7 +10,7 @@ import * as net from 'net'; import * as fs from 'fs'; -import * as pty from 'node-pty'; +import * as pty from '@lydell/node-pty'; const SOCKET_PATH = process.platform === 'win32' diff --git a/auto-claude-ui/src/main/terminal/pty-manager.ts b/auto-claude-ui/src/main/terminal/pty-manager.ts index 26c61855..d118dca7 100644 --- a/auto-claude-ui/src/main/terminal/pty-manager.ts +++ b/auto-claude-ui/src/main/terminal/pty-manager.ts @@ -3,7 +3,7 @@ * Handles low-level PTY process creation and lifecycle */ -import * as pty from 'node-pty'; +import * as pty from '@lydell/node-pty'; import * as os from 'os'; import type { TerminalProcess, WindowGetter } from './types'; import { IPC_CHANNELS } from '../../shared/constants'; diff --git a/auto-claude-ui/src/main/terminal/types.ts b/auto-claude-ui/src/main/terminal/types.ts index 5cbd2eca..7a361890 100644 --- a/auto-claude-ui/src/main/terminal/types.ts +++ b/auto-claude-ui/src/main/terminal/types.ts @@ -1,4 +1,4 @@ -import type * as pty from 'node-pty'; +import type * as pty from '@lydell/node-pty'; import type { BrowserWindow } from 'electron'; /**