{"id":"sequence-compose-edit-scripts","version":"1.0.0","description":"Compose two sequence edit scripts into one per-item keep/delete/insert script.","supported_operations":["sequence compose edit scripts","compose two sequence edit scripts","compose keep delete insert scripts"],"unsupported_operations":["fuzzy matching","patience diff","histogram diff","RFC 6902 JSON Patch","unicode normalization","locale compare"],"semantics":["first and second are op arrays in apply-edit-script shape: each op requires op and value; extra keys are rejected.","Optional left_index and right_index are accepted on input ops but the composed script is reindexed from the walk.","first transforms some L to M; second must consume M and produce R. Values that cannot pair are rejected.","Composition: first deletes pass through, second inserts pass through, insert-then-delete cancels.","The output script is per-item (adjacent keeps are not collapsed) with keeps, deletions, and insertions counts.","Example: keep A, delete B, insert C composed with keep A, keep C, insert D yields keep A, delete B, insert C, insert D.","The string \"__proto__\" is an ordinary item. Unknown input fields are rejected."],"limits":{"max_sequence_items":1024,"max_item_string_bytes":4096,"max_edit_ops":4096,"max_output_bytes":1048576},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["first","second"],"properties":{"first":{"type":"array","maxItems":4096,"items":{"type":"object","additionalProperties":false,"required":["op","value"],"properties":{"op":{"type":"string","enum":["keep","delete","insert"]},"value":{"description":"null, boolean, UTF-8 string, or IEEE-754 safe integer","type":["null","boolean","string","integer"]},"left_index":{"type":"integer","minimum":0},"right_index":{"type":"integer","minimum":0}}}},"second":{"type":"array","maxItems":4096,"items":{"type":"object","additionalProperties":false,"required":["op","value"],"properties":{"op":{"type":"string","enum":["keep","delete","insert"]},"value":{"description":"null, boolean, UTF-8 string, or IEEE-754 safe integer","type":["null","boolean","string","integer"]},"left_index":{"type":"integer","minimum":0},"right_index":{"type":"integer","minimum":0}}}}}},"output_schema":{"type":"object","additionalProperties":false,"required":["ops","keeps","deletions","insertions"],"properties":{"ops":{"type":"array","maxItems":4096,"items":{"type":"object","additionalProperties":false,"required":["op","value"],"properties":{"op":{"type":"string","enum":["keep","delete","insert"]},"value":{"description":"null, boolean, UTF-8 string, or IEEE-754 safe integer","type":["null","boolean","string","integer"]},"left_index":{"type":"integer","minimum":0},"right_index":{"type":"integer","minimum":0}}}},"keeps":{"type":"integer","minimum":0},"deletions":{"type":"integer","minimum":0},"insertions":{"type":"integer","minimum":0}}},"examples":[{"input":{"first":[{"op":"keep","value":"A"},{"op":"delete","value":"B"},{"op":"insert","value":"C"}],"second":[{"op":"keep","value":"A"},{"op":"keep","value":"C"},{"op":"insert","value":"D"}]},"output":{"ops":[{"op":"keep","value":"A","left_index":0,"right_index":0},{"op":"delete","value":"B","left_index":1},{"op":"insert","value":"C","right_index":1},{"op":"insert","value":"D","right_index":2}],"keeps":1,"deletions":1,"insertions":2}}],"execute_url":"/v1/tools/sequence-compose-edit-scripts/versions/1.0.0/execute"}