codebee 0.1.26 → 0.1.27

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/CHANGELOG.md CHANGED
@@ -4,19 +4,31 @@ CodeBee 的用户可感知变更记录。发布新版时:最上面加一节,
4
4
  `<!-- relnotes:start -->…<!-- relnotes:end -->` 段(那段会被 `npm view` 的
5
5
  README 元数据带回,供老版本在「发现新版本」时展示新版更新内容)。
6
6
 
7
- ## 未发布
8
-
9
- ## v0.1.26(2026-09-21)
10
-
11
- ### ✨ 新功能
12
-
13
- - 顶栏新增统一操作状态中心:创建、删除、绑定、插件等用户写操作会显示进行中、完成或失败状态,并保留时间与错误原因,慢请求不再像页面卡死。
14
-
15
- ### 🛠 问题修复
16
-
17
- - 后台维护写请求、任务澄清探测和轮询请求默认静默,避免把后台动作误显示成用户操作;移动端状态弹层自适应屏幕并支持减少动画。
18
-
19
- ## v0.1.25(2026-09-21)
7
+ ## 未发布
8
+
9
+ ## v0.1.27(2026-09-21)
10
+
11
+ ### ✨ 新功能
12
+
13
+ - 连载任务防穿帮:新增「资源账本」——每章评审自动登记新出现的道具、伤情、承诺与伏笔,写下一章前自动注入提醒核对,角色不会上一章断臂下一章就挥剑。
14
+ - 连载评审逐项核对:每章按大纲要点逐项判定「已完成/未完成/待核实」并引用正文证据,铺垫不再被当成已完成。
15
+ - 新建任务记住你的偏好:上次选择的任务类型、轮数、阈值、章节数等下次自动预填(只记参数,不记内容)。
16
+
17
+ ### 🛠 问题修复
18
+
19
+ - 代码任务提速:验证命令失败时先直接修复再评审(首轮不再白跑一次评审),连续失败两轮后才请评审参与诊断。
20
+
21
+ ## v0.1.26(2026-09-21)
22
+
23
+ ### ✨ 新功能
24
+
25
+ - 顶栏新增统一操作状态中心:创建、删除、绑定、插件等用户写操作会显示进行中、完成或失败状态,并保留时间与错误原因,慢请求不再像页面卡死。
26
+
27
+ ### 🛠 问题修复
28
+
29
+ - 后台维护写请求、任务澄清探测和轮询请求默认静默,避免把后台动作误显示成用户操作;移动端状态弹层自适应屏幕并支持减少动画。
30
+
31
+ ## v0.1.25(2026-09-21)
20
32
 
21
33
  ### ✨ 新功能
22
34
 
package/README.md CHANGED
@@ -23,13 +23,24 @@ Kimi Code、MiMo Code、Grok Build、Pi、DeepSeek Harness……),提供
23
23
  <!-- relnotes:start -->
24
24
  ### ✨ 新功能 · New
25
25
 
26
- - 顶栏新增统一操作状态中心:创建、删除、绑定、插件等写操作会显示进行中、完成或失败状态,并保留时间与错误原因。
27
- - A unified operation center now shows create, delete, binding, and plugin actions as running, completed, or failed, with timestamps and error details.
26
+ - 连载任务防穿帮:新增「资源账本」——每章评审自动登记新出现的道具、伤情、承诺与伏笔,写下一章前自动注入提醒核对。
27
+ - Serial tasks now keep a resource ledger: props, injuries, promises, and plot threads are tracked per chapter and injected before writing the next one.
28
+
29
+ - 连载评审逐项核对:每章按大纲要点逐项判定「已完成/未完成/待核实」并引用正文证据,铺垫不再被当成已完成。
30
+ - Chapter reviews now check every outline beat against the actual text — foreshadowing no longer counts as done.
31
+
32
+ - 新建任务记住你的偏好:上次选择的任务类型、轮数、阈值、章节数等下次自动预填(只记参数,不记内容)。
33
+ - The new-task form now remembers your last-used type, rounds, threshold, and chapter settings (parameters only, never content).
28
34
 
