skill

package
v0.2.8 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: 22 Imported by: 0

Documentation

Overview

Package skill handles cmd.skill lane commands (install, list, detail, uninstall, import). Handler implements command.SkillHandler, decoding WorkerCommand payloads and executing actions via CLI, catalog, and store packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler handles cmd.skill lane commands. It decodes SkillCommandPayload and executes install/list/detail/uninstall/import actions, replying via ReplyPublisher.

func New

func New(pub ReplyPublisher) (*Handler, error)

New creates a new skill handler.

func (*Handler) HandleSkillCommand

func (h *Handler) HandleSkillCommand(ctx context.Context, cmd messaging.WorkerCommand, msg *nats.Msg) error

HandleSkillCommand implements command.SkillHandler. Decodes the SkillCommandPayload and dispatches by action.

type ReplyPublisher

type ReplyPublisher interface {
	Publish(subject string, data []byte) error
}

ReplyPublisher is the minimal interface used by Handler to publish command replies via core NATS.

Jump to

Keyboard shortcuts

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