tools

package
v0.1.50 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultForegroundShellWait added in v0.1.45

func DefaultForegroundShellWait() int

func MaxForegroundShellWait added in v0.1.45

func MaxForegroundShellWait() int

func MaxForegroundShellWaitCeilingMS added in v0.1.45

func MaxForegroundShellWaitCeilingMS() int

func WithApprovedExternalReadRoots added in v0.1.24

func WithApprovedExternalReadRoots(ctx context.Context, roots []string) context.Context

Types

type BackgroundShellTask added in v0.1.46

type BackgroundShellTask struct {
	ID         string
	Command    string
	CWD        string
	Status     string
	Transport  string
	StartedAt  time.Time
	FinishedAt *time.Time
	LastOutput *time.Time
	CanWrite   bool
	ExitCode   *int
}

type Toolset

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

func NewToolset

func NewToolset(root string) (*Toolset, error)

func (*Toolset) BackgroundShellTasks added in v0.1.46

func (b *Toolset) BackgroundShellTasks() []BackgroundShellTask

func (*Toolset) CancelAllBackgroundShellTasks added in v0.1.46

func (b *Toolset) CancelAllBackgroundShellTasks(ctx context.Context) ([]BackgroundShellTask, error)

func (*Toolset) CancelBackgroundShellTask added in v0.1.46

func (b *Toolset) CancelBackgroundShellTask(ctx context.Context, taskID string) (BackgroundShellTask, error)

func (*Toolset) RunningBackgroundShellTasks added in v0.1.46

func (b *Toolset) RunningBackgroundShellTasks() []BackgroundShellTask

func (*Toolset) SetExecBoundaryApproval added in v0.1.44

func (b *Toolset) SetExecBoundaryApproval(sessionIDFunc func() string, fn policy.ApprovalFunc)

func (*Toolset) SetExecBoundaryPolicy added in v0.1.44

func (b *Toolset) SetExecBoundaryPolicy(p policy.RulePolicy)

func (*Toolset) SetExtraSkills added in v0.1.15

func (b *Toolset) SetExtraSkills(extra []*skills.Skill)

func (*Toolset) SetForegroundShellWait added in v0.1.45

func (b *Toolset) SetForegroundShellWait(defaultMS, maxMS int)

func (*Toolset) SetSkillDisabled added in v0.1.11

func (b *Toolset) SetSkillDisabled(names []string)

func (*Toolset) SetWebFetchExtractor added in v0.1.28

func (b *Toolset) SetWebFetchExtractor(extractor webfetch.Extractor)

func (*Toolset) SetWorktreeContext added in v0.1.20

func (b *Toolset) SetWorktreeContext(worktreeRoot, originalWorkspace string)

func (*Toolset) Tools

func (b *Toolset) Tools() []core.Tool

Jump to

Keyboard shortcuts

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