29
35
  ### 🛠 问题修复 · Fixes
30
36
 
31
- - 后台维护、澄清探测和轮询请求默认静默,移动端状态弹层自适应屏幕并支持减少动画。
32
- - Background maintenance, clarification probes, and polling stay quiet by default; the mobile operation panel adapts to the viewport and respects reduced-motion settings.
37
+ - 代码任务提速:验证命令失败时先直接修复再评审(首轮不再白跑一次评审),连续失败两轮后才请评审参与诊断。
38
+ - Code tasks get faster: when verification fails, the agent fixes first and review joins only after repeated failures.
39
+
40
+ ### 上一版亮点 · Previous release
41
+
42
+ - 顶栏新增统一操作状态中心:创建、删除、绑定、插件等写操作会显示进行中、完成或失败状态,并保留时间与错误原因。
43
+ - A unified operation center now shows create, delete, binding, and plugin actions as running, completed, or failed, with timestamps and error details.
33
44
 
34
45
  ### 上一版亮点 · Previous release
35
46
 
@@ -2784,6 +2784,7 @@ def test_model(provider_id, model_name, key_id=""):
2784
2784
  # 这类网关两种 wire 挂在不同路径,同 base 探测必 404,只能按已知映射补候选。
2785
2785
  _KNOWN_WIRE_BASES = (
2786
2786
  (("api.z.ai",), "/api/anthropic", "https://api.z.ai/api/paas/v4"),
2787
+ (("open.bigmodel.cn",), "/api/anthropic", "https://open.bigmodel.cn/api/paas/v4"),
2787
2788
  )
2788
2789
 
2789
2790
 
