nexus/server
Numman Ali 7b334ff2b7 fix: exclude terminated agents from list and org chart endpoints
Terminated agents (e.g. from rejected hire approvals) were visible in
GET /companies/:companyId/agents and GET /companies/:companyId/org because
list() and orgForCompany() had no status filtering.

- Add ne(agents.status, "terminated") filter to both queries
- Add optional { includeTerminated: true } param to list() for callers
  that need all agents (e.g. company-portability export with skip counting)
- orgForCompany() always excludes terminated (no escape hatch needed)

Fixes #5
2026-03-04 22:28:22 +00:00
..
src fix: exclude terminated agents from list and org chart endpoints 2026-03-04 22:28:22 +00:00
CHANGELOG.md chore: release v0.2.5 2026-03-03 16:14:33 -06:00
package.json chore: release v0.2.5 2026-03-03 16:14:33 -06:00
tsconfig.json feat: integrate Changesets for multi-package npm publishing 2026-03-03 14:46:16 -06:00
vitest.config.ts Add API server with routes, services, and middleware 2026-02-16 13:31:58 -06:00