@reconcrap/boss-recommend-mcp 1.3.4 → 1.3.5

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 CHANGED
@@ -216,6 +216,13 @@ chat-only 交互建议:
216
216
  - 先调用一次 `start_boss_chat_run`(可不带参数),服务会先导航到 `https://www.zhipin.com/web/chat/index` 并返回 `NEED_INPUT`,其中包含岗位 `job_options` 与待补字段。
217
217
  - 然后基于 `job_options` 让用户选择 `job`,并补齐 `start_from`、`target_count`、`criteria` 后再次调用 `start_boss_chat_run` 启动任务。
218
218
 
219
+ Trae-CN / 长对话防循环建议:
220
+
221
+ - 固定流程:`boss_chat_health_check` -> `start_boss_chat_run(空参可)` -> 一次性补齐 `job/start_from/target_count/criteria` -> 再次 `start_boss_chat_run`。
222
+ - `start_boss_chat_run` 返回 `ACCEPTED` 后直接结束当前回合,不要自动轮询。
223
+ - 缺参或校验失败时,一次性列出全部缺失/错误项,避免重复同一句提示触发宿主“陷入循环”保护。
224
+ - 仅当用户明确要求“查进度”时再调用 `get_boss_chat_run`。
225
+
219
226
  ## 长流程 Agent 兼容模式
220
227
 
221
228
  当宿主 agent 对“长时间无回包”敏感(容易误判失败)时,建议改用异步工具:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reconcrap/boss-recommend-mcp",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "Unified MCP pipeline for recommend-page filtering and screening on Boss Zhipin",
5
5
  "keywords": [
6
6
  "boss",
@@ -3,3 +3,24 @@
3
3
  Bundled chat-page automation skill shipped with `boss-recommend-mcp`.
4
4
 
5
5
  Use this skill when the user wants a chat-only Boss workflow without installing `boss-chat` separately.
6
+
7
+ ## Stable Prompt Template (Trae-CN)
8
+
9
+ Use the following prompt when host agents are prone to loop detection in long conversations:
10
+
11
+ ```text
12
+ Please run a Boss chat-only task (do not switch to recommend flow).
13
+
14
+ Execution order:
15
+ 1) Call boss_chat_health_check.
16
+ 2) Call start_boss_chat_run once (empty params allowed) to fetch job_options and missing fields.
17
+ 3) Ask for these required fields in one shot: job, start_from (unread/all), target_count, criteria.
18
+ 4) After user reply, call start_boss_chat_run exactly once to start the run.
19
+ 5) If ACCEPTED, reply only with run_id and "task started"; no auto polling.
20
+
21
+ Anti-loop rules:
22
+ - Do not repeat the same sentence across turns.
23
+ - On validation errors, list all missing/invalid fields once.
24
+ - Do not call start_boss_chat_run repeatedly in one turn.
25
+ - Do not call get_boss_chat_run unless user explicitly asks for progress.
26
+ ```