UNPKG

cmte

Version:

Design by Committee™ except it's just you and LLMs

32 lines (28 loc) 1.2 kB
// Export interfaces export { FileContext } from './interfaces.js'; export * from './interfaces.js'; // Export frontmatter loader export * from './frontmatter.js'; // Export component registry export * from './registry.js'; // Export path utilities export * from './path.js'; /** * The components module provides the hierarchical component model for Committee. * * Key concepts: * * 1. Task - The atomic unit of work, typically involving a template for an LLM call * 2. Set - A collection of tasks or other sets, with a defined execution mode * 3. Phase - A major stage in a workflow with its own set of related tasks/sets * 4. Workflow - A complete process that orchestrates multiple phases * * The component registry handles path resolution using a specificity cascade: * 1. First looks in the current workflow's templates directory * 2. If not found, looks in the global templates directory * * The path generator standardizes output paths using the .o.md convention: * {workflow_path}/{phase}/{set}/{task}.o.md # For task outputs * {workflow_path}/{phase}/{set}.o.md # For set outputs * {workflow_path}/{phase}/{phase}.o.md # For phase outputs */