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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas WintherandClaude Opus 5.5 committed 2026-10-30 22:13:24 +01:00
1 parent c2e8c83f86
commit 53d9e7c9c9
3 files changed
+10 -2

No files matched your search

+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",