mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 12:15:57 +00:00
fix(cursor): add subcommand parity comment and raw settings TODO
This commit is contained in:
@@ -556,6 +556,7 @@ async function main(): Promise<void> {
|
||||
// Special case: cursor command (Cursor IDE integration)
|
||||
// Only route to command handler for known subcommands, otherwise treat as profile
|
||||
// NOTE: Bare `ccs cursor` falls through to profile detection by design (differs from copilot routing)
|
||||
// Note: cursor does not have enable/disable — it uses daemon start/stop instead
|
||||
const CURSOR_SUBCOMMANDS = ['auth', 'status', 'models', 'start', 'stop', 'help', '--help', '-h'];
|
||||
if (firstArg === 'cursor' && args.length > 1 && CURSOR_SUBCOMMANDS.includes(args[1])) {
|
||||
// `ccs cursor <subcommand>` - route to cursor command handler
|
||||
|
||||
@@ -151,6 +151,8 @@ router.put('/raw', (req: Request, res: Response): void => {
|
||||
fs.writeFileSync(tempPath, JSON.stringify(settings, null, 2) + '\n');
|
||||
fs.renameSync(tempPath, settingsPath);
|
||||
|
||||
// TODO: Sync raw settings back to unified config when cursor-daemon is integrated (#520)
|
||||
|
||||
const stat = fs.statSync(settingsPath);
|
||||
res.json({ success: true, mtime: stat.mtimeMs });
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user