Help us shape the future of Go! Take the 2026 Go Developer Survey

skillprovenance

package
v1.0.65 Latest Latest
Warning

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

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

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