analytics

Analyze Blast Radius

Compute blast-radius for a proposed PR (or top-level aggregation).

POST body matches the OSS engine: {changed_files: [...], max_depth: int}. When changed_files is empty, returns the top hotspot files across the repo so a UI without specific changes selected can still surface a meaningful overview ("top-level repo aggregation").

The hosted backend has no SQL DB for indexed data, so this endpoint reads graph_metrics.json + git_metadata.json + parsed_files.json from Supabase Storage and runs the same scoring formula as the OSS analyzer.

post/repos/{short_id}/blast-radius

Path parameters

short_idstring required

Request body

changed_filesstring[]
max_depthinteger

Response

Successful Response

test_gapsstring[] required
structural_impact_scorenumber required
structural_impact_band'localized' | 'moderate' | 'broad' required
overall_risk_scorenumber required

Changes

No recorded changes to this endpoint across all 1 revision of this API.