- 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.
17 lines
535 B
Go
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
|
|
}
|