Skip to main content

Module writer

Module writer 

Source
Expand description

Per-product render writer. Walks the skills declared for the active product, renders each via Tera + helpers when its input hash differs from the recorded cache entry, and writes the output under <source-root>/build/<product>/. Skills with a cache hit are left on disk verbatim — the determinism contract guarantees the cache-hit path is byte-identical to a fresh render of the same source.

Render only opens paths under <source-root>/. Every read is rooted through source_path and joined to the canonical source root, so a malicious skill.source like ../../etc lands outside the source root and is rejected before any I/O happens.

Structs§

HomePromptReport
RenderReport

Constants§

AGENT_TEMPLATE_FILE
Required canonical template under each core/agents/<name>/ source dir. Mirrors SKILL_TEMPLATE_FILE; the rendered output lands at the product’s render_to (e.g. agents/<name>.toml).
HOME_PROMPT_FILE
NEUTRAL_HOME_PRODUCT
SKILL_TEMPLATE_FILE

Functions§

write_home_prompt
write_product
Render every skill declared for product from manifests rooted at root into the default <source-root>/build/<product>/ tree.