You could make it a manual step.
Or / and given there are tests run, you could have one that verifies the hooks are up to date and fail otherwise.
I'm not sure whether you could detect tooling api use, but even if I'm not sure that would help.
While I'm not sure whether the commandline client uses a different way or basically also the same interface,
you would then get all invocations through IDE, not only syncs.