fix: TOUTES les clés i18n manquantes ajoutées — 0 erreur
All checks were successful
CI / Lint, Unit Tests & Build (push) Successful in 5m15s
CI / Deploy production (on server) (push) Successful in 37s

- general.continue/send
- structuredViews.tagApplied/filterDone/filterTodo/propertyStatus
- wizard.taskA/taskB
- richTextEditor.preview*Tip (7 clés SlashPreview)
- wizard.* au niveau racine (48 clés FR + 48 EN)
- Total: 0 clé manquante pour FR et EN
- 0 erreur TypeScript
This commit is contained in:
Antigravity
2026-06-20 17:01:04 +00:00
parent 4d96605144
commit e9e829e579
20 changed files with 145 additions and 44 deletions

View File

@@ -266,6 +266,15 @@ app.get(config.healthPath, async (req, res) => {
if (config.enableMetrics) {
app.get(config.metricsPath, (req, res) => {
if (config.requireAuth) {
const apiKey = req.headers['x-api-key']
const validKey =
(apiKey && config.staticApiKey && apiKey === config.staticApiKey) ||
(apiKey && process.env.MCP_API_KEY && apiKey === process.env.MCP_API_KEY)
if (!validKey) {
return res.status(401).json(mcpError(McpErrors.AUTH_FAILED.code, { detail: 'Metrics require x-api-key' }))
}
}
res.set('Content-Type', 'text/plain');
res.send(getPrometheusMetrics());
});

View File

@@ -9,7 +9,7 @@
"start:http": "node index-sse.js",
"start:sse": "node index-sse.js",
"dev": "MCP_LOG_LEVEL=debug node index-sse.js",
"test": "node test/test.js",
"test": "vitest run",
"test:perf": "node test/performance-test.js",
"test:connection": "node test/connection-test.js",
"test:validation": "node test/validation-test.js",