import { Router } from 'express';
export function capabilitiesRouter(options = {}) {
    const router = Router();
    router.get('/', async (_req, res) => {
        const platform = process.platform;
        const capabilities = {
            platform,
            supports: {
                terminal: platform === 'darwin',
                claude: platform === 'darwin',
                edits: options.allowEdits === true,
                gitCommit: options.gitCommit === true,
            },
        };
        res.json(capabilities);
    });
    return router;
}
//# sourceMappingURL=capabilities.js.map