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 ¶
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 ¶
func NewEnvironment ¶
func NewEnvironment(version string) (Environment, error)
type InstallError ¶
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 Method ¶
type Method string
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 StoredTarget ¶
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.