sync: malware page, security alerts, review diagnostics, skill detail improvements
- Add malware security advisory page and SecurityAlertBanner component - Add review diagnostics API and reviewed stats page - Improve skill detail page with better scoring display and metadata - Update review API endpoints with enhanced filtering and stats - Add skill file serving improvements and cache enhancements - Remove legacy curation scripts (moved to internal tooling) - Update CLI search with score filtering support Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -87,6 +87,14 @@ export async function GET(request: NextRequest) {
|
||||
);
|
||||
}
|
||||
|
||||
// Block file downloads for malicious skills
|
||||
if (skill.isMalicious) {
|
||||
return NextResponse.json(
|
||||
{ error: 'This skill has been flagged as malicious. File downloads are blocked.', code: 'MALICIOUS' },
|
||||
{ status: 403 }
|
||||
);
|
||||
}
|
||||
|
||||
const { githubOwner, githubRepo, skillPath, branch, commitSha, sourceFormat } = skill;
|
||||
|
||||
// === CACHE CHECK ===
|
||||
|
||||
Reference in New Issue
Block a user