bingocode 1.1.143 → 1.1.145

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.
Files changed (58) hide show
  1. package/.claude/settings.local.json +24 -1
  2. package/bin/bingo-win.cjs +17 -21
  3. package/bin/bingocode-win.cjs +18 -22
  4. package/bin/claude-win.cjs +18 -21
  5. package/package.json +1 -1
  6. package/scripts/build-auto-mode.ts +86 -0
  7. package/src/cli/print.ts +3 -3
  8. package/src/cli/structuredIO.ts +2 -2
  9. package/src/commands/login/login.tsx +2 -2
  10. package/src/components/PromptInput/PromptInput.tsx +7 -7
  11. package/src/components/Settings/Config.tsx +6 -6
  12. package/src/components/messages/UserToolResultMessage/UserToolSuccessMessage.tsx +3 -3
  13. package/src/components/permissions/BashPermissionRequest/BashPermissionRequest.tsx +10 -10
  14. package/src/components/permissions/ExitPlanModePermissionRequest/ExitPlanModePermissionRequest.tsx +10 -10
  15. package/src/components/permissions/PermissionDecisionDebugInfo.tsx +2 -2
  16. package/src/components/permissions/PermissionRuleExplanation.tsx +2 -2
  17. package/src/components/permissions/hooks.ts +2 -2
  18. package/src/constants/betas.ts +2 -2
  19. package/src/hooks/notifs/useAutoModeUnavailableNotification.ts +2 -2
  20. package/src/hooks/toolPermission/PermissionContext.ts +3 -3
  21. package/src/hooks/toolPermission/handlers/coordinatorHandler.ts +2 -2
  22. package/src/hooks/toolPermission/handlers/interactiveHandler.ts +6 -6
  23. package/src/hooks/toolPermission/handlers/swarmWorkerHandler.ts +2 -2
  24. package/src/hooks/toolPermission/permissionLogging.ts +3 -3
  25. package/src/hooks/useReplBridge.tsx +2 -2
  26. package/src/interactiveHelpers.tsx +2 -2
  27. package/src/main.tsx +8 -8
  28. package/src/migrations/resetAutoModeOptInForDefaultOffer.ts +2 -2
  29. package/src/screens/REPL.tsx +4 -4
  30. package/src/server/ensureSingletonLocalServer.ts +18 -26
  31. package/src/services/api/claude.ts +4 -4
  32. package/src/services/api/withRetry.ts +2 -2
  33. package/src/services/tools/toolExecution.ts +2 -2
  34. package/src/tools/AgentTool/AgentTool.tsx +3 -3
  35. package/src/tools/AgentTool/agentToolUtils.ts +3 -3
  36. package/src/tools/AgentTool/runAgent.ts +2 -2
  37. package/src/tools/BashTool/bashPermissions.ts +17 -17
  38. package/src/tools/BashTool/pathValidation.ts +2 -2
  39. package/src/tools/ConfigTool/supportedSettings.ts +2 -2
  40. package/src/tools/ExitPlanModeTool/ExitPlanModeV2Tool.ts +5 -5
  41. package/src/tools/NotebookEditTool/NotebookEditTool.ts +2 -2
  42. package/src/types/permissions.ts +2 -2
  43. package/src/utils/attachments.ts +3 -3
  44. package/src/utils/autoModeDenials.ts +2 -2
  45. package/src/utils/betas.ts +2 -2
  46. package/src/utils/classifierApprovals.ts +7 -7
  47. package/src/utils/messages.ts +2 -2
  48. package/src/utils/permissions/PermissionMode.ts +2 -2
  49. package/src/utils/permissions/autoModeState.ts +2 -2
  50. package/src/utils/permissions/bypassPermissionsKillswitch.ts +2 -2
  51. package/src/utils/permissions/getNextPermissionMode.ts +2 -2
  52. package/src/utils/permissions/permissionSetup.ts +13 -13
  53. package/src/utils/permissions/permissions.ts +6 -6
  54. package/src/utils/permissions/yoloClassifier.ts +5 -5
  55. package/src/utils/settings/settings.ts +5 -5
  56. package/src/utils/settings/types.ts +4 -4
  57. package/src/utils/swarm/inProcessRunner.ts +2 -2
  58. package/src/utils/toolResultStorage.ts +2 -2
@@ -1,4 +1,4 @@
1
- import { feature } from 'bun:bundle'
1
+ import { feature } from 'bun:bundle'
2
2
  import mergeWith from 'lodash-es/mergeWith.js'
3
3
  import { dirname, join, resolve } from 'path'
4
4
  import { z } from 'zod/v4'
