feat(02-01): implement connector-matching heuristic and DB schema extensions

- Create connector-matching.ts with matchConnector, inferTaskType, getConnectorStrengths
- Add TASK_TYPE_PREFERENCE mapping task types to ordered connector lists
- Add ROLE_DEPARTMENT_HINTS mapping departments to task types
- Add CONNECTOR_STRENGTHS with human-readable capability descriptions
- Add TaskType to shared/types.ts
- Add task_type, retry_count, last_failure_at columns to tasks table
- Add getTaskRetryCount, incrementTaskRetryCount, resetTaskRetryCount, setTaskType to AppDatabase
- All 34 unit tests pass
This commit is contained in:
ZacharyZhang-NY committed 2026-03-22 03:43:30 -04:00
1 parent d09b7445e5
commit 058cc0dc55
3 files changed
+208

No files matched your search

+2
View File
@@ -37,6 +37,8 @@ export type ConnectorStatus =
| "degraded"
| "error";
export type TaskType = "code" | "research" | "content" | "management" | "general";
export type WorkspaceState = "ready" | "busy" | "blocked" | "missing" | "error";
export type CompanyStatus = "active" | "paused" | "archived";
export type AgentStatus =