refactor: add to template agent roles

This commit is contained in:
Petr Mironychev
2026-06-04 16:21:34 +02:00
parent c151c5030b
commit 3179c0c358
113 changed files with 383 additions and 5292 deletions

View File

@@ -12,6 +12,9 @@ struct Bindings
{
QString projectDir;
QString homeDir;
// Role id selected at runtime (e.g. in the chat). Used by the no-arg
// `{{ agent_role() }}` template callback; empty falls back to "developer".
QString roleId;
};
QString render(const QString &templateSource, const Bindings &bindings,