teamsmith 0.2.0 → 0.3.1
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 +4 -4
- package/package.json +1 -1
- package/skills/teamsmith/CHANGELOG.md +69 -0
- package/skills/teamsmith/SKILL.md +20 -13
- package/skills/teamsmith/extension/team-inbox-watch.ts +5 -3
- package/skills/teamsmith/extension/team-notify.ts +37 -6
- package/skills/teamsmith/extension/team.ts +438 -0
- package/skills/teamsmith/references/config.md +39 -6
- package/skills/teamsmith/references/migration.md +197 -47
- package/skills/teamsmith/references/protocol.md +201 -30
- package/skills/teamsmith/references/troubleshooting.md +130 -10
- package/skills/teamsmith/references/workflows.md +36 -2
- package/skills/teamsmith/scripts/lib/cmd-agents.sh +318 -23
- package/skills/teamsmith/scripts/lib/cmd-bootstrap.sh +2 -2
- package/skills/teamsmith/scripts/lib/cmd-config.sh +349 -67
- package/skills/teamsmith/scripts/lib/cmd-draft.sh +4 -4
- package/skills/teamsmith/scripts/lib/cmd-help.sh +677 -0
- package/skills/teamsmith/scripts/lib/cmd-init.sh +157 -5
- package/skills/teamsmith/scripts/lib/cmd-interrupt.sh +461 -0
- package/skills/teamsmith/scripts/lib/cmd-meeting.sh +2 -25
- package/skills/teamsmith/scripts/lib/cmd-project.sh +30 -103
- package/skills/teamsmith/scripts/lib/cmd-reap.sh +277 -0
- package/skills/teamsmith/scripts/lib/cmd-reply.sh +3 -3
- package/skills/teamsmith/scripts/lib/cmd-review.sh +182 -32
- package/skills/teamsmith/scripts/lib/cmd-status.sh +234 -21
- package/skills/teamsmith/scripts/lib/cmd-update.sh +36 -7
- package/skills/teamsmith/scripts/lib/cmd-watch.sh +564 -46
- package/skills/teamsmith/scripts/lib/common.sh +1004 -245
- package/skills/teamsmith/scripts/lib/gate-lock.sh +582 -0
- package/skills/teamsmith/scripts/panel/draft-send.sh +11 -1
- package/skills/teamsmith/scripts/panel/panel.js +211 -211
- package/skills/teamsmith/scripts/panel/src/App.tsx +58 -21
- package/skills/teamsmith/scripts/panel/src/clipboard.ts +12 -5
- package/skills/teamsmith/scripts/panel/src/compose.ts +6 -3
- package/skills/teamsmith/scripts/panel/src/data.ts +51 -5
- package/skills/teamsmith/scripts/panel/src/layout.ts +209 -69
- package/skills/teamsmith/scripts/panel/src/main.tsx +37 -8
- package/skills/teamsmith/scripts/panel/src/strings/en.ts +39 -29
- package/skills/teamsmith/scripts/panel/src/strings/zh.ts +41 -31
- package/skills/teamsmith/scripts/panel/src/types.ts +28 -3
- package/skills/teamsmith/scripts/replies.mjs +4 -1
- package/skills/teamsmith/scripts/shim/killall +10 -0
- package/skills/teamsmith/scripts/shim/pgrep +10 -0
- package/skills/teamsmith/scripts/shim/pidof +10 -0
- package/skills/teamsmith/scripts/shim/pkill +10 -0
- package/skills/teamsmith/scripts/shim/signal-gate +108 -31
- package/skills/teamsmith/scripts/shim/tmux +18 -0
- package/skills/teamsmith/scripts/strings/commands.tsv +86 -0
- package/skills/teamsmith/scripts/strings/help.en.tsv +503 -0
- package/skills/teamsmith/scripts/strings/help.zh.tsv +489 -0
- package/skills/teamsmith/scripts/team +19 -6
- package/skills/teamsmith/templates/AGENTS.section.md.tmpl +8 -1
- package/skills/teamsmith/templates/config.sh.tmpl +20 -1
- package/skills/teamsmith/templates/pm-prompt.md.tmpl +21 -0
- package/skills/teamsmith/tests/README.md +31 -0
- package/skills/teamsmith/tests/bg-ledger-harness.mjs +464 -40
- package/skills/teamsmith/tests/bg-ledger.sh +168 -10
- package/skills/teamsmith/tests/checkout-shape-probe.sh +83 -54
- package/skills/teamsmith/tests/config-cli.sh +184 -32
- package/skills/teamsmith/tests/fixtures/delivery-truth-real/scenario.sh +7 -1
- package/skills/teamsmith/tests/fixtures/p287/lint-good.sh.in +3 -0
- package/skills/teamsmith/tests/fixtures/p287/lint-hardcoded.sh.in +3 -0
- package/skills/teamsmith/tests/fixtures/p287/lint-no-ns.sh.in +3 -0
- package/skills/teamsmith/tests/fixtures/p55/flip-p49.sh +18 -6
- package/skills/teamsmith/tests/flip-m33.sh +5 -3
- package/skills/teamsmith/tests/flip-p158.sh +2 -1
- package/skills/teamsmith/tests/flip-p308-skip-not-pass.sh +151 -0
- package/skills/teamsmith/tests/flip-p310-lock.sh +210 -0
- package/skills/teamsmith/tests/flip-p310-socket.sh +125 -0
- package/skills/teamsmith/tests/gate-guard.sh +52 -79
- package/skills/teamsmith/tests/help-surface.sh +1664 -0
- package/skills/teamsmith/tests/install-shape.sh +359 -22
- package/skills/teamsmith/tests/key-replies-pty.sh +9 -10
- package/skills/teamsmith/tests/key-replies-ui.sh +2 -8
- package/skills/teamsmith/tests/key-replies.sh +281 -28
- package/skills/teamsmith/tests/ledger-ban.sh +5 -4
- package/skills/teamsmith/tests/ledger-claim.sh +2 -1
- package/skills/teamsmith/tests/lib/bounded-spin.sh +90 -0
- package/skills/teamsmith/tests/lib/model-policy.sh +4 -0
- package/skills/teamsmith/tests/lib/model-routing-flips.py +51 -0
- package/skills/teamsmith/tests/lib/pty-wait.sh +21 -111
- package/skills/teamsmith/tests/lib/reply-fixture.sh +4 -9
- package/skills/teamsmith/tests/lib/section-guard.sh +316 -164
- package/skills/teamsmith/tests/lib/tmp-root.sh +139 -27
- package/skills/teamsmith/tests/lib/tmux-cap.sh +10 -1
- package/skills/teamsmith/tests/lib/tmux-iso.sh +31 -13
- package/skills/teamsmith/tests/loop-inventory.tsv +83 -77
- package/skills/teamsmith/tests/panel-b2.sh +430 -352
- package/skills/teamsmith/tests/panel-b3-stub.sh +112 -4
- package/skills/teamsmith/tests/panel-b3.sh +314 -62
- package/skills/teamsmith/tests/panel-choices.sh +11 -6
- package/skills/teamsmith/tests/panel-cpu.sh +43 -130
- package/skills/teamsmith/tests/panel-p21.sh +251 -265
- package/skills/teamsmith/tests/panel-snapshots.sh +41 -225
- package/skills/teamsmith/tests/panel-strings.mjs +33 -18
- package/skills/teamsmith/tests/perf.sh +187 -396
- package/skills/teamsmith/tests/routes.sh +440 -117
- package/skills/teamsmith/tests/seat-interrupt.sh +1012 -0
- package/skills/teamsmith/tests/seat-visibility.sh +675 -0
- package/skills/teamsmith/tests/section-guard.sh +13 -102
- package/skills/teamsmith/tests/section-needs-audit.sh +24 -7
- package/skills/teamsmith/tests/section-paths.tsv +32 -18
- package/skills/teamsmith/tests/section-select.sh +371 -19
- package/skills/teamsmith/tests/signal-gate.sh +249 -27
- package/skills/teamsmith/tests/signal-lint-legacy.txt +4 -1
- package/skills/teamsmith/tests/slash-team-e2e.sh +323 -0
- package/skills/teamsmith/tests/slash-team.sh +617 -0
- package/skills/teamsmith/tests/slice-coverage.sh +206 -0
- package/skills/teamsmith/tests/smoke.sh +3595 -788
- package/skills/teamsmith/tests/task-model-routing.sh +530 -15
- package/skills/teamsmith/tests/team-bg-stop.sh +18 -10
- package/skills/teamsmith/tests/tmp-hygiene.sh +782 -45
- package/skills/teamsmith/tests/tmux-identity-leak.sh +773 -0
- package/skills/teamsmith/tests/tmux-lint-legacy.txt +12 -18
- package/skills/teamsmith/tests/upgrade-recipe.sh +537 -0
- package/skills/teamsmith/tests/workflow-entry.sh +207 -0
- package/skills/teamsmith-init/SKILL.md +12 -12
- package/skills/teamsmith-init/references/bootstrap.md +3 -3
- package/skills/teamsmith/tests/flip-glue.sh +0 -162
- package/skills/teamsmith/tests/flip-m12-26c.sh +0 -129
- package/skills/teamsmith/tests/flip-m12.sh +0 -185
- package/skills/teamsmith/tests/flip-m16.sh +0 -166
- package/skills/teamsmith/tests/flip-m17.sh +0 -204
- package/skills/teamsmith/tests/flip-m34.sh +0 -96
- package/skills/teamsmith/tests/flip-m37.sh +0 -185
- package/skills/teamsmith/tests/flip-m4.3.sh +0 -375
- package/skills/teamsmith/tests/flip-m43.sh +0 -128
- package/skills/teamsmith/tests/flip-m45.sh +0 -244
- package/skills/teamsmith/tests/flip-m46.sh +0 -238
- package/skills/teamsmith/tests/flip-m48.sh +0 -304
- package/skills/teamsmith/tests/flip-m6.2.sh +0 -205
- package/skills/teamsmith/tests/flip-m6.3.sh +0 -283
- package/skills/teamsmith/tests/flip-m6.4.sh +0 -267
- package/skills/teamsmith/tests/flip-m6.5.sh +0 -113
- package/skills/teamsmith/tests/flip-m7.1.sh +0 -135
- package/skills/teamsmith/tests/flip-m7.2.sh +0 -321
- package/skills/teamsmith/tests/flip-p144.sh +0 -112
- package/skills/teamsmith/tests/flip-p156.sh +0 -133
- package/skills/teamsmith/tests/flip-p160.sh +0 -182
- package/skills/teamsmith/tests/flip-p171.sh +0 -249
- package/skills/teamsmith/tests/flip-p18.1.sh +0 -95
- package/skills/teamsmith/tests/flip-p20.sh +0 -286
- package/skills/teamsmith/tests/flip-p201.sh +0 -249
- package/skills/teamsmith/tests/flip-p210.sh +0 -239
- package/skills/teamsmith/tests/flip-p211.sh +0 -152
- package/skills/teamsmith/tests/flip-p217.sh +0 -288
- package/skills/teamsmith/tests/flip-p22.sh +0 -123
- package/skills/teamsmith/tests/flip-p23.sh +0 -239
- package/skills/teamsmith/tests/flip-p25.sh +0 -165
- package/skills/teamsmith/tests/flip-p71.sh +0 -184
- package/skills/teamsmith/tests/flip-p72.sh +0 -202
- package/skills/teamsmith/tests/load-experiment.sh +0 -290
- package/skills/teamsmith/tests/panel-cpu-premise.sh +0 -173
- package/skills/teamsmith/tests/panel-flip-m54.sh +0 -207
- package/skills/teamsmith/tests/panel-flip-p123.sh +0 -278
- package/skills/teamsmith/tests/panel-flip-p125.sh +0 -318
- package/skills/teamsmith/tests/panel-flip-p128.sh +0 -259
- package/skills/teamsmith/tests/panel-keyprobe-stub.sh +0 -41
- package/skills/teamsmith/tests/panel-keyprobe.sh +0 -82
- package/skills/teamsmith/tests/panel-knobs.sh +0 -83
- package/skills/teamsmith/tests/section-budgets.tsv +0 -154
- package/skills/teamsmith/tests/team-bg-flip.sh +0 -239
- package/skills/teamsmith/tests/team-inbox-watch-flip.sh +0 -191
|
@@ -144,18 +144,22 @@ team_report_seat_live() { # <id> <报告路径> → 0 = 归属席位在跑(in-
|
|
|
144
144
|
# (squash 合并且没有别的改动时正是这个形状:内容相同、却没有共同提交)。
|
|
145
145
|
# 窗口外/部分 squash 会落回诚实的「领先 N」;文档里写明这是启发式(references/workflows.md)。
|
|
146
146
|
team_branch_squash_merged() { # <worktree> → 0=内容已在保护分支里
|
|
147
|
-
local wt="${1:-}" tree lookback="${TEAM_SQUASH_LOOKBACK:-200}"
|
|
147
|
+
local wt="${1:-}" tree lookback="${TEAM_SQUASH_LOOKBACK:-200}" trees=""
|
|
148
148
|
[ -d "$wt" ] || return 1
|
|
149
149
|
case "$lookback" in ''|*[!0-9]*) lookback=200 ;; esac
|
|
150
150
|
tree="$(git -C "$wt" rev-parse 'HEAD^{tree}' 2>/dev/null || true)"
|
|
151
151
|
[ -n "$tree" ] || return 1
|
|
152
152
|
# M50:保护分支的 tree 清单一个纪元读一次(原来每个工作树一次 git log)
|
|
153
|
+
# P350:两条腿都**先落变量再匹配**。`printf … | grep -qx` / `git log … | grep -qx` 的右端一命中就
|
|
154
|
+
# 退出,左端还在写的那段拿到 SIGPIPE(141),CLI 顶层的 `set -o pipefail` 于是把「已在清单里」判成
|
|
155
|
+
# 「不在」——已 squash 合并的分支被报成「领先 N」。判据仍是同一行精确匹配,只是不再经过管道。
|
|
153
156
|
if team_scan_cache_on; then
|
|
154
157
|
_team_prot_trees_load
|
|
155
|
-
|
|
156
|
-
|
|
158
|
+
trees="$_TEAM_PROT_TREES"
|
|
159
|
+
else
|
|
160
|
+
trees="$(git -C "$wt" log --format=%T --max-count="$lookback" "$TEAM_PROTECTED_BRANCH" 2>/dev/null || true)" # 留:查不到=空答案(不是故障)
|
|
157
161
|
fi
|
|
158
|
-
|
|
162
|
+
grep -qx "$tree" <<< "$trees"
|
|
159
163
|
}
|
|
160
164
|
|
|
161
165
|
# 这个 worktree 是不是「已 squash 合并、且没有别的未收尾信号」:脏工作区/真的未 push 优先说了算。
|
|
@@ -452,6 +456,101 @@ team_cmd_roster() {
|
|
|
452
456
|
return 0
|
|
453
457
|
}
|
|
454
458
|
|
|
459
|
+
# ---------------------------------------------------------------- 孤儿席位进程读数(P276 · change: orphan-visibility)
|
|
460
|
+
# 普查本体在 common.sh(team_orphan_census,只读、有界、不写盘);这里是**呈现**:ps/status 的读数块、
|
|
461
|
+
# up 的一行、digest 容量行的行尾提示。三者共用同一份普查与同一个判定,不各写一份。
|
|
462
|
+
team_orphan_rss_text() { case "${1:-}" in ''|-) printf '%s' '-' ;; *) printf '%sMB' "$1" ;; esac; }
|
|
463
|
+
|
|
464
|
+
team_orphan_ts() { # <epoch|-> → ISO 时间(解析不到就原样)
|
|
465
|
+
case "${1:-}" in ''|-) printf '%s' '-' ; return 0 ;; esac
|
|
466
|
+
date -u -d "@$1" +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || printf '%s' "$1"
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
# 一次普查 → 全局汇总(每行一条记录:pid kind seat task start rss judge,见 team_orphan_census)
|
|
470
|
+
# own 的**孤儿**逐条进 TEAM_ORPHAN_OWN_LINES(可点名、可清理);别的项目/身份为空只累计;
|
|
471
|
+
# unjudged 单独计数(server 查询不到 → 不猜、不当孤儿)。
|
|
472
|
+
team_orphan_scan() {
|
|
473
|
+
TEAM_ORPHAN_OWN_LINES=()
|
|
474
|
+
TEAM_ORPHAN_OWN_N=0; TEAM_ORPHAN_OWN_MB=0
|
|
475
|
+
TEAM_ORPHAN_OTHER_N=0; TEAM_ORPHAN_OTHER_MB=0
|
|
476
|
+
TEAM_ORPHAN_OTHER_LINES=()
|
|
477
|
+
TEAM_ORPHAN_UNJUDGED_N=0
|
|
478
|
+
local pid kind seat task start rss judge
|
|
479
|
+
while IFS=$'\t' read -r pid kind seat task start rss judge; do
|
|
480
|
+
[ -n "$pid" ] || continue
|
|
481
|
+
case "$judge" in
|
|
482
|
+
unjudged) TEAM_ORPHAN_UNJUDGED_N=$((TEAM_ORPHAN_UNJUDGED_N + 1)); continue ;;
|
|
483
|
+
orphan) ;;
|
|
484
|
+
*) continue ;;
|
|
485
|
+
esac
|
|
486
|
+
case "$kind" in
|
|
487
|
+
own)
|
|
488
|
+
TEAM_ORPHAN_OWN_N=$((TEAM_ORPHAN_OWN_N + 1))
|
|
489
|
+
case "$rss" in ''|-) ;; *) TEAM_ORPHAN_OWN_MB=$((TEAM_ORPHAN_OWN_MB + rss)) ;; esac
|
|
490
|
+
TEAM_ORPHAN_OWN_LINES+=("$pid"$'\t'"$rss"$'\t'"$seat"$'\t'"$task"$'\t'"$start") ;;
|
|
491
|
+
*)
|
|
492
|
+
TEAM_ORPHAN_OTHER_N=$((TEAM_ORPHAN_OTHER_N + 1))
|
|
493
|
+
case "$rss" in ''|-) ;; *) TEAM_ORPHAN_OTHER_MB=$((TEAM_ORPHAN_OTHER_MB + rss)) ;; esac
|
|
494
|
+
TEAM_ORPHAN_OTHER_LINES+=("$pid"$'\t'"$rss"$'\t'"$seat"$'\t'"$task"$'\t'"$start") ;;
|
|
495
|
+
esac
|
|
496
|
+
done < <(team_orphan_census)
|
|
497
|
+
return 0
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
# ps/status 追加的读数块。只**增行**(既有的每一行逐字节不变);一个信号都不发、一个文件都不写。
|
|
501
|
+
# 没有本项目孤儿时恰好一行、零命令(合同 §3);别的项目/身份为空只给计数与**下限**合计(≥)。
|
|
502
|
+
team_orphan_reading() {
|
|
503
|
+
if [ "${TEAM_ORPHAN_SCAN:-1}" != "1" ]; then
|
|
504
|
+
printf '孤儿席位进程:普查已关闭(TEAM_ORPHAN_SCAN=0)\n'
|
|
505
|
+
return 0
|
|
506
|
+
fi
|
|
507
|
+
team_orphan_scan
|
|
508
|
+
if [ "$TEAM_ORPHAN_OWN_N" -eq 0 ]; then
|
|
509
|
+
if [ "$TEAM_ORPHAN_OTHER_N" -eq 0 ] && [ "$TEAM_ORPHAN_UNJUDGED_N" -eq 0 ]; then
|
|
510
|
+
printf '孤儿席位进程:无\n'
|
|
511
|
+
else
|
|
512
|
+
printf '孤儿席位进程:无本项目孤儿(别的项目/身份不明 %s 个,合计 ≥ %sMB;未判定 %s 个)\n' \
|
|
513
|
+
"$TEAM_ORPHAN_OTHER_N" "$TEAM_ORPHAN_OTHER_MB" "$TEAM_ORPHAN_UNJUDGED_N"
|
|
514
|
+
fi
|
|
515
|
+
return 0
|
|
516
|
+
fi
|
|
517
|
+
printf '孤儿席位进程(主机侧 /proc 普查;记录任务=state/<席位>.env 里的任务,可能比进程新):\n'
|
|
518
|
+
local rec pid rss seat task start
|
|
519
|
+
for rec in "${TEAM_ORPHAN_OWN_LINES[@]}"; do
|
|
520
|
+
IFS=$'\t' read -r pid rss seat task start <<< "$rec"
|
|
521
|
+
printf ' %s %s 席位=%s 记录任务=%s 启动=%s → %s reap %s --yes\n' \
|
|
522
|
+
"$pid" "$(team_orphan_rss_text "$rss")" "$seat" "$task" "$(team_orphan_ts "$start")" "${TEAM_CLI:-team}" "$pid"
|
|
523
|
+
done
|
|
524
|
+
[ "$TEAM_ORPHAN_OTHER_N" -gt 0 ] && printf ' 别的项目/身份不明:%s 个,合计 ≥ %sMB(下限:形状判据只认得本项目配置的 agent 形状)\n' \
|
|
525
|
+
"$TEAM_ORPHAN_OTHER_N" "$TEAM_ORPHAN_OTHER_MB"
|
|
526
|
+
[ "$TEAM_ORPHAN_UNJUDGED_N" -gt 0 ] && printf ' 未判定:%s 个(它自己那个 tmux server 查询不到;不当作孤儿)\n' "$TEAM_ORPHAN_UNJUDGED_N"
|
|
527
|
+
return 0
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
# team up 的读数:一行(有孤儿 → 计数 + 合计 + 可复制命令;没有 → 一行「无」)。
|
|
531
|
+
team_orphan_up_line() {
|
|
532
|
+
if [ "${TEAM_ORPHAN_SCAN:-1}" != "1" ]; then
|
|
533
|
+
printf '孤儿席位进程:普查已关闭(TEAM_ORPHAN_SCAN=0)\n'
|
|
534
|
+
return 0
|
|
535
|
+
fi
|
|
536
|
+
team_orphan_scan
|
|
537
|
+
if [ "$TEAM_ORPHAN_OWN_N" -eq 0 ]; then printf '孤儿席位进程:无\n'; return 0; fi
|
|
538
|
+
printf '孤儿席位进程:%s 个本项目孤儿(合计 %sMB)→ %s reap --orphans --yes\n' \
|
|
539
|
+
"$TEAM_ORPHAN_OWN_N" "$TEAM_ORPHAN_OWN_MB" "${TEAM_CLI:-team}"
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
# digest 容量行**行尾**的提示:主机侧孤儿合计 ≥ TEAM_ORPHAN_WARN_MB 时才有(不是红、不改退出码、
|
|
543
|
+
# 不新开行——它落在既有实时字段那一行里,闸门的 digest 归一化一个字都不用改)。
|
|
544
|
+
team_orphan_digest_hint() {
|
|
545
|
+
[ "${TEAM_ORPHAN_SCAN:-1}" = "1" ] || return 0
|
|
546
|
+
team_orphan_scan
|
|
547
|
+
local total=$(( TEAM_ORPHAN_OWN_MB + TEAM_ORPHAN_OTHER_MB )) warn="${TEAM_ORPHAN_WARN_MB:-1024}"
|
|
548
|
+
case "$warn" in ''|*[!0-9]*) warn=1024 ;; esac
|
|
549
|
+
[ "$total" -ge "$warn" ] || return 0
|
|
550
|
+
printf ' | 孤儿席位进程合计 ≥ %sMB(本项目 %sMB)→ %s reap --orphans --yes' \
|
|
551
|
+
"$total" "$TEAM_ORPHAN_OWN_MB" "${TEAM_CLI:-team}"
|
|
552
|
+
}
|
|
553
|
+
|
|
455
554
|
team_cmd_ps() {
|
|
456
555
|
team_hdr "容量 · $TEAM_PROJECT"
|
|
457
556
|
printf ' %s\n' "$(team_capacity_line)"
|
|
@@ -508,6 +607,9 @@ team_cmd_ps() {
|
|
|
508
607
|
[ "$any_sess" -eq 0 ] && team_dim " (无:还没有 agent 会话文件)"
|
|
509
608
|
printf '\n活跃窗口(%s):\n' "$TEAM_SESSION"
|
|
510
609
|
team_tmux_windows "$TEAM_SESSION" 2>/dev/null | sed 's/^/ - /' || team_dim " session 不存在"
|
|
610
|
+
# P276:孤儿席位进程读数(只增行;只读、不发信号)
|
|
611
|
+
printf '\n'
|
|
612
|
+
team_orphan_reading
|
|
511
613
|
return 0
|
|
512
614
|
}
|
|
513
615
|
|
|
@@ -568,6 +670,9 @@ team_cmd_status() {
|
|
|
568
670
|
printf 'BOARD:\n'
|
|
569
671
|
grep -E '^\|' "$TEAM_DOCS_ABS/BOARD.md" 2>/dev/null | tail -n +3 | sed 's/^/ /' || true
|
|
570
672
|
fi
|
|
673
|
+
# P276:孤儿席位进程读数(只增行;ps 与 status 共用同一个函数 → 两处逐字一致)
|
|
674
|
+
printf '\n'
|
|
675
|
+
team_orphan_reading
|
|
571
676
|
return 0
|
|
572
677
|
}
|
|
573
678
|
|
|
@@ -736,7 +841,7 @@ team_cmd_digest() {
|
|
|
736
841
|
foreign:*) printf ' PM ○ 窗口被别的项目占着(不覆盖)' ;;
|
|
737
842
|
*) printf ' PM ○ 窗口缺失 → team up' ;;
|
|
738
843
|
esac
|
|
739
|
-
printf ' | pulse %s\n' "$(team_pulse_state_text)"
|
|
844
|
+
printf ' | pulse %s%s\n' "$(team_pulse_state_text)" "$(team_orphan_digest_hint)"
|
|
740
845
|
# 延后投递:队列非空才打印(delivery-guard:排队/held 必须看得见;空队列一个字都不加)
|
|
741
846
|
team_outbox_status_line " " || true
|
|
742
847
|
# M46:投递通道降级(PM 的一行视角;`team_pm_state` 已经在手,复用同一次读取)
|
|
@@ -922,20 +1027,91 @@ team_cmd_digest() {
|
|
|
922
1027
|
printf '\n'
|
|
923
1028
|
}
|
|
924
1029
|
|
|
1030
|
+
# ---------------------------------------------------------------- 明细读面:team inbox <agent> --detail
|
|
1031
|
+
# turn-notice-merge · 收件箱行是**汇总**,原始事件在 state/notify.log(一行一事件)。这里只读:
|
|
1032
|
+
# 不 ack、不改未读数;对每条合并行核对 `×N` 与当前代里该键的记录数,缺文件/被轮转出去 →
|
|
1033
|
+
# 点名缺口与 state/notify.log.1 并非零退出(「静默空输出」就是这条要消灭的假绿)。
|
|
1034
|
+
team_inbox_detail() { # <agent> → 0 = 当前代记录完整;1 = 有缺口(点名)
|
|
1035
|
+
local agent="$1"
|
|
1036
|
+
local f detail rot_file line r k n count pair rc=0 recs_n=0 merged_n=0 gap_n=0
|
|
1037
|
+
f="$(team_inbox_file "$agent")"
|
|
1038
|
+
detail="$TEAM_STATE_DIR/notify.log"
|
|
1039
|
+
rot_file="${detail}.1"
|
|
1040
|
+
printf '%s=== %s --detail(回合通知的原始明细;只读)%s\n' "$C_BOLD" "$agent" "$C_RESET"
|
|
1041
|
+
if [ -f "$detail" ]; then
|
|
1042
|
+
local gen="当前代" hdr
|
|
1043
|
+
hdr="$(head -n 1 "$detail" 2>/dev/null || true)"
|
|
1044
|
+
case "$hdr" in '# rotation '*) gen="当前代(本轮由轮转开始:${hdr#\# rotation })" ;; esac
|
|
1045
|
+
printf ' 读取:%s(%s)\n' "$detail" "$gen"
|
|
1046
|
+
else
|
|
1047
|
+
printf ' 读取:%s(缺失)\n' "$detail"
|
|
1048
|
+
fi
|
|
1049
|
+
[ -f "$rot_file" ] && printf ' 上一代:%s\n' "$rot_file"
|
|
1050
|
+
# 当前代里属于这个席位的原始记录(键解析给出席位;非 auto 行/轮转头不算记录)
|
|
1051
|
+
local -a RECS=()
|
|
1052
|
+
if [ -f "$detail" ]; then
|
|
1053
|
+
while IFS= read -r line; do
|
|
1054
|
+
case "$line" in '- '*) ;; *) continue ;; esac
|
|
1055
|
+
k="$(team_notify_line_key "$line" 2>/dev/null || true)"
|
|
1056
|
+
case "$k" in "$agent"'|'*) RECS+=("$line") ;; esac
|
|
1057
|
+
done < "$detail"
|
|
1058
|
+
fi
|
|
1059
|
+
recs_n="${#RECS[@]}"
|
|
1060
|
+
printf ' 该席位的原始记录:%s 条\n' "$recs_n"
|
|
1061
|
+
for r in "${RECS[@]:-}"; do [ -n "$r" ] && printf ' %s\n' "$r"; done
|
|
1062
|
+
printf ' 合并行核对:\n'
|
|
1063
|
+
if [ -f "$f" ]; then
|
|
1064
|
+
while IFS= read -r line; do
|
|
1065
|
+
local head="${line#- }"
|
|
1066
|
+
head="${head%% :: *}"
|
|
1067
|
+
case "$head" in *'×'*) ;; *) continue ;; esac
|
|
1068
|
+
merged_n=$((merged_n + 1))
|
|
1069
|
+
n="$(team_notify_line_events "$line")"
|
|
1070
|
+
k="$(team_notify_line_key "$line" 2>/dev/null || true)"
|
|
1071
|
+
count=0
|
|
1072
|
+
for r in "${RECS[@]:-}"; do
|
|
1073
|
+
[ -n "$r" ] || continue
|
|
1074
|
+
[ "$(team_notify_line_key "$r" 2>/dev/null || true)" = "$k" ] && count=$((count + 1))
|
|
1075
|
+
done
|
|
1076
|
+
pair="$(team_notify_line_iso "$line")/$(team_notify_line_iso_last "$line")"
|
|
1077
|
+
if [ "$count" -ge "$n" ]; then
|
|
1078
|
+
printf ' ×%s first=%s last=%s → 记录 %s/%s OK\n' "$n" "${pair%%/*}" "${pair#*/}" "$count" "$n"
|
|
1079
|
+
else
|
|
1080
|
+
gap_n=$((gap_n + 1))
|
|
1081
|
+
printf ' ×%s first=%s last=%s → 记录 %s/%s **缺口**:state/notify.log 当前代只有 %s 条;更早的记录在 state/notify.log.1\n' \
|
|
1082
|
+
"$n" "${pair%%/*}" "${pair#*/}" "$count" "$n" "$count"
|
|
1083
|
+
rc=1
|
|
1084
|
+
fi
|
|
1085
|
+
done < "$f"
|
|
1086
|
+
fi
|
|
1087
|
+
[ "$merged_n" -gt 0 ] || printf ' (没有合并行)\n'
|
|
1088
|
+
if [ "$gap_n" -gt 0 ]; then
|
|
1089
|
+
printf ' **缺口汇总**:%s 条合并行的原始记录不完整(找不到的请到 state/notify.log.1 找;未被记录的事件不会出现在任何 ×N 里)\n' "$gap_n"
|
|
1090
|
+
rc=1
|
|
1091
|
+
fi
|
|
1092
|
+
return "$rc"
|
|
1093
|
+
}
|
|
1094
|
+
|
|
925
1095
|
team_cmd_inbox() {
|
|
926
|
-
local agent="" ack=0 all=0
|
|
1096
|
+
local agent="" ack=0 all=0 detail=0
|
|
927
1097
|
while [ $# -gt 0 ]; do
|
|
928
1098
|
case "$1" in
|
|
929
1099
|
--ack) ack=1; shift ;;
|
|
930
1100
|
--all) all=1; shift ;;
|
|
1101
|
+
--detail) detail=1; shift ;;
|
|
931
1102
|
-*) team_usage_die "inbox: 未知参数 $1" ;;
|
|
932
1103
|
*) agent="$1"; shift ;;
|
|
933
1104
|
esac
|
|
934
1105
|
done
|
|
1106
|
+
if [ "$detail" = 1 ] && [ "$ack" = 1 ]; then team_usage_die "inbox: --detail 与 --ack 不同用(--detail 只读)"; fi
|
|
935
1107
|
local targets=()
|
|
936
1108
|
if [ -n "$agent" ]; then targets=("$agent"); else mapfile -t targets < <(team_inbox_recipients); fi
|
|
937
|
-
local a n f label
|
|
1109
|
+
local a n f label rc=0
|
|
938
1110
|
for a in "${targets[@]}"; do
|
|
1111
|
+
if [ "$detail" = 1 ]; then
|
|
1112
|
+
team_inbox_detail "$a" || rc=1
|
|
1113
|
+
continue
|
|
1114
|
+
fi
|
|
939
1115
|
f="$(team_inbox_file "$a")"
|
|
940
1116
|
n="$(team_inbox_new "$a")"
|
|
941
1117
|
label=""; [ "$a" = "pm" ] && label="(PM 自己的收件箱)"
|
|
@@ -953,7 +1129,7 @@ team_cmd_inbox() {
|
|
|
953
1129
|
fi
|
|
954
1130
|
done
|
|
955
1131
|
[ "$ack" = "1" ] && team_ok "已标记为已读(--ack)"
|
|
956
|
-
return
|
|
1132
|
+
return "$rc"
|
|
957
1133
|
}
|
|
958
1134
|
|
|
959
1135
|
# ---------------------------------------------------------------- P23/B1 · change 视图(只读)
|
|
@@ -1118,9 +1294,10 @@ team_cmd_change() {
|
|
|
1118
1294
|
# 因为它是面板的文本入口:spawn/诊断不需要知道 bundle 的位置。
|
|
1119
1295
|
team_panel() { team_panel_text "$@"; }
|
|
1120
1296
|
|
|
1121
|
-
# ---------------------------------------------------------------- P53 / P144:磁盘余量(doctor 行)
|
|
1122
|
-
#
|
|
1123
|
-
#
|
|
1297
|
+
# ---------------------------------------------------------------- P53 / P144 / P309:磁盘余量(doctor 行)
|
|
1298
|
+
# 临时根是**解析出的**那个根(`team_tmp_root`:TMPDIR → TEAM_TMP_ROOT → 磁盘默认 `/var/tmp/teamsmith-<ns>`),
|
|
1299
|
+
# 不是这里再算一遍的默认值(P309)。它今天不再默认落内存盘;但工作树与它共盘时仍会报出与代码无关的
|
|
1300
|
+
# 假红(2026-09-22 的 ENOSPC 现场)。
|
|
1124
1301
|
# P144 把这一行从「只报临时根」扩成「每个被判的文件系统一行」:临时根 + 工作树根(同一个文件系统
|
|
1125
1302
|
# 只印一行),读的是派单腿的**同一个** team_disk_stats、**同一对**阈值 —— 于是 doctor 警告 ⟺
|
|
1126
1303
|
# 下一次派单会被拒绝(design D1)。与 inotify 余量行同型:全局资源、只读、只警告、给操作者的修法,
|
|
@@ -1135,19 +1312,32 @@ team_disk_headroom_lines() { # [path...] → 每个被判文件系统一行 "ok|
|
|
|
1135
1312
|
case "$min_mb" in ''|*[!0-9]*) min_mb=1024 ;; esac
|
|
1136
1313
|
case "$min_ino" in ''|*[!0-9]*) min_ino=100000 ;; esac
|
|
1137
1314
|
local -a paths=("$@")
|
|
1138
|
-
[ "${#paths[@]}" -gt 0 ] || paths=("$
|
|
1139
|
-
local p t a it iff id seen=" " label crossed ino_note
|
|
1315
|
+
[ "${#paths[@]}" -gt 0 ] || paths=("$(team_tmp_root 2>/dev/null || true)" "${TEAM_MAIN_ROOT:-$PWD}/${TEAM_WORKTREES_DIR:-.worktrees}")
|
|
1316
|
+
local p t a it iff id seen=" " label crossed ino_note measure note srcnote
|
|
1140
1317
|
for p in "${paths[@]}"; do
|
|
1141
1318
|
[ -n "$p" ] || continue
|
|
1142
|
-
|
|
1319
|
+
# P309:未创建的默认根按最近的存在祖先判(不创建、不编数字);显式根不可用时如实报
|
|
1320
|
+
measure="$(team_tmp_root_stat_path "$p" 2>/dev/null || printf '%s' "$p")"
|
|
1321
|
+
note="$(team_tmp_root_ancestor_note "$p")"
|
|
1322
|
+
team__disk_stats "$measure"; t="$_D_T"; a="$_D_A"; it="$_D_IT"; iff="$_D_IFF"; id="$_D_ID"
|
|
1143
1323
|
if [ -n "$id" ]; then # 同一个文件系统只印一行
|
|
1144
1324
|
case "$seen" in *" $id "*) continue ;; esac
|
|
1145
1325
|
seen="$seen$id "
|
|
1146
1326
|
fi
|
|
1147
1327
|
label="$(team_disk_label "$p")余量"
|
|
1328
|
+
srcnote=""
|
|
1329
|
+
if [ "$label" = "临时根余量" ]; then
|
|
1330
|
+
srcnote=" · $(team_tmp_root_note)"
|
|
1331
|
+
# P314 / V59:doctor 是只读面 —— 根还不存在时,这一行是操作者唯一的提示,所以**每个来源**都要
|
|
1332
|
+
# 说清「谁负责建它」(clause 由 team_tmp_root_creation_note 一处给出:默认腿 = 运行时按需建;
|
|
1333
|
+
# config/tmpdir 腿 = 任何命令都不代建,给可复制的 mkdir)。按 source 挡住 = 配置来的根只剩
|
|
1334
|
+
# 「还没有」,读者会以为它会自己出现 —— 这条子句不再有条件。
|
|
1335
|
+
srcnote="$srcnote · $(team_tmp_root_creation_note "$p")"
|
|
1336
|
+
srcnote="${srcnote% · }" # 根已存在时助手返回空串,别留下悬空的「 · 」
|
|
1337
|
+
fi
|
|
1148
1338
|
if [ -z "$a" ]; then
|
|
1149
|
-
printf 'warn\t%s\t%s 的余量读不出来(df 失败、缺列或路径不可访问)—— 绝不当作充足;修法:%s\n' \
|
|
1150
|
-
"$label" "$p" "$(team_disk_remedy "$p")"
|
|
1339
|
+
printf 'warn\t%s\t%s%s 的余量读不出来(df 失败、缺列或路径不可访问)—— 绝不当作充足;修法:%s%s\n' \
|
|
1340
|
+
"$label" "$p" "$note" "$(team_disk_remedy "$p")" "$srcnote"
|
|
1151
1341
|
continue
|
|
1152
1342
|
fi
|
|
1153
1343
|
crossed=""
|
|
@@ -1158,16 +1348,39 @@ team_disk_headroom_lines() { # [path...] → 每个被判文件系统一行 "ok|
|
|
|
1158
1348
|
crossed="${crossed:+$crossed、}inode 可用 ${iff} / 总 ${it} 低于底线 ${min_ino}"
|
|
1159
1349
|
fi
|
|
1160
1350
|
if [ -n "$crossed" ]; then
|
|
1161
|
-
printf 'warn\t%s\t%s:%s —— 现在派单会被拒绝;修法:%s\n' \
|
|
1162
|
-
"$label" "$p" "$crossed" "$(team_disk_remedy "$p")"
|
|
1351
|
+
printf 'warn\t%s\t%s%s:%s —— 现在派单会被拒绝;修法:%s%s\n' \
|
|
1352
|
+
"$label" "$p" "$note" "$crossed" "$(team_disk_remedy "$p")" "$srcnote"
|
|
1163
1353
|
continue
|
|
1164
1354
|
fi
|
|
1165
1355
|
if [ -z "$it" ]; then ino_note="inode 不适用(这个文件系统不报 inode 表)"
|
|
1166
1356
|
elif [ -z "$iff" ]; then ino_note="inode 读数读不出来"
|
|
1167
1357
|
else ino_note="inode 可用 ${iff} / 总 ${it}"; fi
|
|
1168
|
-
printf 'ok\t%s\t%s:可用 %s / 总 %s · %s\n' \
|
|
1169
|
-
"$label" "$p" "$(team_disk_human_kb "$a")" "$(team_disk_human_kb "$t")" "$ino_note"
|
|
1358
|
+
printf 'ok\t%s\t%s%s:可用 %s / 总 %s · %s%s\n' \
|
|
1359
|
+
"$label" "$p" "$note" "$(team_disk_human_kb "$a")" "$(team_disk_human_kb "$t")" "$ino_note" "$srcnote"
|
|
1360
|
+
done
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
# 锁文件系统的一条**只警告**行(P309 · D6):门禁锁的发布路径仍是冻结的那一条(P287 的跨版本串行),
|
|
1364
|
+
# 它可能落在没有别的行覆盖的文件系统上。`/tmp` 满会挡住取锁(锁守卫会响亮地停),但它**不拒绝派单**,
|
|
1365
|
+
# 所以这条行永远是 warn,且只在没有别的行已经覆盖那个文件系统时出现。
|
|
1366
|
+
team_disk_lock_row() { # → 0 或一行 "warn\t<行名>\t<人话>"
|
|
1367
|
+
local lock p id t a it iff label
|
|
1368
|
+
if declare -F gate_lock_default_path >/dev/null 2>&1; then lock="$(gate_lock_default_path)"
|
|
1369
|
+
else lock="${TEAM_SMOKE_LOCK:-/tmp/teamsmith-smoke.lock}"; fi
|
|
1370
|
+
[ -n "$lock" ] || return 0
|
|
1371
|
+
local -a judged=("$(team_tmp_root 2>/dev/null || true)" "${TEAM_MAIN_ROOT:-$PWD}/${TEAM_WORKTREES_DIR:-.worktrees}")
|
|
1372
|
+
team__disk_stats "$lock"; id="$_D_ID"; t="$_D_T"; a="$_D_A"; it="$_D_IT"; iff="$_D_IFF"
|
|
1373
|
+
[ -n "$id" ] || return 0 # 读不到 → 不判、也不编一行
|
|
1374
|
+
for p in "${judged[@]}"; do
|
|
1375
|
+
[ -n "$p" ] || continue
|
|
1376
|
+
team__disk_stats "$(team_tmp_root_stat_path "$p" 2>/dev/null || printf '%s' "$p")"
|
|
1377
|
+
[ "$_D_ID" = "$id" ] && return 0 # 已被别的行覆盖
|
|
1170
1378
|
done
|
|
1379
|
+
label="锁文件系统"
|
|
1380
|
+
printf 'warn\t%s\t%s 所在的文件系统:可用 %s / 总 %s · %s —— 它不拒绝派单,但满了会让门禁取不到锁;修法:%s\n' \
|
|
1381
|
+
"$label" "$lock" "$(team_disk_human_kb "${a:-0}")" "$(team_disk_human_kb "${t:-0}")" \
|
|
1382
|
+
"$( [ -z "$it" ] && printf 'inode 不适用' || printf 'inode 可用 %s' "${iff:-?}")" \
|
|
1383
|
+
"腾空这个文件系统:$(dirname "$lock")"
|
|
1171
1384
|
}
|
|
1172
1385
|
|
|
1173
1386
|
# doctor 的这几行:调用方是 team_cmd_doctor,借它的 check/pass/warn(同一 shell 里可见)。
|
|
@@ -1178,7 +1391,7 @@ team_disk_doctor_rows() {
|
|
|
1178
1391
|
IFS=$'\t' read -r st label text <<<"$line"
|
|
1179
1392
|
check "$label"
|
|
1180
1393
|
if [ "$st" = "ok" ]; then pass "$text"; else warn "$text"; fi
|
|
1181
|
-
done < <(team_disk_headroom_lines)
|
|
1394
|
+
done < <(team_disk_headroom_lines; team_disk_lock_row)
|
|
1182
1395
|
}
|
|
1183
1396
|
|
|
1184
1397
|
# ================================================================ P55 · 席位四态(死 pane 是座位状况)
|
|
@@ -39,6 +39,21 @@ team_skill_hash() { # SKILL.md + extension/**(notify + bg)的内容指纹(
|
|
|
39
39
|
|
|
40
40
|
team_loaded_env() { printf '%s/pm-loaded.env\n' "$TEAM_STATE_DIR"; }
|
|
41
41
|
|
|
42
|
+
team_loaded_fields() { # <ver> → 记录里记录时间之前的字段(保持文件原来的字段顺序)
|
|
43
|
+
printf 'VERSION=%s\n' "$1"
|
|
44
|
+
printf 'DOC_VERSION=%s\n' "$(team_skill_doc_version)"
|
|
45
|
+
printf 'HASH=%s\n' "$(team_skill_hash)"
|
|
46
|
+
printf 'SKILL_DIR=%s\n' "$TEAM_SKILL_DIR"
|
|
47
|
+
printf 'INSTALL=%s\n' "$(team_skill_install_kind)"
|
|
48
|
+
return 0
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
team_loaded_core() { # <ver> <sid> → 记录里除记录时间之外的全部内容(P290:判断"要不要重写"的口径)
|
|
52
|
+
team_loaded_fields "$1"
|
|
53
|
+
if [ -n "$2" ]; then printf 'SESSION_ID=%s\n' "$2"; fi
|
|
54
|
+
return 0
|
|
55
|
+
}
|
|
56
|
+
|
|
42
57
|
team_loaded_version() { # 本会话启动时记录的版本(未记录则空)
|
|
43
58
|
local f; f="$(team_loaded_env)"
|
|
44
59
|
[ -f "$f" ] && grep -s '^VERSION=' "$f" | head -1 | cut -d= -f2- || true
|
|
@@ -70,16 +85,30 @@ team_cmd_mark_loaded() { # [--version X] [--session-id S]
|
|
|
70
85
|
team_require_docs
|
|
71
86
|
[ -n "$ver" ] || ver="$TEAM_VERSION"
|
|
72
87
|
mkdir -p "$TEAM_STATE_DIR"
|
|
88
|
+
local f core hash stored_core="" stored_at=""
|
|
89
|
+
f="$(team_loaded_env)"
|
|
90
|
+
hash="$(team_skill_hash)"
|
|
91
|
+
core="$(team_loaded_core "$ver" "$sid")"
|
|
92
|
+
if [ -f "$f" ]; then
|
|
93
|
+
stored_core="$(grep -v '^AT=' "$f" 2>/dev/null || true)"
|
|
94
|
+
# V46 F1:裸赋值接一个「没命中就返回 1」的 grep,在 set -e 下会把整个 CLI 带走——记录在、
|
|
95
|
+
# 但没有 AT= 行时 rc=1、一字不写(既有的 smoke §17 用的就是这个形状)。语义上「没有可保留的
|
|
96
|
+
# 时间」等于「没有记录」:走写盘分支把记录补全,不是错误。写法与上一行对称。
|
|
97
|
+
stored_at="$(grep -s -m1 '^AT=' "$f" 2>/dev/null || true)"
|
|
98
|
+
fi
|
|
99
|
+
# P290:记录时间(AT)是这份记录自己的元数据,不是"该不该重写"的理由。版本号、skill 指纹、
|
|
100
|
+
# 安装方式、会话 id 都没变时**不重写**——否则每次调用都盖一个新时间,"再跑一次不会有任何变化"
|
|
101
|
+
# 这句话(mark-loaded 声明的 idempotent)就只在同一秒里碰巧成立:夹具在宿主上绿、在慢一档的容器里红。
|
|
102
|
+
if [ -n "$stored_at" ] && [ "$stored_core" = "$core" ]; then
|
|
103
|
+
team_ok "本会话 skill 版本未变化:$ver(指纹 $hash;保留 $(basename "$f") 里记录的时间)"
|
|
104
|
+
return 0
|
|
105
|
+
fi
|
|
73
106
|
{
|
|
74
|
-
|
|
75
|
-
printf 'DOC_VERSION=%s\n' "$(team_skill_doc_version)"
|
|
76
|
-
printf 'HASH=%s\n' "$(team_skill_hash)"
|
|
77
|
-
printf 'SKILL_DIR=%s\n' "$TEAM_SKILL_DIR"
|
|
78
|
-
printf 'INSTALL=%s\n' "$(team_skill_install_kind)"
|
|
107
|
+
team_loaded_fields "$ver"
|
|
79
108
|
printf 'AT=%s\n' "$(team_timestamp)"
|
|
80
109
|
[ -n "$sid" ] && printf 'SESSION_ID=%s\n' "$sid"
|
|
81
|
-
} > "$
|
|
82
|
-
team_ok "已记录本会话 skill 版本:$ver(指纹 $
|
|
110
|
+
} > "$f"
|
|
111
|
+
team_ok "已记录本会话 skill 版本:$ver(指纹 $hash)"
|
|
83
112
|
team_dim " 之后 team version --check / digest 就能判断是不是该刷新"
|
|
84
113
|
}
|
|
85
114
|
|