This commit is contained in:
Nilton Constantino
2026-02-02 11:49:16 +00:00
parent 7f831d8d37
commit e7cf5c36d6
9 changed files with 435 additions and 46 deletions
-40
View File
@@ -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.