From d76f9f9a54be884958aea018889d5a3389131eb0 Mon Sep 17 00:00:00 2001 From: sjfhsjfh Date: Mon, 22 Jun 2026 10:05:03 +0800 Subject: [PATCH] feat(checker): compile template as main, augmented manifest closes optional-content (WU-D', ADR-0011) Replace generated-driver compilation with the template model. cph-typst: - driver.rs DELETED (generate_driver, static-include driver, numbering-threading). - New manifest.rs: build_augmented_manifest(&Lesson) emits a TOML doc with [info] + ordered [[parts]] each carrying a `fields` array = the kind's content fields whose //.typ exists on disk. Reuses cph-schema's content_field_names (new dep; no cycle). This closes the OPEN point WU-C' surfaced: typst has no file-exists primitive, so the engine (which has disk access) tells the template which optional content (lemma proof) is present. - World main = the real engineering-file template (/