tpmjs/packages
Ajax Davis d6de3e025a 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
..
config feat: redesign dashboard with sidebar layout and table components 2026-01-07 18:40:52 +10:00
db feat: implement user activity stream and multiple API improvements 2026-01-08 04:11:01 +10:00
env chore: prepare for Hacker News launch 2025-12-28 11:46:59 +10:00
mocks feat: upgrade to AI SDK v6 beta and Zod v4 to fix tool schema errors 2025-11-30 19:14:01 +10:00
npm-client feat: add GitHub stars syncing to metrics sync 2026-01-07 14:11:06 +10:00
package-executor fix: evaluate SANDBOX_EXECUTOR_URL at runtime 2026-01-02 12:06:38 +10:00
storybook feat: upgrade to AI SDK v6 beta and Zod v4 to fix tool schema errors 2025-11-30 19:14:01 +10:00
test feat: upgrade to AI SDK v6 beta and Zod v4 to fix tool schema errors 2025-11-30 19:14:01 +10:00
tool-ideas fix: resolve type errors and lint issues for CI 2026-01-07 15:40:50 +10:00
tools fix: add biome-ignore comments and config overrides for lint issues 2026-01-02 01:51:46 +10:00
types fix: add description column to tools page and make agents public by default 2026-01-07 22:07:36 +10:00
ui feat: add like/love system for tools, collections, and agents 2026-01-07 21:04:31 +10:00
utils chore: prepare for Hacker News launch 2025-12-28 11:46:59 +10:00