Documentation
¶
Index ¶
- type Selection
- type Store
- func (s *Store) Activate(ctx context.Context, skill, version string) error
- func (s *Store) ActiveVersion(skill string) (string, error)
- func (s *Store) BundledSkills() ([]string, error)
- func (s *Store) CachePath(name string) (string, error)
- func (s *Store) EnsureLayout() error
- func (s *Store) InstalledPath(skill, version string) (string, error)
- func (s *Store) IsBundled(skill string) (bool, error)
- func (s *Store) IsInstalled(skill, version string) (bool, error)
- func (s *Store) ListSkills() ([]string, error)
- func (s *Store) ListVersions(skill string) ([]string, error)
- func (s *Store) PreviousVersion(skill string) (string, error)
- func (s *Store) RemoveVersion(ctx context.Context, skill, version string) error
- func (s *Store) ReplaceBundledSkills(ctx context.Context, skills []string) error
- func (s *Store) Resolve(skill, version string) (string, error)
- func (s *Store) RestoreSelection(ctx context.Context, skill string, selection Selection) error
- func (s *Store) Root() string
- func (s *Store) Snapshot(skill string) (Selection, error)
- func (s *Store) TempPath(prefix string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) BundledSkills ¶
BundledSkills 返回当前由 AgentDock 随附管理的 Skill 名称。 版本和摘要仍由 installed/ 与 state/ 负责,避免在清单中重复保存。
func (*Store) EnsureLayout ¶
func (*Store) ListSkills ¶
func (*Store) RemoveVersion ¶
func (*Store) ReplaceBundledSkills ¶
ReplaceBundledSkills 原子替换内置清单。调用方应在所有随附 Skill 安装成功后再提交名单,避免留下“已内置但未安装”的半完成状态。
func (*Store) RestoreSelection ¶
RestoreSelection 恢复一次操作前保存的版本选择。 它只用于安装事务回滚;正常版本切换应继续使用 Activate 记录历史。
Click to show internal directories.
Click to hide internal directories.