- Added steps to pull necessary Docker images for sandbox testing in both CI workflows. - Updated the AI test execution to utilize sandbox configurations, ensuring proper environment setup. - Introduced sandbox initialization in the Assistant's Stream method, allowing for execution of coding agents like Claude and Cursor. - Enhanced context management to support sandbox execution, improving flexibility in handling agent operations.
1.4 KiB
1.4 KiB
Cursor Executor
Status
Not Implemented - This is a placeholder for future Cursor CLI integration.
Planned Features
The Cursor executor will provide similar functionality to the Claude executor:
- Execute Cursor CLI in a Docker sandbox container
- Stream output in real-time
- File system operations (ReadFile, WriteFile, ListDir)
- Command execution (Exec)
- Integration with Yao's MCP servers
Configuration
When implemented, the Cursor executor will be configured in assistant package.yao:
{
"name": "Coder Assistant",
"connector": "deepseek.v3",
"sandbox": {
"command": "cursor", // Use Cursor CLI
"image": "yaoapp/sandbox-cursor:latest",
"timeout": "10m"
}
}
Implementation Notes
The implementation should follow the same pattern as claude/executor.go:
- Create
cursor/executor.goimplementing thesandbox.Executorinterface - Create
cursor/command.gofor building Cursor CLI commands - Create
cursor/types.gofor Cursor-specific types - Add appropriate tests
Docker Image
A yaoapp/sandbox-cursor Docker image will need to be created with:
- Ubuntu 24.04 LTS base
- Node.js 22 LTS
- Python 3.12
- Cursor CLI installed and configured