chore(cleanup): remove mode selection system
Max no longer has a Basic/Coach/Assistant mode selection: it will start directly as a freelance coach, with a single server-side pipeline built in a later step. Removes the Mode type/state, the skill-to-mode mapping, the per-mode skill filtering and system prompt branching, and the 3-way mode submenu in the context menu. Skills now always load as a single flat set via loadSkills(); mode-specific behavior removal is a prerequisite for retiring the old pipeline itself in the next cleanup commit. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,12 +11,8 @@ interface FakeSkill {
|
||||
}
|
||||
|
||||
let currentSkills: FakeSkill[] = []
|
||||
const getSkillsForMode = vi.fn(() => currentSkills)
|
||||
vi.mock('../../src/main/skills', () => ({ getSkillsForMode }))
|
||||
|
||||
let currentMode: 'basic' | 'coach' | 'assistant' = 'basic'
|
||||
const getMode = vi.fn(() => currentMode)
|
||||
vi.mock('../../src/main/mode/modeState', () => ({ getMode }))
|
||||
const loadSkills = vi.fn(() => currentSkills)
|
||||
vi.mock('../../src/main/skills', () => ({ loadSkills }))
|
||||
|
||||
const getMemoriesText = vi.fn(() => '')
|
||||
const getMood = vi.fn(() => 0)
|
||||
@@ -69,7 +65,6 @@ describe('getAssistantReply()', () => {
|
||||
vi.clearAllMocks()
|
||||
vi.stubGlobal('fetch', vi.fn())
|
||||
currentSkills = []
|
||||
currentMode = 'basic'
|
||||
getSubjectLevel.mockReturnValue(null)
|
||||
process.env.OPENROUTER_API_KEY = 'test-key'
|
||||
setCurrentUserEmail('test@example.com')
|
||||
@@ -208,7 +203,6 @@ describe('getAssistantReply() — garde-fous du pipeline Coach', () => {
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks()
|
||||
vi.stubGlobal('fetch', vi.fn())
|
||||
currentMode = 'coach'
|
||||
getSubjectLevel.mockReturnValue(null)
|
||||
process.env.OPENROUTER_API_KEY = 'test-key'
|
||||
setCurrentUserEmail('test@example.com')
|
||||
|
||||
Reference in New Issue
Block a user