local

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package local implements the daemon-host execution sandbox provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(opts ...Option) sandbox.Provider

NewProvider returns the local daemon-host sandbox provider.

func NewRegistry

func NewRegistry(opts ...Option) (*sandbox.Registry, error)

NewRegistry returns a provider registry with local registered as the default backend.

Types

type Option

type Option func(*localProvider)

Option customizes the local provider.

func WithLogger

func WithLogger(logger *slog.Logger) Option

WithLogger directs provider-created launcher and tool-host diagnostics to logger.

func WithPermissionMode

func WithPermissionMode(mode aghconfig.PermissionMode) Option

WithPermissionMode configures the local tool host permission policy.

func WithProcessRegistry

func WithProcessRegistry(registry *toolruntime.Registry) Option

WithProcessRegistry injects the shared process registry used for tool-host terminals.

func WithStopTimeout

func WithStopTimeout(timeout time.Duration) Option

WithStopTimeout configures how long local launcher stop waits before escalation.

Jump to

Keyboard shortcuts

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