agent-orchestrator/packages/web
Prateek 0ca84adbfb refactor: move computeApiStats to core, eliminate route-grouping duplication
Three copies of the same route-grouping + percentile stats logic existed in:
  - web getRequestStats (request-logger.ts)
  - web GET /api/perf (perf/route.ts inline)
  - CLI ao perf routes (perf.ts inline)

Also, RequestLog in web was a duplicate of ApiLogEntry in core.

Changes:
- Add computeApiStats(), RouteStats, ApiPerfResult to packages/core/src/log-reader.ts
- Export from @composio/ao-core
- Rewrite web/request-logger.ts as thin delegation: re-export types from core,
  getRequestStats() = parseApiLogs() + computeApiStats()
- Simplify web/perf/route.ts to use getRequestStats() (removes 80-line inline loop)
- Update CLI perf.ts to use computeApiStats() (removes inline grouping)
- Update with-timing.ts to use ApiLogEntry instead of local RequestLog
- Add parseApiLogs + computeApiStats tests to core log-reader.test.ts
- Simplify web request-logger.test.ts to a 3-test delegation contract
- Update observability-routes.test.ts mock to include parseApiLogs/computeApiStats
- Update perf.test.ts mock to include computeApiStats with inline implementation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 19:34:33 +05:30
..
e2e feat: seamless onboarding with enhanced documentation (#66) 2026-02-16 22:22:13 +05:30
screenshots feat: implement web dashboard with attention-zone UI and API routes (#1) 2026-02-14 14:26:59 +05:30
server feat(web): redesign dashboard, session detail, and orchestrator terminal (#125) 2026-02-20 18:43:57 +05:30
src refactor: move computeApiStats to core, eliminate route-grouping duplication 2026-02-20 19:34:33 +05:30
.env.local.example feat: configurable terminal server ports for multi-dashboard support (#113) 2026-02-19 04:00:19 +05:30
.gitignore feat: implement DirectTerminal with XDA clipboard support (#55) 2026-02-16 04:34:15 +05:30
next-env.d.ts feat: implement web dashboard with attention-zone UI and API routes (#1) 2026-02-14 14:26:59 +05:30
next.config.js feat: publish to npm under @composio scope (#32) 2026-02-15 04:28:57 +05:30
package.json fix: dashboard config discovery + CLI service layer refactoring (#70) 2026-02-18 17:08:48 +05:30
postcss.config.mjs feat: implement web dashboard with attention-zone UI and API routes (#1) 2026-02-14 14:26:59 +05:30
tsconfig.json fix: terminal servers compatible with hash-based architecture (#87) 2026-02-18 03:28:55 +05:30
vitest.config.ts fix: terminal servers compatible with hash-based architecture (#87) 2026-02-18 03:28:55 +05:30