Import ClientFlow production v4928.1.5.132.4

This commit is contained in:
plx
2026-07-29 13:11:01 +00:00
parent 6445044ac6
commit 261d342057
405 changed files with 48373 additions and 1401 deletions

View File

@@ -0,0 +1,15 @@
from __future__ import annotations
from .decision import OpportunityDecision
from .evidence import OpportunityEvidence
from .profiles import CompanyWorkflowProfile, load_company_profile
from .rules import decide_blif_next_action
def decide_opportunity_next_action(evidence: OpportunityEvidence, profile: CompanyWorkflowProfile | None = None) -> OpportunityDecision:
"""Run the company workflow profile against normalized evidence."""
profile = profile or load_company_profile(evidence.company_profile or "blif")
# v1 foundation ships with BLIF and default profiles. New companies can add
# profiles without changing UI; custom rule modules can be introduced later.
return decide_blif_next_action(evidence, profile)