MCPcopy Create free account
hub / github.com/codeaashu/claude-code / _temp

Function _temp

src/components/LogoV2/ChannelsNotice.tsx:173–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171 return !c.dev;
172}
173function _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}
199function formatEntry(c: ChannelEntry): string {
200 return c.kind === 'plugin' ? `plugin:${c.name}@${c.marketplace}` : `server:${c.name}`;
201}

Callers

nothing calls this directly

Calls 6

getAllowedChannelsFunction · 0.85
getSubscriptionTypeFunction · 0.85
getSettingsForSourceFunction · 0.85
isChannelsEnabledFunction · 0.85
findUnmatchedFunction · 0.85

Tested by

no test coverage detected