Versions in this module Expand all Collapse all v0 v0.1.1 Sep 4, 2026 v0.1.0 Sep 4, 2026 Changes in this version + const AnnotationSchemaURL + const IdentitySchemaURL + const MaxAnnotations + const MaxHTMLFileBytes + const MaxHTMLFiles + const MaxHTMLPackageBytes + const MaxPrototypes + const MaxRecordBytes + const MaxRevisionsPerPrototype + const RevisionSchemaURL + const Version + func AnnotationURN(sagaID, prototypeID, annotationID string) (string, error) + func PrototypeURN(sagaID, prototypeID string) (string, error) + func ReadPinnedStyle(repositoryRoot string, style StyleSource) ([]byte, error) + func RevisionURN(sagaID, prototypeID, revisionID string) (string, error) + type AddAnnotationInput struct + CreatedAt time.Time + ID string + Prototype string + PrototypeContentDigest string + PrototypeRevision string + Rationale string + RequestID string + Selector Selector + StoryRevision string + Target string + type AddExternalInput struct + Allowlist *ProviderAllowlist + CreatedAt time.Time + EmbedURL string + FallbackURL string + ID string + RequestID string + RevisionID string + State State + Title string + URL string + type AddHTMLInput struct + CreatedAt time.Time + ID string + RequestID string + RevisionID string + SourcePath string + State State + Title string + type AddStyleInput struct + CreatedAt time.Time + CustomProperties []string + ID string + Parents []string + Path string + Prototype string + RepositoryRoot string + RequestID string + Roles []StyleRole + type Annotation struct + CreatedAt time.Time + ID string + Prototype string + PrototypeContentDigest string + PrototypeRevision string + Rationale string + RequestID string + Schema string + Selector Selector + StoryRevision string + Target string + Version int + type AnnotationProjection struct + Annotation Annotation + Current bool + PrototypeResolved bool + StaleReasons []string + TargetResolved bool + type CompositionInputs struct + Stories []StoryInput + type CoverageProjection struct + Annotations []AnnotationProjection + Capability string + Gaps []QualityGap + Prototypes []ResourceCoverage + Stories []ResourceCoverage + func Compose(document Document, inputs CompositionInputs) CoverageProjection + func ProjectCoverage(document Document, inputs CompositionInputs) CoverageProjection + type Document struct + Adopted bool + Annotations []Annotation + Prototypes []Prototype + Root string + SagaID string + func Load(root, sagaID string) (Document, error) + func LoadWithOptions(root, sagaID string, options LoadOptions) (Document, error) + type Identity struct + CreatedAt time.Time + ID string + RequestID string + Schema string + Version int + type LoadOptions struct + RepositoryRoot string + type MutationResult struct + Path string + Replayed bool + URN string + func AddAnnotation(root, sagaID string, input AddAnnotationInput) (MutationResult, error) + func AddExternal(root, sagaID string, input AddExternalInput) (MutationResult, error) + func AddExternalPrototype(root, sagaID string, input AddExternalInput) (MutationResult, error) + func AddHTML(root, sagaID string, input AddHTMLInput) (MutationResult, error) + func AddHTMLPrototype(root, sagaID string, input AddHTMLInput) (MutationResult, error) + func AddRepositoryStyle(root, sagaID string, input AddStyleInput) (MutationResult, error) + func AddStyle(root, sagaID string, input AddStyleInput) (MutationResult, error) + func Annotate(root, sagaID string, input AddAnnotationInput) (MutationResult, error) + func RefreshRepositoryStyle(root, sagaID string, input AddStyleInput) (MutationResult, error) + func Revise(root, sagaID string, input ReviseInput) (MutationResult, error) + func RevisePrototype(root, sagaID string, input ReviseInput) (MutationResult, error) + type Prototype struct + CurrentRevision *Revision + Identity Identity + RevisionHeads []string + Revisions []Revision + func (p Prototype) RevisionConflict() bool + type ProviderAllowlist struct + EmbedOrigin string + Permissions []string + Provider string + Sandbox []string + type QualityGap struct + Kind string + Message string + Resource string + type Region struct + Height float64 + Width float64 + X float64 + Y float64 + type ResourceCoverage struct + Annotations []string + Resource string + Status string + type ReviseInput struct + CreatedAt time.Time + HTMLSourcePath string + ID string + Parents []string + Prototype string + RequestID string + Source Source + State State + Styles []StyleSource + Title string + type Revision struct + CreatedAt time.Time + ID string + Parents []string + Prototype string + RequestID string + Schema string + Source Source + State State + Styles []StyleSource + Title string + Version int + type Selector struct + DeepLink string + ElementID string + ExactText string + Kind SelectorKind + ProviderID string + Region *Region + type SelectorKind string + const SelectorElement + const SelectorProvider + const SelectorRegion + const SelectorText + type Source struct + Allowlist *ProviderAllowlist + ContentDigest string + EmbedURL string + Entrypoint string + FallbackURL string + Kind SourceKind + URL string + type SourceKind string + const SourceEmbed + const SourceExternal + const SourceHTML + type State string + const StateDraft + const StateReady + const StateRetired + type StoryInput struct + Criteria []string + CurrentRevision string + PrototypeRequired bool + URN string + type StyleRole struct + Class string + Role string + type StyleSource struct + CustomProperties []string + Digest string + Path string + Roles []StyleRole + Stale bool + StaleReason string