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>
29 lines
837 B
TypeScript
29 lines
837 B
TypeScript
import type { SkillDefinition } from './types'
|
|
import { windowsSkills } from './windows'
|
|
import { macSkills } from './mac'
|
|
import { visionSkills } from './vision'
|
|
import { memorySkills } from './memory'
|
|
import { webSkills } from './web'
|
|
import { browserSkills } from './browser'
|
|
import { meetingSkills } from './meeting'
|
|
import { coachSkills } from './coach'
|
|
|
|
export type { SkillDefinition } from './types'
|
|
|
|
export function loadSkills(): SkillDefinition[] {
|
|
const platformSkills = process.platform === 'darwin' ? macSkills : windowsSkills
|
|
return [
|
|
...platformSkills,
|
|
...visionSkills,
|
|
...memorySkills,
|
|
...webSkills,
|
|
...browserSkills,
|
|
...meetingSkills,
|
|
...coachSkills
|
|
]
|
|
}
|
|
|
|
export function findSkill(name: string): SkillDefinition | undefined {
|
|
return loadSkills().find((skill) => skill.name === name)
|
|
}
|