@reconcrap/boss-recommend-mcp 2.1.22 → 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.
Files changed (66) hide show
  1. package/README.md +5 -0
  2. package/bin/boss-recommend-mcp.js +4 -4
  3. package/package.json +14 -8
  4. package/scripts/install-macos.sh +280 -280
  5. package/scripts/postinstall.cjs +44 -44
  6. package/skills/boss-chat/README.md +43 -42
  7. package/skills/boss-chat/SKILL.md +107 -106
  8. package/skills/boss-recommend-pipeline/README.md +13 -13
  9. package/skills/boss-recommend-pipeline/SKILL.md +47 -47
  10. package/skills/boss-recruit-pipeline/README.md +19 -19
  11. package/skills/boss-recruit-pipeline/SKILL.md +89 -89
  12. package/src/chat-mcp.js +301 -127
  13. package/src/core/boss-cards/index.js +199 -199
  14. package/src/core/browser/index.js +291 -114
  15. package/src/core/capture/index.js +2930 -1201
  16. package/src/core/cv-acquisition/index.js +512 -238
  17. package/src/core/cv-capture-target/index.js +513 -299
  18. package/src/core/greet-quota/index.js +71 -71
  19. package/src/core/infinite-list/index.js +11 -2
  20. package/src/core/reporting/legacy-csv.js +12 -12
  21. package/src/core/run/detached-launcher.js +305 -0
  22. package/src/core/run/index.js +112 -42
  23. package/src/core/run/timing.js +33 -33
  24. package/src/core/run/windows-detached-worker.ps1 +106 -0
  25. package/src/core/screening/index.js +2135 -2135
  26. package/src/core/self-heal/index.js +989 -973
  27. package/src/core/self-heal/viewport.js +1505 -564
  28. package/src/detached-worker.js +99 -99
  29. package/src/domains/chat/action-journal.js +443 -0
  30. package/src/domains/chat/cards.js +137 -137
  31. package/src/domains/chat/constants.js +9 -9
  32. package/src/domains/chat/detail.js +1684 -401
  33. package/src/domains/chat/index.js +8 -7
  34. package/src/domains/chat/jobs.js +620 -620
  35. package/src/domains/chat/page-guard.js +157 -122
  36. package/src/domains/chat/roots.js +56 -56
  37. package/src/domains/chat/run-service.js +1801 -760
  38. package/src/domains/common/account-rights-panel.js +314 -314
  39. package/src/domains/common/recovery-settle.js +159 -159
  40. package/src/domains/recommend/actions.js +515 -472
  41. package/src/domains/recommend/cards.js +243 -243
  42. package/src/domains/recommend/colleague-contact.js +333 -333
  43. package/src/domains/recommend/constants.js +92 -92
  44. package/src/domains/recommend/detail.js +12 -3
  45. package/src/domains/recommend/filters.js +611 -611
  46. package/src/domains/recommend/index.js +9 -9
  47. package/src/domains/recommend/jobs.js +542 -542
  48. package/src/domains/recommend/location.js +736 -736
  49. package/src/domains/recommend/refresh.js +410 -329
  50. package/src/domains/recommend/roots.js +80 -80
  51. package/src/domains/recommend/run-service.js +1783 -592
  52. package/src/domains/recommend/scopes.js +246 -246
  53. package/src/domains/recruit/actions.js +277 -277
  54. package/src/domains/recruit/cards.js +74 -74
  55. package/src/domains/recruit/constants.js +236 -236
  56. package/src/domains/recruit/detail.js +588 -588
  57. package/src/domains/recruit/index.js +9 -9
  58. package/src/domains/recruit/instruction-parser.js +866 -866
  59. package/src/domains/recruit/refresh.js +45 -45
  60. package/src/domains/recruit/roots.js +68 -68
  61. package/src/domains/recruit/run-service.js +1817 -1620
  62. package/src/domains/recruit/search.js +3229 -3229
  63. package/src/index.js +124 -5
  64. package/src/parser.js +1296 -1296
  65. package/src/recommend-mcp.js +515 -80
  66. package/src/recommend-scheduler.js +66 -0
@@ -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(", ");
@@ -387,9 +387,18 @@ export async function readRecommendDetailHtml(client, detailState) {
387
387
  };
388
388
  }
389
389
 
390
- export function isStaleRecommendNodeError(error) {
391
- const message = String(error?.message || error || "");
392
- return /Could not find node with given id|No node with given id|Node is detached|Cannot find node|Could not compute box model/i.test(message);
390
+ export function isStaleRecommendNodeError(error) {
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;
393
402
  }
394
403
 
395
404
  export function isRecommendDetailOpenMissError(error) {