package/app/core/prefs.py CHANGED
@@ -1,70 +1,74 @@
1
- # -*- coding: utf-8 -*-
2
- """偏好记忆(借鉴 chinese-novelist-skill 的偏好记忆,2026-09-21):记住用户
3
- 上次创建任务时选择的类型与参数,新建任务时预填「最近一次的选择」而不是
4
- 写死的出厂默认——高频用户不用每次重调轮数/阈值/章节。
5
-
6
- 只记参数不记内容(目标/标题绝不落库);单文件带锁读写,损坏即弃。
7
- """
8
- from __future__ import annotations
9
-
10
- import json
11
- import threading
12
-
13
- from . import paths
14
-
15
- _LOCK = threading.Lock()
16
- _FILE = paths.DATA_DIR / "last-prefs.json"
17
-
18
- SAVE_KEYS = ("type", "rounds", "threshold", "best_of", "chapters",
19
- "words_per_chapter", "variants")
20
- _LIMITS = {"rounds": (1, 5), "threshold": (1.0, 10.0), "best_of": (1, 3),
21
- "chapters": (1, 2000), "words_per_chapter": (200, 20000),
22
- "variants": (1, 3)}
23
-
24
-
25
- def _clamp(key, value):
26
- """数值钳制:历史文件被手改出天际值时按参数合法域兜底。"""
27
- lo, hi = _LIMITS.get(key), (0, 10 ** 9)
28
- lo, hi = lo if lo else hi
29
- try:
30
- return max(lo, min(hi, type(lo)(value) if isinstance(lo, int)
31
- else float(value)))
32
- except (TypeError, ValueError):
33
- return None
34
-
35
-
36
- def record(payload):
37
- """从创建任务的 payload 提取可复用参数(存在才覆盖,单键独立保留)。"""
38
- if not isinstance(payload, dict):
39
- return
40
- with _LOCK:
41
- cur = load()
42
- for key in SAVE_KEYS:
43
- v = payload.get(key)
44
- if v is None:
45
- continue
46
- if key == "type":
47
- v = str(v)[:32]
48
- if v:
49
- cur["type"] = v
50
- continue
51
- c = _clamp(key, v)
52
- if c is not None:
53
- cur[key] = c
54
- tmp = _FILE.with_suffix(".tmp")
55
- try:
56
- paths.DATA_DIR.mkdir(parents=True, exist_ok=True)
57
- tmp.write_text(json.dumps(cur, ensure_ascii=False, indent=2),
58
- encoding="utf-8")
59
- tmp.replace(_FILE)
60
- except OSError:
61
- pass
62
-
63
-
64
- def load():
65
- """读最近偏好;文件缺失/损坏返回 {}。"""
66
- try:
67
- data = json.loads(_FILE.read_text(encoding="utf-8"))
68
- return data if isinstance(data, dict) else {}
69
- except (OSError, ValueError):
70
- return {}
1
+ # -*- coding: utf-8 -*-
2
+ """偏好记忆(借鉴 chinese-novelist-skill 的偏好记忆,2026-09-21):记住用户
3
+ 上次创建任务时选择的类型与参数,新建任务时预填「最近一次的选择」而不是
4
+ 写死的出厂默认——高频用户不用每次重调轮数/阈值/章节。
5
+
6
+ 只记参数不记内容(目标/标题绝不落库);单文件带锁读写,损坏即弃。
7
+ """
8
+ from __future__ import annotations
9
+
10
+ import json
11
+ import threading
12
+
13
+ from . import paths
14
+
15
+ _LOCK = threading.Lock()
16
+
17
+ SAVE_KEYS = ("type", "rounds", "threshold", "best_of", "chapters",
18
+ "words_per_chapter", "variants")
19
+ _LIMITS = {"rounds": (1, 5), "threshold": (1.0, 10.0), "best_of": (1, 3),
20
+ "chapters": (1, 2000), "words_per_chapter": (200, 20000),
21
+ "variants": (1, 3)}
22
+
23
+
24
+ def _file():
25
+ # 动态取路径:DATA_DIR 可被测试重定向,模块级缓存会绑死首次导入的目录
26
+ return paths.DATA_DIR / "last-prefs.json"
27
+
28
+
29
+ def _clamp(key, value):
30
+ """数值钳制:历史文件被手改出天际值时按参数合法域兜底。"""
31
+ lo, hi = _LIMITS.get(key), (0, 10 ** 9)
32
+ lo, hi = lo if lo else hi
33
+ try:
34
+ return max(lo, min(hi, type(lo)(value) if isinstance(lo, int)
35
+ else float(value)))
36
+ except (TypeError, ValueError):
37
+ return None
38
+
39
+
40
+ def record(payload):
41
+ """从创建任务的 payload 提取可复用参数(存在才覆盖,单键独立保留)。"""
42
+ if not isinstance(payload, dict):
43
+ return
44
+ with _LOCK:
45
+ cur = load()
46
+ for key in SAVE_KEYS:
47
+ v = payload.get(key)
48
+ if v is None:
49
+ continue
50
+ if key == "type":
51
+ v = str(v)[:32]
52
+ if v:
53
+ cur["type"] = v
54
+ continue
55
+ c = _clamp(key, v)
56
+ if c is not None:
57
+ cur[key] = c
58
+ tmp = _file().with_suffix(".tmp")
59
+ try:
60
+ paths.DATA_DIR.mkdir(parents=True, exist_ok=True)
61
+ tmp.write_text(json.dumps(cur, ensure_ascii=False, indent=2),
62
+ encoding="utf-8")
63
+ tmp.replace(_file())
64
+ except OSError:
65
+ pass
66
+
67
+
68
+ def load():
69
+ """读最近偏好;文件缺失/损坏返回 {}。"""
70
+ try:
71
+ data = json.loads(_file().read_text(encoding="utf-8"))
72
+ return data if isinstance(data, dict) else {}
73
+ except (OSError, ValueError):
74
+ return {}
@@ -397,15 +397,18 @@ def pretty_cli_log(text, max_event_chars=4000):
397
397
  return "\n".join(out)
398
398
 
399
399
 
