Skip to content

Commit 8940b1a

Browse files
committed
feat: 补充客服聊天识别规则
扩展 SaaS 客服聊天和客服支持规则,新增 Tidio、Olark、Userlike、JivoChat、Smartsupp、Chatra、Chaport、LiveAgent、Zoho SalesIQ、Kommunicate、Ada 等资源 URL 匹配。 新增规则使用资源 URL 优先匹配,补充对应技术链接,并将版本升至 1.1.11。 验证:npx prettier --write .;npx prettier --check .;pnpm run typecheck;pnpm run lint;JSON/正则全量校验;pnpm run build。
1 parent 6f46c9f commit 8940b1a

3 files changed

Lines changed: 112 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "stackprism",
33
"private": true,
4-
"version": "1.1.10",
4+
"version": "1.1.11",
55
"type": "module",
66
"description": "StackPrism 用于检测网页前端、后端、CDN、SaaS、广告营销、统计、登录、支付、网站程序和主题模板线索。",
77
"scripts": {

public/rules/page/saas-services-page.json

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,48 @@
8686
"name": "Freshchat",
8787
"patterns": ["wchat\\.freshchat\\.com|freshchat"],
8888
"globals": ["fcWidget"]
89+
},
90+
{
91+
"defaults": {
92+
"matchIn": ["resources"]
93+
},
94+
"rules": [
95+
{
96+
"name": "Tidio",
97+
"patterns": ["code\\.tidio\\.co/[^\\s\"'<>]+\\.js|tidiochat\\.com"],
98+
"globals": ["tidioChatApi"]
99+
},
100+
{
101+
"name": "Olark",
102+
"patterns": ["static\\.olark\\.com/jsclient/loader\\.js|olark\\.com/jsclient/loader\\.js"],
103+
"globals": ["olark"]
104+
},
105+
{
106+
"name": "Userlike",
107+
"patterns": ["userlike-cdn-widgets|userlike\\.com[^\\s\"'<>]*/(?:widget|widgets|assets)"],
108+
"globals": ["userlike", "Userlike"]
109+
},
110+
{
111+
"name": "JivoChat",
112+
"patterns": ["code\\.jivosite\\.com/widget/|jivosite\\.com[^\\s\"'<>]*/widget"],
113+
"globals": ["jivo_api"]
114+
},
115+
{
116+
"name": "Smartsupp",
117+
"patterns": ["www\\.smartsuppchat\\.com/loader\\.js|smartsuppchat\\.com"],
118+
"globals": ["smartsupp", "_smartsupp"]
119+
},
120+
{
121+
"name": "Chatra",
122+
"patterns": ["call\\.chatra\\.io/chatra\\.js|chatra\\.io[^\\s\"'<>]*/chatra"],
123+
"globals": ["Chatra", "ChatraID"]
124+
},
125+
{
126+
"name": "Chaport",
127+
"patterns": ["app\\.chaport\\.com/javascripts/insert\\.js|chaport\\.com[^\\s\"'<>]*/javascripts"],
128+
"globals": ["Chaport"]
129+
}
130+
]
89131
}
90132
]
91133
},
@@ -107,6 +149,60 @@
107149
"patterns": ["gorgias\\.chat|config\\.gorgias\\.chat|client-builds\\.gorgias\\.chat"],
108150
"globals": ["GorgiasChat"]
109151
},
152+
{
153+
"defaults": {
154+
"matchIn": ["resources"]
155+
},
156+
"rules": [
157+
{
158+
"name": "LiveAgent",
159+
"kind": "客服支持",
160+
"patterns": ["ladesk\\.com/scripts/track\\.js|liveagent\\.com[^\\s\"'<>]*/scripts/track\\.js"],
161+
"globals": ["LiveAgent"]
162+
},
163+
{
164+
"name": "Zoho SalesIQ",
165+
"kind": "客服聊天 / 客户互动",
166+
"patterns": ["salesiq\\.zoho\\.com/widget|salesiq\\.zohopublic\\.com/widget|zoho\\.com/salesiq"],
167+
"globals": ["$zoho.salesiq"]
168+
},
169+
{
170+
"name": "Kommunicate",
171+
"kind": "客服聊天 / 聊天机器人",
172+
"patterns": ["widget\\.kommunicate\\.io|kommunicate\\.app|kommunicate\\.io[^\\s\"'<>]*/(?:widget|v2)"],
173+
"globals": ["Kommunicate"]
174+
},
175+
{
176+
"name": "Ada",
177+
"kind": "客服聊天 / AI 客服",
178+
"patterns": ["static\\.ada\\.support|ada\\.support[^\\s\"'<>]*/(?:embed|chat)"],
179+
"globals": ["adaEmbed"]
180+
},
181+
{
182+
"name": "Kustomer",
183+
"kind": "客服支持",
184+
"patterns": ["cdn\\.kustomerapp\\.com/chat-web|kustomerapp\\.com[^\\s\"'<>]*/chat"],
185+
"globals": ["Kustomer"]
186+
},
187+
{
188+
"name": "Front Chat",
189+
"kind": "客服聊天",
190+
"patterns": ["chat-assets\\.frontapp\\.com|frontapp\\.com[^\\s\"'<>]*/chat"],
191+
"globals": ["FrontChat"]
192+
},
193+
{
194+
"name": "Re:amaze",
195+
"kind": "客服聊天 / 客服支持",
196+
"patterns": ["cdn\\.reamaze\\.com/assets/reamaze\\.js|reamaze\\.com[^\\s\"'<>]*/assets"],
197+
"globals": ["Reamaze"]
198+
},
199+
{
200+
"name": "Genesys Cloud Web Messaging",
201+
"kind": "客服聊天 / 联络中心",
202+
"patterns": ["apps\\.mypurecloud\\.com/widgets|webmessaging\\.mypurecloud\\.com|genesyscloud\\.com[^\\s\"'<>]*/webmessaging"]
203+
}
204+
]
205+
},
110206
{
111207
"name": "HubSpot",
112208
"kind": "CRM / 营销自动化",

public/tech-links.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,9 +1002,24 @@
10021002
"Drift": "https://www.drift.com",
10031003
"Tawk.to": "https://www.tawk.to",
10041004
"Freshchat": "https://www.freshworks.com/live-chat-software",
1005+
"Tidio": "https://www.tidio.com",
1006+
"Olark": "https://www.olark.com",
1007+
"Userlike": "https://www.userlike.com",
1008+
"JivoChat": "https://www.jivochat.com",
1009+
"Smartsupp": "https://www.smartsupp.com",
1010+
"Chatra": "https://chatra.com",
1011+
"Chaport": "https://www.chaport.com",
10051012
"Help Scout Beacon": "https://www.helpscout.com/beacon",
10061013
"LiveChat": "https://www.livechat.com",
10071014
"Gorgias": "https://www.gorgias.com",
1015+
"LiveAgent": "https://www.liveagent.com",
1016+
"Zoho SalesIQ": "https://www.zoho.com/salesiq",
1017+
"Kommunicate": "https://www.kommunicate.io",
1018+
"Ada": "https://www.ada.cx",
1019+
"Kustomer": "https://www.kustomer.com",
1020+
"Front Chat": "https://front.com",
1021+
"Re:amaze": "https://www.reamaze.com",
1022+
"Genesys Cloud Web Messaging": "https://www.genesys.com/cloud",
10081023
"HubSpot": "https://www.hubspot.com",
10091024
"Salesforce": "https://www.salesforce.com",
10101025
"Marketo": "https://business.adobe.com/products/marketo/adobe-marketo.html",

0 commit comments

Comments
 (0)