git

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AllowedRoots []string
}

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

func NewExecutor

func NewExecutor(config Config) (*Executor, error)

func (*Executor) Execute

func (e *Executor) Execute(ctx context.Context, call core.ToolCall) (core.ToolResult, error)

type Request

type Request struct {
	Action string `json:"action"`
	Repo   string `json:"repo"`
	Ref    string `json:"ref,omitempty"`
	Path   string `json:"path,omitempty"`
}

type Response

type Response struct {
	Action  string `json:"action"`
	Repo    string `json:"repo"`
	Output  string `json:"output"`
	ExitErr string `json:"exit_error,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL