refactor(connectors): remove adapter module references from services

Drops every `definition.module.*` call and legacy id hardcode (claude_local,
codex_local, gemini_local, claude_compat_*) from the connector services.
Health checks now evaluate stored credentials against the declarative auth
descriptor, model policy reads provider models via pi-ai, matching keys off
provider ids, and hire-hook logs activity without invoking an adapter hook.
Introduces a local normalizeCommandValue helper to replace the deleted
@agentcompany/adapter-utils/server-utils import.
This commit is contained in:
ZacharyZhang-NY committed 2026-04-17 02:20:56 -04:00
1 parent 60178ceafa
commit 06a3ba603e
14 files changed
+267 -377

No files matched your search

@@ -30,7 +30,7 @@ For EACH role, use POST /api/companies/{companyId}/agents with:
- Specific role and title
- Detailed capabilities describing what they should own
- reportsTo: an explicit manager agent ID (do not omit this field)
- connectorId: Use the connector recommended in the "Available Connectors" section above. If no section is shown, use claude_local.
- connectorId: Use the connector recommended in the "Available Connectors" section above. If no section is shown, use claude-pro.
- budgetMonthlyUsd: Appropriate budget (recommend $50-250/agent)
- model: Best model for the role's complexity
- After EACH hire is approved and the agent is created, assign relevant skills to them: