Repository navigation
replica 0.1.0
Added
-
replica help [topic]: a guided overview, with topics quickstart, workspaces, base, safety, agents, env, and exit-codes. It works beforeREPLICA_ROOTexists. -
Clear command output: status lines (
✓ ! ✗ ·) on stderr, aligned tables forlist, a usage bar forstats, andhint:lines on errors. Color is used only on a TTY, andNO_COLORturns it off. -
--jsonforlist,stats, andbase status. -
Typed exit codes: 2 (no base or stale with
--require-fresh), 3 (cross-volume), 4 (disk full or byte cap). They are used consistently and documented. -
replica base refreshworks. It rebuilds from the repo and setup command recorded at build time. -
replica envandreplica touchreject unknown ids with exit 1. -
Benchmark suite in
benchmarks/: hyperfine-based, with untimed setup and cleanup, a pinned fixture project, and a machine-readable report.make benchruns it. -
Agent skills in
skills/, in SKILL.md format for the skills.sh CLI:replica,replica-base,replica-maintenance,replica-dev,replica-benchmarks,replica-release. -
make help,make bench, andmake skills-check. -
Homebrew tap formula and
scripts/release.shfor rendering it after a release. -
replica base refreshfast path: clonefiles the base, fetches origin, resets toorigin/HEAD, and re-runs setup only if a lockfile changed. Falls back to a full rebuild on failure. -
Integration tests for git behavior: a workspace commits and pushes without touching the base, and refresh picks up new commits.
Changed
- Dependencies:
sha20.11,toml1.2,rusqlite0.41,dirs7, and current GitHub Actions versions. Lockfile hashing hex-encodes the digest explicitly. - README rewritten: git workflow in workspaces, base refresh, disk cost after changes, measured file counts, and an account of the benchmark numbers.
replica setupinstalls theSKILL.mdskill, replacingskill.tomlandinstructions.md. It no longer writes the placeholderskills.sh.replica setupno longer duplicates appended configs when run again.replica setupkeeps existing replaced configs unless--forceis given.--forcealways backs up the original first.- Base metadata records the repo and setup command, and the database migrates to add them.
- Benchmark docs now state what was measured. Clone disk cost is about 1.4 MB of APFS metadata per clone, not zero.
- Default GitHub owner is
gabrielvfonseca, matching the git remote.
Fixed
- A missing
REPLICA_ROOTproduces a clear error with a hint, not a rawstatfsfailure. - Exit codes match the documentation. Code 4 was documented but never returned.
replica rmsays when a workspace is already gone. It keeps going past a failed removal, reports it, and exits 1 at the end.- Removed an
unwrapfromreplica base check'spyvenv.cfgparsing, so non-test code follows the no-unwrap rule in AGENTS.md.
Notes
- The current benchmark suite has not yet produced a run on an idle machine. See docs/BENCHMARKS.md.
Cargo.lockon main had a duplicatethiserrorentry that stopped cargo from parsing it. It is repaired.