{"id":"sequence-three-way-merge","version":"1.0.0","description":"Three-way merge two sequence descendants against a shared base into clean or conflict regions.","supported_operations":["sequence three way merge","three-way merge two sequences against a base","sequence merge regions"],"unsupported_operations":["fuzzy matching","text conflict markers","RFC 7396 JSON merge patch","RFC 6902 JSON Patch","csv row diff","patience merge"],"semantics":["base, ours, and theirs are sequences of JSON null, boolean, string, or IEEE-754 safe integer items.","Regions come from mergeRegions on the Myers SES of base→ours and base→theirs.","Non-empty abutting ranges do not overlap. Empty spans at the same base index overlap. An insertion index inside another span overlaps.","Identical overlapping replacements collapse to one ok region. Distinct overlapping replacements are a conflict.","status is clean or conflict. result concatenates ok items when clean and is null when any conflict exists.","A clean result must not exceed 1024 items.","Ok regions are {type, items}. Conflict regions are {type, base, ours, theirs}.","base [\"A\",\"B\",\"C\"], ours [\"A\",\"X\",\"C\"], theirs [\"A\",\"B\",\"Y\"] is clean with result [\"A\",\"X\",\"Y\"].","ours [\"A\",\"X\",\"C\"] vs theirs [\"A\",\"Y\",\"C\"] is a conflict on B. The string \"__proto__\" is an ordinary item."],"limits":{"max_sequence_items":1024,"max_item_string_bytes":4096,"max_text_bytes":262144,"max_output_bytes":1048576},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["base","ours","theirs"],"properties":{"base":{"type":"array","maxItems":1024,"items":{"description":"null, boolean, UTF-8 string, or IEEE-754 safe integer","type":["null","boolean","string","integer"]}},"ours":{"type":"array","maxItems":1024,"items":{"description":"null, boolean, UTF-8 string, or IEEE-754 safe integer","type":["null","boolean","string","integer"]}},"theirs":{"type":"array","maxItems":1024,"items":{"description":"null, boolean, UTF-8 string, or IEEE-754 safe integer","type":["null","boolean","string","integer"]}}}},"output_schema":{"type":"object","additionalProperties":false,"required":["status","regions","result"],"properties":{"status":{"type":"string","enum":["clean","conflict"]},"regions":{"type":"array"},"result":{"type":["array","null"],"items":{"description":"null, boolean, UTF-8 string, or IEEE-754 safe integer","type":["null","boolean","string","integer"]}}}},"examples":[{"input":{"base":["A","B","C"],"ours":["A","X","C"],"theirs":["A","B","Y"]},"output":{"status":"clean","regions":[{"type":"ok","items":["A","X","Y"]}],"result":["A","X","Y"]}}],"execute_url":"/v1/tools/sequence-three-way-merge/versions/1.0.0/execute"}