This commit is contained in:
kim
2026-05-03 18:56:13 +09:00
parent f92e5ef782
commit cb131e8047
12 changed files with 870 additions and 122 deletions
+2 -1
View File
@@ -1,4 +1,3 @@
import PTYManager from '../gateway/pty-manager';
import path from 'path';
import { getConfig } from '../config/config.js';
import { ToolResult } from '../types.js';
@@ -104,6 +103,8 @@ export async function executeShell(args: ShellToolArgs): Promise<ToolResult> {
}
try {
// Lazy-load node-pty (63MB native module) only when shell is actually invoked
const { default: PTYManager } = await import('../gateway/pty-manager.js');
const pty = PTYManager.getInstance();
const output = await pty.runCommand(args.command);
return {