Versions in this module Expand all Collapse all v0 v0.4.6 Oct 20, 2026 v0.4.5 Oct 16, 2026 Changes in this version + type Label string + const LabelAdded + const LabelChanged + const LabelMalformed + const LabelMissing + const LabelRemoved + const LabelUnreadable + type LayerKind string + const LayerGlobal + const LayerLocal + const LayerProject + type LayerSnapshot struct + Ignored bool + Kind LayerKind + Path string + Present bool + Raw map[string]any + type Monitor struct + func NewMonitor(layers []LayerSnapshot) *Monitor + func (m *Monitor) AdvanceBaseline(path string, prior, next Projection) bool + func (m *Monitor) Checkpoint() []Result + type Policy struct + Blocked *permissions.BlockedPaths + SettingsPaths []string + func (p Policy) Guards() bool + func (p Policy) ProtectedIn(root string) ([]string, error) + func (p Policy) RefuseBlockedVCS(tool, cwd string, ...) *Refusal + func (p Policy) RefuseNominal(tool string, args map[string]any, home, baseDir string) *Refusal + func (p Policy) RefuseResolved(tool string, endpoints ...string) *Refusal + func (p Policy) RefuseShell(subjectKind, subject, folder string, candidates []string) *Refusal + func (p Policy) RefuseVCS(tool, cwd string, risky bool) *Refusal + type Projection struct + func Project(raw map[string]any) Projection + type Refusal struct + ArgumentHash string + DirectRequestSubject string + Entry string + EntrySource string + Envelope string + PathScope string + Source string + Subject string + SubjectKind string + func (r *Refusal) Error() string + type Result struct + Kind LayerKind + Labels []Label + Path string + Reason locks.LockReason + Sections []Section + Unavailable bool + type Section string + const SectionAuth + const SectionBlockedPaths + const SectionDeclaredCommands + const SectionPermissions + const SectionProviderAuthHeader + const SectionProviderCredential + const SectionProviderDestination + const SectionWebResearchCredential + const SectionWritableFolders