"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
const router = (0, express_1.Router)();
// Session
router.post('/session/start', (req, res) => {
    const { toolName, project } = req.body;
    res.json({ sessionId: Date.now(), tool: toolName, project });
});
router.post('/session/end', (req, res) => {
    const { sessionId } = req.body;
    res.json({ ended: true, sessionId });
});
router.get('/session/history', (req, res) => {
    res.json({ sessions: [], stats: {}, contextChain: [] });
});
router.get('/session/search', (req, res) => {
    res.json({ query: req.query.q, results: [] });
});
router.get('/session/bugs', (req, res) => {
    res.json({ bugs: [], repeatBugs: [] });
});
router.get('/session/decisions', (req, res) => {
    res.json({ decisions: [], summary: {} });
});
router.post('/session/snapshot', (_req, res) => {
    res.json({ saved: true, snapshot: {} });
});
router.post('/session/recover', (_req, res) => {
    res.json({ message: 'No recovery needed' });
});
// Context
// /context/inject handled in server.ts:2568 with real buildContext()
// router.get('/context/inject', (req: Request, res: Response) => {
//   res.json({ content: [{ type: 'text', text: 'No context available' }], context: {} });
// });
// Tools
router.get('/tools/compare', (_req, res) => {
    res.json({ tools: [] });
});
router.get('/tools/suggest', (req, res) => {
    res.json({ suggestions: [] });
});
router.get('/tools/history', (_req, res) => {
    res.json({ history: [] });
});
router.get('/tools/context/:tool', (req, res) => {
    res.json({ context: {} });
});
// Team
router.get('/team/health', (req, res) => {
    res.json({ score: 0, issues: [] });
});
router.get('/team/silos', (_req, res) => {
    res.json({ silos: [], busFactor: 1, transfers: [] });
});
router.get('/team/style', (req, res) => {
    res.json({ style: {} });
});
router.get('/team/retro', (req, res) => {
    res.json({ retro: {} });
});
router.get('/team/onboard/:team', (req, res) => {
    res.json({ onboarding: {} });
});
router.get('/team/composite', (_req, res) => {
    res.json({ composite: {} });
});
// Predict
router.get('/predict', (req, res) => {
    res.json({ predictions: [], count: 0 });
});
router.get('/predict-risk/:file', (req, res) => {
    res.json({ file: req.params.file, risk: 0 });
});
router.get('/predict-time/:feature', (req, res) => {
    res.json({ feature: req.params.feature, estimatedHours: 0 });
});
router.get('/predict/next-action', (_req, res) => {
    res.json({ actions: [] });
});
router.get('/predict/build-failure', (req, res) => {
    res.json({ predictions: [] });
});
// Recommendations
router.post('/recommendations', (req, res) => {
    res.json({ recommendations: [] });
});
router.post('/recommendations/explain', (req, res) => {
    res.json({ explanation: '' });
});
router.post('/recommendations/feedback', (req, res) => {
    res.json({ recorded: true });
});
// Developer
router.post('/developer/profile', (req, res) => {
    const { developerId } = req.body;
    res.json({ developerId, profile: {} });
});
exports.default = router;
//# sourceMappingURL=session.js.map