agent-orchestrator/packages/cli/__tests__
Prateek 6a2be7ebeb fix: agent hook metadata path and test directory leakage
Addresses two bugbot findings:

1. HIGH SEVERITY: Agent hook constructs wrong metadata path
   - Simplified hook path logic since AO_DATA_DIR now points to project-specific sessions directory
   - Removed conditional nesting that created non-existent double-nested paths
   - Changed from: $AO_DATA_DIR/${AO_PROJECT_ID}-sessions/$AO_SESSION
   - Changed to: $AO_DATA_DIR/$AO_SESSION

2. MEDIUM SEVERITY: Tests leak directories to user's home directory
   - Fixed status.test.ts to use tmpDir instead of hardcoded /home/user/my-app
   - Fixed plugin-integration.test.ts to use tmpDir instead of hardcoded /tmp/test-app
   - Both tests now create directories only in temporary test directories

All tests pass, lint and typecheck clean.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-17 23:36:24 +05:30
..
commands fix: agent hook metadata path and test directory leakage 2026-02-17 23:36:24 +05:30
lib fix: resolve all lint and typecheck errors 2026-02-17 22:29:46 +05:30