bingocode 1.1.148 → 1.1.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +7 -0
- package/package.json +1 -1
- package/src/utils/betas.ts +13 -1
package/package.json
CHANGED
package/src/utils/betas.ts
CHANGED
|
@@ -163,7 +163,19 @@ export function modelSupportsAutoMode(model: string): boolean {
|
|
|
163
163
|
// External: firstParty-only at launch (PI probes not wired for
|
|
164
164
|
// Bedrock/Vertex/Foundry yet). Checked before allowModels so the GB
|
|
165
165
|
// override can't enable auto mode on unsupported providers.
|
|
166
|
-
|
|
166
|
+
// NOTE(leanchy): For BingoCode fork, bypass the provider check when
|
|
167
|
+
// the user has explicitly opted into auto mode AND set the env var.
|
|
168
|
+
// Original: if (process.env.USER_TYPE !== 'ant' && getAPIProvider() !== 'firstParty')
|
|
169
|
+
const autoModeOptIn = getFeatureValue_CACHED_MAY_BE_STALE<{ enabled?: string }>(
|
|
170
|
+
'tengu_auto_mode_config',
|
|
171
|
+
{},
|
|
172
|
+
)
|
|
173
|
+
if (
|
|
174
|
+
process.env.USER_TYPE !== 'ant' &&
|
|
175
|
+
getAPIProvider() !== 'firstParty' &&
|
|
176
|
+
!isEnvTruthy(process.env.CLAUDE_CODE_ENABLE_AUTO_WITH_ANY_PROVIDER) &&
|
|
177
|
+
autoModeOptIn?.enabled !== 'enabled'
|
|
178
|
+
) {
|
|
167
179
|
return false
|
|
168
180
|
}
|
|
169
181
|
// GrowthBook override: tengu_auto_mode_config.allowModels force-enables
|