feat: add stat completion source

Implement a new completion source that extracts stat definitions
from markdown files using `yaml` or `csv` code blocks with
`role=stat`.
This commit is contained in:
2026-07-09 09:52:34 +08:00
parent 45cd9a01ac
commit ef8b56e5b6
5 changed files with 224 additions and 2 deletions
+2 -1
View File
@@ -43,8 +43,9 @@ function parseEntry(raw: string): JournalDocEntry | null {
import journalGmRaw from "../doc-entries/journal-gm.md";
import journalPlayerRaw from "../doc-entries/journal-player.md";
import journalStatRaw from "../doc-entries/journal-stat.md";
const rawDocuments: string[] = [journalGmRaw, journalPlayerRaw];
const rawDocuments: string[] = [journalGmRaw, journalPlayerRaw, journalStatRaw];
let _entries: JournalDocEntry[] | null = null;