roles

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package roles parses and validates the build-owned role catalog.

Index

Constants

View Source
const SchemaVersion = "mulgae-role.v1"

Variables

This section is empty.

Functions

func ValidateCatalog

func ValidateCatalog(definitions []Definition) error

Types

type Activation

type Activation string
const (
	ActivationAlways        Activation = "always"
	ActivationProjectKindUI Activation = "project_kind_ui"
)

func (Activation) Valid

func (activation Activation) Valid() bool

type Definition

type Definition struct {
	SchemaVersion       string     `yaml:"schema_version"`
	ID                  string     `yaml:"id"`
	Order               int        `yaml:"order"`
	Activation          Activation `yaml:"activation"`
	ProviderPreferences []string   `yaml:"provider_preferences"`
	SystemPrompt        string     `yaml:"system_prompt"`
}

Definition is the authoritative build-time document for one review role.

func Parse

func Parse(contents []byte) (Definition, error)

func (Definition) Validate

func (definition Definition) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL