package models import ( "io" "time" ) type Spell struct { Id int `json:"-"` Name string `json:"name,omitempty"` Spell string `json:"spell,omitempty"` ShortDesc string `json:"short_desc,omitempty"` Description string `json:"description,omitempty"` Tags []string `json:"tags,omitempty"` } type SpellCast struct { Spell Spell Args map[string]string Stdin io.Reader Stdout io.Writer Stderr io.Writer } type CastResult struct { ExitCode int Err error Duration time.Duration Meta map[string]any } type SearchQuery struct { Text string Name string Description string Command string Tags []string Cursor int Limit int }