chore: initial scaffold + design spec + implementation plan

Skeleton for Osteo Report MVP. Build passes, 7 smoke tests green, real
Horse.svg + Horse_head.svg in public/species/equine/. Zod schemas are
the contract; store/anatomy/pdf modules are typed stubs throwing
"not implemented" awaiting implementation.

Spec: docs/superpowers/specs/2026-05-18-osteo-report-mvp-design.md
Plan: docs/superpowers/plans/2026-05-18-osteo-report-mvp.md (23 phases, ~70 TDD tasks)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bastien ChanotandClaude Opus 4.7 committed 2026-05-18 20:55:10 +02:00
1 parent 12a3e48fdf
commit 8ca36b5ccd
104 files changed
+12448

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
import type { Report } from '@/domain/schema/report'
/**
* Raised when the PDF does not contain a valid osteo-report JSON attachment.
* The message is the French user-facing error string.
*/
export class ImportError extends Error {
constructor() {
super(
"Ce PDF n'a pas été généré par Osteo Report (pas de données détectées).",
)
this.name = 'ImportError'
}
}
/**
* Loads a PDF from bytes, extracts the attached report JSON, validates it
* with Zod, and returns a hydrated Report.
* Throws ImportError on any failure.
*/
export async function importReportFromPdf(
_pdfBytes: Uint8Array,
): Promise<Report> {
throw new Error('not implemented')
}