yao/agent/sandbox/v2/claude/plat_macos.go
Max 610e6b3506 feat(stream): introduce execute message handling for sandbox CLI actions
- Added support for "execute" message type to track tool execution observations within the sandbox environment.
- Implemented handling for execute messages in the stream processing, allowing for real-time updates on tool execution status.
- Enhanced the stream parser to manage the lifecycle of execute messages, including merging input and output data.
- Updated the stream handler to accommodate new message types, improving overall message processing capabilities.
- Refactored related tests to ensure coverage for the new execute message functionality, enhancing reliability.
2026-03-20 22:48:36 +08:00

17 lines
535 B
Go

package claude
// darwinPlatform overrides macOS-specific behavior.
// Most methods are inherited from posixBase.
type darwinPlatform struct {
posixBase
}
func (p *darwinPlatform) EnvPromptNote() string {
return `
- **Desktop Environment**: You have access to the macOS desktop (GUI applications, browsers, Finder, etc.)
- **Important**: When you launch GUI applications, do NOT close them unless explicitly asked`
}
func (p *darwinPlatform) BuildScript(in scriptInput) (string, []byte) {
return p.buildBashScript(in, ""), nil
}