bingocode 1.1.200-beta.2 → 1.1.200-beta.21
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 +1 -1
- package/src/cli/ProviderPanel.tsx +813 -813
- package/src/commands/brain/brain.ts +4 -9
- package/src/components/PromptInput/PromptInput.tsx +1 -1
- package/src/constants/prompts.ts +31 -19
- package/src/hooks/useMergedTools.ts +3 -1
- package/src/main.tsx +4693 -4691
- package/src/manager/CliMenuManager.tsx +1589 -1583
- package/src/screens/REPL.tsx +5010 -5008
- package/src/screens/ResumeConversation.tsx +7 -1
- package/src/server/api/providers.ts +24 -0
- package/src/server/config/providers.yaml +21 -0
- package/src/server/proxy/handler.ts +16 -3
- package/src/server/services/providerService.ts +189 -50
- package/src/tools/AgentTool/UI.tsx +73 -8
- package/src/tools/AgentTool/agentToolUtils.ts +2 -2
- package/src/tools.ts +397 -390
- package/src/types/logs.ts +1 -0
- package/src/utils/attachments.ts +3 -2
- package/src/utils/conversationRecovery.ts +1 -0
- package/src/utils/sessionRestore.ts +2 -0
- package/src/utils/sessionStorage.ts +5180 -5105
- package/src/utils/tokens.ts +23 -0
package/src/types/logs.ts
CHANGED
|
@@ -48,6 +48,7 @@ export type LogOption = {
|
|
|
48
48
|
prUrl?: string // Full URL to the linked PR
|
|
49
49
|
prRepository?: string // Repository in "owner/repo" format
|
|
50
50
|
mode?: 'coordinator' | 'normal' // Session mode for coordinator/normal detection
|
|
51
|
+
brainMode?: boolean
|
|
51
52
|
worktreeSession?: PersistedWorktreeSession | null // Worktree state at session end (null = exited, undefined = never entered)
|
|
52
53
|
contentReplacements?: ContentReplacementRecord[] // Replacement decisions for resume reconstruction
|
|
53
54
|
}
|
package/src/utils/attachments.ts
CHANGED
|
@@ -64,6 +64,7 @@ import {
|
|
|
64
64
|
} from 'src/types/textInputTypes.js'
|
|
65
65
|
import { randomUUID, type UUID } from 'crypto'
|
|
66
66
|
import { getInitialSettings, getSettings_DEPRECATED } from './settings/settings.js'
|
|
67
|
+
import { getCurrentSessionBrainMode } from './sessionStorage.js'
|
|
67
68
|
import { getSnippetForTwoFileDiff } from 'src/tools/FileEditTool/utils.js'
|
|
68
69
|
import type {
|
|
69
70
|
ContentBlockParam,
|
|
@@ -1594,14 +1595,14 @@ function getCriticalSystemReminderAttachment(
|
|
|
1594
1595
|
}
|
|
1595
1596
|
|
|
1596
1597
|
function getBrainModeReminderAttachment(): Attachment[] {
|
|
1597
|
-
if (!getInitialSettings().brainMode) {
|
|
1598
|
+
if (!getInitialSettings().brainMode && !getCurrentSessionBrainMode()) {
|
|
1598
1599
|
return []
|
|
1599
1600
|
}
|
|
1600
1601
|
return [
|
|
1601
1602
|
{
|
|
1602
1603
|
type: 'system_reminder' as const,
|
|
1603
1604
|
content:
|
|
1604
|
-
'/brain active —
|
|
1605
|
+
'/brain active — You are the high-dimensional thinker. Delegate everything through Agent.',
|
|
1605
1606
|
},
|
|
1606
1607
|
]
|
|
1607
1608
|
}
|
|
@@ -308,6 +308,7 @@ type ResumeLoadResult = {
|
|
|
308
308
|
customTitle?: string
|
|
309
309
|
tag?: string
|
|
310
310
|
mode?: 'coordinator' | 'normal'
|
|
311
|
+
brainMode?: boolean
|
|
311
312
|
worktreeSession?: PersistedWorktreeSession | null
|
|
312
313
|
prNumber?: number
|
|
313
314
|
prUrl?: string
|
|
@@ -546,6 +547,7 @@ export async function processResumedConversation(
|
|
|
546
547
|
...(restoredAttribution && { attribution: restoredAttribution }),
|
|
547
548
|
...(standaloneAgentContext && { standaloneAgentContext }),
|
|
548
549
|
agentDefinitions: refreshedAgentDefs,
|
|
550
|
+
brainMode: result.brainMode ?? false,
|
|
549
551
|
},
|
|
550
552
|
}
|
|
551
553
|
}
|