400
- def run_process(argv=None, shell_cmd=None, stdin_text=None, cwd=None, env=None,
401
- timeout=DEFAULT_TIMEOUT, cancel_event=None, log_path=None,
402
- stall_timeout=0):
400
+ def run_process(argv=None, shell_cmd=None, stdin_text=None, cwd=None, env=None,
401
+ timeout=DEFAULT_TIMEOUT, cancel_event=None, log_path=None,
402
+ stall_timeout=0, repeat_abort=None):
403
403
  """通用子进程执行:并发读管道防死锁;超时/取消杀整棵进程树。
404
404
 
405
405
  stall_timeout:停滞看门狗(秒,0=关闭)——超过该时长 stdout/stderr 无任何
406
406
  新输出即判卡死,提前杀树返回(timed_out=True + stalled=True)。只对输出
407
- 持续流动的 CLI 开(codex JSONL 事件流);claude json 到结束才一次性输出,
408
- 开了会把正常长任务误杀。
407
+ 持续流动的 CLI 开(codex JSONL 事件流);claude json 到结束才一次性输出,
408
+ 开了会把正常长任务误杀。
409
+
410
+ repeat_abort:可选 (marker, count)。同一致命错误达到次数即提前杀树,处理
411
+ CLI 自身不断打印重连消息、因此永远触发不了静默看门狗的假运行。
409
412
 
410
413
  返回 {ok, exit_code, stdout, stderr, duration, cancelled, timed_out, stalled}。
411
414
  """
