()
| 171 | return !c.dev; |
| 172 | } |
| 173 | function _temp() { |
| 174 | const ch = getAllowedChannels(); |
| 175 | if (ch.length === 0) { |
| 176 | return { |
| 177 | channels: ch, |
| 178 | disabled: false, |
| 179 | noAuth: false, |
| 180 | policyBlocked: false, |
| 181 | list: "", |
| 182 | unmatched: [] as Unmatched[] |
| 183 | }; |
| 184 | } |
| 185 | const l = ch.map(formatEntry).join(", "); |
| 186 | const sub = getSubscriptionType(); |
| 187 | const managed = sub === "team" || sub === "enterprise"; |
| 188 | const policy = getSettingsForSource("policySettings"); |
| 189 | const allowlist = getEffectiveChannelAllowlist(sub, policy?.allowedChannelPlugins); |
| 190 | return { |
| 191 | channels: ch, |
| 192 | disabled: !isChannelsEnabled(), |
| 193 | noAuth: !getClaudeAIOAuthTokens()?.accessToken, |
| 194 | policyBlocked: managed && policy?.channelsEnabled !== true, |
| 195 | list: l, |
| 196 | unmatched: findUnmatched(ch, allowlist) |
| 197 | }; |
| 198 | } |
| 199 | function formatEntry(c: ChannelEntry): string { |
| 200 | return c.kind === 'plugin' ? `plugin:${c.name}@${c.marketplace}` : `server:${c.name}`; |
| 201 | } |
nothing calls this directly
no test coverage detected