@@ -574,7 +574,7 @@ export function getManagedSettingsKeysForLogging(
574
574
  'ask',
575
575
  'defaultMode',
576
576
  'disableBypassPermissionsMode',
577
- ...(feature('TRANSCRIPT_CLASSIFIER') ? ['disableAutoMode'] : []),
577
+ ...(true ? ['disableAutoMode'] : []),
578
578
  'additionalDirectories',
579
579
  ]),
580
580
  sandbox: new Set([
@@ -894,7 +894,7 @@ export function hasSkipDangerousModePermissionPrompt(): boolean {
894
894
  * a malicious project could otherwise auto-bypass the dialog (RCE risk).
895
895
  */
896
896
  export function hasAutoModeOptIn(): boolean {
897
- if (feature('TRANSCRIPT_CLASSIFIER')) {
897
+ if (true) {
898
898
  const user = getSettingsForSource('userSettings')?.skipAutoPermissionPrompt
899
899
  const local =
900
900
  getSettingsForSource('localSettings')?.skipAutoPermissionPrompt
@@ -916,7 +916,7 @@ export function hasAutoModeOptIn(): boolean {
916
916
  * projectSettings is excluded so a malicious project can't control this.
917
917
  */
918
918
  export function getUseAutoModeDuringPlan(): boolean {
919
- if (feature('TRANSCRIPT_CLASSIFIER')) {
919
+ if (true) {
920
920
  return (
921
921
  getSettingsForSource('policySettings')?.useAutoModeDuringPlan !== false &&
922
922
  getSettingsForSource('flagSettings')?.useAutoModeDuringPlan !== false &&
@@ -936,7 +936,7 @@ export function getUseAutoModeDuringPlan(): boolean {
936
936
  export function getAutoModeConfig():
937
937
  | { allow?: string[]; soft_deny?: string[]; environment?: string[] }
938
938
  | undefined {
939
- if (feature('TRANSCRIPT_CLASSIFIER')) {
939
+ if (true) {
940
940
  const schema = z.object({
941
941
  allow: z.array(z.string()).optional(),
942
942
  soft_deny: z.array(z.string()).optional(),
@@ -1,4 +1,4 @@
1
- import { feature } from 'bun:bundle'
1
+ import { feature } from 'bun:bundle'
2
2
  import { z } from 'zod/v4'
3
3
  import { SandboxSettingsSchema } from '../../entrypoints/sandboxTypes.js'
4
4
  import { isEnvTruthy } from '../envUtils.js'
@@ -58,7 +58,7 @@ export const PermissionsSchema = lazySchema(() =>
58
58
  ),
59
59
  defaultMode: z
60
60
  .enum(
61
- feature('TRANSCRIPT_CLASSIFIER')
61
+ true
62
62
  ? PERMISSION_MODES
63
63
  : EXTERNAL_PERMISSION_MODES,
64
64
  )
@@ -68,7 +68,7 @@ export const PermissionsSchema = lazySchema(() =>
68
68
  .enum(['disable'])
69
69
  .optional()
70
70
  .describe('Disable the ability to bypass permission prompts'),
71
- ...(feature('TRANSCRIPT_CLASSIFIER')
71
+ ...(true
72
72
  ? {
73
73
  disableAutoMode: z
74
74
  .enum(['disable'])
@@ -965,7 +965,7 @@ export const SettingsSchema = lazySchema(() =>
965
965
  .describe(
966
966
  'Whether the user has accepted the bypass permissions mode dialog',
967
967
  ),
968
- ...(feature('TRANSCRIPT_CLASSIFIER')
968
+ ...(true
969
969
  ? {
970
970
  skipAutoPermissionPrompt: z
971
971
  .boolean()
@@ -1,4 +1,4 @@
1
- /**
1
+ /**
2
2
  * In-process teammate runner
3
3
  *
4
4
  * Wraps runAgent() for in-process teammates, providing:
@@ -157,7 +157,7 @@ function createInProcessCanUseTool(
157
157
  // Agents await the classifier result (rather than racing it against user
158
158
  // interaction like the main agent).
159
159
  if (
160
- feature('BASH_CLASSIFIER') &&
160
+ true &&
161
161
  tool.name === BASH_TOOL_NAME &&
162
162
  result.pendingClassifierCheck
163
163
  ) {
@@ -1,4 +1,4 @@
1
- /**
1
+ /**
2
2
  * Utility for persisting large tool results to disk instead of truncating them.
3
3
  */
4
4
 
@@ -996,7 +996,7 @@ export function reconstructContentReplacementState(
996
996
  *
997
997
  * Kept out of AgentTool.tsx — that file is at the feature() DCE complexity
998
998
  * cliff and cannot tolerate even +1 net source line without silently
999
- * breaking feature('TRANSCRIPT_CLASSIFIER') eval in tests.
999
+ * breaking true eval in tests.
1000
1000
  */
1001
1001
  export function reconstructForSubagentResume(
1002
1002
  parentState: ContentReplacementState | undefined,