@reconcrap/boss-recommend-mcp 2.0.21 → 2.0.22
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/package.json +1 -1
- package/src/domains/chat/detail.js +18 -5
package/package.json
CHANGED
|
@@ -328,12 +328,25 @@ function isRequestedResumeText(text = "") {
|
|
|
328
328
|
return Boolean(
|
|
329
329
|
normalized === "已求简历"
|
|
330
330
|
|| normalized === "已索要简历"
|
|
331
|
-
|| normalized === "已申请"
|
|
332
|
-
|| normalized === "已发送"
|
|
333
331
|
|| normalized.includes("已求简历")
|
|
334
332
|
|| normalized.includes("已索要简历")
|
|
335
|
-
|| normalized.includes("
|
|
336
|
-
|| normalized.includes("
|
|
333
|
+
|| normalized.includes("简历请求已发送")
|
|
334
|
+
|| normalized.includes("已发送简历")
|
|
335
|
+
|| (normalized.includes("已申请") && normalized.includes("简历"))
|
|
336
|
+
);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
function isRequestedResumeControlTarget(target = {}) {
|
|
340
|
+
const label = normalizeDetailText(target.label);
|
|
341
|
+
const className = String(target.attributes?.class || "");
|
|
342
|
+
const selector = String(target.selector || "");
|
|
343
|
+
const controlLike = /\boperate-btn\b|operate|resume|button|btn/i.test(`${selector} ${className}`);
|
|
344
|
+
if (isRequestedResumeText(label)) return true;
|
|
345
|
+
return controlLike && Boolean(
|
|
346
|
+
label === "已申请"
|
|
347
|
+
|| label === "已发送"
|
|
348
|
+
|| label.includes("已申请")
|
|
349
|
+
|| label.includes("已发送")
|
|
337
350
|
);
|
|
338
351
|
}
|
|
339
352
|
|
|
@@ -861,7 +874,7 @@ export async function readChatConversationReadyState(client) {
|
|
|
861
874
|
client,
|
|
862
875
|
rootState.roots,
|
|
863
876
|
CHAT_ASK_RESUME_BUTTON_SELECTORS,
|
|
864
|
-
(target) =>
|
|
877
|
+
(target) => isRequestedResumeControlTarget(target)
|
|
865
878
|
);
|
|
866
879
|
const editor = await findVisibleMatchingTarget(
|
|
867
880
|
client,
|