1package proto
2
3// SkillDiscoveryState mirrors skills.DiscoveryState across the wire.
4// Values must stay in sync with internal/skills.DiscoveryState; do not
5// reorder without a coordinated server/client bump.
6type SkillDiscoveryState int
7
8const (
9 // SkillStateNormal indicates the skill was parsed and validated
10 // successfully.
11 SkillStateNormal SkillDiscoveryState = iota
12 // SkillStateError indicates discovery encountered a scan/parse/validate
13 // error.
14 SkillStateError
15)
16
17// SkillState is the wire representation of skills.SkillState.
18type SkillState struct {
19 Name string `json:"name"`
20 Path string `json:"path"`
21 State SkillDiscoveryState `json:"state"`
22 Error string `json:"error,omitempty"`
23}
24
25// SkillsEvent is the wire representation of skills.Event.
26type SkillsEvent struct {
27 States []SkillState `json:"states"`
28}