code.tool.measure
generate-metrics
(generate-metrics code)Dispatches metric generation based on content/type (defaulting to JS for now).
generate-score
(generate-score code)Legacy wrapper for generate-metrics (JS), returns complexity score.
measure-history
(measure-history repo-path)(measure-history repo-path {:keys [limit sample-rate], :or {limit 50, sample-rate 1}})Measures the complexity and surface history of a git repository.
Options: :limit - Max number of commits to analyze (defaults to 50 most recent). :sample-rate - Analyze every Nth commit (default 1).
Returns a vector of maps: {:sha … :date … :complexity … :surface …} …