tpmjs/apps/web
Ajax Davis ea742c9386 feat: add scenarios system for collection testing
Implements the complete scenarios feature for TPMJS:

API endpoints:
- GET/POST /api/scenarios - list/create scenarios
- GET/PATCH/DELETE /api/scenarios/:id - scenario CRUD
- POST /api/scenarios/:id/run - execute scenario
- GET /api/scenarios/:id/runs - run history
- POST /api/scenarios/check-similarity - vector similarity check
- GET /api/scenarios/featured - featured scenarios
- POST /api/collections/:id/scenarios/generate - AI scenario generation
- GET /api/collections/:id/scenarios - list collection scenarios

Services:
- generate-prompt.ts - AI prompt generation using GPT-4o-mini
- similarity.ts - vector embedding and cosine similarity
- evaluate.ts - LLM-based success evaluation
- execute.ts - scenario execution orchestration

CLI commands:
- tpm scenario list [collection] - list scenarios
- tpm scenario run <collection> - run all scenarios
- tpm scenario test <id> - run single scenario
- tpm scenario generate <collection> - generate scenarios
- tpm scenario info <id> - scenario details

Database:
- Scenario, ScenarioEmbedding, ScenarioRun, ScenarioQuota models
- Streak-based quality scoring
- Daily quota management

Migration script included for converting existing useCases.
2026-01-18 09:31:31 +10:00
..
public fix: move tools-export.json to public/ for Vercel compatibility 2026-01-01 17:46:36 +10:00
scripts docs: update all URL references to new username/slug format 2026-01-13 23:14:36 +10:00
src feat: add scenarios system for collection testing 2026-01-18 09:31:31 +10:00
.gitignore fix: add npmPublishedAt to API response and add null safety for dates 2025-12-16 12:49:53 +10:00
eslint.config.mjs fix(lint): configure Biome to properly ignore build directories 2025-11-26 22:49:45 +10:00
FEATURES.md feat(web): add interactive animated features section to homepage 2026-01-18 01:52:02 +10:00
next-env.d.ts feat: add scenarios system for collection testing 2026-01-18 09:31:31 +10:00
next.config.ts feat: add /tool-ideas page with 10K AI-generated tools 2026-01-01 17:13:46 +10:00
package.json feat(web): implement SWR for instant data fetching 2026-01-16 11:42:55 +10:00
postcss.config.js feat: add complete monorepo structure and all packages 2025-11-25 21:59:40 +10:00
RATE_LIMITING.md feat: add HN launch readiness features 2025-12-14 11:56:42 +10:00
RATE_LIMITING_SUMMARY.md feat: add HN launch readiness features 2025-12-14 11:56:42 +10:00
tailwind.config.ts feat(ui): add comprehensive design system with 14 new components 2026-01-16 05:51:12 +10:00
tsconfig.json feat(sync): implement Phase 3 Sync Workers with Vercel Cron integration 2025-11-28 02:57:54 +10:00
vercel.json fix: use pnpm -w flag for workspace root build command 2026-01-14 04:35:24 +10:00
vitest.config.ts fix: resolve GitHub Actions workflow failures 2026-01-14 05:16:26 +10:00
vitest.integration.config.ts feat: add comprehensive integration tests for GitHub Actions 2026-01-14 00:50:55 +10:00