@@ -468,7 +471,7 @@ def run_process(argv=None, shell_cmd=None, stdin_text=None, cwd=None, env=None,
468
471
  pass
469
472
  threading.Thread(target=_feed, daemon=True).start()
470
473
  start = time.time()
471
- cancelled = timed_out = stalled = False
474
+ cancelled = timed_out = stalled = repeat_aborted = False
472
475
  while True:
473
476
  try:
474
477
  proc.wait(timeout=0.4)
@@ -485,14 +488,27 @@ def run_process(argv=None, shell_cmd=None, stdin_text=None, cwd=None, env=None,
485
488
  _kill_tree(proc.pid)
486
489
  _drain_streams(proc, t_out, t_err, timeout=5)
487
490
  break
488
- if stall_timeout and time.time() - stamp[0] > stall_timeout:
491
+ if stall_timeout and time.time() - stamp[0] > stall_timeout:
489
492
  # 停滞看门狗:长静默多为卡死(网关挂起/CLI 假死),与其耗满总
490
493
  # 超时不如提前杀——错误按超时归类,走既有的换模型/换将链路
491
494
  stalled = True
492
495
  timed_out = True
493
496
  _kill_tree(proc.pid)
494
- _drain_streams(proc, t_out, t_err, timeout=5)
495
- break
497
+ _drain_streams(proc, t_out, t_err, timeout=5)
498
+ break
499
+ if repeat_abort:
500
+ try:
501
+ marker, limit = repeat_abort
502
+ recent = decode_output(b"".join(out_chunks)[-8000:] +
503
+ b"\n" + b"".join(err_chunks)[-8000:])
504
+ if marker and recent.count(str(marker)) >= int(limit):
505
+ repeat_aborted = True
506
+ timed_out = True
507
+ _kill_tree(proc.pid)
508
+ _drain_streams(proc, t_out, t_err, timeout=5)
509
+ break
510
+ except (TypeError, ValueError):
511
+ pass
496
512
  duration = round(time.time() - start, 1)
497
513
  t_out.join(timeout=5)
498
514
  t_err.join(timeout=5)
@@ -505,9 +521,11 @@ def run_process(argv=None, shell_cmd=None, stdin_text=None, cwd=None, env=None,
505
521
  stream.close()
506
522
  except Exception:
507
523
  pass
508
- if cancelled:
509
- stderr += "\n[已被用户取消]"
510
- elif stalled:
524
+ if cancelled:
525
+ stderr += "\n[已被用户取消]"
526
+ elif repeat_aborted:
527
+ stderr += "\n[同一网络错误重复 %s 次,已提前终止进程树]" % repeat_abort[1]
528
+ elif stalled:
511
529
  stderr += "\n[输出停滞 %ss,已终止进程树]" % stall_timeout
512
530
  elif timed_out:
513
531
  stderr += "\n[超时 %ss,已终止进程树]" % timeout
@@ -1050,10 +1068,12 @@ def run_agent(agent, prompt, workdir=None, readonly=True,
1050
1068
  att["model"], prompt,
1051
1069
  images=images if kind == "codex" else None,
1052
1070
  workdir=workdir)
1053
- try:
1054
- res = run_process(argv=argv, stdin_text=stdin_text, cwd=workdir, env=env,
1055
- timeout=timeout, cancel_event=cancel_event, log_path=log_path,
1056
- stall_timeout=stall_t)
1071
+ try:
1072
+ repeat_guard = (("Reconnecting... waiting for network", 5)
1073
+ if kind == "codex" else None)
1074
+ res = run_process(argv=argv, stdin_text=stdin_text, cwd=workdir, env=env,
1075
+ timeout=timeout, cancel_event=cancel_event, log_path=log_path,
1076
+ stall_timeout=stall_t, repeat_abort=repeat_guard)
1057
1077
  finally:
1058
1078
  # 超长指令临时文件:CLI 进程已结束(管道已收),即刻清场不污染工作目录
1059
1079
  for tf in tmp_files:
@@ -1089,10 +1109,11 @@ def run_agent(agent, prompt, workdir=None, readonly=True,
1089
1109
  parsed_err = _parse_claude_json(res["stdout"] or "")
1090
1110
  if parsed_err and parsed_err.get("is_error") and parsed_err.get("text"):
1091
1111
  out["error"] = "claude 返回 is_error: " + parsed_err["text"][:500]
1092
- if kind == "codex" and att.get("provider_id"):
1093
- el = out["error"].lower()
1094
- if (("wire_api" in el and "no longer supported" in el)
1095
- or "no route matched" in el):
1112
+ if kind == "codex" and att.get("provider_id"):
1113
+ el = out["error"].lower()
1114
+ if (("wire_api" in el and "no longer supported" in el)
1115
+ or "no route matched" in el
1116
+ or "同一网络错误重复" in out["error"]):
1096
1117
  # codex 撞 chat-only 供应商(0.154 只讲 responses):
1097
1118
  # 自动冷却该供应商 30 分钟,链展开/路由绑定分随之
1098
1119
  # 自动绕开——不用人工改绑定(2026-09-17 mo-so 实测)
package/app/ui/app.js CHANGED
@@ -2,10 +2,15 @@
2
2
  "use strict";
3
3
 
4
4
  const $ = (id) => document.getElementById(id);
5
- const S = { state: null, catalog: null, catSig: "", providers: null, bindings: null, modelsSig: "", bindSig: "", tab: "tasks", detailRunId: null, pollTimer: null, showArchived: false, /* 会话内开关:每次加载默认隐藏已归档、图标不选中(不持久化,见 btn-side-arch) */ selProvs: {}, selModels: {}, selRuns: {}, bindSel: {}, catalogChecking: false, updateCheckAt: 0, control: null, sseLive: false, es: null, flows: null, orch: null, skills: null, orchSig: "", settings: null, sessionAgents: new Set(), atts: [], gitInfo: null, gitWb: null, gitWbKey: "", gitWbAt: 0, gitWbBusy: false, creatingTask: false, inspKey: null, inspData: null, inspSig: "", inspAt: 0, inspTab: "git", inspAutoSig: "", rdTab: null, rdTabSig: "", rdTabPin: false, _rdCtx: {} };
5
+ const S = { state: null, catalog: null, catSig: "", providers: null, bindings: null, modelsSig: "", bindSig: "", tab: "tasks", detailRunId: null, pollTimer: null, showArchived: false, /* 会话内开关:每次加载默认隐藏已归档、图标不选中(不持久化,见 btn-side-arch) */ selProvs: {}, selModels: {}, selRuns: {}, bindSel: {}, catalogChecking: false, updateCheckAt: 0, control: null, sseLive: false, es: null, flows: null, orch: null, skills: null, orchSig: "", settings: null, sessionAgents: new Set(), atts: [], gitInfo: null, gitWb: null, gitWbKey: "", gitWbAt: 0, gitWbBusy: false, creatingTask: false, inspKey: null, inspData: null, inspSig: "", inspAt: 0, inspTab: "git", inspAutoSig: "", rdTab: null, rdTabSig: "", rdTabPin: false, _rdCtx: {}, lastPrefs: null };
6
6
 
7
7
  /* ---------------------------------------------------------- 任务类型(流程) */
8
8
  async function loadFlows() {
9
+ // 偏好记忆(借鉴 chinese-novelist-skill):并行拉最近一次的任务参数,
10
+ // renderTypeOptions/onTypeChange 用它预填类型与轮数/阈值等(拉失败不挡首屏)
11
+ api("/api/prefs").then((r) => { S.lastPrefs = (r && r.prefs) || {}; })
12
+ .then(() => renderTypeOptions())
13
+ .catch(() => {});
9
14
  try {
10
15
  const r = await api("/api/flows");
11
16
  S.flows = r.flows || [];
@@ -314,7 +319,8 @@ function operationLabel(path, opts) {
314
319
  const method = String((opts && opts.method) || "GET").toUpperCase();
315
320
  if (method === "GET" || method === "HEAD") return "";
316
321
  // 只自动记录刚由用户点击触发的写操作;后台维护请求需显式传 operation 才显示。
317
- if (!(opts && opts.operation === true) && performance.now() - _lastActionAt >= 2000) return "";
322
+ if (!(opts && opts.operation === true) &&
323
+ (!_lastActionAt || performance.now() - _lastActionAt >= 2000)) return "";
318
324
  const clean = String(path || "").split("?")[0];
319
325
  const rules = [
320
326
  [/^\/api\/tasks$/, "创建任务"],
@@ -8472,7 +8478,7 @@ function renderZentaoProfiles() {
8472
8478
  const box = $("zt-profiles");
8473
8479
  if (!box) return;
8474
8480
  box.innerHTML = (S.ztProfiles || []).map((p, i) => ztProfCardHtml(p, i)).join("") ||
8475
- '<div class="empty">' + t("还没有产品档案——点「+ 添加产品」,填产品 ID 与两端仓库。") + "</div>";
8481
+ '<div class="empty">' + t("还没有产品档案——先测试连接,再从禅道选择产品,无需自己查 ID。") + "</div>";
8476
8482
  }
8477
8483
 
8478
8484
  /* DOM 卡片 → profiles 数组(结构变化前采集,保住已输入值) */
@@ -8513,6 +8519,10 @@ function ztProfAdd() {
8513
8519
  repos: { backend: {}, frontend: {} }, repo_hints: { backend: "", frontend: "" },
8514
8520
  owners: { backend: "", frontend: "", not_ours: "" }, module_routes: [] });
8515
8521
  renderZentaoProfiles();
8522
+ // 首次添加时自动拉清单,避免用户只能盲填产品 ID;拉不到仍保留手填回退。
8523
+ if (!(S.ztProducts || []).length && $("zt-base-url") && $("zt-base-url").value.trim()) {
8524
+ ztFetchCatalog(false);
8525
+ }
8516
8526
  }
8517
8527
 
8518
8528
  function ztProfDel(i) {
@@ -8643,7 +8653,7 @@ function zentaoOpenRun(runId) {
8643
8653
  }
8644
8654
 
8645
8655
  /* 表单 → 保存配置。password 只在用户输入了才提交(空 = 保持已存密码)。 */
8646
- async function saveZentao() {
8656
+ function ztFormPayload() {
8647
8657
  const val = (id) => (($(id).value || "").trim());
8648
8658
  const payload = {
8649
8659
  base_url: val("zt-base-url"),
@@ -8657,6 +8667,11 @@ async function saveZentao() {
8657
8667
  };
8658
8668
  const pw = ($("zt-password").value || "").trim();
8659
8669
  if (pw) payload.password = pw;
8670
+ return payload;
8671
+ }
8672
+
8673
+ async function saveZentao() {
8674
+ const payload = ztFormPayload();
8660
8675
  try {
8661
8676
  await api("/api/zentao/config", { method: "POST", body: JSON.stringify(payload) });
8662
8677
  } catch (e) { toast(t("保存失败:") + e.message, true); return; }
@@ -8682,6 +8697,16 @@ async function testZentao() {
8682
8697
  toast(t("地址已自动补全子路径,记得「保存配置」"));
8683
8698
  }
8684
8699
  }
8700
+ if (r.ok) {
8701
+ try {
8702
+ // 测试成功即保存当前连接并拉产品清单,用户无需再理解“先保存再拉取”的顺序。
8703
+ await api("/api/zentao/config", { method: "POST", operation: false,
8704
+ body: JSON.stringify(ztFormPayload()) });
8705
+ await loadZentao();
8706
+ await ztFetchCatalog(true);
8707
+ toast(t("连接成功,已保存;现在可直接从禅道选择产品"));
8708
+ } catch (e) { toast(t("连接成功,但保存配置失败:") + e.message, true); }
8709
+ }
8685
8710
  }
8686
8711
 
8687
8712
  async function scanZentao() {
package/app/ui/i18n.js CHANGED
@@ -1962,6 +1962,10 @@
1962
1962
  "AI 排查兜底": "AI triage fallback",
1963
1963
  "产品档案": "Product Profiles",
1964
1964
  "+ 添加产品": "+ Add product",
1965
+ "+ 从禅道添加产品": "+ Add from ZenTao",
1966
+ "刷新产品列表": "Refresh products",
1967
+ "重新从禅道拉取产品与账号": "Reload products and accounts from ZenTao",
1968
+ "先测试连接,再点「从禅道添加产品」直接选择产品;无需自己查 ID。每个产品只需配置我方仓库,负责人和模块路由均可稍后补充。": "Test the connection, then choose Add from ZenTao — no ID lookup needed. Configure only your repository first; owners and module routes can be added later.",
1965
1969
  "删除产品": "Remove product",
1966
1970
  "每个产品一份档案:我方端(自动修)、两端仓库与负责人、模块路由(模块 → 端/人,排查优先级最高)。": "One profile per product: our sides (auto-fix), frontend/backend repos and owners, module routes (module → side/owner, highest triage priority).",
1967
1971
  "定时扫描禅道多个产品的激活 Bug:先按模块路由/AI 排查定责(前端/后端/双端/非我方),我方端自动创建代码修复任务(实现→验证→评审→修复),修完自动合并并 resolve 或转派对应负责人;测试指错人也按排查结论改派。": "Periodically scans active bugs across products: triages each (frontend/backend/both/not-ours) via module routes or AI, auto-fixes on our sides (implement → verify → review → fix), then merges & resolves or transfers to the right owner — including re-routing bugs the tester assigned to the wrong person.",
@@ -1999,6 +2003,7 @@
1999
2003
  "需人工": "Needs human",
2000
2004
  "还没有认领过 Bug——配置好连接与产品档案后点「立即扫描」。": "No bugs claimed yet — set up connection and product profiles, then click \"Scan Now\".",
2001
2005
  "还没有产品档案——点「+ 添加产品」,填产品 ID 与两端仓库。": "No product profiles yet — click \"+ Add product\" and fill the product ID and repos.",
2006
+ "还没有产品档案——先测试连接,再从禅道选择产品,无需自己查 ID。": "No product profiles yet — test the connection, then select a product from ZenTao; no ID lookup needed.",
2002
2007
  "先填产品 ID 再拉模块清单": "Fill the product ID before fetching modules",
2003
2008
  "先选产品再拉模块清单": "Pick a product before fetching modules",
2004
2009
  "拉取失败": "Fetch failed",
package/app/ui/index.html CHANGED
@@ -544,7 +544,7 @@
544
544
  <h2 data-i18n="禅道 Bug 自动修复">禅道 Bug 自动修复</h2>
545
545
  <button class="hhelp" data-help-topic="auto" title="这是什么?点开看帮助" data-i18n-title="这是什么?点开看帮助" aria-label="帮助" data-i18n-aria="帮助"><svg class="ico" aria-hidden="true"><use href="#i-help"></use></svg></button>
546
546
  <div class="actions">
547
- <button id="btn-zentao-test" class="ghost small" title="用当前表单里的连接信息试连禅道" data-i18n-title="用当前表单里的连接信息试连禅道"><span data-i18n="测试连接">测试连接</span></button>
547
+ <button id="btn-zentao-test" class="ghost small" title="测试成功后自动保存连接并拉取产品列表" data-i18n-title="测试成功后自动保存连接并拉取产品列表"><span data-i18n="测试并保存连接">测试并保存连接</span></button>
548
548
  <button id="btn-zentao-scan" class="primary small" title="立刻扫一遍激活 Bug 并对账回写" data-i18n-title="立刻扫一遍激活 Bug 并对账回写"><span data-i18n="立即扫描">立即扫描</span></button>
549
549
  </div>
550
550
  </div>
@@ -566,11 +566,11 @@
566
566
  </div>
567
567
  <div class="ops"><button id="btn-zentao-save" class="primary small"><span data-i18n="保存配置">保存配置</span></button></div>
568
568
  <h3 data-i18n="产品档案" class="sec-title">产品档案</h3>
569
- <p data-i18n="每个产品一份档案:我方端(自动修)、两端仓库与负责人、模块路由(模块 → 端/人,排查优先级最高)。" class="hint">每个产品一份档案:我方端(自动修)、两端仓库与负责人、模块路由(模块 → 端/人,排查优先级最高)。</p>
569
+ <p data-i18n="先测试连接,再点「从禅道添加产品」直接选择产品;无需自己查 ID。每个产品只需配置我方仓库,负责人和模块路由均可稍后补充。" class="hint">先测试连接,再点「从禅道添加产品」直接选择产品;无需自己查 ID。每个产品只需配置我方仓库,负责人和模块路由均可稍后补充。</p>
570
570
  <div id="zt-profiles" class="cards"></div>
571
571
  <div class="ops">
572
- <button id="btn-zentao-fetchcat" class="ghost small" title="从禅道拉产品与账号清单:产品 ID、负责人变下拉选择(需连接可用)" data-i18n-title="从禅道拉产品与账号清单:产品 ID、负责人变下拉选择(需连接可用)"><span data-i18n="拉取清单">拉取清单</span></button>
573
- <button id="btn-zentao-addprofile" class="ghost small"><span data-i18n="+ 添加产品">+ 添加产品</span></button>
572
+ <button id="btn-zentao-fetchcat" class="ghost small" title="重新从禅道拉取产品与账号" data-i18n-title="重新从禅道拉取产品与账号"><span data-i18n="刷新产品列表">刷新产品列表</span></button>
573
+ <button id="btn-zentao-addprofile" class="primary small"><span data-i18n="+ 从禅道添加产品">+ 从禅道添加产品</span></button>
574
574
  </div>
575
575
  <datalist id="zt-users"></datalist>
576
576
  <h3 data-i18n="修复记录" class="sec-title">修复记录</h3>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebee",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "CodeBee · 多智能体编排台 — 统一编排本机 AI 编码 CLI(Codex / Claude Code / QwenCode / OpenCode / Aider…):目标→拆解→路由→执行→验证→跨厂商评审→修复→报告。纯 Python 标准库实现,本地 Web UI。",
5
5
  "license": "MIT",
6
6
  "bin": {