mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 05:29:53 +00:00
add initial git support
This commit is contained in:
parent
0697dcc1d9
commit
bd2ec29b65
19 changed files with 791 additions and 176 deletions
|
|
@ -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 == "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue