Versions in this module Expand all Collapse all v0 v0.3.1 Aug 27, 2026 v0.3.0 Aug 27, 2026 Changes in this version + type BackendFactory func(runtime interface{}) BackendProtocol + type BackendProtocol interface + Edit func(ctx context.Context, path string, oldStr, newStr string, replaceAll bool) (*EditResult, error) + Glob func(ctx context.Context, pattern string, basePath string) ([]string, error) + Grep func(ctx context.Context, pattern string, path string, globFilter string) ([]GrepMatch, error) + List func(ctx context.Context, path string) ([]FileInfo, error) + Read func(ctx context.Context, path string, offset, limit int) (string, error) + Write func(ctx context.Context, path string, content string) (*WriteResult, error) + type CompositeBackend struct + func NewCompositeBackend(defaultBackend BackendProtocol) *CompositeBackend + func (b *CompositeBackend) AddRoute(prefix string, backend BackendProtocol) + func (b *CompositeBackend) Edit(ctx context.Context, path string, oldStr, newStr string, replaceAll bool) (*EditResult, error) + func (b *CompositeBackend) Execute(ctx context.Context, command string) (*ExecuteResult, error) + func (b *CompositeBackend) Glob(ctx context.Context, pattern string, basePath string) ([]string, error) + func (b *CompositeBackend) Grep(ctx context.Context, pattern string, path string, globFilter string) ([]GrepMatch, error) + func (b *CompositeBackend) List(ctx context.Context, path string) ([]FileInfo, error) + func (b *CompositeBackend) Read(ctx context.Context, path string, offset, limit int) (string, error) + func (b *CompositeBackend) SupportsExecution() bool + func (b *CompositeBackend) Write(ctx context.Context, path string, content string) (*WriteResult, error) + type EditResult struct + Error string + FilesUpdate map[string]*FileData + Occurrences int + Path string + type ExecuteResult struct + ExitCode int + Output string + Truncated bool + type FileData struct + Content []string + CreatedAt string + ModifiedAt string + type FileInfo struct + IsDir bool + ModifiedAt time.Time + Path string + Size int64 + type GrepMatch struct + Line string + LineNumber int + Path string + type SandboxBackendProtocol interface + Execute func(ctx context.Context, command string) (*ExecuteResult, error) + type StateBackend struct + func NewStateBackend(getState func() map[string]interface{}) *StateBackend + func (b *StateBackend) Edit(ctx context.Context, path string, oldStr, newStr string, replaceAll bool) (*EditResult, error) + func (b *StateBackend) Glob(ctx context.Context, pattern string, basePath string) ([]string, error) + func (b *StateBackend) Grep(ctx context.Context, pattern string, path string, globFilter string) ([]GrepMatch, error) + func (b *StateBackend) List(ctx context.Context, path string) ([]FileInfo, error) + func (b *StateBackend) Read(ctx context.Context, path string, offset, limit int) (string, error) + func (b *StateBackend) Write(ctx context.Context, path string, content string) (*WriteResult, error) + type StoreBackend struct + func NewStoreBackend(store persistence.Store, namespace string) *StoreBackend + func (b *StoreBackend) Edit(ctx context.Context, path string, oldStr, newStr string, replaceAll bool) (*EditResult, error) + func (b *StoreBackend) Glob(ctx context.Context, pattern string, basePath string) ([]string, error) + func (b *StoreBackend) Grep(ctx context.Context, pattern string, path string, globFilter string) ([]GrepMatch, error) + func (b *StoreBackend) List(ctx context.Context, path string) ([]FileInfo, error) + func (b *StoreBackend) Read(ctx context.Context, path string, offset, limit int) (string, error) + func (b *StoreBackend) Write(ctx context.Context, path string, content string) (*WriteResult, error) + type WriteResult struct + Error string + FilesUpdate map[string]*FileData + Path string