@kekkai/blueprint / emitAgentFiles
Function: emitAgentFiles()
emitAgentFiles(
blueprint,defaultTargets?,stack?):AgentFile[]
Defined in: emit/agent/targets.ts:72
Distribute the agent contract across tool-specific files. Shared context files (merge) get the compact pointer block, since people maintain those documents; tool-owned rule files (own) get the full contract. defaultTargets overrides the built-in default when emit.agents is unset; stack carries the fact no Blueprint holds, which decides whether explicitAny may be named hard here. Pure — writes nothing.
Parameters
blueprint
defaultTargets?
stack?
StackFacts = {}
Returns
Example
ts
for (const file of emitAgentFiles(blueprint)) {
writeFileSync(file.path, file.content); // e.g. 'CLAUDE.md', '.cursor/rules/blueprint.mdc'
}