feat: implement platform-specific provider visibility for cursor agent

This commit is contained in:
Haileyesus
2026-04-16 23:21:21 +03:00
parent d979c315cd
commit 1a6eb57043
8 changed files with 113 additions and 11 deletions

View File

@@ -273,4 +273,14 @@ router.post('/push/unsubscribe', async (req, res) => {
}
});
// Host OS for UI (e.g. hide Cursor agent when the backend runs on Windows).
router.get('/server-env', async (req, res) => {
try {
res.json({ platform: process.platform });
} catch (error) {
console.error('Error reading server environment:', error);
res.status(500).json({ error: 'Failed to read server environment' });
}
});
export default router;