Antigravity
718f4c6900
Deploy to Production / Build and Deploy (push) Successful in 1m35s
perf: optimize MCP server (O(1) auth, compact JSON, trashedAt fix) + memento-note performance (lazy loading, server-side filtering, XSS fixes, dead code removal, security hardening)
MCP Server:
- Fix validateApiKey: O(1) direct lookup by shortId instead of loading all keys
- Add trashedAt:null filter to ALL note queries (trashed notes leaked in results)
- Compact JSON output (~40% smaller responses)
- Bounded session cache (Map with MAX_SESSIONS=500) to prevent memory leaks
- PostgreSQL connection pooling (connection_limit=10)
- Rewrite all 22 tool descriptions in clear English
- Fix /sse fallback to proper 307 redirect
memento-note Performance:
- loading=lazy on all note images
- Split notebooksRefreshKey from global refreshKey (note CRUD no longer re-fetches notebooks)
- Remove searchKey from trash count deps (no re-fetch on every keystroke)
- Server-side notebookId filter in getAllNotes() (biggest win)
- Skip collaborator fetch for non-shared notes (eliminates N+1 API calls)
- next/dynamic for MarkdownContent + 4 modals (code-split remark/rehype/KaTeX)
- Memoize DOMPurify sanitize with useMemo
Security:
- XSS: DOMPurify sanitize in note-card and note-history-modal
- Auth anti-enumeration: uniform errors in auth.ts
- CRON_SECRET mandatory on cron endpoints
- Rate limiting on login (5 attempts/min per email)
- Centralized API auth helpers (requireAuth/requireAdmin)
- randomize-labels changed GET→POST
- Removed debug endpoints (/api/debug/config, /api/debug/test-chat)
Cleanup:
- Removed dead code: .backup-keep, settings-backup, fix-*.js, debug-theme, fix-labels route
- Removed sensitive console.error in auth.ts
- Ollama fetchWithTimeout (30s/60s AbortController)
- i18n: full Arabic translation, Farsi missing keys
- Masonry drag-and-drop fix (localOrderMap, cross-section block)
- Sidebar notebook tooltip on truncation
2026-05-03 18:41:38 +00:00
..
2026-04-28 21:05:55 +02:00
2026-05-03 12:51:25 +00:00
2026-04-28 22:18:46 +02:00
2026-04-26 21:14:45 +02:00
2026-05-03 12:51:25 +00:00
2026-05-03 12:51:25 +00:00
2026-05-03 13:09:04 +00:00
2026-04-26 21:14:45 +02:00
2026-04-20 22:48:06 +02:00
2026-05-03 12:51:25 +00:00
2026-04-20 22:48:06 +02:00
2026-04-25 20:46:10 +02:00
2026-04-20 22:48:06 +02:00
2026-04-28 22:18:46 +02:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-05-03 01:42:22 +02:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-04-26 21:14:45 +02:00
2026-04-20 22:48:06 +02:00
2026-05-03 18:41:38 +00:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-04-21 22:22:02 +02:00
2026-04-20 22:48:06 +02:00
2026-04-26 21:14:45 +02:00
2026-05-03 18:41:38 +00:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-04-27 00:09:31 +02:00
2026-04-20 22:48:06 +02:00
2026-05-02 21:45:48 +02:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-05-03 18:41:38 +00:00
2026-04-20 22:48:06 +02:00
2026-05-01 01:11:03 +02:00
2026-05-03 18:41:38 +00:00
2026-04-20 22:48:06 +02:00
2026-05-03 00:08:28 +02:00
2026-05-03 18:41:38 +00:00
2026-05-03 18:41:38 +00:00
2026-05-03 00:08:28 +02:00
2026-05-03 00:55:02 +02:00
2026-05-01 01:11:03 +02:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-05-03 18:41:38 +00:00
2026-04-29 22:34:13 +02:00
2026-05-03 01:23:08 +02:00
2026-04-20 22:48:06 +02:00
2026-05-01 16:14:07 +02:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00
2026-04-26 19:59:38 +02:00
2026-04-20 22:48:06 +02:00
2026-04-30 20:43:02 +02:00
2026-05-03 01:38:16 +02:00
2026-04-20 22:48:06 +02:00
2026-05-03 18:41:38 +00:00
2026-05-01 16:14:07 +02:00
2026-04-28 21:05:55 +02:00
2026-04-20 22:48:06 +02:00
2026-04-20 22:48:06 +02:00