Documentation
¶
Overview ¶
Package skill is the CLI-owned client and service for the Conductor skill endpoints (/api/skills/*). It mirrors the layering of the agent package. This stage covers the server-backed management operations (list/get/pull/delete); register/run/serve, which need the local skill packaging-and-execution engine, build on the same client in a later step.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
List(ctx context.Context, allVersions bool) ([]Summary, error)
Get(ctx context.Context, name, version string) (Detail, error)
DownloadPackage(ctx context.Context, name, version string) ([]byte, error)
Register(ctx context.Context, manifest json.RawMessage, pkg []byte) (Detail, error)
Delete(ctx context.Context, name, version string) error
}
Client is the transport boundary for skill endpoints. It returns domain types or raw package bytes — never *http.Response or transport types.
type Detail ¶
type Detail struct {
Name string `json:"name"`
Version string `json:"version"`
Description string `json:"description"`
Checksum string `json:"checksum"`
Status string `json:"status"`
OwnerID string `json:"ownerId"`
CreatedAt *int64 `json:"createdAt"`
UpdatedAt *int64 `json:"updatedAt"`
PackageSize int64 `json:"packageSize"`
FileCount int `json:"fileCount"`
Files []FileEntry `json:"files"`
Metadata json.RawMessage `json:"metadata,omitempty"`
RawConfig json.RawMessage `json:"rawConfig,omitempty"`
}
Detail is the full server-side skill package record. RawConfig and Metadata stay as raw JSON so their free-form shapes do not leak as untyped maps across a boundary.
type FileEntry ¶
type FileEntry struct {
Path string `json:"path"`
Size int64 `json:"size"`
SHA256 string `json:"sha256"`
ContentType string `json:"contentType"`
}
FileEntry describes one file inside a skill package.
type Service ¶
type Service interface {
List(ctx context.Context, allVersions bool) ([]Summary, error)
Get(ctx context.Context, name, version string) (Detail, error)
DownloadPackage(ctx context.Context, name, version string) ([]byte, error)
Register(ctx context.Context, manifest json.RawMessage, pkg []byte) (Detail, error)
Delete(ctx context.Context, name, version string) error
}
Service is the skill use-case layer. It depends only on Client and is free of presentation and transport concerns.
func NewService ¶
NewService returns a Service backed by the given Client.
type Summary ¶
type Summary struct {
Name string `json:"name"`
Version string `json:"version"`
Description string `json:"description"`
Status string `json:"status"`
PackageSize int64 `json:"packageSize"`
FileCount int `json:"fileCount"`
ScriptCount int `json:"scriptCount"`
SubAgentCount int `json:"subAgentCount"`
ResourceCount int `json:"resourceCount"`
}
Summary is the list view of a registered skill.