projectstore

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const AIDir = ".ai"

Variables

This section is empty.

Functions

func MarkerPath

func MarkerPath(skillDir string) string

func WriteMarker

func WriteMarker(skillDir, hash, generatedBy string, now time.Time) error

Types

type ContentMarker

type ContentMarker struct {
	Hash        string
	GeneratedAt string
	GeneratedBy string
}

func ReadMarker

func ReadMarker(skillDir string) (ContentMarker, error)

func VerifyMarker

func VerifyMarker(skillDir string) (ContentMarker, string, error)

type Resolver

type Resolver struct {
	Project Store
	Global  Store
}

func NewResolver

func NewResolver(projectRoot, globalRoot string) Resolver

func (Resolver) LoadKits

func (r Resolver) LoadKits() (map[string]*kit.Kit, error)

func (Resolver) SkillDir

func (r Resolver) SkillDir(name string) (string, bool)

type Store

type Store struct {
	Root string
}

func Global

func Global(root string) Store

func Project

func Project(root string) Store

func (Store) KitPath

func (s Store) KitPath(name string) string

func (Store) KitsDir

func (s Store) KitsDir() string

func (Store) LoadKits

func (s Store) LoadKits() (map[string]*kit.Kit, error)

func (Store) LoadProjectLockfile

func (s Store) LoadProjectLockfile() (*lockfile.ProjectLockfile, error)

func (Store) LockfilePath

func (s Store) LockfilePath() string

func (Store) SkillDir

func (s Store) SkillDir(name string) string

func (Store) SkillsDir

func (s Store) SkillsDir() string

func (Store) VendoredSkills

func (s Store) VendoredSkills() ([]string, error)

func (Store) WriteProjectLockfile

func (s Store) WriteProjectLockfile(lf *lockfile.ProjectLockfile) error

Jump to

Keyboard shortcuts

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