Repository navigation
·
7 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Added
- Templates can include repo files:
{{ include("path/from/repo/root") }}.
The motivating case is the AGENTS.md fan-in (one shared "hub" file linked
into many agent config dirs): a tool that reads exactly one file and has no
import syntax previously forced a choice between linking the hub verbatim
or forking it — and a fork silently stops receiving hub edits. A.tmpl
source can now compose hub + delta ({{ include("agents/AGENTS.md") }}
followed by tool-specific lines), rendered into the staged file the target
links. Include semantics are deliberately narrow: the argument must be a
safe repo-relative fragment (no.., no leading/), must not live under
.stitch/or.git/, must reach a regular file without passing through a
symlink (one hop only, the same rule asadd --source), and must be valid
UTF-8. Included text is embedded verbatim — never rendered — so recursion
cannot occur and.tmplarguments are rejected outright. Fresh renders
re-read included files on everyapply/diff/doctor, so editing an
included hub shows up as acontentdiff and a doctor staging-drift
warning until the next apply converges it.