@reconcrap/boss-recommend-mcp 2.1.23 → 2.1.24
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 +5 -0
- package/bin/boss-recommend-mcp.js +4 -4
- package/package.json +6 -1
- package/scripts/install-macos.sh +280 -280
- package/scripts/postinstall.cjs +44 -44
- package/skills/boss-chat/README.md +43 -42
- package/skills/boss-chat/SKILL.md +107 -106
- package/skills/boss-recommend-pipeline/README.md +13 -13
- package/skills/boss-recommend-pipeline/SKILL.md +47 -47
- package/skills/boss-recruit-pipeline/README.md +19 -19
- package/skills/boss-recruit-pipeline/SKILL.md +89 -89
- package/src/chat-mcp.js +301 -127
- package/src/core/boss-cards/index.js +199 -199
- package/src/core/browser/index.js +286 -136
- package/src/core/capture/index.js +2930 -1201
- package/src/core/cv-acquisition/index.js +512 -238
- package/src/core/cv-capture-target/index.js +513 -299
- package/src/core/greet-quota/index.js +71 -71
- package/src/core/infinite-list/index.js +31 -31
- package/src/core/reporting/legacy-csv.js +12 -12
- package/src/core/run/detached-launcher.js +305 -0
- package/src/core/run/index.js +105 -52
- package/src/core/run/timing.js +33 -33
- package/src/core/run/windows-detached-worker.ps1 +106 -0
- package/src/core/screening/index.js +2135 -2135
- package/src/core/self-heal/index.js +989 -973
- package/src/core/self-heal/viewport.js +1505 -564
- package/src/detached-worker.js +99 -99
- package/src/domains/chat/action-journal.js +443 -0
- package/src/domains/chat/cards.js +137 -137
- package/src/domains/chat/constants.js +9 -9
- package/src/domains/chat/detail.js +1684 -401
- package/src/domains/chat/index.js +8 -7
- package/src/domains/chat/jobs.js +620 -620
- package/src/domains/chat/page-guard.js +157 -122
- package/src/domains/chat/roots.js +56 -56
- package/src/domains/chat/run-service.js +1801 -760
- package/src/domains/common/account-rights-panel.js +314 -314
- package/src/domains/common/recovery-settle.js +159 -159
- package/src/domains/recommend/actions.js +515 -472
- package/src/domains/recommend/cards.js +243 -243
- package/src/domains/recommend/colleague-contact.js +333 -333
- package/src/domains/recommend/constants.js +92 -92
- package/src/domains/recommend/detail.js +12 -12
- package/src/domains/recommend/filters.js +611 -611
- package/src/domains/recommend/index.js +9 -9
- package/src/domains/recommend/jobs.js +542 -542
- package/src/domains/recommend/location.js +736 -736
- package/src/domains/recommend/refresh.js +422 -422
- package/src/domains/recommend/roots.js +80 -80
- package/src/domains/recommend/run-service.js +1791 -1205
- package/src/domains/recommend/scopes.js +246 -246
- package/src/domains/recruit/actions.js +277 -277
- package/src/domains/recruit/cards.js +74 -74
- package/src/domains/recruit/constants.js +236 -236
- package/src/domains/recruit/detail.js +588 -588
- package/src/domains/recruit/index.js +9 -9
- package/src/domains/recruit/instruction-parser.js +866 -866
- package/src/domains/recruit/refresh.js +45 -45
- package/src/domains/recruit/roots.js +68 -68
- package/src/domains/recruit/run-service.js +1817 -1620
- package/src/domains/recruit/search.js +3229 -3229
- package/src/index.js +16 -1
- package/src/parser.js +1296 -1296
- package/src/recommend-mcp.js +551 -362
- package/src/recommend-scheduler.js +75 -75
|
@@ -26,103 +26,103 @@ export const RECOMMEND_PAGE_SCOPE_TAB_SELECTOR = [
|
|
|
26
26
|
".tab-item[data-status]",
|
|
27
27
|
"[data-status]"
|
|
28
28
|
].join(", ");
|
|
29
|
-
|
|
30
|
-
export const RECOMMEND_FILTER_SELECTORS = Object.freeze({
|
|
31
|
-
trigger: ".filter-label-wrap",
|
|
32
|
-
panel: ".filter-panel",
|
|
33
|
-
groups: Object.freeze({
|
|
34
|
-
activity: [
|
|
35
|
-
".filter-panel .check-box.activation",
|
|
36
|
-
".filter-panel .check-box.activity",
|
|
37
|
-
".filter-panel .check-box.activeTime",
|
|
38
|
-
".filter-panel .check-box.activityLevel",
|
|
39
|
-
".filter-panel .check-box.activity-level"
|
|
40
|
-
].join(", "),
|
|
41
|
-
recentNotView: ".filter-panel .check-box.recentNotView",
|
|
42
|
-
degree: ".filter-panel .check-box.degree",
|
|
43
|
-
gender: ".filter-panel .check-box.gender",
|
|
44
|
-
school: ".filter-panel .check-box.school"
|
|
45
|
-
}),
|
|
29
|
+
|
|
30
|
+
export const RECOMMEND_FILTER_SELECTORS = Object.freeze({
|
|
31
|
+
trigger: ".filter-label-wrap",
|
|
32
|
+
panel: ".filter-panel",
|
|
33
|
+
groups: Object.freeze({
|
|
34
|
+
activity: [
|
|
35
|
+
".filter-panel .check-box.activation",
|
|
36
|
+
".filter-panel .check-box.activity",
|
|
37
|
+
".filter-panel .check-box.activeTime",
|
|
38
|
+
".filter-panel .check-box.activityLevel",
|
|
39
|
+
".filter-panel .check-box.activity-level"
|
|
40
|
+
].join(", "),
|
|
41
|
+
recentNotView: ".filter-panel .check-box.recentNotView",
|
|
42
|
+
degree: ".filter-panel .check-box.degree",
|
|
43
|
+
gender: ".filter-panel .check-box.gender",
|
|
44
|
+
school: ".filter-panel .check-box.school"
|
|
45
|
+
}),
|
|
46
46
|
option: ".default.option, .options .option, .option",
|
|
47
47
|
activeOption: ".default.option.active, .options .option.active, .option.active",
|
|
48
48
|
confirmButton: ".filter-panel .btn, .filter-panel button",
|
|
49
49
|
checkBox: ".filter-panel .check-box"
|
|
50
50
|
});
|
|
51
|
-
|
|
52
|
-
export const RECOMMEND_FILTER_GROUP_ORDER = Object.freeze([
|
|
53
|
-
"recentNotView",
|
|
54
|
-
"degree",
|
|
55
|
-
"gender",
|
|
56
|
-
"school",
|
|
57
|
-
"activity"
|
|
58
|
-
]);
|
|
59
|
-
|
|
60
|
-
export const RECOMMEND_ACTIVITY_GROUP = "activity";
|
|
61
|
-
|
|
62
|
-
export const RECOMMEND_ACTIVITY_GROUP_HEADING = "活跃度[单选]";
|
|
63
|
-
|
|
64
|
-
export const RECOMMEND_ACTIVITY_LEVELS = Object.freeze([
|
|
65
|
-
"不限",
|
|
66
|
-
"刚刚活跃",
|
|
67
|
-
"今日活跃",
|
|
68
|
-
"3日内活跃",
|
|
69
|
-
"本周活跃",
|
|
70
|
-
"本月活跃"
|
|
71
|
-
]);
|
|
72
|
-
|
|
73
|
-
export const RECOMMEND_CURRENT_CITY_ONLY_LABEL = "仅推荐期望城市为本城市的牛人";
|
|
74
|
-
|
|
75
|
-
export const RECOMMEND_LOCATION_SELECTORS = Object.freeze({
|
|
76
|
-
trigger: [
|
|
77
|
-
".city-or-area-name",
|
|
78
|
-
".city-selecter-wrap",
|
|
79
|
-
".city-selector-wrap",
|
|
80
|
-
".location-selecter-wrap",
|
|
81
|
-
".location-selector-wrap",
|
|
82
|
-
".city-select",
|
|
83
|
-
".location-select",
|
|
84
|
-
".recommend-city",
|
|
85
|
-
".recommend-location",
|
|
86
|
-
'[class*="city-select"]',
|
|
87
|
-
'[class*="location-select"]',
|
|
88
|
-
'[class*="recommend-city"]'
|
|
89
|
-
],
|
|
90
|
-
popoverCandidates: [
|
|
91
|
-
".check-area-warp",
|
|
92
|
-
".check-area-bottom"
|
|
93
|
-
].join(", "),
|
|
94
|
-
checkboxCalibrated: [
|
|
95
|
-
".check-area-warp label.checkbox",
|
|
96
|
-
".check-area-bottom label.checkbox",
|
|
97
|
-
".check-area-warp .my-checkbox"
|
|
98
|
-
].join(", "),
|
|
99
|
-
checkboxCandidates: [
|
|
100
|
-
"label",
|
|
101
|
-
'[role="checkbox"]',
|
|
102
|
-
"input[type=\"checkbox\"]",
|
|
103
|
-
".checkbox",
|
|
104
|
-
".check-box",
|
|
105
|
-
'[class*="checkbox"]',
|
|
106
|
-
'[class*="check-box"]',
|
|
107
|
-
"span"
|
|
108
|
-
].join(", "),
|
|
109
|
-
checkboxInput: 'input[type="checkbox"], [role="checkbox"]',
|
|
110
|
-
confirmCandidates: [
|
|
111
|
-
'[class*="city"] button',
|
|
112
|
-
'[class*="city"] .btn',
|
|
113
|
-
'[class*="location"] button',
|
|
114
|
-
'[class*="location"] .btn',
|
|
115
|
-
"button",
|
|
116
|
-
".btn",
|
|
117
|
-
'[role="button"]'
|
|
118
|
-
].join(", ")
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
export const RECOMMEND_RECENT_NOT_VIEW_LABEL = "近14天没有";
|
|
122
|
-
|
|
123
|
-
export const RECOMMEND_CARD_SELECTOR = [
|
|
124
|
-
".candidate-card-wrap .card-inner[data-geek]",
|
|
125
|
-
".candidate-card-wrap [data-geek]",
|
|
51
|
+
|
|
52
|
+
export const RECOMMEND_FILTER_GROUP_ORDER = Object.freeze([
|
|
53
|
+
"recentNotView",
|
|
54
|
+
"degree",
|
|
55
|
+
"gender",
|
|
56
|
+
"school",
|
|
57
|
+
"activity"
|
|
58
|
+
]);
|
|
59
|
+
|
|
60
|
+
export const RECOMMEND_ACTIVITY_GROUP = "activity";
|
|
61
|
+
|
|
62
|
+
export const RECOMMEND_ACTIVITY_GROUP_HEADING = "活跃度[单选]";
|
|
63
|
+
|
|
64
|
+
export const RECOMMEND_ACTIVITY_LEVELS = Object.freeze([
|
|
65
|
+
"不限",
|
|
66
|
+
"刚刚活跃",
|
|
67
|
+
"今日活跃",
|
|
68
|
+
"3日内活跃",
|
|
69
|
+
"本周活跃",
|
|
70
|
+
"本月活跃"
|
|
71
|
+
]);
|
|
72
|
+
|
|
73
|
+
export const RECOMMEND_CURRENT_CITY_ONLY_LABEL = "仅推荐期望城市为本城市的牛人";
|
|
74
|
+
|
|
75
|
+
export const RECOMMEND_LOCATION_SELECTORS = Object.freeze({
|
|
76
|
+
trigger: [
|
|
77
|
+
".city-or-area-name",
|
|
78
|
+
".city-selecter-wrap",
|
|
79
|
+
".city-selector-wrap",
|
|
80
|
+
".location-selecter-wrap",
|
|
81
|
+
".location-selector-wrap",
|
|
82
|
+
".city-select",
|
|
83
|
+
".location-select",
|
|
84
|
+
".recommend-city",
|
|
85
|
+
".recommend-location",
|
|
86
|
+
'[class*="city-select"]',
|
|
87
|
+
'[class*="location-select"]',
|
|
88
|
+
'[class*="recommend-city"]'
|
|
89
|
+
],
|
|
90
|
+
popoverCandidates: [
|
|
91
|
+
".check-area-warp",
|
|
92
|
+
".check-area-bottom"
|
|
93
|
+
].join(", "),
|
|
94
|
+
checkboxCalibrated: [
|
|
95
|
+
".check-area-warp label.checkbox",
|
|
96
|
+
".check-area-bottom label.checkbox",
|
|
97
|
+
".check-area-warp .my-checkbox"
|
|
98
|
+
].join(", "),
|
|
99
|
+
checkboxCandidates: [
|
|
100
|
+
"label",
|
|
101
|
+
'[role="checkbox"]',
|
|
102
|
+
"input[type=\"checkbox\"]",
|
|
103
|
+
".checkbox",
|
|
104
|
+
".check-box",
|
|
105
|
+
'[class*="checkbox"]',
|
|
106
|
+
'[class*="check-box"]',
|
|
107
|
+
"span"
|
|
108
|
+
].join(", "),
|
|
109
|
+
checkboxInput: 'input[type="checkbox"], [role="checkbox"]',
|
|
110
|
+
confirmCandidates: [
|
|
111
|
+
'[class*="city"] button',
|
|
112
|
+
'[class*="city"] .btn',
|
|
113
|
+
'[class*="location"] button',
|
|
114
|
+
'[class*="location"] .btn',
|
|
115
|
+
"button",
|
|
116
|
+
".btn",
|
|
117
|
+
'[role="button"]'
|
|
118
|
+
].join(", ")
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
export const RECOMMEND_RECENT_NOT_VIEW_LABEL = "近14天没有";
|
|
122
|
+
|
|
123
|
+
export const RECOMMEND_CARD_SELECTOR = [
|
|
124
|
+
".candidate-card-wrap .card-inner[data-geek]",
|
|
125
|
+
".candidate-card-wrap [data-geek]",
|
|
126
126
|
"li.geek-info-card a[data-geekid]",
|
|
127
127
|
"a[data-geekid]"
|
|
128
128
|
].join(", ");
|
|
@@ -388,18 +388,18 @@ export async function readRecommendDetailHtml(client, detailState) {
|
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
export function isStaleRecommendNodeError(error) {
|
|
391
|
-
const pattern = /Could not find node with given id|No node with given id|Node is detached|Cannot find node|Could not compute box model/i;
|
|
392
|
-
const seen = new Set();
|
|
393
|
-
let current = error;
|
|
394
|
-
for (let depth = 0; current && depth < 5; depth += 1) {
|
|
395
|
-
if ((typeof current === "object" || typeof current === "function") && seen.has(current)) break;
|
|
396
|
-
if (typeof current === "object" || typeof current === "function") seen.add(current);
|
|
397
|
-
const message = String(current?.message || current || "");
|
|
398
|
-
if (pattern.test(message)) return true;
|
|
399
|
-
current = current?.cause || null;
|
|
400
|
-
}
|
|
401
|
-
return false;
|
|
402
|
-
}
|
|
391
|
+
const pattern = /Could not find node with given id|No node with given id|Node with given id does not exist|No node found for given backend id|Invalid (?:backend )?Node\s*Id|Node is detached|Cannot find node|Could not compute box model/i;
|
|
392
|
+
const seen = new Set();
|
|
393
|
+
let current = error;
|
|
394
|
+
for (let depth = 0; current && depth < 5; depth += 1) {
|
|
395
|
+
if ((typeof current === "object" || typeof current === "function") && seen.has(current)) break;
|
|
396
|
+
if (typeof current === "object" || typeof current === "function") seen.add(current);
|
|
397
|
+
const message = String(current?.message || current || "");
|
|
398
|
+
if (pattern.test(message)) return true;
|
|
399
|
+
current = current?.cause || null;
|
|
400
|
+
}
|
|
401
|
+
return false;
|
|
402
|
+
}
|
|
403
403
|
|
|
404
404
|
export function isRecommendDetailOpenMissError(error) {
|
|
405
405
|
const message = String(error?.message || error || "");
|