toollist

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager manages which tools are visible based on open/allowlist/blocklist modes.

func New

func New() *Manager

New creates a Manager in open mode.

func (*Manager) Batch

func (m *Manager) Batch(enable, disable, allow, block []string) (bool, error)

Batch performs an atomic multi-operation update. Returns an error if both allow and block are non-nil/non-empty. Returns true if the active set changed.

func (*Manager) Disable

func (m *Manager) Disable(names []string)

Disable removes tools based on current mode.

func (*Manager) Enable

func (m *Manager) Enable(names []string)

Enable adds tools based on current mode.

func (*Manager) GetActive

func (m *Manager) GetActive() []string

GetActive returns the currently active tools based on mode.

func (*Manager) SetAllowed

func (m *Manager) SetAllowed(names []string)

SetAllowed switches to allowlist mode. Empty list resets to open mode.

func (*Manager) SetBlocked

func (m *Manager) SetBlocked(names []string)

SetBlocked switches to blocklist mode. Empty list resets to open mode.

func (*Manager) SetRegistered

func (m *Manager) SetRegistered(names []string)

SetRegistered sets the full list of known tool names.

Jump to

Keyboard shortcuts

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