Documentation
¶
Overview ¶
Package skillpackage owns the private package registry and its Core contracts. It never executes package contents or changes Runtime Worker delivery semantics.
Index ¶
- Constants
- Variables
- func CompatibleProviders(features []string) []string
- func RecordReceipt(ctx context.Context, tx pgx.Tx, runID, agentID uuid.UUID, event string, ...) error
- func Snapshot(ctx context.Context, tx pgx.Tx, runID, agentID uuid.UUID) error
- func ValidateAssignment(value any, features []string) error
- type Bundle
- type Handler
- func (h *Handler) Bind(c echo.Context) error
- func (h *Handler) Bindings(c echo.Context) error
- func (h *Handler) Detail(c echo.Context) error
- func (h *Handler) Import(c echo.Context) error
- func (h *Handler) List(c echo.Context) error
- func (h *Handler) Register(api *echo.Group, auth echo.MiddlewareFunc)
- func (h *Handler) Unbind(c echo.Context) error
- func (h *Handler) Version(c echo.Context) error
- type ImportRequest
- type Receipt
- type ReceiptBinding
- type ValidationError
Constants ¶
View Source
const Feature = "skill_packages.v1"
View Source
const MaxBindings = 5
View Source
const MaxPayloadBytes = 65536
View Source
const MetadataKey = "_openlinker_skill_packages"
Variables ¶
View Source
var ErrInvalidReceipt = errors.New("invalid skill package receipt")
Functions ¶
func CompatibleProviders ¶
func RecordReceipt ¶
func RecordReceipt(ctx context.Context, tx pgx.Tx, runID, agentID uuid.UUID, event string, payload []byte) error
RecordReceipt is called only after Core's ordinary event principal, active Attempt, lease, fence and sequence checks, in that same transaction.
func Snapshot ¶
Snapshot uses the Run creation transaction. It never places private files in caller-visible request_metadata; only authenticated assignment queries join it.
func ValidateAssignment ¶
Types ¶
type Bundle ¶
type Bundle struct {
RequiredCommands []string `json:"required_commands"`
Name string `json:"name"`
Description string `json:"description"`
Files map[string]string `json:"files"`
CapabilityIDs []string `json:"capability_ids"`
Providers []string `json:"providers"`
}
func ValidateImport ¶
func ValidateImport(req ImportRequest) (Bundle, string, string, error)
type ImportRequest ¶
type Receipt ¶
type Receipt struct {
Bindings []ReceiptBinding `json:"bindings"`
ErrorCode string `json:"error_code,omitempty"`
}
type ReceiptBinding ¶
type ValidationError ¶
type ValidationError struct{ Code, Message string }
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.