Versions in this module Expand all Collapse all v1 v1.0.0 Sep 28, 2026 Changes in this version + func Describe(p Primitive) string + func Known(p Primitive) bool + type ActionDefinition struct + DisabledWhen string + ID string + InputTemplate map[string]any + KeyboardShortcut string + Label string + RequiresApproval bool + Tool string + type Card struct + ArtifactID string + Bytes int64 + Digest string + Inline json.RawMessage + Kind string + MediaType string + Module string + Primitive Primitive + Title string + URL string + type Primitive string + const Audio + const Diagram + const Document + const Download + const Image + const ImageGrid + const JSON + const Markdown + const Slides + const Table + const Text + const Timeline + const Video + func All() []Primitive + func FromMediaType(mediaType string) Primitive + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Enabled(p Primitive) bool + func (r *Registry) Resolve(mediaType, presentationHint string) Primitive + func (r *Registry) SetEnabled(p Primitive, enabled bool) + type SectionDefinition struct + Binding string + Children []SectionDefinition + EmptyText string + ID string + Primitive Primitive + Title string + Type string + type ViewDefinition struct + Actions []ActionDefinition + ArtifactSchema string + ID string + Module string + SchemaVersion string + Sections []SectionDefinition + Title string + func (v *ViewDefinition) Digest() string + type ViewState string + const StateAwaitingApproval + const StateCompleted + const StateEmpty + const StateFailed + const StateLoading + const StateUnsupported Other modules containing this package github.com/xibodev/compa/v2