@hupan56/wlkj 3.3.7 → 3.3.8
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
|
@@ -36,6 +36,23 @@ PY=$(python --version >/dev/null 2>&1 && echo python || echo python3)
|
|
|
36
36
|
禅道是**每人一个账号**(凭据在 `workspace/members/{我}/.private/secrets/zentao.env`,gitignore),归属靠 member.json 的 `zentao_account` 映射 + 工具默认行为兜底:
|
|
37
37
|
|
|
38
38
|
- **看任务**:`my_workbench` / `list_my_tasks` / `list_execution_tasks` **默认只返回指派给我的**(assignedTo=我),不会看到队友。要看全队排期才传 `all=true`。
|
|
39
|
+
- **★ 看我的活(任务+需求+Bug 三域聚合)优先走平台 panel**(凭据走平台 per-user 配置,不再依赖本地 zentao.env):
|
|
40
|
+
```python
|
|
41
|
+
# ① 优先:平台聚合(云平台用平台凭据调禅道,凭据不出平台)
|
|
42
|
+
r = cap.mcp.call("get_my_zentao_panel", {})
|
|
43
|
+
if r.get("ok"):
|
|
44
|
+
# r.tasks / r.bugs / r.stories = 指派给我的全量(跨所有执行/产品)
|
|
45
|
+
...
|
|
46
|
+
elif "未配置" in (r.get("error") or "") or "登录失败" in (r.get("error") or ""):
|
|
47
|
+
# ② 云到禅道被防火墙挡 → 取平台凭据 + 本机内网直连(demo 机器在内网可达)
|
|
48
|
+
c = cap.mcp.call("get_zentao_creds", {})
|
|
49
|
+
if c.get("ok"):
|
|
50
|
+
# 用 c.url/c.account/c.password 直连禅道拉我的活(脚本/qw_mcp_call)
|
|
51
|
+
...
|
|
52
|
+
# ③ 都不可得 → 降级 qw_mcp_call("my_workbench") → 本地 task.py
|
|
53
|
+
```
|
|
54
|
+
> 平台 panel 是新增的首选路径:凭据托管在平台(【平台设置→禅道】配一次,全机生效),不用每台机器配 `secrets/zentao.env`。云防火墙时 `get_zentao_creds` 取凭据本机直连。
|
|
55
|
+
- **Bug→需求反查**:`cap.mcp.call("bug_trace", {"bug_id": X})` 查"这个 Bug 是哪个需求引入的"(平台新增,替代手动翻禅道)。
|
|
39
56
|
- **空账号直接拒绝**:member.json 没配 `zentao_account` 时,"看我的"工具返回 `🚫 未识别禅道身份`(不再静默降级返回全队)。原样转述,引导 `/wl-init`。
|
|
40
57
|
- **改任务前必校验**:start/finish/assign/update 拿到 task_id 后,**先 `get_task(id)` 看 assignedTo**:
|
|
41
58
|
- `assignedTo == 我` → 正常执行;
|