MCPcopy Index your code
hub / github.com/openai/codex-plugin-cc / formatProviderLabel

Function formatProviderLabel

plugins/codex/scripts/lib/codex.mjs:769–778  ·  view source on GitHub ↗
(providerId, providerConfig = null)

Source from the content-addressed store, hash-verified

767}
768
769function 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
780function buildAuthStatus(fields = {}) {
781 return {

Callers 1

buildAppServerAuthStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected