Documentation
¶
Overview ¶
Package skillsettings owns trusted project-local Skill enablement policy.
Index ¶
Constants ¶
View Source
const (
// Schema is the strict project Skill settings schema.
Schema = "pips.skills/v1alpha1"
)
Variables ¶
View Source
var ( // ErrInvalid reports malformed settings or identities. ErrInvalid = errors.New("coding skill settings: invalid") // ErrDuplicate reports a repeated disabled Skill identity. ErrDuplicate = errors.New("coding skill settings: duplicate") // ErrLimitExceeded reports a bounded file or record limit. ErrLimitExceeded = errors.New("coding skill settings: limit exceeded") // ErrUnsafeFile reports a tracked, linked, broad-mode, or special file. ErrUnsafeFile = errors.New("coding skill settings: unsafe file") // ErrUntrusted reports project policy access without Workspace trust. ErrUntrusted = errors.New("coding skill settings: untrusted project") )
Functions ¶
This section is empty.
Types ¶
type Limits ¶
Limits bound project Skill settings reads and records.
func DefaultLimits ¶
func DefaultLimits() Limits
DefaultLimits returns conservative project settings limits.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager reads and atomically replaces one project Skill settings file.
type Options ¶
type Options struct {
Tree *workspace.Tree
Git ProjectGit
Trusted bool
Limits Limits
}
Options bind a Manager to one Workspace and trust decision.
type ProjectGit ¶
type ProjectGit interface {
Tracked(context.Context, string) (bool, bool, error)
ExcludeLocal(context.Context, string) error
}
ProjectGit supplies the narrow Git-local safety boundary for project state.
type Snapshot ¶
type Snapshot struct {
// contains filtered or unexported fields
}
Snapshot is one immutable set of disabled Skill identities.
func (Snapshot) IsDisabled ¶
IsDisabled reports whether ref is disabled in this snapshot.
Click to show internal directories.
Click to hide internal directories.