patchloom 0.7.0

Structured file editing library and CLI for AI agents: parser-backed JSON/YAML/TOML edits, AST-aware code operations, multi-file batching, markdown operations, and MCP server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  "version": 1,
  "write_policy": { "ensure_final_newline": true },
  "operations": [
    { "op": "replace", "path": "Cargo.toml", "old": "version = \"0.1.0\"", "new": "version = \"0.2.0\"" },
    { "op": "doc.set", "path": "package.json", "key": "version", "value": "0.2.0" },
    { "op": "replace", "glob": "*.md", "old": "v0.1.0", "new": "v0.2.0" }
  ],
  "format": [
    { "cmd": "cargo fmt --all" }
  ],
  "validate": [
    { "cmd": "cargo build", "required": true, "timeout": 120 }
  ]
}