@reconcrap/boss-recommend-mcp 1.0.17 → 1.0.19

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.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "Unified MCP pipeline for recommend-page filtering and screening on Boss Zhipin",
5
5
  "keywords": [
6
6
  "boss",
@@ -9,4 +9,4 @@
9
9
  - 再确认本次运行统一动作 `favorite` 或 `greet`
10
10
  - 只确认一次 `post_action`,不要逐个候选人反复确认
11
11
  - 运行中临时中断请使用 `pause_recommend_pipeline_run`(按 run_id),不要靠自然语言“暂停/继续”指令
12
- - 继续执行请使用 `resume_recommend_pipeline_run`,并持续轮询同一 `run_id`
12
+ - 继续执行请使用 `resume_recommend_pipeline_run`;状态查询默认按用户指令触发,不自动轮询
@@ -24,9 +24,10 @@ description: "Use when users ask to run Boss recommend-page filtering and screen
24
24
 
25
25
  路由约束(必须遵守):
26
26
 
27
- - 当用户请求中出现 “recommend / 推荐页 / boss recommend / recommend page” 语义时,只能走 `boss-recommend-pipeline`
28
- - 当用户请求中出现 “search / 搜索页 / boss search / search page” 语义时,不能走本技能,必须转交 `boss-recruit-pipeline` 并调用 `run_recruit_pipeline`
29
- - 不要调用 `boss-recruit-pipeline`,也不要调用 `run_recruit_pipeline`,除非上一条(search/搜索页语义)命中
27
+ - 当用户请求中出现 “recommend / 推荐页 / boss recommend / recommend page / /web/chat/recommend” 语义时,只能走 `boss-recommend-pipeline`
28
+ - 只有当用户**明确指向搜索页面**(如 “搜索页 / boss search page / /web/chat/search / 在搜索页找人”)时,才允许转交 `boss-recruit-pipeline` 并调用 `run_recruit_pipeline`
29
+ - 不要调用 `boss-recruit-pipeline`,也不要调用 `run_recruit_pipeline`,除非上一条(明确 search 页面语义)命中
30
+ - 提到“搜索条件 / 搜索弹窗 / 搜索关键词”但上下文仍是推荐页时,仍属于 recommend 流程,禁止误切到 recruit
30
31
  - 当 recommend 流程返回任何错误(包括 `JOB_TRIGGER_NOT_FOUND` / `NO_RECOMMEND_IFRAME` / `BOSS_LOGIN_REQUIRED`)时,禁止把 recommend 请求降级到 recruit 流程;必须先修复 recommend 的页面就绪或登录态问题
31
32
 
32
33
  路由示例(中英文都要兼容):
@@ -125,7 +126,7 @@ description: "Use when users ask to run Boss recommend-page filtering and screen
125
126
 
126
127
  长耗时宿主兼容(推荐):
127
128
 
128
- - 默认调用 `start_recommend_pipeline_run` 启动异步流程,并配合 `get_recommend_pipeline_run` 轮询。
129
+ - 默认调用 `start_recommend_pipeline_run` 启动异步流程(状态查询按“用户触发”执行,不自动轮询)。
129
130
  - `start_recommend_pipeline_run` 会先走同步一致的前置门禁(登录/页面就绪/岗位确认/最终确认)。
130
131
  - 只有门禁通过后才会返回 `ACCEPTED + run_id`;否则会先返回 `NEED_INPUT/NEED_CONFIRMATION/FAILED`,必须先按提示补齐。
131
132
  - 若宿主要显式拆成三步,也可使用:
@@ -140,6 +141,13 @@ description: "Use when users ask to run Boss recommend-page filtering and screen
140
141
  - 暂停后继续必须复用同一 `run_id`:先 `pause_recommend_pipeline_run`,轮询到 `run.state=paused` 后再 `resume_recommend_pipeline_run`。
141
142
  - `pause_recommend_pipeline_run` 返回 `PAUSE_REQUESTED` 仅表示已接收请求;真正暂停点在“当前候选人处理完成后”。
142
143
  - `resume_recommend_pipeline_run` 会复用暂停前的 CSV 与 checkpoint,无需重新 start。
144
+
145
+ 异步状态查询策略(必须遵守):
146
+
147
+ - 默认是“被动查询”模式:拿到 `ACCEPTED + run_id` 后,本轮到此结束,不要在同一轮自动 `sleep + get_recommend_pipeline_run`。
148
+ - 只有当用户明确要求“查询进度/继续跟进/持续监控”时,才调用 `get_recommend_pipeline_run`。
149
+ - 禁止在无用户指令时进行循环 `Start-Sleep` 或自动轮询并主动播报进度。
150
+ - 若用户明确要求持续监控,再按 5~15 秒间隔轮询,并在用户要求停止后立即停止轮询。
143
151
 
144
152
  ## Execution Notes
145
153
 
package/src/index.js CHANGED
@@ -744,7 +744,7 @@ async function handleStartRunTool({ workspaceRoot, args }) {
744
744
  run_id: runId,
745
745
  state: "queued",
746
746
  poll_after_sec: getDefaultPollAfterSec(),
747
- message: "异步流水线已启动,请使用 get_recommend_pipeline_run 轮询状态。"
747
+ message: "异步流水线已启动。默认不自动轮询;如需进度请按需调用 get_recommend_pipeline_run"
748
748
  };
749
749
  }
750
750
 
@@ -1035,7 +1035,7 @@ function handleResumeRunTool(args) {
1035
1035
  status: "RESUME_REQUESTED",
1036
1036
  run: updated,
1037
1037
  poll_after_sec: getDefaultPollAfterSec(),
1038
- message: "已恢复 Recommend 流水线,请继续轮询运行状态。"
1038
+ message: "已恢复 Recommend 流水线。默认不自动轮询;如需进度请按需调用 get_recommend_pipeline_run。"
1039
1039
  };
1040
1040
  }
1041
1041