(providerId, providerConfig = null)
| 767 | } |
| 768 | |
| 769 | function formatProviderLabel(providerId, providerConfig = null) { |
| 770 | const configuredName = typeof providerConfig?.name === "string" ? providerConfig.name.trim() : ""; |
| 771 | if (configuredName) { |
| 772 | return configuredName; |
| 773 | } |
| 774 | if (!providerId) { |
| 775 | return "The active provider"; |
| 776 | } |
| 777 | return BUILTIN_PROVIDER_LABELS.get(providerId) ?? providerId; |
| 778 | } |
| 779 | |
| 780 | function buildAuthStatus(fields = {}) { |
| 781 | return { |
no outgoing calls
no test coverage detected