Documentation
¶
Index ¶
- Constants
- func IsReserved(name string) bool
- func NormalizeRelativeRuntimePath(input string) (string, error)
- func NormalizeRelativeSelectorPath(input string) (string, error)
- func ValidateName(name string) (string, error)
- type Base
- type Definition
- type Effective
- func (mode Effective) AllowsDotAgentsPath(relativePath string) (bool, error)
- func (mode Effective) AllowsMCP(name string) bool
- func (mode Effective) AllowsPackagePath(module, relativePath string) (bool, error)
- func (mode Effective) Base() Base
- func (mode Effective) Definition() Definition
- func (mode Effective) FingerprintMaterial() string
- func (mode Effective) Name() string
- type MatchSpecificity
- type Selector
- func (selector Selector) CanonicalString() string
- func (selector Selector) MatchesDotAgentsPath(relativePath string) (MatchSpecificity, bool, error)
- func (selector Selector) MatchesMCP(name string) bool
- func (selector Selector) MatchesPackagePath(module, relativePath string) (MatchSpecificity, bool, error)
- type SelectorKind
- type SelectorValidator
Constants ¶
View Source
const DefaultName = "default"
Variables ¶
This section is empty.
Functions ¶
func IsReserved ¶
func ValidateName ¶
Types ¶
type Definition ¶
type Definition struct {
Base Base `toml:"base,omitempty"`
Enable []string `toml:"enable,omitempty"`
Disable []string `toml:"disable,omitempty"`
}
func ImplicitDefault ¶
func ImplicitDefault() Definition
func (*Definition) ApplyDefaults ¶
func (definition *Definition) ApplyDefaults()
func (*Definition) SortAndDeduplicate ¶
func (definition *Definition) SortAndDeduplicate()
type Effective ¶
type Effective struct {
// contains filtered or unexported fields
}
func ImplicitEffective ¶
func ImplicitEffective() Effective
func NewEffective ¶
func NewEffective(name string, definition Definition, validator SelectorValidator) (Effective, error)
func (Effective) AllowsDotAgentsPath ¶
func (Effective) AllowsPackagePath ¶
func (Effective) Definition ¶
func (mode Effective) Definition() Definition
func (Effective) FingerprintMaterial ¶
type MatchSpecificity ¶
type MatchSpecificity uint16
type Selector ¶
type Selector struct {
Kind SelectorKind
Module string
RelativePath string
MCPName string
}
func ParseSelector ¶
func (Selector) CanonicalString ¶
func (Selector) MatchesDotAgentsPath ¶
func (selector Selector) MatchesDotAgentsPath(relativePath string) (MatchSpecificity, bool, error)
func (Selector) MatchesMCP ¶
func (Selector) MatchesPackagePath ¶
func (selector Selector) MatchesPackagePath(module, relativePath string) (MatchSpecificity, bool, error)
type SelectorKind ¶
type SelectorKind uint8
const ( SelectorPackage SelectorKind = iota + 1 SelectorPackagePath SelectorMCP SelectorDotAgents )
type SelectorValidator ¶
Click to show internal directories.
Click to hide internal directories.