pr 52
This commit is contained in:
@@ -1,43 +1,3 @@
|
||||
## PR-09 — Add `prometeu.json` manifest parser + schema validation
|
||||
|
||||
**Why:** Dependency resolution cannot exist without a stable project manifest.
|
||||
|
||||
### Scope
|
||||
|
||||
* Implement `prometeu_compiler::manifest` module:
|
||||
|
||||
* `Manifest` struct mirroring the spec fields:
|
||||
|
||||
* `name`, `version`, `kind`
|
||||
* `dependencies: HashMap<Alias, DependencySpec>`
|
||||
* Support `DependencySpec` variants:
|
||||
|
||||
* `path`
|
||||
* `git` (+ optional `version`)
|
||||
* Validate:
|
||||
|
||||
* required fields present
|
||||
* dependency entry must specify exactly one source (`path` or `git`)
|
||||
* dependency aliases must be unique
|
||||
* basic name rules (non-empty, no whitespace)
|
||||
|
||||
### Deliverables
|
||||
|
||||
* `load_manifest(project_root) -> Result<Manifest, ManifestError>`
|
||||
* Diagnostic errors with file path + JSON pointer (or best-effort context)
|
||||
|
||||
### Tests
|
||||
|
||||
* parse minimal manifest
|
||||
* missing name/version errors
|
||||
* invalid dependency shape errors
|
||||
|
||||
### Acceptance
|
||||
|
||||
* Compiler can reliably load + validate `prometeu.json`.
|
||||
|
||||
---
|
||||
|
||||
## PR-10 — Dependency Resolver v0: build a resolved project graph
|
||||
|
||||
**Why:** We need a deterministic **module graph** from manifest(s) before compiling.
|
||||
|
||||
Reference in New Issue
Block a user