@reconcrap/boss-recommend-mcp 1.3.13 → 1.3.14

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reconcrap/boss-recommend-mcp",
3
- "version": "1.3.13",
3
+ "version": "1.3.14",
4
4
  "description": "Unified MCP pipeline for recommend-page filtering and screening on Boss Zhipin",
5
5
  "keywords": [
6
6
  "boss",
@@ -76,7 +76,7 @@ export class BossChatApp {
76
76
  logger = console,
77
77
  dryRun = false,
78
78
  artifactRootDir = '',
79
- resumeOpenCooldownMs = 16000,
79
+ resumeOpenCooldownMs = 3000,
80
80
  onProgress = null,
81
81
  }) {
82
82
  this.page = page;
@@ -93,7 +93,7 @@ export class BossChatApp {
93
93
  this.resumeOpenBlockedUntil = 0;
94
94
  this.resumeOpenCooldownMs = Number.isFinite(Number(resumeOpenCooldownMs))
95
95
  ? Math.max(0, Number(resumeOpenCooldownMs))
96
- : 16000;
96
+ : 3000;
97
97
  this.onProgress = typeof onProgress === 'function' ? onProgress : null;
98
98
  }
99
99
 
@@ -555,7 +555,7 @@ export class BossChatApp {
555
555
  let capture = null;
556
556
  let lastResumeError = null;
557
557
  let resumeProfile = null;
558
- await this.waitResumeOpenCooldown(this.resumeOpenCooldownMs + Math.floor(Math.random() * 1800));
558
+ await this.waitResumeOpenCooldown(this.resumeOpenCooldownMs + Math.floor(Math.random() * 200));
559
559
  await this.checkpoint();
560
560
  const openResult = await this.page.openOnlineResume();
561
561
  let openDetected = openResult ? Boolean(openResult?.detectedOpen) : true;
@@ -47,7 +47,7 @@ export class InteractionController {
47
47
  return 0;
48
48
  }
49
49
 
50
- const restMs = 4000 + Math.floor(Math.random() * 4000);
50
+ const restMs = 0;
51
51
  logger.log(`短暂休息 ${restMs}ms,保持处理节奏稳定...`);
52
52
  await this.wait(restMs);
53
53
  this.nextRestAt = processedCount + this.randomRestThreshold();
@@ -4931,12 +4931,12 @@ class RecommendScreenCli {
4931
4931
  async takeBreakIfNeeded() {
4932
4932
  this.restCounter += 1;
4933
4933
  if (Math.random() < 0.08) {
4934
- const pauseMs = 3000 + Math.floor(Math.random() * 4000);
4934
+ const pauseMs = 0;
4935
4935
  log(`[随机休息] 暂停 ${Math.round(pauseMs / 1000)} 秒`);
4936
4936
  await sleep(pauseMs);
4937
4937
  }
4938
4938
  if (this.restCounter >= this.restThreshold) {
4939
- const pauseMs = 15000 + Math.floor(Math.random() * 15000);
4939
+ const pauseMs = 0;
4940
4940
  log(`[批次休息] 已连续处理 ${this.restCounter} 人,暂停 ${Math.round(pauseMs / 1000)} 秒`);
4941
4941
  await sleep(pauseMs);
4942
4942
  this.restCounter = 0;