Skip to content

agent-2pc v1.8.0: Auto-Detect UDS Daemon Acceleration & Targeted Substring Replace Staging

Choose a tag to compare

@github-actions github-actions released this 15 Oct 13:26
· 5 commits to main since this release
5f7c18c

⚡ What's New in v1.8.0

  • Auto-Detect UDS Daemon Acceleration (ClientMode::Auto):
    • CLI subcommands (begin, stage-write, commit, abort, status, savepoint, rollback-to, stage-replace) and MCP tools automatically probe .agent-tx/agent-2pc.sock.
    • When the background daemon is active, requests route through in-memory IPC in < 0.2ms with zero disk lock contention.
    • Automatically falls back to direct-disk WAL coordinator when the daemon is offline.
  • Targeted Substring Replace Staging (agent-2pc stage-replace / agent_2pc_stage_diff):
    • Direct exact string find-and-replace (ResourceIntent::FsReplace).
    • Asserts match count == 1 before voting PREPARED, preventing ambiguous edits.
    • Pre-snapshots destination file to .bak in scratch storage.
  • Benchmark Expansion & Throughput Verification:
    • Added in-memory UDS daemon IPC throughput test suite (tests/benchmark.rs).
    • Verified 104.5 tx/sec roundtrip throughput over socket streams.
  • Client SDKs Updated:
    • Python: added session.stage_replace(path, old_string, new_string).
    • TypeScript: added session.stageReplace(path, oldString, newString).
  • Live on Crates.io:
    • cargo install agent-2pc (v1.8.0 live on registry).