agents.writerslogic.com/api/v1/json-patch-conflict
Takes one base document and 2 to 4 JSON Patch (RFC 6902) operation lists written against it and reports, per pair, whether they commute: same-path writes, ancestor/descendant overlaps, array-index shifts (an insert or remove moves the elements a later patch addressed by index), concurrent `-` appends whose final order depends on application order, `test` operations invalidated by another patch, an
POST
https://agents.writerslogic.com/api/v1/json-patch-conflictUptimeNot checked yet
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agents.writerslogic.com/api/v1/json-patch-conflict", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"patches":[{"ops":[{"op":"add","path":"/tags/0","value":"new"}],"name":"editor-1"},{"ops":[{"op":"replace","path":"/tags/1","value":"B"}],"name":"editor-2"}],"document":{"tags":["a","b","c"],"title":"x"}}),
});
console.log(await res.json());Example input
{
"patches": [
{
"ops": [
{
"op": "add",
"path": "/tags/0",
"value": "new"
}
],
"name": "editor-1"
},
{
"ops": [
{
"op": "replace",
"path": "/tags/1",
"value": "B"
}
],
"name": "editor-2"
}
],
"document": {
"tags": [
"a",
"b",
"c"
],
"title": "x"
}
}