feat(quick-pane): refine spotlight workflow

This commit is contained in:
2026-08-25 19:14:30 +02:00
parent dd23898769
commit 67063464e7
11 changed files with 418 additions and 113 deletions
+10
View File
@@ -1205,6 +1205,16 @@ export function createAgentRegistry({
if (!runtime.ephemeral) throw new Error("runtime is not a quick runtime");
return closeRuntime(runtimeId);
},
async getModelCatalog() {
const runtime = [...runtimesByAgentId.values()].find(
(candidate) => candidate.adapter,
);
if (!runtime?.adapter) return [];
const response = await enqueue(runtime, () =>
runtime.adapter.send({ type: "get_available_models" }),
);
return response?.data?.models ?? [];
},
listAgents() {
return [...runtimesByAgentId.values()]
.map(publicAgent)