bc903a273e
- scripts/extract_config.py: AST 解析两老项目源码取常量(不 import 源模块),
生成 seed_profiles/<slug>/{wall.json, brand_values.json, prompts/};幂等可重跑
- app/engine/wall_schema.py: compile_wall(json)→CompiledWall,坏结构/坏 regex
编译期显性失败(WallConfigError 含字段路径)
- boundary_filter/conversation: 墙词表/话术数据源切换为 DEFAULT_WALL
(jiancai 出厂 seed),函数逻辑不动、常量名保留为 wall 视图(既有测试零修改);
wall 数据化新增 pivots/pivots_contact/zero_number/reask_patterns 字段
- 脆锚点迁移: test_inline_prohibitions 断言对象从 conversation.py 源码改为
wall.json 数据文件,语义等价(唯一允许的测试修改)
- 回归: 322 既有全绿 + 10 新增 wall_schema 测试 = 332;提取脚本两遍无 diff
Co-Authored-By: Claude Code <noreply@anthropic.com>
34 lines
1003 B
JSON
34 lines
1003 B
JSON
{
|
|
"_doc": "品牌值机器提取草稿(Task 5 消费): 值取自 chat.html/widget.js/chat.js 硬编码与 .env;conflict=true 处需人工归一定稿",
|
|
"title": {
|
|
"chat_html_title": "VOLT",
|
|
"chat_html_h1": "HESU Support",
|
|
"widget_js_default": "HESU Support",
|
|
"conflict": true
|
|
},
|
|
"whatsapp": {
|
|
"chat_html_href": "https://wa.me/+8619037179250",
|
|
"widget_js_default": "https://wa.me/+8619037179250",
|
|
"chat_js_default": "https://wa.me/+8619037179250",
|
|
"conflict": false
|
|
},
|
|
"email": {
|
|
"chat_html_href": "mailto:info@borderlesscar.com",
|
|
"widget_js_default": "mailto:info@borderlesscar.com",
|
|
"chat_js_default": "mailto:info@borderlesscar.com",
|
|
"conflict": false
|
|
},
|
|
"notify_email": {
|
|
"env": "18339827479@163.com"
|
|
},
|
|
"help_description": {
|
|
"chat_html": "Ask about vehicles, market support, quotation, shipping and delivery."
|
|
},
|
|
"popular_topics": {
|
|
"chat_html": [
|
|
"Get Quotation",
|
|
"Distributor Cooperation"
|
|
]
|
|
}
|
|
}
|