Spec ingestion refactor (#819)
* Spec ingestion refactor
Previously we scanned the TOC when ingesting clusters, then used that information to scan subsets of the document
associated with each cluster. The newer implementation for ingesting devices OTOH just scans the entire document.
That latter turned out to be both less complex and more accurate.
This rewrites cluster ingestion to align with the device ingestion approach.
Includes a bit of cleanup and several fixes to the model, though only spec.ts is updated as yet.
* Regenerated matter.js model
* Regenerate clusters.
* Regenerate endpoints
* Add versioning and command line args to codegen
Adds proper argument support to codegen scripts including revision override and
enabling/disabling "save" to effect dry-run behavior.
Adds versioning for CHIP and spec intermediate models so we can
programmatically track element evolution over time.
---------
Co-authored-by: Ingo Fischer <github@fischer-ka.de>