refactor: trim Diagnostic to fields produced this slice (task 0003)

Drop the Point/Position types and the source/position fields from
Diagnostic. Nothing constructs a diagnostic yet — diagnostics is always
empty until task 0007 emits the first invalid-frontmatter warning, which
adds the locator fields back additively alongside its own tests.
This commit is contained in:
2026-07-27 17:41:23 -04:00
parent 97ecc86d63
commit 8687b7501a

View File

@@ -2,23 +2,10 @@
export type Frontmatter = Record<string, unknown>;
export interface Point {
line: number;
column: number;
offset?: number;
}
export interface Position {
start: Point;
end: Point;
}
export interface Diagnostic {
severity: "warning";
code: string;
message: string;
source?: string;
position?: Position;
}
export interface TextNode {