Documentation
¶
Overview ¶
Package projreg maintains the advisory per-user project registry under <home>/projects (spec 015 FR-027–029). Every entry is rebuilt from the project itself whenever gskill touches it, so the registry is never a source of truth: deleting it breaks nothing, and reproduction always comes from the project's own skills-lock.json.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Prune ¶
Prune removes entries whose recorded root no longer exists or is no longer a gskill project (no lockfile). It removes registry files only — never repository content (FR-028). Minimal-mode entries (no recorded root) are kept: their liveness cannot be judged. The caller holds the registry lock.
Types ¶
type Entry ¶
type Entry struct {
SchemaVersion int `json:"schemaVersion"`
ProjectID string `json:"projectId"`
Root string `json:"root,omitempty"`
Lockfile string `json:"lockfile,omitempty"`
LastSeen time.Time `json:"lastSeen"`
References []Reference `json:"references"`
}
Entry is one registered project (data-model §4). In minimal privacy mode Root and Lockfile stay empty; registry files are owner-only and never carry credentials.