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:
william
2026-10-31 17:51:30 +01:00
parent 885e24d037
commit 9aa5abc121
12 changed files with 28 additions and 494 deletions
-7
View File
@@ -1,6 +1,4 @@
import type { SkillDefinition } from './types'
import type { Mode } from '../mode/modeState'
import { getModesForSkill } from './modeMap'
import { windowsSkills } from './windows'
import { macSkills } from './mac'
import { visionSkills } from './vision'
@@ -25,11 +23,6 @@ export function loadSkills(): SkillDefinition[] {
]
}
/** Filtre les skills exposes a l'IA selon le mode actif (voir docs/skills.md). */
export function getSkillsForMode(mode: Mode): SkillDefinition[] {
return loadSkills().filter((skill) => getModesForSkill(skill.name).includes(mode))
}
export function findSkill(name: string): SkillDefinition | undefined {
return loadSkills().find((skill) => skill.name === name)
}