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:
@@ -1,85 +0,0 @@
|
||||
export type ConceptStatus = 'not_started' | 'in_progress' | 'acquired' | 'to_review'
|
||||
export type SubjectStatus = 'researching' | 'assessing' | 'in_progress' | 'mastered'
|
||||
export type AssessmentKind = 'initial' | 'module' | 'final'
|
||||
export type ExerciseDifficulty = 'facile' | 'moyen' | 'difficile'
|
||||
export type ExerciseStyle = 'prediction' | 'debogage' | 'probleme_ouvert' | 'projet' | 'qcm_cible'
|
||||
|
||||
export interface SubjectProgress {
|
||||
subject: string
|
||||
level: string | null
|
||||
status: SubjectStatus
|
||||
objective: string | null
|
||||
lastSessionAt: string
|
||||
concepts: {
|
||||
name: string
|
||||
status: ConceptStatus
|
||||
lastReviewedAt: string
|
||||
nextReviewAt: string | null
|
||||
locked: boolean
|
||||
orderIndex: number
|
||||
}[]
|
||||
}
|
||||
|
||||
export interface ModuleAssessment {
|
||||
question: string
|
||||
answer: string
|
||||
dontKnow: boolean
|
||||
difficulty: ExerciseDifficulty | null
|
||||
exerciseStyle: ExerciseStyle | null
|
||||
targetsCommonError: string | null
|
||||
createdAt: string
|
||||
}
|
||||
|
||||
/** Resultat d'une exigence du guide pedagogique, calcule a partir des donnees stockees (non-LLM). */
|
||||
export interface ComplianceCheck {
|
||||
key: string
|
||||
label: string
|
||||
ok: boolean
|
||||
detail: string
|
||||
}
|
||||
|
||||
export interface CourseComplianceReport {
|
||||
subject: string
|
||||
checks: ComplianceCheck[]
|
||||
}
|
||||
|
||||
export type ModuleDiagramKind = 'shapes' | 'mermaid'
|
||||
|
||||
export interface ModuleDiagram {
|
||||
kind: ModuleDiagramKind
|
||||
title: string
|
||||
data: unknown
|
||||
createdAt: string
|
||||
}
|
||||
|
||||
export interface ModuleDetail {
|
||||
name: string
|
||||
status: ConceptStatus
|
||||
locked: boolean
|
||||
theorySummary: string | null
|
||||
assessments: ModuleAssessment[]
|
||||
diagrams: ModuleDiagram[]
|
||||
}
|
||||
|
||||
export type ExerciseType = 'free_text' | 'multiple_choice' | 'true_false'
|
||||
|
||||
/** Une question parmi plusieurs posees en une seule fois (formulaire groupe, pas une par une). */
|
||||
export interface ExerciseFormItem {
|
||||
id: string
|
||||
question: string
|
||||
type: ExerciseType
|
||||
options: string[] | null
|
||||
}
|
||||
|
||||
export interface ExerciseForm {
|
||||
requestId: string
|
||||
items: ExerciseFormItem[]
|
||||
}
|
||||
|
||||
export interface ExerciseFormAnswer {
|
||||
id: string
|
||||
answer: string
|
||||
}
|
||||
|
||||
/** Reponse sentinelle soumise par le bouton "Je ne sais pas", toujours disponible. */
|
||||
export const DONT_KNOW_ANSWER = 'Je ne sais pas'
|
||||
@@ -1,13 +0,0 @@
|
||||
export type CourseBuildStepStatus = 'pending' | 'active' | 'done'
|
||||
|
||||
export interface CourseBuildStep {
|
||||
key: string
|
||||
label: string
|
||||
status: CourseBuildStepStatus
|
||||
detail?: string
|
||||
}
|
||||
|
||||
export interface CourseBuildState {
|
||||
subject: string
|
||||
steps: CourseBuildStep[]
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
export type ShapeType = 'rect' | 'circle' | 'line' | 'arrow' | 'text' | 'stroke' | 'arc' | 'preset'
|
||||
|
||||
export interface DrawShape {
|
||||
type: ShapeType
|
||||
x?: number | undefined
|
||||
y?: number | undefined
|
||||
x2?: number | undefined
|
||||
y2?: number | undefined
|
||||
width?: number | undefined
|
||||
height?: number | undefined
|
||||
radius?: number | undefined
|
||||
content?: string | undefined
|
||||
label?: string | undefined
|
||||
color?: string | undefined
|
||||
points?: { x: number; y: number }[] | undefined
|
||||
/** Legende orale dite au moment ou cette forme apparait (narration pas-a-pas). */
|
||||
caption?: string | undefined
|
||||
/** Pour type 'arc' : portion de cercle en degres (0 = droite, sens horaire). */
|
||||
startAngle?: number | undefined
|
||||
endAngle?: number | undefined
|
||||
/** Pour type 'arc' : true = part de camembert (reliee au centre), false/absent = arc ouvert. */
|
||||
closed?: boolean | undefined
|
||||
/** Pour type 'preset' : nom du preset (ex: "right_triangle") et ses parametres bruts. */
|
||||
preset?: string | undefined
|
||||
presetParams?: Record<string, unknown> | undefined
|
||||
}
|
||||
|
||||
export interface Drawing {
|
||||
title: string
|
||||
width: number
|
||||
height: number
|
||||
shapes: DrawShape[]
|
||||
}
|
||||
Reference in New Issue
Block a user