agentfiles

package
v2.31.6 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WindowsDriveRegex = regexp.MustCompile(`^[a-zA-Z]:\\$`)

Functions

This section is empty.

Types

type API

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

API exposes file-related operations performed through the agent.

func NewAPI

func NewAPI(logger slog.Logger, filesystem afero.Fs) *API

func (*API) HandleEditFiles

func (api *API) HandleEditFiles(rw http.ResponseWriter, r *http.Request)

func (*API) HandleLS

func (api *API) HandleLS(rw http.ResponseWriter, r *http.Request)

func (*API) HandleReadFile

func (api *API) HandleReadFile(rw http.ResponseWriter, r *http.Request)

func (*API) HandleWriteFile

func (api *API) HandleWriteFile(rw http.ResponseWriter, r *http.Request)

func (*API) Routes

func (api *API) Routes() http.Handler

Routes returns the HTTP handler for file-related routes.

type HTTPResponseCode

type HTTPResponseCode = int

Jump to

Keyboard shortcuts

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