mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 20:43:36 +00:00
feat(server): Implement Cursor CLI permissions management
Added new routes and handlers for managing Cursor CLI permissions, including: - GET /api/setup/cursor-permissions: Retrieve current permissions configuration and available profiles. - POST /api/setup/cursor-permissions/profile: Apply a predefined permission profile (global or project). - POST /api/setup/cursor-permissions/custom: Set custom permissions for a project. - DELETE /api/setup/cursor-permissions: Delete project-level permissions, reverting to global settings. - GET /api/setup/cursor-permissions/example: Provide an example config file for a specified profile. Also introduced a new service for handling Cursor CLI configuration files and updated the UI to support permissions management. Affected files: - Added new routes in index.ts and cursor-config.ts - Created cursor-config-service.ts for permissions management logic - Updated UI components to display and manage permissions 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
@@ -17,6 +17,11 @@ import {
|
||||
createGetCursorConfigHandler,
|
||||
createSetCursorDefaultModelHandler,
|
||||
createSetCursorModelsHandler,
|
||||
createGetCursorPermissionsHandler,
|
||||
createApplyPermissionProfileHandler,
|
||||
createSetCustomPermissionsHandler,
|
||||
createDeleteProjectPermissionsHandler,
|
||||
createGetExampleConfigHandler,
|
||||
} from './routes/cursor-config.js';
|
||||
|
||||
export function createSetupRoutes(): Router {
|
||||
@@ -38,5 +43,12 @@ export function createSetupRoutes(): Router {
|
||||
router.post('/cursor-config/default-model', createSetCursorDefaultModelHandler());
|
||||
router.post('/cursor-config/models', createSetCursorModelsHandler());
|
||||
|
||||
// Cursor CLI Permissions routes
|
||||
router.get('/cursor-permissions', createGetCursorPermissionsHandler());
|
||||
router.post('/cursor-permissions/profile', createApplyPermissionProfileHandler());
|
||||
router.post('/cursor-permissions/custom', createSetCustomPermissionsHandler());
|
||||
router.delete('/cursor-permissions', createDeleteProjectPermissionsHandler());
|
||||
router.get('/cursor-permissions/example', createGetExampleConfigHandler());
|
||||
|
||||
return router;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user