tpmjs/apps/web/src/lib
Ajax Davis e1bbd80f9b feat: implement user activity stream and multiple API improvements
Activity Stream:
- Add UserActivity model with ActivityType enum to track user actions
- Create activity logging service with fire-and-forget pattern
- Add /api/user/activity endpoint with cursor pagination
- Add cleanup cron job for 90-day activity retention
- Integrate activity logging into 18 mutation API routes
- Add DashboardActivityStream component with virtualized rendering

API Improvements:
- Add distributed rate limiting via Vercel KV (with in-memory fallback)
- Add rate limiting to chat endpoint (30 req/min)
- Optimize BM25 search with database-level pre-filtering
- Fix JSON parse crash in search endpoint
- Add pagination to collection tools response (toolsLimit/toolsOffset)
- Add take limits to agent detail query to prevent excessive data fetch
- Fix hardcoded tool count calculation in agents dashboard

Schema Extraction:
- Add schemaExtractionAttemptAt and schemaExtractionError fields
- Separate rate limiting for failed (1 min) vs successful (1 hour) attempts
- Allow retry of failed extractions

Standardization:
- Create api-response.ts with standardized response helpers
- Add apiSuccess, apiError, apiNotFound, apiForbidden, etc.
- Update agents routes to use standardized format

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-08 04:11:01 +10:00
..
agents Add agent logs and stats endpoints 2026-01-03 17:05:45 +10:00
ai-agent feat: add comprehensive stats dashboard with D3 charts 2025-12-28 17:08:19 +10:00
crypto fix: add helpful error message for API key decryption failure 2026-01-03 19:20:07 +10:00
health-check refactor: rename exportName to name across entire codebase 2025-12-17 17:19:21 +10:00
mcp fix: use hardcoded sandbox URL in MCP handler 2026-01-02 12:27:12 +10:00
og fix: remove unused error variable in cache.ts 2025-12-29 21:56:48 +10:00
activity.ts feat: implement user activity stream and multiple API improvements 2026-01-08 04:11:01 +10:00
api-response.ts feat: implement user activity stream and multiple API improvements 2026-01-08 04:11:01 +10:00
auth-client.ts fix: simplify auth client and use window.location for redirects 2026-01-01 23:33:44 +10:00
auth.ts feat: generic env variable CRUD - any key name, not locked to providers 2026-01-03 14:35:19 +10:00
email.ts fix: lazy init Resend to avoid build-time errors 2026-01-01 22:43:39 +10:00
rate-limit.ts feat: implement user activity stream and multiple API improvements 2026-01-08 04:11:01 +10:00
rate-limiter.ts feat: add interactive tool playground with AI-powered execution 2025-11-30 00:36:05 +10:00
schema-extraction.ts refactor: rename exportName to name across entire codebase 2025-12-17 17:19:21 +10:00