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

Function partitionBetasByAllowlist

src/utils/betas.ts:43–57  ·  view source on GitHub ↗

* Filter betas to only include those in the allowlist. * Returns allowed and disallowed betas separately.

(betas: string[])

Source from the content-addressed store, hash-verified

41 * Returns allowed and disallowed betas separately.
42 */
43function partitionBetasByAllowlist(betas: string[]): {
44 allowed: string[]
45 disallowed: string[]
46} {
47 const allowed: string[] = []
48 const disallowed: string[] = []
49 for (const beta of betas) {
50 if (ALLOWED_SDK_BETAS.includes(beta)) {
51 allowed.push(beta)
52 } else {
53 disallowed.push(beta)
54 }
55 }
56 return { allowed, disallowed }
57}
58
59/**
60 * Filter SDK betas to only include allowed ones.

Callers 1

filterAllowedSdkBetasFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected