@nexus-cortex/executors 4.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/NOTICE +2 -0
- package/README.md +13 -0
- package/dist/ExecutorRegistry.d.ts +89 -0
- package/dist/ExecutorRegistry.d.ts.map +1 -0
- package/dist/ExecutorRegistry.js +219 -0
- package/dist/ExecutorRegistry.js.map +1 -0
- package/dist/base/BaseTool.d.ts +108 -0
- package/dist/base/BaseTool.d.ts.map +1 -0
- package/dist/base/BaseTool.js +111 -0
- package/dist/base/BaseTool.js.map +1 -0
- package/dist/base/ToolRegistry.d.ts +141 -0
- package/dist/base/ToolRegistry.d.ts.map +1 -0
- package/dist/base/ToolRegistry.js +241 -0
- package/dist/base/ToolRegistry.js.map +1 -0
- package/dist/base/ToolResult.d.ts +63 -0
- package/dist/base/ToolResult.d.ts.map +1 -0
- package/dist/base/ToolResult.js +8 -0
- package/dist/base/ToolResult.js.map +1 -0
- package/dist/base/index.d.ts +10 -0
- package/dist/base/index.d.ts.map +1 -0
- package/dist/base/index.js +8 -0
- package/dist/base/index.js.map +1 -0
- package/dist/implementations/addon/CreateArtifactTool.d.ts +221 -0
- package/dist/implementations/addon/CreateArtifactTool.d.ts.map +1 -0
- package/dist/implementations/addon/CreateArtifactTool.js +1042 -0
- package/dist/implementations/addon/CreateArtifactTool.js.map +1 -0
- package/dist/implementations/addon/FrameDiffCache.d.ts +166 -0
- package/dist/implementations/addon/FrameDiffCache.d.ts.map +1 -0
- package/dist/implementations/addon/FrameDiffCache.js +395 -0
- package/dist/implementations/addon/FrameDiffCache.js.map +1 -0
- package/dist/implementations/addon/H264StreamEncoder.d.ts +84 -0
- package/dist/implementations/addon/H264StreamEncoder.d.ts.map +1 -0
- package/dist/implementations/addon/H264StreamEncoder.js +203 -0
- package/dist/implementations/addon/H264StreamEncoder.js.map +1 -0
- package/dist/implementations/addon/HybridScreenshotManager.d.ts +197 -0
- package/dist/implementations/addon/HybridScreenshotManager.d.ts.map +1 -0
- package/dist/implementations/addon/HybridScreenshotManager.js +415 -0
- package/dist/implementations/addon/HybridScreenshotManager.js.map +1 -0
- package/dist/implementations/addon/InspectSandboxTool.d.ts +54 -0
- package/dist/implementations/addon/InspectSandboxTool.d.ts.map +1 -0
- package/dist/implementations/addon/InspectSandboxTool.js +226 -0
- package/dist/implementations/addon/InspectSandboxTool.js.map +1 -0
- package/dist/implementations/addon/InteractWithSandboxTool.d.ts +90 -0
- package/dist/implementations/addon/InteractWithSandboxTool.d.ts.map +1 -0
- package/dist/implementations/addon/InteractWithSandboxTool.js +367 -0
- package/dist/implementations/addon/InteractWithSandboxTool.js.map +1 -0
- package/dist/implementations/addon/KeyframeDetector.d.ts +140 -0
- package/dist/implementations/addon/KeyframeDetector.d.ts.map +1 -0
- package/dist/implementations/addon/KeyframeDetector.js +390 -0
- package/dist/implementations/addon/KeyframeDetector.js.map +1 -0
- package/dist/implementations/addon/ModifySandboxTool.d.ts +62 -0
- package/dist/implementations/addon/ModifySandboxTool.d.ts.map +1 -0
- package/dist/implementations/addon/ModifySandboxTool.js +266 -0
- package/dist/implementations/addon/ModifySandboxTool.js.map +1 -0
- package/dist/implementations/addon/ReactArtifactBuilder.d.ts +27 -0
- package/dist/implementations/addon/ReactArtifactBuilder.d.ts.map +1 -0
- package/dist/implementations/addon/ReactArtifactBuilder.js +198 -0
- package/dist/implementations/addon/ReactArtifactBuilder.js.map +1 -0
- package/dist/implementations/addon/SandboxEventBroadcaster.d.ts +143 -0
- package/dist/implementations/addon/SandboxEventBroadcaster.d.ts.map +1 -0
- package/dist/implementations/addon/SandboxEventBroadcaster.js +258 -0
- package/dist/implementations/addon/SandboxEventBroadcaster.js.map +1 -0
- package/dist/implementations/addon/SandboxIntrospectionTools.d.ts +77 -0
- package/dist/implementations/addon/SandboxIntrospectionTools.d.ts.map +1 -0
- package/dist/implementations/addon/SandboxIntrospectionTools.js +292 -0
- package/dist/implementations/addon/SandboxIntrospectionTools.js.map +1 -0
- package/dist/implementations/addon/SandboxViewServer.d.ts +127 -0
- package/dist/implementations/addon/SandboxViewServer.d.ts.map +1 -0
- package/dist/implementations/addon/SandboxViewServer.js +775 -0
- package/dist/implementations/addon/SandboxViewServer.js.map +1 -0
- package/dist/implementations/addon/ScreenStream.d.ts +149 -0
- package/dist/implementations/addon/ScreenStream.d.ts.map +1 -0
- package/dist/implementations/addon/ScreenStream.js +306 -0
- package/dist/implementations/addon/ScreenStream.js.map +1 -0
- package/dist/implementations/addon/StopSandboxTool.d.ts +61 -0
- package/dist/implementations/addon/StopSandboxTool.d.ts.map +1 -0
- package/dist/implementations/addon/StopSandboxTool.js +252 -0
- package/dist/implementations/addon/StopSandboxTool.js.map +1 -0
- package/dist/implementations/addon/TerminalSandbox.d.ts +111 -0
- package/dist/implementations/addon/TerminalSandbox.d.ts.map +1 -0
- package/dist/implementations/addon/TerminalSandbox.js +345 -0
- package/dist/implementations/addon/TerminalSandbox.js.map +1 -0
- package/dist/implementations/addon/VisualFeedbackBridge.d.ts +367 -0
- package/dist/implementations/addon/VisualFeedbackBridge.d.ts.map +1 -0
- package/dist/implementations/addon/VisualFeedbackBridge.js +888 -0
- package/dist/implementations/addon/VisualFeedbackBridge.js.map +1 -0
- package/dist/implementations/addon/WindowManager.d.ts +138 -0
- package/dist/implementations/addon/WindowManager.d.ts.map +1 -0
- package/dist/implementations/addon/WindowManager.js +276 -0
- package/dist/implementations/addon/WindowManager.js.map +1 -0
- package/dist/implementations/addon/index.d.ts +29 -0
- package/dist/implementations/addon/index.d.ts.map +1 -0
- package/dist/implementations/addon/index.js +29 -0
- package/dist/implementations/addon/index.js.map +1 -0
- package/dist/implementations/addon/injectables/reactIntrospection.d.ts +57 -0
- package/dist/implementations/addon/injectables/reactIntrospection.d.ts.map +1 -0
- package/dist/implementations/addon/injectables/reactIntrospection.js +480 -0
- package/dist/implementations/addon/injectables/reactIntrospection.js.map +1 -0
- package/dist/implementations/addon/terminal-client.html +253 -0
- package/dist/implementations/agent/PRAgentTool.d.ts +37 -0
- package/dist/implementations/agent/PRAgentTool.d.ts.map +1 -0
- package/dist/implementations/agent/PRAgentTool.js +257 -0
- package/dist/implementations/agent/PRAgentTool.js.map +1 -0
- package/dist/implementations/agent/TaskTool.d.ts +76 -0
- package/dist/implementations/agent/TaskTool.d.ts.map +1 -0
- package/dist/implementations/agent/TaskTool.js +424 -0
- package/dist/implementations/agent/TaskTool.js.map +1 -0
- package/dist/implementations/agent/index.d.ts +5 -0
- package/dist/implementations/agent/index.d.ts.map +1 -0
- package/dist/implementations/agent/index.js +3 -0
- package/dist/implementations/agent/index.js.map +1 -0
- package/dist/implementations/execution/BackgroundProcessRegistry.d.ts +68 -0
- package/dist/implementations/execution/BackgroundProcessRegistry.d.ts.map +1 -0
- package/dist/implementations/execution/BackgroundProcessRegistry.js +146 -0
- package/dist/implementations/execution/BackgroundProcessRegistry.js.map +1 -0
- package/dist/implementations/execution/BashOutputTool.d.ts +42 -0
- package/dist/implementations/execution/BashOutputTool.d.ts.map +1 -0
- package/dist/implementations/execution/BashOutputTool.js +168 -0
- package/dist/implementations/execution/BashOutputTool.js.map +1 -0
- package/dist/implementations/execution/CodeExecuteTool.d.ts +31 -0
- package/dist/implementations/execution/CodeExecuteTool.d.ts.map +1 -0
- package/dist/implementations/execution/CodeExecuteTool.js +127 -0
- package/dist/implementations/execution/CodeExecuteTool.js.map +1 -0
- package/dist/implementations/execution/KillShellTool.d.ts +37 -0
- package/dist/implementations/execution/KillShellTool.d.ts.map +1 -0
- package/dist/implementations/execution/KillShellTool.js +144 -0
- package/dist/implementations/execution/KillShellTool.js.map +1 -0
- package/dist/implementations/execution/SearchToolsTool.d.ts +32 -0
- package/dist/implementations/execution/SearchToolsTool.d.ts.map +1 -0
- package/dist/implementations/execution/SearchToolsTool.js +109 -0
- package/dist/implementations/execution/SearchToolsTool.js.map +1 -0
- package/dist/implementations/execution/ShellTool.d.ts +108 -0
- package/dist/implementations/execution/ShellTool.d.ts.map +1 -0
- package/dist/implementations/execution/ShellTool.js +546 -0
- package/dist/implementations/execution/ShellTool.js.map +1 -0
- package/dist/implementations/execution/WorkspaceManagerTool.d.ts +40 -0
- package/dist/implementations/execution/WorkspaceManagerTool.d.ts.map +1 -0
- package/dist/implementations/execution/WorkspaceManagerTool.js +370 -0
- package/dist/implementations/execution/WorkspaceManagerTool.js.map +1 -0
- package/dist/implementations/execution/index.d.ts +13 -0
- package/dist/implementations/execution/index.d.ts.map +1 -0
- package/dist/implementations/execution/index.js +13 -0
- package/dist/implementations/execution/index.js.map +1 -0
- package/dist/implementations/extensions/EndTurnTool.d.ts +62 -0
- package/dist/implementations/extensions/EndTurnTool.d.ts.map +1 -0
- package/dist/implementations/extensions/EndTurnTool.js +172 -0
- package/dist/implementations/extensions/EndTurnTool.js.map +1 -0
- package/dist/implementations/extensions/ResearchBacklogTool.d.ts +37 -0
- package/dist/implementations/extensions/ResearchBacklogTool.d.ts.map +1 -0
- package/dist/implementations/extensions/ResearchBacklogTool.js +102 -0
- package/dist/implementations/extensions/ResearchBacklogTool.js.map +1 -0
- package/dist/implementations/extensions/SkillTool.d.ts +108 -0
- package/dist/implementations/extensions/SkillTool.d.ts.map +1 -0
- package/dist/implementations/extensions/SkillTool.js +351 -0
- package/dist/implementations/extensions/SkillTool.js.map +1 -0
- package/dist/implementations/extensions/SlashCommandTool.d.ts +112 -0
- package/dist/implementations/extensions/SlashCommandTool.d.ts.map +1 -0
- package/dist/implementations/extensions/SlashCommandTool.js +315 -0
- package/dist/implementations/extensions/SlashCommandTool.js.map +1 -0
- package/dist/implementations/extensions/index.d.ts +14 -0
- package/dist/implementations/extensions/index.d.ts.map +1 -0
- package/dist/implementations/extensions/index.js +10 -0
- package/dist/implementations/extensions/index.js.map +1 -0
- package/dist/implementations/file/EditTool.d.ts +232 -0
- package/dist/implementations/file/EditTool.d.ts.map +1 -0
- package/dist/implementations/file/EditTool.js +707 -0
- package/dist/implementations/file/EditTool.js.map +1 -0
- package/dist/implementations/file/ReadFileTool.d.ts +49 -0
- package/dist/implementations/file/ReadFileTool.d.ts.map +1 -0
- package/dist/implementations/file/ReadFileTool.js +225 -0
- package/dist/implementations/file/ReadFileTool.js.map +1 -0
- package/dist/implementations/file/WriteBinaryTool.d.ts +21 -0
- package/dist/implementations/file/WriteBinaryTool.d.ts.map +1 -0
- package/dist/implementations/file/WriteBinaryTool.js +153 -0
- package/dist/implementations/file/WriteBinaryTool.js.map +1 -0
- package/dist/implementations/file/WriteFileTool.d.ts +41 -0
- package/dist/implementations/file/WriteFileTool.d.ts.map +1 -0
- package/dist/implementations/file/WriteFileTool.js +220 -0
- package/dist/implementations/file/WriteFileTool.js.map +1 -0
- package/dist/implementations/file/index.d.ts +8 -0
- package/dist/implementations/file/index.d.ts.map +1 -0
- package/dist/implementations/file/index.js +8 -0
- package/dist/implementations/file/index.js.map +1 -0
- package/dist/implementations/historical/GetConversationSegmentTool.d.ts +44 -0
- package/dist/implementations/historical/GetConversationSegmentTool.d.ts.map +1 -0
- package/dist/implementations/historical/GetConversationSegmentTool.js +220 -0
- package/dist/implementations/historical/GetConversationSegmentTool.js.map +1 -0
- package/dist/implementations/historical/ListCompactionBoundariesTool.d.ts +36 -0
- package/dist/implementations/historical/ListCompactionBoundariesTool.d.ts.map +1 -0
- package/dist/implementations/historical/ListCompactionBoundariesTool.js +174 -0
- package/dist/implementations/historical/ListCompactionBoundariesTool.js.map +1 -0
- package/dist/implementations/historical/ListSessionsTool.d.ts +38 -0
- package/dist/implementations/historical/ListSessionsTool.d.ts.map +1 -0
- package/dist/implementations/historical/ListSessionsTool.js +140 -0
- package/dist/implementations/historical/ListSessionsTool.js.map +1 -0
- package/dist/implementations/historical/LoadSessionTool.d.ts +39 -0
- package/dist/implementations/historical/LoadSessionTool.d.ts.map +1 -0
- package/dist/implementations/historical/LoadSessionTool.js +171 -0
- package/dist/implementations/historical/LoadSessionTool.js.map +1 -0
- package/dist/implementations/historical/RequestHistoricalContextTool.d.ts +46 -0
- package/dist/implementations/historical/RequestHistoricalContextTool.d.ts.map +1 -0
- package/dist/implementations/historical/RequestHistoricalContextTool.js +224 -0
- package/dist/implementations/historical/RequestHistoricalContextTool.js.map +1 -0
- package/dist/implementations/historical/SearchConversationHistoryTool.d.ts +51 -0
- package/dist/implementations/historical/SearchConversationHistoryTool.d.ts.map +1 -0
- package/dist/implementations/historical/SearchConversationHistoryTool.js +306 -0
- package/dist/implementations/historical/SearchConversationHistoryTool.js.map +1 -0
- package/dist/implementations/historical/index.d.ts +12 -0
- package/dist/implementations/historical/index.d.ts.map +1 -0
- package/dist/implementations/historical/index.js +12 -0
- package/dist/implementations/historical/index.js.map +1 -0
- package/dist/implementations/index.d.ts +16 -0
- package/dist/implementations/index.d.ts.map +1 -0
- package/dist/implementations/index.js +28 -0
- package/dist/implementations/index.js.map +1 -0
- package/dist/implementations/mcp/DiscoveredMcpTool.d.ts +58 -0
- package/dist/implementations/mcp/DiscoveredMcpTool.d.ts.map +1 -0
- package/dist/implementations/mcp/DiscoveredMcpTool.js +269 -0
- package/dist/implementations/mcp/DiscoveredMcpTool.js.map +1 -0
- package/dist/implementations/mcp/index.d.ts +9 -0
- package/dist/implementations/mcp/index.d.ts.map +1 -0
- package/dist/implementations/mcp/index.js +8 -0
- package/dist/implementations/mcp/index.js.map +1 -0
- package/dist/implementations/notebook/NotebookEditTool.d.ts +96 -0
- package/dist/implementations/notebook/NotebookEditTool.d.ts.map +1 -0
- package/dist/implementations/notebook/NotebookEditTool.js +390 -0
- package/dist/implementations/notebook/NotebookEditTool.js.map +1 -0
- package/dist/implementations/notebook/index.d.ts +7 -0
- package/dist/implementations/notebook/index.d.ts.map +1 -0
- package/dist/implementations/notebook/index.js +7 -0
- package/dist/implementations/notebook/index.js.map +1 -0
- package/dist/implementations/search/GlobTool.d.ts +73 -0
- package/dist/implementations/search/GlobTool.d.ts.map +1 -0
- package/dist/implementations/search/GlobTool.js +213 -0
- package/dist/implementations/search/GlobTool.js.map +1 -0
- package/dist/implementations/search/GrepTool.d.ts +102 -0
- package/dist/implementations/search/GrepTool.d.ts.map +1 -0
- package/dist/implementations/search/GrepTool.js +754 -0
- package/dist/implementations/search/GrepTool.js.map +1 -0
- package/dist/implementations/search/index.d.ts +6 -0
- package/dist/implementations/search/index.d.ts.map +1 -0
- package/dist/implementations/search/index.js +6 -0
- package/dist/implementations/search/index.js.map +1 -0
- package/dist/implementations/tmux/TmuxSessionTool.d.ts +82 -0
- package/dist/implementations/tmux/TmuxSessionTool.d.ts.map +1 -0
- package/dist/implementations/tmux/TmuxSessionTool.js +371 -0
- package/dist/implementations/tmux/TmuxSessionTool.js.map +1 -0
- package/dist/implementations/tmux/TmuxViewServer.d.ts +86 -0
- package/dist/implementations/tmux/TmuxViewServer.d.ts.map +1 -0
- package/dist/implementations/tmux/TmuxViewServer.js +480 -0
- package/dist/implementations/tmux/TmuxViewServer.js.map +1 -0
- package/dist/implementations/tmux/index.d.ts +6 -0
- package/dist/implementations/tmux/index.d.ts.map +1 -0
- package/dist/implementations/tmux/index.js +6 -0
- package/dist/implementations/tmux/index.js.map +1 -0
- package/dist/implementations/ui/AskUserQuestionTool.d.ts +77 -0
- package/dist/implementations/ui/AskUserQuestionTool.d.ts.map +1 -0
- package/dist/implementations/ui/AskUserQuestionTool.js +241 -0
- package/dist/implementations/ui/AskUserQuestionTool.js.map +1 -0
- package/dist/implementations/ui/ExitPlanModeTool.d.ts +44 -0
- package/dist/implementations/ui/ExitPlanModeTool.d.ts.map +1 -0
- package/dist/implementations/ui/ExitPlanModeTool.js +150 -0
- package/dist/implementations/ui/ExitPlanModeTool.js.map +1 -0
- package/dist/implementations/ui/TodoWriteTool.d.ts +59 -0
- package/dist/implementations/ui/TodoWriteTool.d.ts.map +1 -0
- package/dist/implementations/ui/TodoWriteTool.js +315 -0
- package/dist/implementations/ui/TodoWriteTool.js.map +1 -0
- package/dist/implementations/ui/index.d.ts +9 -0
- package/dist/implementations/ui/index.d.ts.map +1 -0
- package/dist/implementations/ui/index.js +9 -0
- package/dist/implementations/ui/index.js.map +1 -0
- package/dist/implementations/web/BrowseTool.d.ts +43 -0
- package/dist/implementations/web/BrowseTool.d.ts.map +1 -0
- package/dist/implementations/web/BrowseTool.js +181 -0
- package/dist/implementations/web/BrowseTool.js.map +1 -0
- package/dist/implementations/web/SandboxTransferTool.d.ts +30 -0
- package/dist/implementations/web/SandboxTransferTool.d.ts.map +1 -0
- package/dist/implementations/web/SandboxTransferTool.js +261 -0
- package/dist/implementations/web/SandboxTransferTool.js.map +1 -0
- package/dist/implementations/web/WebFetchTool.d.ts +93 -0
- package/dist/implementations/web/WebFetchTool.d.ts.map +1 -0
- package/dist/implementations/web/WebFetchTool.js +484 -0
- package/dist/implementations/web/WebFetchTool.js.map +1 -0
- package/dist/implementations/web/WebSearchTool.d.ts +53 -0
- package/dist/implementations/web/WebSearchTool.d.ts.map +1 -0
- package/dist/implementations/web/WebSearchTool.js +227 -0
- package/dist/implementations/web/WebSearchTool.js.map +1 -0
- package/dist/implementations/web/escalateDirective.d.ts +11 -0
- package/dist/implementations/web/escalateDirective.d.ts.map +1 -0
- package/dist/implementations/web/escalateDirective.js +20 -0
- package/dist/implementations/web/escalateDirective.js.map +1 -0
- package/dist/implementations/web/index.d.ts +10 -0
- package/dist/implementations/web/index.d.ts.map +1 -0
- package/dist/implementations/web/index.js +10 -0
- package/dist/implementations/web/index.js.map +1 -0
- package/dist/implementations/web/webBackends.d.ts +65 -0
- package/dist/implementations/web/webBackends.d.ts.map +1 -0
- package/dist/implementations/web/webBackends.js +430 -0
- package/dist/implementations/web/webBackends.js.map +1 -0
- package/dist/implementations/web/webFetchRequestInit.d.ts +9 -0
- package/dist/implementations/web/webFetchRequestInit.d.ts.map +1 -0
- package/dist/implementations/web/webFetchRequestInit.js +21 -0
- package/dist/implementations/web/webFetchRequestInit.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/utils/ArtifactRegistry.d.ts +138 -0
- package/dist/utils/ArtifactRegistry.d.ts.map +1 -0
- package/dist/utils/ArtifactRegistry.js +259 -0
- package/dist/utils/ArtifactRegistry.js.map +1 -0
- package/dist/utils/ChromiumBrowserManager.d.ts +56 -0
- package/dist/utils/ChromiumBrowserManager.d.ts.map +1 -0
- package/dist/utils/ChromiumBrowserManager.js +243 -0
- package/dist/utils/ChromiumBrowserManager.js.map +1 -0
- package/dist/utils/FileUtils.d.ts +81 -0
- package/dist/utils/FileUtils.d.ts.map +1 -0
- package/dist/utils/FileUtils.js +148 -0
- package/dist/utils/FileUtils.js.map +1 -0
- package/dist/utils/GitPolicy.d.ts +70 -0
- package/dist/utils/GitPolicy.d.ts.map +1 -0
- package/dist/utils/GitPolicy.js +166 -0
- package/dist/utils/GitPolicy.js.map +1 -0
- package/dist/utils/GitUtils.d.ts +18 -0
- package/dist/utils/GitUtils.d.ts.map +1 -0
- package/dist/utils/GitUtils.js +62 -0
- package/dist/utils/GitUtils.js.map +1 -0
- package/dist/utils/SandboxRegistry.d.ts +110 -0
- package/dist/utils/SandboxRegistry.d.ts.map +1 -0
- package/dist/utils/SandboxRegistry.js +220 -0
- package/dist/utils/SandboxRegistry.js.map +1 -0
- package/dist/utils/SchemaValidator.d.ts +21 -0
- package/dist/utils/SchemaValidator.d.ts.map +1 -0
- package/dist/utils/SchemaValidator.js +67 -0
- package/dist/utils/SchemaValidator.js.map +1 -0
- package/dist/utils/SessionLock.d.ts +96 -0
- package/dist/utils/SessionLock.d.ts.map +1 -0
- package/dist/utils/SessionLock.js +276 -0
- package/dist/utils/SessionLock.js.map +1 -0
- package/dist/utils/SessionPersistence.d.ts +89 -0
- package/dist/utils/SessionPersistence.d.ts.map +1 -0
- package/dist/utils/SessionPersistence.js +244 -0
- package/dist/utils/SessionPersistence.js.map +1 -0
- package/dist/utils/TextUtils.d.ts +77 -0
- package/dist/utils/TextUtils.d.ts.map +1 -0
- package/dist/utils/TextUtils.js +112 -0
- package/dist/utils/TextUtils.js.map +1 -0
- package/dist/utils/TmuxCapture.d.ts +94 -0
- package/dist/utils/TmuxCapture.d.ts.map +1 -0
- package/dist/utils/TmuxCapture.js +131 -0
- package/dist/utils/TmuxCapture.js.map +1 -0
- package/dist/utils/TmuxManager.d.ts +65 -0
- package/dist/utils/TmuxManager.d.ts.map +1 -0
- package/dist/utils/TmuxManager.js +304 -0
- package/dist/utils/TmuxManager.js.map +1 -0
- package/dist/utils/autoResearchPlanGate.d.ts +10 -0
- package/dist/utils/autoResearchPlanGate.d.ts.map +1 -0
- package/dist/utils/autoResearchPlanGate.js +57 -0
- package/dist/utils/autoResearchPlanGate.js.map +1 -0
- package/dist/utils/index.d.ts +19 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +13 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Terminal Sandbox
|
|
3
|
+
*
|
|
4
|
+
* Provides visual terminal emulation using xterm.js
|
|
5
|
+
* Allows model to see and interact with shell sessions
|
|
6
|
+
*
|
|
7
|
+
* Features:
|
|
8
|
+
* - Visual terminal display (xterm.js in browser)
|
|
9
|
+
* - Full PTY support (bash, zsh, etc.)
|
|
10
|
+
* - Screenshot capture of terminal output
|
|
11
|
+
* - Direct typing/command execution
|
|
12
|
+
* - WebSocket communication
|
|
13
|
+
*/
|
|
14
|
+
import { chromium } from 'playwright';
|
|
15
|
+
import { spawn } from 'child_process';
|
|
16
|
+
import express from 'express';
|
|
17
|
+
import * as http from 'http';
|
|
18
|
+
import { WebSocketServer } from 'ws';
|
|
19
|
+
import { join, dirname } from 'path';
|
|
20
|
+
import { promises as fs } from 'fs';
|
|
21
|
+
import { fileURLToPath } from 'url';
|
|
22
|
+
// ES module equivalent of __dirname
|
|
23
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
24
|
+
const __dirname = dirname(__filename);
|
|
25
|
+
/**
|
|
26
|
+
* TerminalSandbox - Visual terminal emulation
|
|
27
|
+
*
|
|
28
|
+
* Combines:
|
|
29
|
+
* - PTY process (actual shell)
|
|
30
|
+
* - xterm.js (visual display in browser)
|
|
31
|
+
* - Playwright (browser automation for screenshots)
|
|
32
|
+
* - WebSocket (real-time communication)
|
|
33
|
+
*/
|
|
34
|
+
export class TerminalSandbox {
|
|
35
|
+
shell = null;
|
|
36
|
+
browser = null;
|
|
37
|
+
page = null;
|
|
38
|
+
server = null;
|
|
39
|
+
wss = null;
|
|
40
|
+
terminalUrl = '';
|
|
41
|
+
output = '';
|
|
42
|
+
config;
|
|
43
|
+
// Port for WebSocket server
|
|
44
|
+
wsPort = 3001;
|
|
45
|
+
constructor(config = {}) {
|
|
46
|
+
this.config = {
|
|
47
|
+
shell: config.shell || process.env.SHELL || '/bin/bash',
|
|
48
|
+
cwd: config.cwd || process.cwd(),
|
|
49
|
+
env: config.env || process.env,
|
|
50
|
+
headed: config.headed ?? false,
|
|
51
|
+
rows: config.rows || 24,
|
|
52
|
+
cols: config.cols || 80
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Initialize terminal sandbox
|
|
57
|
+
* 1. Start shell process (PTY)
|
|
58
|
+
* 2. Start WebSocket server for communication
|
|
59
|
+
* 3. Launch browser with xterm.js client
|
|
60
|
+
*/
|
|
61
|
+
async initialize() {
|
|
62
|
+
// 1. Start shell process
|
|
63
|
+
await this.startShell();
|
|
64
|
+
// 2. Start WebSocket server
|
|
65
|
+
await this.startWebSocketServer();
|
|
66
|
+
// 3. Launch browser with terminal client
|
|
67
|
+
await this.startBrowser();
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Start shell process (PTY emulation)
|
|
71
|
+
*/
|
|
72
|
+
async startShell() {
|
|
73
|
+
this.shell = spawn(this.config.shell, [], {
|
|
74
|
+
cwd: this.config.cwd,
|
|
75
|
+
env: this.config.env,
|
|
76
|
+
stdio: ['pipe', 'pipe', 'pipe']
|
|
77
|
+
});
|
|
78
|
+
// Capture output
|
|
79
|
+
this.shell.stdout?.on('data', (data) => {
|
|
80
|
+
const text = data.toString();
|
|
81
|
+
this.output += text;
|
|
82
|
+
// Broadcast to WebSocket clients
|
|
83
|
+
this.broadcastToClients(text);
|
|
84
|
+
});
|
|
85
|
+
this.shell.stderr?.on('data', (data) => {
|
|
86
|
+
const text = data.toString();
|
|
87
|
+
this.output += text;
|
|
88
|
+
this.broadcastToClients(text);
|
|
89
|
+
});
|
|
90
|
+
this.shell.on('exit', (code) => {
|
|
91
|
+
console.log(`Shell exited with code: ${code}`);
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Start WebSocket server for terminal I/O
|
|
96
|
+
*/
|
|
97
|
+
async startWebSocketServer() {
|
|
98
|
+
const app = express();
|
|
99
|
+
// Serve static terminal HTML client
|
|
100
|
+
const clientPath = join(__dirname, 'terminal-client.html');
|
|
101
|
+
app.get('/', async (req, res) => {
|
|
102
|
+
try {
|
|
103
|
+
const html = await fs.readFile(clientPath, 'utf-8');
|
|
104
|
+
res.send(html);
|
|
105
|
+
}
|
|
106
|
+
catch (error) {
|
|
107
|
+
// If file doesn't exist, serve inline HTML
|
|
108
|
+
res.send(this.getInlineTerminalHTML());
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
this.server = http.createServer(app);
|
|
112
|
+
// WebSocket server for terminal communication
|
|
113
|
+
this.wss = new WebSocketServer({ server: this.server });
|
|
114
|
+
this.wss.on('connection', (ws) => {
|
|
115
|
+
console.log('Terminal client connected');
|
|
116
|
+
// Send current output to new client
|
|
117
|
+
ws.send(this.output);
|
|
118
|
+
// Handle input from client (user typing)
|
|
119
|
+
ws.on('message', (data) => {
|
|
120
|
+
const input = data.toString();
|
|
121
|
+
// Write to shell stdin
|
|
122
|
+
if (this.shell && this.shell.stdin) {
|
|
123
|
+
this.shell.stdin.write(input);
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
ws.on('close', () => {
|
|
127
|
+
console.log('Terminal client disconnected');
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
// Start server
|
|
131
|
+
await new Promise((resolve) => {
|
|
132
|
+
this.server.listen(this.wsPort, () => {
|
|
133
|
+
this.terminalUrl = `http://localhost:${this.wsPort}`;
|
|
134
|
+
console.log(`Terminal server running at ${this.terminalUrl}`);
|
|
135
|
+
resolve();
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Broadcast output to all connected WebSocket clients
|
|
141
|
+
*/
|
|
142
|
+
broadcastToClients(data) {
|
|
143
|
+
if (!this.wss)
|
|
144
|
+
return;
|
|
145
|
+
this.wss.clients.forEach((client) => {
|
|
146
|
+
if (client.readyState === 1) { // WebSocket.OPEN
|
|
147
|
+
client.send(data);
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Start browser to display terminal
|
|
153
|
+
*/
|
|
154
|
+
async startBrowser() {
|
|
155
|
+
const launchOptions = {
|
|
156
|
+
headless: !this.config.headed,
|
|
157
|
+
slowMo: 50,
|
|
158
|
+
args: ['--no-sandbox', '--disable-setuid-sandbox']
|
|
159
|
+
};
|
|
160
|
+
if (this.config.executablePath) {
|
|
161
|
+
launchOptions.executablePath = this.config.executablePath;
|
|
162
|
+
}
|
|
163
|
+
this.browser = await chromium.launch(launchOptions);
|
|
164
|
+
this.page = await this.browser.newPage();
|
|
165
|
+
// Navigate to terminal client
|
|
166
|
+
await this.page.goto(this.terminalUrl);
|
|
167
|
+
// Wait for terminal to be ready
|
|
168
|
+
await this.page.waitForTimeout(1000);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Type command into terminal
|
|
172
|
+
* @param text Text to type
|
|
173
|
+
*/
|
|
174
|
+
async type(text) {
|
|
175
|
+
if (!this.page) {
|
|
176
|
+
throw new Error('Terminal not initialized');
|
|
177
|
+
}
|
|
178
|
+
await this.page.keyboard.type(text);
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Execute command in terminal
|
|
182
|
+
* @param command Command to execute
|
|
183
|
+
*/
|
|
184
|
+
async executeCommand(command) {
|
|
185
|
+
await this.type(command);
|
|
186
|
+
await this.page.keyboard.press('Enter');
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Get screenshot of terminal
|
|
190
|
+
*/
|
|
191
|
+
async getScreenshot() {
|
|
192
|
+
if (!this.page) {
|
|
193
|
+
throw new Error('Terminal not initialized');
|
|
194
|
+
}
|
|
195
|
+
return await this.page.screenshot({ type: 'png' });
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Capture current terminal state
|
|
199
|
+
*/
|
|
200
|
+
async captureSnapshot() {
|
|
201
|
+
const screenshot = await this.getScreenshot();
|
|
202
|
+
return {
|
|
203
|
+
screenshot: screenshot.toString('base64'),
|
|
204
|
+
output: this.output,
|
|
205
|
+
cwd: this.config.cwd,
|
|
206
|
+
timestamp: Date.now()
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Clear terminal output
|
|
211
|
+
*/
|
|
212
|
+
async clear() {
|
|
213
|
+
if (!this.page) {
|
|
214
|
+
throw new Error('Terminal not initialized');
|
|
215
|
+
}
|
|
216
|
+
await this.page.keyboard.press('Control+L');
|
|
217
|
+
this.output = '';
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Get current output
|
|
221
|
+
*/
|
|
222
|
+
getOutput() {
|
|
223
|
+
return this.output;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Cleanup resources
|
|
227
|
+
*/
|
|
228
|
+
async close() {
|
|
229
|
+
// Close shell
|
|
230
|
+
if (this.shell) {
|
|
231
|
+
this.shell.kill();
|
|
232
|
+
this.shell = null;
|
|
233
|
+
}
|
|
234
|
+
// Close browser
|
|
235
|
+
if (this.page) {
|
|
236
|
+
await this.page.close();
|
|
237
|
+
this.page = null;
|
|
238
|
+
}
|
|
239
|
+
if (this.browser) {
|
|
240
|
+
await this.browser.close();
|
|
241
|
+
this.browser = null;
|
|
242
|
+
}
|
|
243
|
+
// Close WebSocket server
|
|
244
|
+
if (this.wss) {
|
|
245
|
+
this.wss.close();
|
|
246
|
+
this.wss = null;
|
|
247
|
+
}
|
|
248
|
+
// Close HTTP server
|
|
249
|
+
if (this.server) {
|
|
250
|
+
this.server.close();
|
|
251
|
+
this.server = null;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Get inline terminal HTML client (fallback if file doesn't exist)
|
|
256
|
+
*/
|
|
257
|
+
getInlineTerminalHTML() {
|
|
258
|
+
return `
|
|
259
|
+
<!DOCTYPE html>
|
|
260
|
+
<html>
|
|
261
|
+
<head>
|
|
262
|
+
<meta charset="UTF-8">
|
|
263
|
+
<title>Terminal</title>
|
|
264
|
+
<link rel="stylesheet" href="https://unpkg.com/xterm@5.0.0/css/xterm.css" />
|
|
265
|
+
<style>
|
|
266
|
+
body {
|
|
267
|
+
margin: 0;
|
|
268
|
+
padding: 20px;
|
|
269
|
+
background: #000;
|
|
270
|
+
font-family: monospace;
|
|
271
|
+
}
|
|
272
|
+
#terminal {
|
|
273
|
+
width: 100%;
|
|
274
|
+
height: 100vh;
|
|
275
|
+
}
|
|
276
|
+
</style>
|
|
277
|
+
</head>
|
|
278
|
+
<body>
|
|
279
|
+
<div id="terminal"></div>
|
|
280
|
+
|
|
281
|
+
<script src="https://unpkg.com/xterm@5.0.0/lib/xterm.js"></script>
|
|
282
|
+
<script src="https://unpkg.com/xterm-addon-fit@0.6.0/lib/xterm-addon-fit.js"></script>
|
|
283
|
+
|
|
284
|
+
<script>
|
|
285
|
+
// Create terminal
|
|
286
|
+
const term = new Terminal({
|
|
287
|
+
cursorBlink: true,
|
|
288
|
+
fontSize: 14,
|
|
289
|
+
fontFamily: 'Menlo, Monaco, "Courier New", monospace',
|
|
290
|
+
theme: {
|
|
291
|
+
background: '#000000',
|
|
292
|
+
foreground: '#ffffff'
|
|
293
|
+
},
|
|
294
|
+
rows: ${this.config.rows},
|
|
295
|
+
cols: ${this.config.cols}
|
|
296
|
+
});
|
|
297
|
+
|
|
298
|
+
// Attach to DOM
|
|
299
|
+
term.open(document.getElementById('terminal'));
|
|
300
|
+
|
|
301
|
+
// Fit to window
|
|
302
|
+
const fitAddon = new FitAddon.FitAddon();
|
|
303
|
+
term.loadAddon(fitAddon);
|
|
304
|
+
fitAddon.fit();
|
|
305
|
+
|
|
306
|
+
// Connect to WebSocket
|
|
307
|
+
const ws = new WebSocket('ws://localhost:${this.wsPort}');
|
|
308
|
+
|
|
309
|
+
ws.onopen = () => {
|
|
310
|
+
console.log('Connected to terminal server');
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
ws.onmessage = (event) => {
|
|
314
|
+
// Write server output to terminal
|
|
315
|
+
term.write(event.data);
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
ws.onerror = (error) => {
|
|
319
|
+
console.error('WebSocket error:', error);
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
ws.onclose = () => {
|
|
323
|
+
console.log('Disconnected from terminal server');
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
// Send user input to server
|
|
327
|
+
term.onData((data) => {
|
|
328
|
+
ws.send(data);
|
|
329
|
+
});
|
|
330
|
+
|
|
331
|
+
// Handle window resize
|
|
332
|
+
window.addEventListener('resize', () => {
|
|
333
|
+
fitAddon.fit();
|
|
334
|
+
});
|
|
335
|
+
</script>
|
|
336
|
+
</body>
|
|
337
|
+
</html>
|
|
338
|
+
`;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Singleton instance for convenience
|
|
343
|
+
*/
|
|
344
|
+
export const terminalSandbox = new TerminalSandbox();
|
|
345
|
+
//# sourceMappingURL=TerminalSandbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TerminalSand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