"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
const router = (0, express_1.Router)();
// Privacy
router.get('/privacy/mode', (_req, res) => {
    res.json({ mode: 'private' });
});
router.post('/privacy/mode', (req, res) => {
    const { mode } = req.body;
    if (!mode || !['private', 'community', 'organization'].includes(mode)) {
        res.status(400).json({ error: 'invalid mode' });
        return;
    }
    res.json({ mode });
});
router.get('/privacy/preview', (_req, res) => {
    res.json({ preview: {} });
});
router.post('/privacy/validate', (req, res) => {
    res.json({ valid: true, errors: [], warnings: [] });
});
router.get('/privacy/forbidden-fields', (_req, res) => {
    res.json({ fields: [] });
});
// Production
router.get('/production/health', (_req, res) => {
    res.json({ status: 'ok' });
});
router.get('/production/metrics', (_req, res) => {
    res.json({ metrics: {} });
});
router.get('/production/security', (_req, res) => {
    res.json({ security: {} });
});
router.post('/production/backup', (_req, res) => {
    res.json({ backedup: true });
});
router.post('/production/optimize', (_req, res) => {
    res.json({ optimized: true });
});
// IDE
router.get('/ide/debug-style', (_req, res) => {
    res.json({ style: {} });
});
router.get('/ide/prompt-style', (_req, res) => {
    res.json({ style: {} });
});
router.get('/ide/focus', (_req, res) => {
    res.json({ focus: {} });
});
router.get('/ide/insights', (_req, res) => {
    res.json({ insights: [] });
});
// Scan
router.post('/scan/codebase', (req, res) => {
    const { dir } = req.body;
    if (!dir) {
        res.status(400).json({ error: 'dir required' });
        return;
    }
    res.json({ project: dir, filesScanned: 0, totalLines: 0 });
});
router.get('/scan/profile/:project', (req, res) => {
    res.status(404).json({ error: 'no profile — run scan first' });
});
router.get('/scan/patterns/:project', (req, res) => {
    res.json({ patterns: [] });
});
router.get('/scan/report/:project', (req, res) => {
    res.json({ project: req.params.project, profile: null, patterns: [], patternCount: 0 });
});
// Behavior
router.get('/behavior/summary', (req, res) => {
    res.json({ summary: {} });
});
router.get('/behavior/errors', (req, res) => {
    res.json({ patterns: [], recent: [] });
});
router.get('/behavior/decisions', (req, res) => {
    res.json({ decisions: [] });
});
router.get('/behavior/context', (req, res) => {
    res.json({ task: 'none', files: [] });
});
router.get('/behavior/stuck', (req, res) => {
    res.json({ stuck: [] });
});
// Personal
router.get('/personal/rhythm', (_req, res) => {
    res.json({ rhythm: {} });
});
router.get('/personal/burnout', (_req, res) => {
    res.json({ burnout: {} });
});
router.get('/personal/mastery', (_req, res) => {
    res.json({ mastery: {} });
});
router.get('/personal/growth', (_req, res) => {
    res.json({ growth: {} });
});
router.get('/personal/weekly', (_req, res) => {
    res.json({ weekly: {} });
});
// Intelligence
router.post('/intelligence/context', (req, res) => {
    res.json({ context: {} });
});
router.get('/intelligence/context/:developerId', (req, res) => {
    res.status(404).json({ error: 'context not found' });
});
router.post('/intelligence/score', (req, res) => {
    res.json({ score: 0 });
});
router.post('/intelligence/evidence', (req, res) => {
    res.json({ evidence: [] });
});
router.post('/intelligence/gaps', (req, res) => {
    res.json({ gaps: [] });
});
router.post('/intelligence/opportunities', (req, res) => {
    res.json({ opportunities: [] });
});
router.post('/intelligence/risks', (req, res) => {
    res.json({ risks: [] });
});
router.post('/intelligence/lifecycle', (req, res) => {
    res.json({ lifecycles: [] });
});
router.post('/intelligence/decisions', (req, res) => {
    res.json({ decisions: [] });
});
router.post('/intelligence/benchmarks', (req, res) => {
    res.json({ benchmarks: [] });
});
router.post('/intelligence/report', (req, res) => {
    res.json({ report: {} });
});
router.get('/intelligence/report/:reportId', (req, res) => {
    res.status(404).json({ error: 'report not found' });
});
router.get('/intelligence/reports', (_req, res) => {
    res.json({ reports: [] });
});
router.post('/intelligence/reset', (_req, res) => {
    res.json({ reset: true });
});
// Conventions
router.post('/conventions/detect', (req, res) => {
    res.json({ conventions: {} });
});
// Dashboard
router.get('/dashboard', (_req, res) => {
    res.json({ dashboard: {} });
});
router.get('/api/dashboard', async (_req, res) => {
    res.json({ dashboard: {} });
});
exports.default = router;
//# sourceMappingURL=privacy.js.map