feat(platform): checkpoint current implementation state

This commit is contained in:
2026-04-01 07:42:03 +02:00
parent 3e53471f05
commit 8c5be51251
125 changed files with 10269 additions and 17808 deletions
@@ -1,6 +1,7 @@
import { NextResponse } from "next/server";
import { prisma } from "@capakraken/db";
import { createNotificationsForUsers } from "@capakraken/api";
import { logger } from "@capakraken/api/lib/logger";
import { readFileSync } from "fs";
import { join } from "path";
@@ -87,7 +88,7 @@ function scanPackageJson(): Finding[] {
}
}
} catch (error) {
console.error("[security-audit] Error scanning package.json:", error);
logger.error({ error, route: "/api/cron/security-audit" }, "Failed to scan package manifests for security audit");
}
return findings;
@@ -149,7 +150,7 @@ export async function GET(request: Request) {
scannedAt: new Date().toISOString(),
});
} catch (error) {
console.error("[cron/security-audit] Error:", error);
logger.error({ error, route: "/api/cron/security-audit" }, "Security audit cron failed");
return NextResponse.json(
{ ok: false, error: "Internal error" },
{ status: 500 },