feat(server): plugins list says which sources sign in with a device code

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Lucas Winther
2026-10-30 22:13:24 +01:00
co-authored by Claude Opus 5.5
parent c2e8c83f86
commit 53d9e7c9c9
3 changed files with 10 additions and 2 deletions
+2 -2
View File
@@ -38,9 +38,9 @@ export const sourceRoutes = [
route({
method: "GET",
path: "plugins",
summary: "Installed source plugins (manifests).",
summary: "Installed source plugins (manifests, plus deviceAuth: whether sign-in uses a device code).",
auth: "any:read",
handler: async ({ deps }) => deps.registry.list(),
handler: async ({ deps }) => deps.registry.list().map((m) => ({ ...m, deviceAuth: !!deps.registry.get(m.id)?.deviceAuth })),
}),
route({
method: "GET",