fix(skill-resolver): diagnostic/panne → réparation (plus « fibre » forcé en installation)
Suite au diagnostic « voir signal fibre » → installation (faux). deptToSkill traitait « fibre » comme une intention d'installation et ne reconnaissait pas « panne ». Corrigé (SOURCE UNIQUE → impacte diagnostic agent, AvailabilityByReason, couleur des tags) : - Nouvelle règle réparation AVANT installation : panne, signal, lent, coupé, hors service, ne fonctionne pas, sans internet, déconnecté, intermittent, vérifier, diagnostic, dépannage, problème, bris, défectueux. - Installation = intention de POSER : install, raccordement, activation, nouveau, mise en service, branchement (« fibre » seul = techno, plus un déclencheur d'installation). - Bonus : « tv » en texte libre (\btv\b) → tv. Vérifié : voir signal fibre/panne/internet lent/coupé/ne fonctionne pas/vérifier le signal → réparation ; installation fibre/raccordement/activation → installation ; ajout tv → tv. Déployé, hub sain. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
f97152c831
commit
2b5c1c6d07
|
|
@ -46,12 +46,14 @@ function deptToSkill (txt) {
|
||||||
const d = stripAccents(txt).toLowerCase()
|
const d = stripAccents(txt).toLowerCase()
|
||||||
if (!d) return ''
|
if (!d) return ''
|
||||||
if (/teleph/.test(d)) return 'telephone'
|
if (/teleph/.test(d)) return 'telephone'
|
||||||
if (/tele|televis/.test(d)) return 'tv'
|
if (/\btv\b|tele|televis/.test(d)) return 'tv'
|
||||||
if (/fusion|episs/.test(d)) return 'épissure'
|
if (/fusion|episs/.test(d)) return 'épissure'
|
||||||
if (/monteur|aerien/.test(d)) return 'monteur'
|
if (/monteur|aerien/.test(d)) return 'monteur'
|
||||||
if (/netadmin|net admin/.test(d)) return 'netadmin'
|
if (/netadmin|net admin/.test(d)) return 'netadmin'
|
||||||
if (/repar|desinstall/.test(d)) return 'réparation'
|
// Diagnostic / panne / dépannage → réparation, AVANT l'installation : « voir signal fibre », « panne », « internet lent »,
|
||||||
if (/install|fibre/.test(d)) return 'installation'
|
// « coupé », « ne fonctionne pas » = une RÉPARATION, pas une pose. (« fibre » seul = une techno, PAS une intention d'installer.)
|
||||||
|
if (/repar|desinstall|panne|signal|lent|coupe|coupure|hors.?service|ne fonctionne|fonctionne pas|marche pas|sans internet|pas d.?internet|no internet|deconnect|intermitten|verifi|diagnostic|depann|probleme|trouble|\bbris\b|defect/.test(d)) return 'réparation'
|
||||||
|
if (/install|raccord|activ|nouveau|nouvelle|mise en service|branchement/.test(d)) return 'installation'
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user