Documentation
¶
Overview ¶
Package builtins ships byre's built-in skills embedded in the binary and materializes them into ~/.byre/skills/ so they are loadable (and inspectable and editable) like any hand-dropped skill.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaterializeSkills ¶
MaterializeSkills writes the built-in skills into destDir (~/.byre/skills).
func MaterializeTemplates ¶
MaterializeTemplates writes the built-in templates into destDir (~/.byre/templates).
Types ¶
type Change ¶
Change records one skill or template changed by an update: its name and where its prior copy is kept (Backup is the backup slot, or a leftover stash path if the backup couldn't be published; "" only when newly installed).
func UpdateSkills ¶
UpdateSkills re-materializes the built-in skills into destDir, OVERWRITING existing copies with the shipped version (unlike Materialize, which never clobbers). A replaced copy that differs is preserved in an append-only backup under the sibling skills.bak/ dir. Returns the changes (installed or updated), sorted by name. Hand-dropped (non-built-in) skills are not touched.
func UpdateTemplates ¶
UpdateTemplates is UpdateSkills for the built-in templates (backups land in templates.bak/) — so shipped template changes have the same pickup path as shipped skill changes.