(displayName: string)
| 93 | } |
| 94 | |
| 95 | export function parseDisplayName(displayName: string): { provider: string; connection?: string } { |
| 96 | const match = displayName.match(/^(.+?)\s*\((.+)\)$/) |
| 97 | if (!match) return { provider: displayName } |
| 98 | return { provider: match[1], connection: match[2] } |
| 99 | } |
| 100 | |
| 101 | export async function listConnections(provider: string): Promise<Array<{ key: string; connection?: string; info: Info }>> { |
| 102 | const auth = await all() |
nothing calls this directly
no outgoing calls
no test coverage detected