bingocode 1.1.200-beta.6 → 1.1.200-beta.7
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
|
@@ -2328,7 +2328,7 @@ function buildBorderText(showFastIcon: boolean, showFastIconHint: boolean, fastM
|
|
|
2328
2328
|
segments.push(showFastIconHint ? `${getFastIconString(true, fastModeCooldown)} ${chalk.dim('/fast')}` : getFastIconString(true, fastModeCooldown))
|
|
2329
2329
|
}
|
|
2330
2330
|
if (isBrainMode) {
|
|
2331
|
-
segments.push(chalk.yellow('
|
|
2331
|
+
segments.push(chalk.yellow('BRAIN'))
|
|
2332
2332
|
}
|
|
2333
2333
|
return { content: ` ${segments.join(' ')} `, position: 'top', align: 'end', offset: 0 }
|
|
2334
2334
|
}
|
|
@@ -645,9 +645,9 @@ export class ProviderService {
|
|
|
645
645
|
const raw = await fs.readFile(settingsPath, "utf-8")
|
|
646
646
|
const settings = JSON.parse(raw)
|
|
647
647
|
settings.claudeCode = {
|
|
648
|
+
disableLoginPrompt: false,
|
|
648
649
|
environmentVariables: [
|
|
649
650
|
{ name: "ANTHROPIC_BASE_URL", value: "https://api.anthropic.com" },
|
|
650
|
-
{ name: "ANTHROPIC_AUTH_TOKEN", value: "" },
|
|
651
651
|
],
|
|
652
652
|
}
|
|
653
653
|
await fs.writeFile(settingsPath, JSON.stringify(settings, null, 4) + '
|
|
@@ -2892,7 +2892,17 @@ export function saveMode(mode: 'coordinator' | 'normal'): void {
|
|
|
2892
2892
|
}
|
|
2893
2893
|
|
|
2894
2894
|
export function saveBrainMode(enabled: boolean): void {
|
|
2895
|
-
getProject()
|
|
2895
|
+
const project = getProject()
|
|
2896
|
+
project.currentSessionBrainMode = enabled
|
|
2897
|
+
// Write eagerly when session file already exists, so /brain toggle
|
|
2898
|
+
// persists even if the session is exited before the first message.
|
|
2899
|
+
if (project.sessionFile !== null) {
|
|
2900
|
+
appendEntryToFile(project.sessionFile, {
|
|
2901
|
+
type: 'brain-mode',
|
|
2902
|
+
brainMode: enabled,
|
|
2903
|
+
sessionId: getSessionId(),
|
|
2904
|
+
})
|
|
2905
|
+
}
|
|
2896
2906
|
}
|
|
2897
2907
|
|
|
2898
2908
|
export function getCurrentSessionBrainMode(): boolean | undefined {
|