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.
@@ -0,0 +1,7 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(bun run:*)"
5
+ ]
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bingocode",
3
- "version": "1.1.148",
3
+ "version": "1.1.149",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "claude": "bin/claude-win.cjs",
@@ -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
- if (process.env.USER_TYPE !== 'ant' && getAPIProvider() !== 'firstParty') {
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