Feature/update cursor model (#804)

* fix: remove the hide cursor on windows logic

* feat(cursor): update fallback models
This commit is contained in:
Haile
2026-05-28 21:23:01 +03:00
committed by GitHub
parent 374e9de719
commit 997cf9fd1a
7 changed files with 569 additions and 118 deletions

View File

@@ -1,4 +1,5 @@
import express from 'express';
import { apiKeysDb, credentialsDb, notificationPreferencesDb, pushSubscriptionsDb } from '../modules/database/index.js';
import { getPublicKey } from '../services/vapid-keys.js';
import { createNotificationEvent, notifyUserIfEnabled } from '../services/notification-orchestrator.js';
@@ -273,14 +274,4 @@ 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;