Versions in this module Expand all Collapse all v1 v1.0.0 Sep 28, 2026 Changes in this version + const ArtifactMarker + const EnvApproveCapabilities + func ApprovalSatisfied(dec ApprovalDecision, rec *modprotov2.ApprovalRecord) bool + func Disabled(dir string) bool + func GrantRoots(d *modproto.Descriptor, home, workspace string, sources map[string]string) map[string]modproto.Root + func KnowledgeLoader(installed []Installed) func(string) (string, string, []string) + func KnownModules(installed []Installed) map[string]bool + func MayBill(c modproto.Capability) bool + func MayBillUnder(_ *modproto.Descriptor, c modproto.Capability) bool + func ModuleDir(home, binary string) (string, bool) + func ModulesDir(home string) string + func NeedsApproval(d *modproto.Descriptor, c modproto.Capability, approved bool) bool + func New(r *module.Runner, d *modproto.Descriptor, home, workspace string, ...) []toolshared.Tool + func PlaceInput(req *modproto.Request, raw json.RawMessage, humanApproved bool) error + func PreApproved(moduleID, capabilityID string) bool + func ResolveSourceRoot(name, path string) (string, error) + func SetDisabled(dir string, off bool) error + func SourceRootNames(d *modproto.Descriptor) []string + func SourceRootWarnings(d *modproto.Descriptor, sources map[string]string) []string + func StandingApprovalWarnings() []string + func ToolName(moduleID, capabilityID string) string + type ApprovalDecision struct + Reasons []string + Required bool + func NeedsApprovalV2(d *modprotov2.Descriptor, c *modprotov2.Capability, input map[string]any) ApprovalDecision + type CapabilityTool struct + func (t *CapabilityTool) Description() string + func (t *CapabilityTool) Execute(ctx context.Context, args map[string]any) *toolshared.ToolResult + func (t *CapabilityTool) Name() string + func (t *CapabilityTool) Parameters() map[string]any + type Document struct + Content string + Digest string + ID string + ModuleID string + Path string + Title string + Tokens int + Version string + func (d Document) Provenance() string + type HostConformance struct + Findings []modprotov2.Finding + Module string + func CheckHostConformance(a modprotov2.Accepted) HostConformance + func (h HostConformance) Conforms() bool + func (h HostConformance) Refusal() string + type Installed struct + Descriptor *modproto.Descriptor + Disabled bool + Err error + HostWarnings []string + Runner *module.Runner + V2 V2 + Warnings []string + func Discover(ctx context.Context, home string) []Installed + func RegisterTools(ctx context.Context, home, workspace string, register func(toolshared.Tool)) ([]string, []Installed) + type Knowledge struct + Overlays []Document + Skills []Document + Warnings []string + func LoadKnowledge(installed []Installed, selectedModules, requestedSkills []string) Knowledge + func (k Knowledge) Compose() (overlays string, skills string) + func (k Knowledge) Tokens() int + type KnowledgeTool struct + func (t *KnowledgeTool) Description() string + func (t *KnowledgeTool) Execute(_ context.Context, args map[string]any) *toolshared.ToolResult + func (t *KnowledgeTool) Name() string + func (t *KnowledgeTool) Parameters() map[string]any + type V2 struct + Conformance *HostConformance + Decision modprotov2.Decision + func (v V2) MayRelyOnV2() bool Other modules containing this package github.com/xibodev/compa/v2