Configure generic model providers and Markdown agent definitions (T90)

This commit is contained in:
2026-11-12 08:46:32 +00:00
parent 2934e59fda
commit 49e88246c7
134 changed files with 69036 additions and 45313 deletions
+3 -3
View File
@@ -37396,10 +37396,10 @@ Last good: ${fallback}` : failed;
if (active) await enqueue2();
}
})();
return { reload: enqueue2, state: () => ({ ...state }), async standing() {
return { reload: enqueue2, state: () => ({ ...state }), async mainAgent() {
if (!providers.has("models") || !providers.has("subagents")) return void 0;
const { standing: name } = await providers.get("models").discover(repo);
const conversationId = await providers.get("subagents").standing(name, context);
const { main_agent_name: name } = await providers.get("models").discover(repo);
const conversationId = await providers.get("subagents").mainAgent(name, context);
return { name, conversationId };
}, async invoke(name, key, args, signal, conversationId) {
const facet = facets.find((f) => f.extension.name === name);