mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 09:44:21 +01:00
add initial git support
This commit is contained in:
@@ -22,7 +22,7 @@ type BashPermissionsParams struct {
|
||||
Timeout int `json:"timeout"`
|
||||
}
|
||||
|
||||
type BashToolResponseMetadata struct {
|
||||
type BashResponseMetadata struct {
|
||||
Took int64 `json:"took"`
|
||||
}
|
||||
type bashTool struct {
|
||||
@@ -310,7 +310,7 @@ func (b *bashTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
|
||||
stdout += "\n" + errorMessage
|
||||
}
|
||||
|
||||
metadata := BashToolResponseMetadata{
|
||||
metadata := BashResponseMetadata{
|
||||
Took: took,
|
||||
}
|
||||
if stdout == "" {
|
||||
|
||||
Reference in New Issue
Block a user