Versions in this module Expand all Collapse all v1 v1.0.0 Sep 28, 2026 Changes in this version + func RenderMediaType(d *Descriptor, a Artifact) string + type Accepted struct + func (a Accepted) Descriptor() *Descriptor + type Approval struct + RequiredWhen []string + type ApprovalRecord struct + Granted bool + GrantedBy string + Reason string + type Artifact struct + Bytes int64 + Digest string + ID string + Kind string + Path string + Presentation string + Root string + type ArtifactKind struct + Kind Kind + MediaType string + Validator *Validator + type Capability struct + Effects Effects + ID string + Projects []string + RequestSchema string + ResultSchema string + Summary string + Title string + type Decision struct + Pin contractv2.PinResult + V1 *modproto.Descriptor + V2 *Accepted + func Evaluate(describeOutput []byte) (Decision, error) + func (d Decision) MayRelyOnV2() bool + func (d Decision) Served() bool + type Descriptor struct + AgentOverlays []Overlay + ArtifactKinds map[string]ArtifactKind + Capabilities []Capability + ContractVersion string + Module string + Name string + Operations []Operation + Permissions Permissions + Protocol string + RequestSchemas map[string]json.RawMessage + ResultSchemas map[string]json.RawMessage + Skills []Skill + Version string + type Effects struct + CostKnown bool + Deterministic bool + ExternalWrites bool + MayCharge MayCharge + Network bool + Provider string + type Envelope struct + ContractVersion string + Error *Error + Execution *Execution + Module string + OK bool + Operation string + Protocol string + RequestID string + Result json.RawMessage + Warnings []string + type Error struct + Code string + Details map[string]any + Reason string + Remedy string + Retryable bool + type ExecProps struct + DeadlineMSDefault int + type Execution struct + ActualCost *float64 + Artifacts []Artifact + Charged bool + EstimatedCost *float64 + ExternalWrites bool + Network bool + Provider string + Resolution []Resolution + type Finding struct + Code string + Reason string + Remedy string + Where string + func CheckArtifacts(d *Descriptor, arts []Artifact, rootPath func(root string) (string, bool)) []Finding + func CheckNoWeakening(d *Descriptor) []Finding + func Validate(d *Descriptor) []Finding + func (f Finding) String() string + type Grants struct + Credentials []string + Network []string + PaidProviders []string + Publish bool + Subprocess []string + type Kind string + const KindDocument + const KindMedia + const KindText + type MayCharge struct + Always bool + Default bool + Field string + WhenIn []string + func (m *MayCharge) UnmarshalJSON(b []byte) error + func (m MayCharge) Evaluate(input map[string]any) bool + func (m MayCharge) IsConditional() bool + func (m MayCharge) MarshalJSON() ([]byte, error) + func (m MayCharge) NoWeakerThan(other MayCharge) bool + type Operation struct + Approval Approval + Effects Effects + Execution ExecProps + ID string + Produces []string + Requirements []Requirement + Summary string + Title string + type Overlay struct + Digest string + ID string + Path string + Title string + type Permissions struct + Credentials []string + FilesystemRead []string + FilesystemWrite []string + Network []string + PaidProviders []string + Publish bool + Subprocess []string + type Request struct + Approval *ApprovalRecord + Binaries map[string]string + Capability string + ContractVersion string + DeadlineMS int + Grants Grants + Input json.RawMessage + MaxOutputBytes int + Protocol string + RequestID string + Roots map[string]Root + type Requirement struct + Detail string + Kind string + Name string + Strength Strength + type Resolution struct + Detail string + Kind string + Name string + State State + type Root struct + Mode string + Path string + type Skill struct + Digest string + ID string + Path string + Title string + type State string + const StateSatisfied + const StateUnknown + const StateUnsatisfied + func (s State) Valid() bool + type Strength string + const StrengthMandatory + const StrengthPreferred + type Validator struct + Schema string + Type string Other modules containing this package github.com/xibodev/compa/v2