feat(02-01): inject connector capabilities into CEO prompt

- Add allConnectors optional field to PromptContext interface
- Import getConnectorStrengths from connector-matching module
- Add 'Available Connectors for Hiring' section with per-connector status and strengths
- Add 'Connector Assignment Guide' mapping role types to preferred connectors
- Replace generic 'Choose the best runtime' text with connector-aware guidance
- Pass allConnectors from snapshot in orchestration-service.ts
- No type errors, all existing tests pass
This commit is contained in:
ZacharyZhang-NY committed 2026-03-22 03:46:18 -04:00
1 parent 058cc0dc55
commit fbfc9c38cb
2 files changed
+26 -2

No files matched your search

+1
View File
@@ -257,6 +257,7 @@ export function createOrchestrationService({
recentDocuments: snapshot.documents
.filter((document) => document.companyId === companyId && (document.authorAgentId === agent.id || document.reviewerAgentId === agent.id || document.status === "in_review"))
.slice(0, 5),
allConnectors: snapshot.connectors.map((c) => ({ id: c.id, label: c.label, status: c.status })),
}) : null;
if (apiUrl) {