agent-orchestrator/packages/cli
Prateek 080bd1d5fd fix: resolve webpack build error and eliminate mock duplication in tests
Two fixes:
1. perf/route.ts was importing request-logger.js via relative path with .js
   extension. Next.js webpack can't resolve this — use @/lib/request-logger
   alias like all other API routes do. Fixes CI Typecheck and Fresh Onboarding.

2. perf.test.ts and observability-routes.test.ts contained ~100 lines of
   inline mock implementations duplicating computeApiStats and parseApiLogs
   from core. These are tested in log-reader.test.ts. Removed the duplication:
   - perf.test.ts: drop @composio/ao-core mock entirely; use real pure fns
   - observability-routes.test.ts: mock request-logger.js at the module
     boundary (getRequestStats), replace 9 behavioral tests with 7 focused
     HTTP-contract tests (JSON shape, param forwarding, error handling)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 19:34:33 +05:30
..
__tests__ fix: resolve webpack build error and eliminate mock duplication in tests 2026-02-20 19:34:33 +05:30
src refactor: move computeApiStats to core, eliminate route-grouping duplication 2026-02-20 19:34:33 +05:30
templates/rules feat: seamless onboarding with enhanced documentation (#66) 2026-02-16 22:22:13 +05:30
package.json fix: three spawn regressions from PR #88 session-manager refactor (#100) 2026-02-18 17:53:33 +05:30
tsconfig.json feat: scaffold TypeScript monorepo with all plugin interfaces 2026-02-13 17:02:42 +05:30
vitest.config.ts feat: implement CLI with all commands (init, status, spawn, session, send, review-check, dashboard, open) (#6) 2026-02-14 16:14:27 +05:30