@reconcrap/boss-recommend-mcp 1.2.6 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/package.json +2 -1
- package/src/adapters.js +112 -60
- package/src/index.js +97 -0
- package/src/recommend-healing-config.js +131 -0
- package/src/recommend-healing-rules.json +261 -0
- package/src/self-heal.js +2237 -0
- package/src/test-self-heal.js +224 -0
- package/vendor/boss-recommend-screen-cli/boss-recommend-screen-cli.cjs +259 -153
- package/vendor/boss-recommend-search-cli/src/cli.js +98 -50
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"selectors": {
|
|
4
|
+
"top": {
|
|
5
|
+
"recommend_iframe": [
|
|
6
|
+
"iframe[name=\"recommendFrame\"]",
|
|
7
|
+
"iframe[src*=\"/web/frame/recommend/\"]",
|
|
8
|
+
"iframe"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"frame": {
|
|
12
|
+
"tab_items": [
|
|
13
|
+
"li.tab-item[data-status]",
|
|
14
|
+
"li[data-status][class*=\"tab\"]"
|
|
15
|
+
],
|
|
16
|
+
"filter_trigger": [
|
|
17
|
+
".filter-label-wrap",
|
|
18
|
+
".recommend-filter.op-filter"
|
|
19
|
+
],
|
|
20
|
+
"filter_panel": [
|
|
21
|
+
".recommend-filter.op-filter .filter-panel",
|
|
22
|
+
".recommend-filter .filter-panel",
|
|
23
|
+
".filter-panel"
|
|
24
|
+
],
|
|
25
|
+
"filter_confirm_button": [
|
|
26
|
+
".recommend-filter.op-filter .filter-panel .btn",
|
|
27
|
+
".recommend-filter.op-filter .filter-panel button",
|
|
28
|
+
".filter-panel .btn",
|
|
29
|
+
".filter-panel button"
|
|
30
|
+
],
|
|
31
|
+
"filter_group_container": [
|
|
32
|
+
".check-box"
|
|
33
|
+
],
|
|
34
|
+
"filter_group_school": [
|
|
35
|
+
".check-box.school"
|
|
36
|
+
],
|
|
37
|
+
"filter_group_degree": [
|
|
38
|
+
".check-box.degree"
|
|
39
|
+
],
|
|
40
|
+
"filter_group_gender": [
|
|
41
|
+
".check-box.gender"
|
|
42
|
+
],
|
|
43
|
+
"filter_group_recent_not_view": [
|
|
44
|
+
".check-box.recentNotView"
|
|
45
|
+
],
|
|
46
|
+
"filter_option": [
|
|
47
|
+
".check-box .default.option",
|
|
48
|
+
".check-box .options .option",
|
|
49
|
+
".check-box .option"
|
|
50
|
+
],
|
|
51
|
+
"filter_option_all": [
|
|
52
|
+
".default.option, .options .option, .option"
|
|
53
|
+
],
|
|
54
|
+
"filter_option_active": [
|
|
55
|
+
".default.option.active, .options .option.active, .option.active"
|
|
56
|
+
],
|
|
57
|
+
"filter_scroll_container": [
|
|
58
|
+
".recommend-filter.op-filter .filter-panel .top",
|
|
59
|
+
".recommend-filter.op-filter .top",
|
|
60
|
+
".recommend-filter.op-filter .filter-panel"
|
|
61
|
+
],
|
|
62
|
+
"filter_confirm_candidates": [
|
|
63
|
+
".btn, button"
|
|
64
|
+
],
|
|
65
|
+
"job_dropdown_trigger": [
|
|
66
|
+
".top-chat-search",
|
|
67
|
+
".chat-job-select",
|
|
68
|
+
".chat-job-selector",
|
|
69
|
+
".job-selecter",
|
|
70
|
+
".job-selector",
|
|
71
|
+
".job-select-wrap",
|
|
72
|
+
".job-select",
|
|
73
|
+
".job-select-box",
|
|
74
|
+
".job-wrap",
|
|
75
|
+
".chat-job-name"
|
|
76
|
+
],
|
|
77
|
+
"job_list_items": [
|
|
78
|
+
".ui-dropmenu-list .job-list .job-item",
|
|
79
|
+
".job-selecter-options .job-list .job-item",
|
|
80
|
+
".job-selector-options .job-list .job-item",
|
|
81
|
+
".dropmenu-list .job-list .job-item",
|
|
82
|
+
".job-list .job-item"
|
|
83
|
+
],
|
|
84
|
+
"job_item_label": [
|
|
85
|
+
".ui-dropmenu-list .job-list .job-item .label",
|
|
86
|
+
".job-list .job-item .label",
|
|
87
|
+
".label"
|
|
88
|
+
],
|
|
89
|
+
"job_search_input": [
|
|
90
|
+
".top-chat-search"
|
|
91
|
+
],
|
|
92
|
+
"job_selected_label": [
|
|
93
|
+
".job-selecter-wrap .ui-dropmenu-label",
|
|
94
|
+
".ui-dropmenu-label",
|
|
95
|
+
".chat-job-name",
|
|
96
|
+
".job-selecter .label",
|
|
97
|
+
".job-selecter .job-name",
|
|
98
|
+
".job-select .label"
|
|
99
|
+
],
|
|
100
|
+
"recommend_cards": [
|
|
101
|
+
"ul.card-list > li.card-item"
|
|
102
|
+
],
|
|
103
|
+
"recommend_card_inner": [
|
|
104
|
+
".card-inner[data-geekid]"
|
|
105
|
+
],
|
|
106
|
+
"featured_cards": [
|
|
107
|
+
"li.geek-info-card"
|
|
108
|
+
],
|
|
109
|
+
"featured_card_anchor": [
|
|
110
|
+
"a[data-geekid]"
|
|
111
|
+
],
|
|
112
|
+
"latest_cards": [
|
|
113
|
+
".candidate-card-wrap"
|
|
114
|
+
],
|
|
115
|
+
"latest_card_inner": [
|
|
116
|
+
".candidate-card-wrap .card-inner[data-geek]",
|
|
117
|
+
".candidate-card-wrap [data-geek]"
|
|
118
|
+
],
|
|
119
|
+
"refresh_finished_wrap": [
|
|
120
|
+
".finished-wrap"
|
|
121
|
+
],
|
|
122
|
+
"refresh_button": [
|
|
123
|
+
".finished-wrap .btn.btn-refresh",
|
|
124
|
+
".finished-wrap .btn-refresh",
|
|
125
|
+
".no-data-refresh .btn-refresh"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"detail": {
|
|
129
|
+
"popup": [
|
|
130
|
+
".dialog-wrap.active",
|
|
131
|
+
".boss-popup__wrapper",
|
|
132
|
+
".boss-popup_wrapper",
|
|
133
|
+
".boss-dialog_wrapper",
|
|
134
|
+
".boss-dialog",
|
|
135
|
+
".resume-item-detail",
|
|
136
|
+
".geek-detail-modal",
|
|
137
|
+
"[class*=\"popup\"][class*=\"wrapper\"]",
|
|
138
|
+
"[class*=\"dialog\"][class*=\"wrapper\"]"
|
|
139
|
+
],
|
|
140
|
+
"resume_iframe": [
|
|
141
|
+
"iframe[src*=\"/web/frame/c-resume/\"]",
|
|
142
|
+
"iframe[name*=\"resume\"]"
|
|
143
|
+
],
|
|
144
|
+
"close_button": [
|
|
145
|
+
".boss-popup__close",
|
|
146
|
+
".popup-close",
|
|
147
|
+
".modal-close",
|
|
148
|
+
".dialog-close",
|
|
149
|
+
".close-btn",
|
|
150
|
+
"button[aria-label*=\"关闭\"]",
|
|
151
|
+
"button[title*=\"关闭\"]",
|
|
152
|
+
".icon-close"
|
|
153
|
+
],
|
|
154
|
+
"close_fallback_candidates": [
|
|
155
|
+
"[aria-label*=\"关闭\"]",
|
|
156
|
+
"[aria-label*=\"返回\"]",
|
|
157
|
+
"[title*=\"关闭\"]",
|
|
158
|
+
"[title*=\"返回\"]",
|
|
159
|
+
"[class*=\"close\"]",
|
|
160
|
+
"[class*=\"Close\"]",
|
|
161
|
+
"[class*=\"back\"]",
|
|
162
|
+
"[class*=\"Back\"]",
|
|
163
|
+
"button",
|
|
164
|
+
"a",
|
|
165
|
+
"i",
|
|
166
|
+
"span"
|
|
167
|
+
],
|
|
168
|
+
"ack_button": [
|
|
169
|
+
"button.btn-v2.btn-sure-v2",
|
|
170
|
+
"button.btn",
|
|
171
|
+
".boss-dialog button",
|
|
172
|
+
".boss-popup__wrapper button"
|
|
173
|
+
],
|
|
174
|
+
"favorite_button": [
|
|
175
|
+
".like-icon-and-text",
|
|
176
|
+
".resume-footer.item-operate [class*=\"collect\"]",
|
|
177
|
+
".resume-footer.item-operate [class*=\"favorite\"]",
|
|
178
|
+
".resume-footer-wrap [class*=\"collect\"]",
|
|
179
|
+
".resume-footer-wrap [class*=\"favorite\"]"
|
|
180
|
+
],
|
|
181
|
+
"greet_button_recommend": [
|
|
182
|
+
"button.btn-v2.btn-sure-v2.btn-greet",
|
|
183
|
+
".resume-footer.item-operate button.btn-v2",
|
|
184
|
+
".resume-footer-wrap button.btn-v2",
|
|
185
|
+
".resume-footer.item-operate button",
|
|
186
|
+
".resume-footer-wrap button"
|
|
187
|
+
],
|
|
188
|
+
"greet_button_featured": [
|
|
189
|
+
"button.btn-v2.position-rights.btn-sure-v2",
|
|
190
|
+
"button.btn-v2.btn-sure-v2.position-rights",
|
|
191
|
+
".resume-footer.item-operate button.btn-v2",
|
|
192
|
+
".resume-footer-wrap button.btn-v2",
|
|
193
|
+
".resume-footer.item-operate button",
|
|
194
|
+
".resume-footer-wrap button"
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"network": {
|
|
199
|
+
"resume": {
|
|
200
|
+
"info_url_patterns": [
|
|
201
|
+
"\\/wapi\\/zpjob\\/view\\/geek\\/info\\b",
|
|
202
|
+
"\\/wapi\\/zpitem\\/web\\/boss\\/[^?#]*\\/geek\\/info\\b",
|
|
203
|
+
"\\/boss\\/[^?#]*\\/geek\\/info\\b",
|
|
204
|
+
"\\/geek\\/info\\b",
|
|
205
|
+
"[?&](?:geekid|geek_id|encryptgeekid|encryptjid|jid|securityid)="
|
|
206
|
+
],
|
|
207
|
+
"related_keywords": [
|
|
208
|
+
"geek",
|
|
209
|
+
"resume",
|
|
210
|
+
"candidate",
|
|
211
|
+
"friend"
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
"favorite": {
|
|
215
|
+
"request_source_keywords": [
|
|
216
|
+
"usermark",
|
|
217
|
+
"actionlog/common.json"
|
|
218
|
+
],
|
|
219
|
+
"add_patterns": [
|
|
220
|
+
"(?:^|[_\\W])(add|favorite|collect|interest(?:ed)?)(?:$|[_\\W])",
|
|
221
|
+
"\\/add(?:\\/|$)|[?&](?:action|op|operation|type)=add\\b|[?&](?:status|p3|favorite|collect|interested)=1\\b"
|
|
222
|
+
],
|
|
223
|
+
"remove_patterns": [
|
|
224
|
+
"(?:^|[_\\W])(del|delete|remove|cancel|unfavorite|uncollect|uninterest)(?:$|[_\\W])",
|
|
225
|
+
"\\/del(?:\\/|$)|[?&](?:action|op|operation|type)=del\\b|[?&](?:status|p3|favorite|collect|interested)=0\\b"
|
|
226
|
+
],
|
|
227
|
+
"actionlog_action_name": "star-interest-click",
|
|
228
|
+
"status_keys": [
|
|
229
|
+
"p3",
|
|
230
|
+
"status",
|
|
231
|
+
"state",
|
|
232
|
+
"favorite",
|
|
233
|
+
"collect",
|
|
234
|
+
"interested",
|
|
235
|
+
"markstatus",
|
|
236
|
+
"isfavorite",
|
|
237
|
+
"iscollect"
|
|
238
|
+
],
|
|
239
|
+
"operation_keys": [
|
|
240
|
+
"action",
|
|
241
|
+
"op",
|
|
242
|
+
"operation",
|
|
243
|
+
"type",
|
|
244
|
+
"mode",
|
|
245
|
+
"mark",
|
|
246
|
+
"interest"
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
"greet": {
|
|
250
|
+
"url_patterns": [
|
|
251
|
+
"greet",
|
|
252
|
+
"sayhi",
|
|
253
|
+
"hello",
|
|
254
|
+
"friend/add",
|
|
255
|
+
"chat/start",
|
|
256
|
+
"boss\\/friend",
|
|
257
|
+
"boss\\/dialog"
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|