v2.3.3
This commit is contained in:
+2
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user