Repository navigation
agent-2pc v2.0.0: Flagship 2.0 Release - Git Pre-Commit Hook Bridge & Daemon TTL Reaper
Latest🚀 Welcome to agent-2pc v2.0.0 (Flagship Release)
agent-2pc v2.0.0 delivers enterprise-grade repository integrity, automated lifecycle management, and seamless Git sync.
- Git Pre-Commit Hook & Integrity Gate (
src/git.rs):agent-2pc hook install [--repo-dir <dir>]: Injects an automated repository integrity hook into.git/hooks/pre-commit.agent-2pc hook check: Validates that no uncommitted, half-baked 2PC transactions are pending in.agent-tx, preventing dirty agent edits from corrupting Git history.agent-2pc git-commit --tid <TID> -m <msg>: Atomically commits a 2PC transaction and creates a corresponding Git commit for touched files in a single unified step.
- Daemon Background TTL Reaper & Auto-Compaction (
src/daemon.rs):- In-memory background thread continuously sweeps active transactions exceeding their
timeout_msTTL. - Automatically compensates and aborts orphaned transactions, wiping scratch storage without manual developer intervention.
- Automatically triggers zero-downtime WAL compaction when
wal.binexceeds 2MB. - Added
agent-2pc daemon reapand telemetry counters (reaped_transactions,auto_compactions).
- In-memory background thread continuously sweeps active transactions exceeding their
- MCP Tool Surface (21 Tools):
- Added
agent_2pc_hook_checkandagent_2pc_git_commitwith full M8ven / OpenAI dual-location behavioral hints.
- Added
- Client SDKs Synchronized:
- Python (
sdk/python):session.git_commit(message). - TypeScript (
sdk/typescript):session.gitCommit(message).
- Python (
- Quality & Registry Standards:
- 53/53 passing tests across 13 test suites.
- Zero warnings under
cargo clippy --all-targets -- -D warningson Rust 2024 edition. - Published to Crates.io:
cargo install agent-2pc(v2.0.0).