Commit fd66b73
feat: implement package manager (Enhancement #2)
Adds Cargo-style dependency management for Ephapax projects.
Features:
- Manifest parsing (ephapax.toml) with TOML validation
- Dependency resolution using backtracking algorithm
- Local package registry (~/.ephapax/registry/)
- Version constraint satisfaction (SemVer)
- Transitive dependency resolution
- Mode-specific dependencies (affine/linear)
- CLI commands: init, install, search, list
New crate: ephapax-package (4 modules, 875 lines, 14 tests)
- manifest.rs: TOML parsing and validation
- registry.rs: Local package storage and indexing
- resolver.rs: Dependency resolution with backtracking
- lib.rs: Public API
CLI integration:
- ephapax package init <name>: Initialize new projects
- ephapax package install: Install from manifest
- ephapax package search <query>: Search packages
- ephapax package list: List installed packages
Testing:
- All 14 unit tests passing
- Integration test verified (init, manifest editing)
Documentation:
- docs/PACKAGE-MANAGER.md (complete guide)
- ENHANCEMENTS-STATUS.md updated (40% complete, 2/5 done)
Future enhancements:
- Phase 2: Remote registry (publish/download from central repo)
- Phase 3: Module import syntax in language
- Phase 4: Lockfile generation (ephapax.lock)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 6962b83 commit fd66b73
11 files changed
Lines changed: 2779 additions & 12 deletions
File tree
- docs
- src
- ephapax-cli
- src
- ephapax-package
- src
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
118 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
119 | 165 | | |
120 | 166 | | |
121 | 167 | | |
| |||
0 commit comments