chore(cleanup): remove old SQLite coach pipeline
The entire local-SQLite Coach teaching pipeline (objective/level/plan/module agents, course-build stepper, written-exercise and drawing windows, review scheduler, screen/camera vision capture for blockage detection, and their renderer views) is retired: it will be replaced by a brand new 7-agent pipeline living server-side in Max API/Postgres, built in a later step. Removes src/main/coach/, the coach and vision skill definitions, the coach renderer views and CourseBuildStepper, drawRoughShapes, useCameraCapture, the camera-frame IPC bridge, and the shared coach/courseBuild/drawing types. Strips the corresponding pipeline guard-rails, system-prompt instructions and IPC handlers from openrouter.ts/index.ts/preload. Drops the now-unused mermaid/roughjs dependencies. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -26,12 +26,10 @@ vi.mock('../../../src/renderer/src/voice/useVoiceAssistant', () => ({ useVoiceAs
|
||||
vi.mock('../../../src/renderer/src/voice/useProactiveSpeech', () => ({
|
||||
useProactiveSpeech: vi.fn()
|
||||
}))
|
||||
vi.mock('../../../src/renderer/src/voice/useCameraCapture', () => ({ useCameraCapture: vi.fn() }))
|
||||
vi.mock('../../../src/renderer/src/voice/useMeetingRecorder', () => ({
|
||||
useMeetingRecorder: vi.fn()
|
||||
}))
|
||||
|
||||
let onCourseBuildStepCb: ((state: unknown) => void) | undefined
|
||||
let onUpdateAvailableCb: (() => void) | undefined
|
||||
let onUpdateReadyCb: (() => void) | undefined
|
||||
const sendDroppedFiles = vi.fn()
|
||||
@@ -46,10 +44,6 @@ const getAuthStatus = vi.fn(async (): Promise<{ loggedIn: boolean; email: string
|
||||
|
||||
function setupWindowApi(): void {
|
||||
;(window as unknown as { api: Record<string, unknown> }).api = {
|
||||
onCourseBuildStep: vi.fn((cb: (s: unknown) => void) => {
|
||||
onCourseBuildStepCb = cb
|
||||
return () => {}
|
||||
}),
|
||||
onUpdateAvailable: vi.fn((cb: () => void) => {
|
||||
onUpdateAvailableCb = cb
|
||||
return () => {}
|
||||
@@ -109,17 +103,6 @@ describe('<App />', () => {
|
||||
expect(screen.queryByText(/Erreur reseau/)).not.toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('should display the course build stepper once a state arrives', () => {
|
||||
render(<App />)
|
||||
act(() =>
|
||||
onCourseBuildStepCb?.({
|
||||
subject: 'algebre',
|
||||
steps: [{ key: 'recherche', label: 'Recherche', status: 'done' }]
|
||||
})
|
||||
)
|
||||
expect(screen.getByText(/algebre/)).toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('should display the update banner when an update is available, then ready', () => {
|
||||
render(<App />)
|
||||
act(() => onUpdateAvailableCb?.())
|
||||
|
||||
Reference in New Issue
Block a user