Help us shape the future of Go! Take the 2026 Go Developer Survey

skill

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const ToolPackage = "skill_package"

Variables

This section is empty.

Functions

func InputSchema added in v0.8.2

func InputSchema(name string) (map[string]any, bool)

func OutputSchema added in v0.8.2

func OutputSchema(name string) (map[string]any, bool)

func PackageInputSchema added in v0.8.2

func PackageInputSchema() map[string]any

func PackageOutputSchema added in v0.8.2

func PackageOutputSchema() map[string]any

Types

type CapabilityItem

type CapabilityItem struct {
	Name        string
	Description string
	File        string
	Bundled     bool
}

type InspectRequest added in v0.8.2

type InspectRequest struct {
	Skill   string `json:"skill"`
	Version string `json:"version,omitempty"`
}

type PackageRequest added in v0.8.2

type PackageRequest struct {
	Action   string  `json:"action"`
	Skill    string  `json:"skill,omitempty"`
	Version  string  `json:"version,omitempty"`
	Key      string  `json:"key,omitempty"`
	Value    *string `json:"value,omitempty"`
	Source   string  `json:"source,omitempty"`
	Digest   string  `json:"digest,omitempty"`
	Activate *bool   `json:"activate,omitempty"`
	MaxBytes *int    `json:"max_bytes,omitempty"`
}

PackageRequest 是 skill_package 进入 Skill capability 后的稳定输入契约。

type Result

type Result = toolcore.Result

type Service

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

func New

func New(cfg config.Config, ws *workspace.Workspace, envs *envstore.Store) (*Service, error)

func (*Service) CapabilityItems

func (s *Service) CapabilityItems() ([]CapabilityItem, error)

func (*Service) Package

func (s *Service) Package(ctx context.Context, request PackageRequest) (Result, error)

func (*Service) ResolveActive

func (s *Service) ResolveActive(skill string) (string, error)

func (*Service) ResolveResource

func (s *Service) ResolveResource(raw string) (string, string, error)

func (*Service) RuntimeSkill

func (s *Service) RuntimeSkill(skill string) (Result, error)

func (*Service) RuntimeSkillFile

func (s *Service) RuntimeSkillFile(skill, relativePath string) (Result, error)

RuntimeSkillFile 只读取当前激活 Skill 包内的普通 UTF-8 文本文件。 路径解析和符号链接校验都在 AgentDock 内完成,调用方无需挂载宿主机目录。

func (*Service) RuntimeSkillFiles

func (s *Service) RuntimeSkillFiles(skill string) (Result, error)

RuntimeSkillFiles 返回当前激活 Skill 包的安全文件清单。 隐藏文件、安装元数据和符号链接不会暴露给控制面。

func (*Service) RuntimeSkills

func (s *Service) RuntimeSkills() (Result, error)

type ToolError

type ToolError = toolcore.ToolError

Jump to

Keyboard shortcuts

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