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

skill

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapabilityItem

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

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) Activate

func (s *Service) Activate(ctx context.Context, skill, version string) error

func (*Service) CapabilityItems

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

func (*Service) Inspect

func (s *Service) Inspect(args map[string]any) (Result, error)

func (*Service) InstalledPath

func (s *Service) InstalledPath(skill, version string) (string, error)

func (*Service) List

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

func (*Service) Package

func (s *Service) Package(ctx context.Context, args map[string]any) (Result, error)

func (*Service) ReplaceBundledSkills

func (s *Service) ReplaceBundledSkills(ctx context.Context, skills []string) 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