{"id":"text-lines-multiset-union","version":"1.0.0","description":"Multiset sum of two line bags: counts add, first-seen order from a then new from b.","supported_operations":["text lines multiset union","bag union lines","sum line counts"],"unsupported_operations":["max-count union","set union","trim"],"semantics":["Split on CR LF, LF, or CR. Do not treat other Unicode separators as line breaks.","A trailing terminator does not create an extra empty line.","Empty document -> zero lines, trailing_terminator false.","A document that is only a terminator -> one empty line, trailing_terminator true.","A document with no terminator -> last line kept, trailing_terminator false.","Preserve empty lines in the middle.","Output reconstruction uses LF. If the result has at least one line, append a trailing LF iff the selected window includes the original trailing terminator or includes a line that was followed by a separator in the source.","No trimming, case folding, Unicode normalization, or locale rules.","count(x) = count_a(x) + count_b(x).","Emit x repeated count(x) times.","Order: all first-seen keys from a (with summed counts), then keys only in b in first-seen order from b.","Trailing terminator follows a when result non-empty and a had a trailing terminator; if a is empty, follow b."],"limits":{"max_input_bytes":256000,"max_lines":10000,"max_output_lines":10000},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["a","b"],"properties":{"a":{"type":"string","maxLength":256000},"b":{"type":"string","maxLength":256000}}},"output_schema":{"type":"object","additionalProperties":false,"required":["text","lines_in_a","lines_in_b","lines_out"],"properties":{"text":{"type":"string"},"lines_in_a":{"type":"integer"},"lines_in_b":{"type":"integer"},"lines_out":{"type":"integer"}}},"examples":[{"input":{"a":"a\na\nb\n","b":"a\nc\n"},"output":{"text":"a\na\na\nb\nc\n","lines_in_a":3,"lines_in_b":2,"lines_out":5}}],"execute_url":"/v1/tools/text-lines-multiset-union/versions/1.0.0/execute"}