bd4f1437bc
Adds a SKILL.md bundle validator, immutable per-skill versions with content digests and deduplication, protocol requests to import, list and show skills, and the pipelines skills import/list/show commands. Imports are serialised so concurrent imports never share a version number.
25 lines
649 B
Go
25 lines
649 B
Go
package protocol
|
|
|
|
type SkillFile struct {
|
|
Path string `json:"path"`
|
|
Bytes []byte `json:"bytes"`
|
|
}
|
|
type SkillSummary struct {
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
LatestVersion int `json:"latest_version"`
|
|
Digest string `json:"digest"`
|
|
ImportedAt string `json:"imported_at"`
|
|
}
|
|
type SkillVersion struct {
|
|
SkillSummary
|
|
Version int `json:"version"`
|
|
SourcePath string `json:"source_path"`
|
|
Manifest []SkillFileMeta `json:"manifest"`
|
|
SkillMD string `json:"skill_md"`
|
|
}
|
|
type SkillFileMeta struct {
|
|
Path string `json:"path"`
|
|
Size int64 `json:"size"`
|
|
}
|