I'd really like to see the diff() function in your main script evolve into something that can use various sources for each composer.lock file (e.g., URL + URL, revision hash + URL, file path + URL, etc), as well as support multiple formatters.
# two git tags
$ composer-lock-diff --from 1.0.3 --to 1.1.0
# branch heads
$ composer-lock-diff --from dev-master --to dev-feature/foo
# mixed (assume restrictive networking rules apply to this URL ;-))
$ composer-lock-diff --from http://somehost.com/composer.lock --to dev-master
I acknowledge that will introduce great complexity (e.g., more files, likely dependencies), but I'm prepared to do that work.
My question for you, however, is whether you'd like me to attempt the work as a pull request, or whether you'd prefer I create a new project (with a different name, naturally) and give attribution to your utility as a foundational source.