bingocode 1.1.200-beta.4 → 1.1.200-beta.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bingocode",
3
- "version": "1.1.200-beta.4",
3
+ "version": "1.1.200-beta.6",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "claude": "bin/claude-win.cjs",
@@ -927,7 +927,7 @@ The user context may include a \`terminalFocus\` field indicating whether the us
927
927
  }
928
928
 
929
929
  function getBrainPolicySection(): string | null {
930
- const { getCurrentSessionBrainMode } = require('./sessionStorage.js')
930
+ const { getCurrentSessionBrainMode } = require('../utils/sessionStorage.js')
931
931
  if (!getInitialSettings().brainMode && !getCurrentSessionBrainMode()) return null
932
932
  return `# Brain Mode (/brain)
933
933
 
@@ -647,6 +647,7 @@ export class ProviderService {
647
647
  settings.claudeCode = {
648
648
  environmentVariables: [
649
649
  { name: "ANTHROPIC_BASE_URL", value: "https://api.anthropic.com" },
650
+ { name: "ANTHROPIC_AUTH_TOKEN", value: "" },
650
651
  ],
651
652
  }
652
653
  await fs.writeFile(settingsPath, JSON.stringify(settings, null, 4) + '
@@ -2769,7 +2769,7 @@ export function restoreSessionMetadata(meta: {
2769
2769
  agentName?: string
2770
2770
  agentColor?: string
2771
2771
  agentSetting?: string
2772
- mode?: 'coordinator' | 'normal',
2772
+ mode?: 'coordinator' | 'normal'
2773
2773
  brainMode?: boolean
2774
2774
  worktreeSession?: PersistedWorktreeSession | null
2775
2775
  prNumber?: number
@@ -2888,13 +2888,15 @@ export function cacheSessionTitle(customTitle: string): void {
2888
2888
  * Cache-only here to avoid creating metadata-only session files at startup.
2889
2889
  */
2890
2890
  export function saveMode(mode: 'coordinator' | 'normal'): void {
2891
- export function saveBrainMode(enabled: boolean): void {
2892
- export function getCurrentSessionBrainMode(): boolean | undefined {
2893
- return getProject().currentSessionBrainMode
2891
+ getProject().currentSessionMode = mode
2894
2892
  }
2893
+
2894
+ export function saveBrainMode(enabled: boolean): void {
2895
2895
  getProject().currentSessionBrainMode = enabled
2896
2896
  }
2897
- getProject().currentSessionMode = mode
2897
+
2898
+ export function getCurrentSessionBrainMode(): boolean | undefined {
2899
+ return getProject().currentSessionBrainMode
2898
2900
  }
2899
2901
 
2900
2902
  /**
@@ -3619,16 +3621,16 @@ export async function loadTranscriptFile(
3619
3621
  } else if (entry.type === 'agent-setting' && entry.sessionId) {
3620
3622
  agentSettings.set(entry.sessionId, entry.agentSetting)
3621
3623
  } else if (entry.type === 'mode' && entry.sessionId) {
3622
- modes.set(entry.sessionId, entry.mode)
3623
- } else if (entry.type === 'brain-mode' && entry.sessionId) {
3624
- brainModes.set(entry.sessionId, entry.brainMode)
3625
- } else if (entry.type === 'worktree-state' && entry.sessionId) {
3626
- worktreeStates.set(entry.sessionId, entry.worktreeSession)
3627
- } else if (entry.type === 'pr-link' && entry.sessionId) {
3628
- prNumbers.set(entry.sessionId, entry.prNumber)
3629
- prUrls.set(entry.sessionId, entry.prUrl)
3630
- prRepositories.set(entry.sessionId, entry.prRepository)
3631
- }
3624
+ modes.set(entry.sessionId, entry.mode)
3625
+ } else if (entry.type === 'brain-mode' && entry.sessionId) {
3626
+ brainModes.set(entry.sessionId, entry.brainMode)
3627
+ } else if (entry.type === 'worktree-state' && entry.sessionId) {
3628
+ worktreeStates.set(entry.sessionId, entry.worktreeSession)
3629
+ } else if (entry.type === 'pr-link' && entry.sessionId) {
3630
+ prNumbers.set(entry.sessionId, entry.prNumber)
3631
+ prUrls.set(entry.sessionId, entry.prUrl)
3632
+ prRepositories.set(entry.sessionId, entry.prRepository)
3633
+ }
3632
3634
  }
3633
3635
  }
3634
3636