{"id":"git-copies-detect","version":"1.0.0","description":"Detect deterministic Git-style copy pairs while allowing one source to match multiple destinations.","supported_operations":["detect git copies","find copied file origins","match one source to many additions","apply copy similarity cutoff","resolve ambiguous copy sources","report unmatched copy destinations"],"unsupported_operations":["read a git repository","perform a filesystem rename"],"semantics":["Every candidate uses git-rename-score semantics and must meet the inclusive integer threshold.","Each destination selects once; a source may be reused for multiple copies.","Candidates sort by descending score, then source path, then destination path by Unicode scalar value; output pairs sort by destination then source."],"limits":{"max_content_bytes":65536,"max_files_per_side":64,"max_comparisons":4096,"max_output_bytes":65536},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["source_files","added_files","threshold"],"properties":{"source_files":{"type":"array","maxItems":64,"items":{"type":"object","additionalProperties":false,"required":["path","content"],"properties":{"path":{"type":"string","minLength":1,"maxLength":256},"content":{"type":"string","maxLength":65536}}}},"added_files":{"type":"array","maxItems":64,"items":{"type":"object","additionalProperties":false,"required":["path","content"],"properties":{"path":{"type":"string","minLength":1,"maxLength":256},"content":{"type":"string","maxLength":65536}}}},"threshold":{"type":"integer","minimum":0,"maximum":100}}},"output_schema":{"type":"object","additionalProperties":false,"required":["reference","version","threshold","pairs","unmatched_sources","unmatched_destinations"],"properties":{"reference":{"type":"string","const":"Git 2.51.0 diffcore-rename content similarity model"},"version":{"type":"string","const":"1.0.0"},"threshold":{"type":"integer","minimum":0,"maximum":100},"pairs":{"type":"array","maxItems":64,"items":{"type":"object","additionalProperties":false,"required":["source_path","destination_path","score","copied_bytes"],"properties":{"source_path":{"type":"string"},"destination_path":{"type":"string"},"score":{"type":"integer","minimum":0,"maximum":100},"copied_bytes":{"type":"integer","minimum":0,"maximum":65536}}}},"unmatched_sources":{"type":"array","maxItems":64,"items":{"type":"string"}},"unmatched_destinations":{"type":"array","maxItems":64,"items":{"type":"string"}}}},"examples":[{"input":{"source_files":[{"path":"old","content":"a\n"}],"added_files":[{"path":"new","content":"a\n"}],"threshold":50},"output":{"reference":"Git 2.51.0 diffcore-rename content similarity model","version":"1.0.0","threshold":50,"pairs":[{"source_path":"old","destination_path":"new","score":100,"copied_bytes":2}],"unmatched_sources":[],"unmatched_destinations":[]}},{"input":{"source_files":[],"added_files":[],"threshold":100},"output":{"reference":"Git 2.51.0 diffcore-rename content similarity model","version":"1.0.0","threshold":100,"pairs":[],"unmatched_sources":[],"unmatched_destinations":[]}}],"execute_url":"/v1/tools/git-copies-detect/versions/1.0.0/execute"}