skillstate

package
v1.0.59-beta.5 Latest Latest
Warning

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

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

Documentation

Overview

Package skillstate persists the official Skill snapshot and centralized ownership metadata written after setup and upgrade. Bundled skills are always fully refreshed from the current release and local absence is not an exclusion.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLegacyOfficialSkillName

func IsLegacyOfficialSkillName(name string) bool

IsLegacyOfficialSkillName reports whether name was an exact official multi-skill directory name before centralized ownership metadata shipped.

func ManagedSkillNames

func ManagedSkillNames(state *State) map[string]bool

func Path

func Path(home string) string

func Remove

func Remove(home string) error

func Write

func Write(home string, state State) error

Types

type State

type State struct {
	Version        string                   `json:"version"`
	OfficialSkills []string                 `json:"official_skills"`
	UpdatedSkills  []string                 `json:"updated_skills"`
	ManagedSkills  []skillprovenance.Record `json:"managed_skills"`
	UpdatedAt      string                   `json:"updated_at"`
}

func Read

func Read(home string) (*State, bool, error)

Jump to

Keyboard shortcuts

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