skillinstall

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package skillinstall installs the Agent skill embedded in the sshx binary.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrConflict means an existing skill differs from the bundled version.
	ErrConflict = errors.New("installed skill differs from bundled skill")
	// ErrUnsafeTarget means the destination would cross a symlink or overwrite
	// a non-regular filesystem object.
	ErrUnsafeTarget = errors.New("unsafe skill installation target")
)

Functions

func ResolveDir

func ResolveDir(explicit string) (string, error)

ResolveDir resolves the destination directory. An explicit value wins; otherwise the target is ~/.agents/skills/sshx.

Types

type Options

type Options struct {
	Dir   string
	Force bool
}

Options controls one local skill installation.

type Result

type Result struct {
	Status string `json:"status"`
	Path   string `json:"path"`
	SHA256 string `json:"sha256"`
	Source string `json:"source"`
}

Result describes the installed artifact and whether it changed.

func Install

func Install(options Options) (Result, error)

Install writes the canonical embedded Agent skill to the configured target. Existing differing content is preserved unless Force is explicit.

Jump to

Keyboard shortcuts

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