feat: complete V1 phases 0-7

This commit is contained in:
2026-08-12 14:35:12 +08:00
commit c3dd9be674
311 changed files with 38750 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
$ErrorActionPreference='Stop'
$controllers=Get-ChildItem -Path apps/api/src -Recurse -Filter '*.controller.ts'
$findings=@()
foreach($file in $controllers){$text=Get-Content -LiteralPath $file.FullName -Raw;if($text -match "Controller\('api/v1/admin" -and $text -notmatch 'RequireSessionChannel'){ $findings+="$($file.FullName): admin controller lacks session-channel guard" };if($text -match "Controller\('api/v1/me" -and $text -notmatch 'RequireSessionChannel'){ $findings+="$($file.FullName): me controller lacks session-channel guard" }}
if($findings.Count){$findings|ForEach-Object{Write-Error $_};exit 1}
Write-Output "Permission scan passed for $($controllers.Count) controllers"