skillinstall

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package skillinstall installs the CLI's embedded skill and tracks explicit installations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentIDs

func AgentIDs() []string

AgentIDs lists the registry's supported IDs without inspecting the filesystem.

Types

type Agent

type Agent struct {
	ID          string `json:"id"`
	DisplayName string `json:"displayName"`
	Universal   bool   `json:"universal"`
	Detected    bool   `json:"detected"`
}

func ListAgents

func ListAgents(e Environment) ([]Agent, error)

type Environment

type Environment struct {
	Cwd     string
	Home    string
	Version string
	Env     map[string]string
}

func NewEnvironment

func NewEnvironment(version string) (Environment, error)

type InstallError

type InstallError struct {
	Cause          error
	ChangedTargets []string
}

InstallError reports all destinations that may have changed; no rollback is claimed.

func (*InstallError) Error

func (e *InstallError) Error() string

func (*InstallError) Unwrap

func (e *InstallError) Unwrap() error

type Installation

type Installation struct {
	Scope          Scope          `json:"scope"`
	ProjectPath    string         `json:"projectPath,omitempty"`
	ConductVersion string         `json:"conductVersion"`
	Agents         []string       `json:"agents"`
	Method         Method         `json:"method"`
	Targets        []StoredTarget `json:"targets"`
}

type Method

type Method string
const (
	Copy    Method = "copy"
	Symlink Method = "symlink"
)

func ResolveMethod

func ResolveMethod(request Request, e Environment) (Method, error)

ResolveMethod determines whether the selected physical destinations need a method choice. It does not inspect metadata or the unselected central copy.

type Plan

type Plan struct {
	Scope          Scope    `json:"scope"`
	ProjectPath    string   `json:"projectPath,omitempty"`
	Method         Method   `json:"method"`
	Agents         []string `json:"agents"`
	ConductVersion string   `json:"conductVersion"`
	RecordPath     string   `json:"recordPath"`
	Targets        []Target `json:"targets"`
}

func CreatePlan

func CreatePlan(request Request, e Environment) (Plan, error)

type Records

type Records struct {
	SchemaVersion int            `json:"schemaVersion"`
	Installations []Installation `json:"installations"`
}

type Request

type Request struct {
	Agents []string
	Scope  Scope
	Method Method
}

type Result

type Result = Plan

func Execute

func Execute(plan Plan, e Environment) (result Result, returned error)

type Scope

type Scope string
const (
	Project Scope = "project"
	Global  Scope = "global"
)

type StoredTarget

type StoredTarget struct {
	Path   string `json:"path"`
	Kind   string `json:"kind"`
	Target string `json:"target,omitempty"`
}

type SyncItem

type SyncItem struct {
	Scope          Scope    `json:"scope"`
	ProjectPath    string   `json:"projectPath,omitempty"`
	Status         string   `json:"status"`
	Error          string   `json:"error,omitempty"`
	Targets        []Target `json:"targets,omitempty"`
	ConductVersion string   `json:"conductVersion,omitempty"`
}

type SyncReport

type SyncReport struct {
	Items   []SyncItem `json:"items"`
	Synced  int        `json:"synced"`
	Skipped int        `json:"skipped"`
	Failed  int        `json:"failed"`
	Matched int        `json:"matched"`
}

func Sync

func Sync(e Environment, scope Scope) (report SyncReport, returned error)

Sync only follows explicit registrations; an empty scope selects all records. No-record and no-match calls remain read-only and do not create a lock.

type Target

type Target struct {
	Path   string   `json:"path"`
	Kind   string   `json:"kind"`
	Target string   `json:"target,omitempty"`
	Agents []string `json:"agents,omitempty"`
	Exists bool     `json:"exists"`
}

Jump to

Keyboard shortcuts

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