generator

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PersonaRegistryPathEnv = "DWS_SKILLS_PERSONAS_FILE"
	RecipeRegistryPathEnv  = "DWS_SKILLS_RECIPES_FILE"
)

Variables

This section is empty.

Functions

func LoadCatalog

func LoadCatalog(ctx context.Context, fixturePath string) (ir.Catalog, error)

func LoadCatalogWithSource

func LoadCatalogWithSource(ctx context.Context, source string, catalogPath string) (ir.Catalog, error)

func WriteArtifacts

func WriteArtifacts(root string, artifacts []Artifact) error

Types

type Artifact

type Artifact struct {
	Path    string
	Content []byte
}

func Generate

func Generate(catalog ir.Catalog) ([]Artifact, error)

type CatalogSource

type CatalogSource string
const (
	CatalogSourceFixture  CatalogSource = "fixture"
	CatalogSourceEnv      CatalogSource = "env"
	CatalogSourceSnapshot CatalogSource = "snapshot"
)

type PersonaEntry

type PersonaEntry struct {
	Name         string   `yaml:"name"`
	Title        string   `yaml:"title"`
	Description  string   `yaml:"description"`
	Services     []string `yaml:"services"`
	Products     []string `yaml:"products,omitempty"` // Backward-compatible alias of services.
	Workflows    []string `yaml:"workflows"`
	Instructions []string `yaml:"instructions"`
	Tips         []string `yaml:"tips"`
}

type PersonaRegistry

type PersonaRegistry struct {
	Personas []PersonaEntry `yaml:"personas"`
}

type RecipeEntry

type RecipeEntry struct {
	Name        string   `yaml:"name"`
	Title       string   `yaml:"title"`
	Description string   `yaml:"description"`
	Category    string   `yaml:"category"`
	Services    []string `yaml:"services"`
	Products    []string `yaml:"products,omitempty"` // Backward-compatible alias of services.
	Steps       []string `yaml:"steps"`
	Caution     string   `yaml:"caution"`
}

type RecipeRegistry

type RecipeRegistry struct {
	Recipes []RecipeEntry `yaml:"recipes"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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