"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
const router = (0, express_1.Router)();
// Signal handler (simplified - full logic stays in server.ts for now)
router.post('/signal', (req, res) => {
    const { type } = req.body;
    if (!type) {
        res.status(400).json({ error: 'type required' });
        return;
    }
    // Signal handling remains in server.ts due to engine dependencies
    res.json({ recorded: true, type });
});
// Impact recording
router.post('/impact/record', (req, res) => {
    const { patternId, surface } = req.body;
    if (!patternId) {
        res.status(400).json({ error: 'patternId required' });
        return;
    }
    res.json({ recorded: true });
});
router.get('/impact/weekly', (_req, res) => {
    res.json({ totalApplies: 0, topPatterns: [], tasteAccuracy: 0 });
});
router.get('/impact/weekly-card', (_req, res) => {
    res.json({ weekStart: new Date().toISOString(), totalSignals: 0, newPatterns: 0, strongPatterns: 0, topPatterns: [] });
});
// Onboarding
router.post('/onboarding/scan', (_req, res) => {
    res.json({ insights: [], count: 0 });
});
router.get('/onboarding/banner', (_req, res) => {
    res.json({ showBanner: false, signalCount: 0, patternCount: 0 });
});
// Taste/Profile
router.get('/taste/profile', (_req, res) => {
    res.json({ patterns: [], byTier: { strong: [], moderate: [], weak: [], uncertain: [] }, totalSignals: 0 });
});
router.get('/taste/context', (req, res) => {
    res.json({ tasteContext: '', patternsMatched: 0 });
});
router.get('/confidence/:patternId', (req, res) => {
    res.status(404).json({ error: 'not found' });
});
// Cross-language
router.get('/cross-language/transfer', (req, res) => {
    const { source, target } = req.query;
    if (!source || !target) {
        res.status(400).json({ error: 'source and target required' });
        return;
    }
    res.json({ source, target, concepts: [] });
});
router.get('/cross-language/languages', (_req, res) => {
    res.json({ languages: [] });
});
exports.default = router;
//# sourceMappingURL=signal.js.map