skillprovenance

package
v1.0.63 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 8 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 skillprovenance builds the per-Skill provenance records stored in the single ~/.dws/skills-state.json metadata file.

Index

Constants

View Source
const (
	DigestScope = "skill-directory-v1"

	SourceSkillSetup = "dws-skill-setup"
	SourceUpgrade    = "dws-upgrade"
)

Variables

This section is empty.

Functions

func DigestDir

func DigestDir(root string) (string, error)

DigestDir hashes every regular file ordered by slash-normalized relative path. Paths and contents are NUL-delimited.

func Names

func Names(records []Record) map[string]bool

Types

type Record

type Record struct {
	Name        string `json:"name"`
	Version     string `json:"version"`
	Source      string `json:"source"`
	Digest      string `json:"digest"`
	DigestScope string `json:"digest_scope"`
}

Record identifies one DWS-managed Skill. Ownership is derived from these records, never from files placed inside an Agent's Skill directory.

func Build

func Build(name, dir, version, source string) (Record, error)

Build returns a deterministic provenance record for a Skill directory.

func Merge

func Merge(existing, updates []Record) []Record

Merge replaces records with matching names and returns a name-sorted set.

Jump to

Keyboard shortcuts

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