Repository navigation
feat(init): shareable templates as plain files, with {{variables}} - #271
Merged
Merged
Conversation
Templates are now folders of plain files (template.yaml + team.yaml +
any agent files), found in the project, the user's home, or built in.
init fills {{name}} variables (model, endpoint, project, plus any the
template declares via --var), compiles the result, and only then writes.
- 11 built-ins become 6 YAML templates under templates/, embedded in the
binary: solo, swe, brownfield, research, debate, magentic. Retired
names say what to use instead.
- New `fuseraft templates list|validate|add|remove`.
- Shared rules move to one home: the file-reading rule (AgentGuidance)
for the REPL and every orchestrated FileSystem agent; gate format
guidance on the check itself (reviewJudgement, testReport), printed in
the Team protocol; DirectoryMirror for skills and templates;
TeamLint.MissingRoutes for validate, templates validate and tests.
- docs: new Templates and Variables & Special Strings pages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
fuseraft inittemplates are now plain files that anyone can write, share and install. Every placeholder and special string fuseraft understands is documented on one page.Templates as folders
template.yaml(name, title, description, variables) plusteam.yamlplus any other files, such as markdown agent files. A lone team file also works, including every file inconfig/examples/, and brings along the agent files it names.{{name}}variables are filled in once, at init. Three are built in (model,endpoint,project) and a template can declare its own, set with--var name=valueor asked for in the wizard. A line using an empty variable is left out, an unknown name is an error giving the file and line, and\{{writes a literal{{. There are no conditionals..fuseraft/templates/, then~/.fuseraft/templates/, then built-in. A project can ship its ownswe.fuseraft templates list | validate | add | remove.11 built-ins → 6
solo,swe,brownfield,research,debateandmagenticnow live as YAML intemplates/, embedded in the binary. They replace about 2,900 lines of C#.pipelineandgreenfieldpoint toswe.data,devopsandauditpoint to the examples or a custom template.Shared logic in one place
AgentGuidance: the file-reading rule used by the REPL is now given to every orchestrated agent withFileSystem, not only to templated ones.CompiledCheck.Guidance: the exact formats thatreviewJudgementandtestReportparse now travel with the check. The Team protocol shows them under "What the checks need", so hand-written teams get them too.DirectoryMirror: shared byskills addandtemplates add.TeamLint.MissingRoutes: used byfuseraft validate,templates validateand the tests.The REPL and orchestration prompt builders stay separate, because they serve different purposes. Only the shared rules moved.
Docs
Compatibility
--template pipeline|greenfield|data|devops|auditnow fails, with a message saying what to use instead.--jsonoutput only gains fields (source,locationandvariableson templates,variableson the init result). fuseraft-web can't pass--varyet.Testing
./build.sh: all tests pass, with no warnings. The new tests cover the renderer, loader, catalog, scaffolder, init, TeamLint and the Team protocol. Every built-in and every example compiles and passes the template check.--varand--json;templates add/validate/remove;fuseraft validateon the generated output.