Skip to content

replica 0.1.0

Choose a tag to compare

@gabrielvfonseca gabrielvfonseca released this 09 Nov 12:56
· 34 commits to main since this release
96962d0

Added

  • replica help [topic]: a guided overview, with topics quickstart, workspaces, base, safety, agents, env, and exit-codes. It works before REPLICA_ROOT exists.

  • Clear command output: status lines (✓ ! ✗ ·) on stderr, aligned tables for list, a usage bar for stats, and hint: lines on errors. Color is used only on a TTY, and NO_COLOR turns it off.

  • --json for list, stats, and base 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 refresh works. It rebuilds from the repo and setup command recorded at build time.

  • replica env and replica touch reject 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 bench runs 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, and make skills-check.

  • Homebrew tap formula and scripts/release.sh for rendering it after a release.

  • replica base refresh fast path: clonefiles the base, fetches origin, resets to origin/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: sha2 0.11, toml 1.2, rusqlite 0.41, dirs 7, 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 setup installs the SKILL.md skill, replacing skill.toml and instructions.md. It no longer writes the placeholder skills.sh.
  • replica setup no longer duplicates appended configs when run again.
  • replica setup keeps existing replaced configs unless --force is given. --force always 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_ROOT produces a clear error with a hint, not a raw statfs failure.
  • Exit codes match the documentation. Code 4 was documented but never returned.
  • replica rm says when a workspace is already gone. It keeps going past a failed removal, reports it, and exits 1 at the end.
  • Removed an unwrap from replica base check's pyvenv.cfg parsing, 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.lock on main had a duplicate thiserror entry that stopped cargo from parsing it. It is repaired.