feat(supplier): RouteSupplierLeadJob + LeadRouter handle DIRECT platform

parseProjectField() returns ('DIRECT', signal_type, identifier) when project
has no B-prefix; identifier-detection (call/site/sms regex) runs on full
project string. LeadRouter::matchEligibleProjects has a DIRECT fast-path
that matches Liderra projects by (signal_type, signal_identifier) directly
without requiring project_supplier_links pivot — because DIRECT
supplier_projects are auto-created on first webhook and don't have manual
psl links.

B1/B2/B3 path unchanged (psl-based via project_supplier_links).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Дмитрий
2026-05-25 17:31:22 +03:00
parent 3aaa597baf
commit 4de2193dfa
3 changed files with 43 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# Brain Status (auto-generated)
Last updated: 2026-05-25T14:59:04.311Z
Last updated: 2026-05-25T14:59:06.257Z
| Контролёр | Состояние | Детали |
|---|---|---|