skill

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

func NewClient

func NewClient(t transport.Config) Client

NewClient returns a Client backed by the shared transport.

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

func NewService(c Client) Service

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.

Jump to

Keyboard shortcuts

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