Versions in this module Expand all Collapse all v0 v0.0.1 Nov 29, 2026 Changes in this version + const CapabilitiesFile + const PolicyFile + var Hosts = []Host + func CapabilitiesFresh(root string) bool + func CapabilitySummary(c Capabilities) string + func ExpandHome(p string) string + func HookCommand() string + func SortedHostIDs() []string + func WriteCapabilities(root string, c Capabilities) (string, error) + type Assessment struct + ExploitsGated bool + Insight *vdb.CliPackageInsight + NameLevel bool + Resolved string + Unknown bool + Vulns []scan.EnrichedVuln + type Auth struct + Community bool + Missing bool + type BashInput struct + Command string + Description string + type Candidate struct + Ecosystem string + Manager string + Name string + Version string + func ParseInstallCommand(command string) []Candidate + type Capabilities struct + Binaries map[string]bool + Derived CapabilityDerived + DetectedAt string + Repo map[string]bool + SchemaVersion int + func DetectCapabilities(root string, auth Auth) Capabilities + type CapabilityDerived struct + AuthStatus string + DetectionStack []string + HasCI bool + HasContainers bool + HasIAC bool + PrimaryPackageManager string + SBOMStack []string + SOAR string + type Decision int + const Block + const Inform + const Silent + type EditInput struct + Content string + FilePath string + NewString string + OldString string + Path string + func (e EditInput) TargetPath() string + type Event string + const EventPostToolUse + const EventPreToolUse + const EventSessionStart + const EventStop + const EventUserPromptSubmit + type GuardPolicy struct + Block []Signal + Warn []Signal + func (g GuardPolicy) Decide(s Signal) Decision + type HookDialect string + const DialectClaudeCode + const DialectCodex + const DialectNone + type Host struct + Detect []string + HookConfig string + HookDialect HookDialect + ID string + MCP bool + Name string + ProjectSkillDirs []string + SkillDirs []string + func DetectHosts() []Host + func HostByID(id string) (Host, bool) + func (h Host) Installed() bool + func (h Host) Supports(s Surface) bool + func (h Host) Surfaces() []Surface + type InstallOptions struct + DryRun bool + Hooks bool + type InstallResult struct + Changed bool + Err error + Host Host + Notes []string + Wired []Surface + func InstallHooks(h Host, opts InstallOptions) InstallResult + func Uninstall(h Host, opts InstallOptions) InstallResult + type Lookup interface + Assess func(ctx context.Context, cands []Candidate) []Assessment + type Payload struct + CWD string + HookEventName Event + PermissionMode string + Prompt string + SessionID string + ToolInput json.RawMessage + ToolName string + ToolUseID string + TranscriptPath string + UserInput string + func DecodePayload(r io.Reader) (Payload, error) + func (p Payload) Command() string + func (p Payload) EditTarget() string + func (p Payload) UserPrompt() string + type Policy struct + ChangeGuard GuardPolicy + CooldownDays int + DependencyGuard GuardPolicy + Enabled *bool + MaxMajorBump int + SafeHarbourStrategy fix.Strategy + func DefaultPolicy() Policy + func LoadPolicy(root string) (Policy, error) + func (p Policy) Active() bool + type Response struct + Decision Decision + Event Event + Message string + func EvaluateDependency(p Policy, assessments []Assessment) Response + func (r Response) Encode(w io.Writer) error + type Runner struct + Lookup Lookup + Policy Policy + Root string + func (r Runner) Run(ctx context.Context, p Payload) Response + type Signal string + const SignalBelowTarget + const SignalCooldown + const SignalEOL + const SignalKEVCritical + const SignalMalware + const SignalMalwareUnresolved + const SignalSecret + const SignalSeverityHigh + const SignalUnpinned + type Surface string + const SurfaceHooks + const SurfaceMCP + const SurfaceSkills + type VDBLookup struct + CLIVersion string + Root string + func NewVDBLookup(root, cliVersion string) *VDBLookup + func (l *VDBLookup) Assess(ctx context.Context, cands []Candidate) []Assessment + func (l *VDBLookup) AuthState() Auth + func (l *VDBLookup) Warm()