lingshu-skill 4.8.0 → 4.9.0
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 +11 -0
- package/README.md +1 -1
- package/SKILL.md +1 -1
- package/docs//350/277/233/345/261/225/344/270/216/345/276/205/345/212/236.md +7 -1
- package/package.json +1 -1
- package/scripts/astrbot_plugin_lingshu/CHECKSUMS.json +4 -4
- package/scripts/astrbot_plugin_lingshu/engine/CHANGELOG.md +11 -0
- package/scripts/astrbot_plugin_lingshu/engine/README.md +1 -1
- package/scripts/astrbot_plugin_lingshu/engine/SKILL.md +1 -1
- package/scripts/astrbot_plugin_lingshu/engine/scripts/cli.py +69 -0
- package/scripts/cli.py +69 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## v4.9(2026-11-24)
|
|
4
|
+
|
|
5
|
+
> 主题:**让"依赖声明悄悄变旧"这件事自己喊出来**(doctor 第 14 项 `app-pin`)。
|
|
6
|
+
|
|
7
|
+
- **背景**:APP profile 把 `lingshu-skill` 声明成 **git 固定 commit**(v3.44),而实际跑的是 `update_app_copy.ps1` 同步进来的新版。后果:插件商店显示旧版本,且在商店点"重装"会按旧 commit **降级**。修它需要 `pnpm install --no-frozen-lockfile`,但该命令在本环境被策略拦截(三次),改不动。
|
|
8
|
+
- **做法**:既然改不动,就别让它静默腐烂——doctor 新增第 14 项 `app-pin`,比对 **声明 spec / `node_modules` 实装版本 / 当前源码版本** 三处;声明是 git 固定 commit 且实装 ≠ 源码时 WARN,并把修复命令原样写进 detail。
|
|
9
|
+
- **实现要点**:APP profile 必须用 `os.listdir` 发现(这些目录名含"长得像 ASCII"的 Unicode 字符,字面路径 `D:\APP` / `.app` 实测都找不到)。
|
|
10
|
+
- **踩坑**:`_doctor_runtime_liveness` / `_doctor_failures` 是嵌套在 doctor 分支里的(8 空格缩进),第一次按模块级插入直接 `IndentationError`;已回滚重做。
|
|
11
|
+
|
|
12
|
+
验证:`tests/test_p15_app_pin.py` 3/3(体检清单含 app-pin / detail 说明声明类型 / 干净 HOME 无 FAIL);实测输出准确报出 `dbfb0a35 → 实装 v4.8.0 / 源码 v4.8`。
|
|
13
|
+
|
|
3
14
|
## v4.8(2026-11-24)
|
|
4
15
|
|
|
5
16
|
> 主题:**两处"删了就没"的地方,改成"能捞回来"**。
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> 名字取自《黄帝内经》:**算力给思考,人格给灵魂,记忆给生命。**
|
|
4
4
|
|
|
5
|
-
> 当前版本 **v4.
|
|
5
|
+
> 当前版本 **v4.9**(变更见 [CHANGELOG.md](CHANGELOG.md))
|
|
6
6
|
|
|
7
7
|
> 🔁 **双仓库镜像**:GitHub(主)与 Gitee(镜像)保持同步——[gitee.com/htmcwy_0/lingshu-skill](https://gitee.com/htmcwy_0/lingshu-skill)。灵枢的更新检查会探测两边最新提交,**谁更新就自动从谁拉取**;任一边不可达(Gitee 匿名风控 / GitHub 限额)时走另一边兜底。
|
|
8
8
|
|
package/SKILL.md
CHANGED
|
@@ -451,7 +451,7 @@ startup 注入的记忆块与 cron 的瞬态提醒**同名**,于是 cron 的 p
|
|
|
451
451
|
75. **【已做 v4.2】面板开关:自动更新灵枢**:新增 `auto_update` 配置项 + 面板开关。开启后 cron 定期 `update_check`,发现新版本可自动 `apply_update`(原子 staging + 全量备份 + 回滚),更新前强制先备份记忆库、更新后写审计日志;失败自动回滚并告警。**默认关**(自动改自己的代码风险高,需用户明确开启)。
|
|
452
452
|
76. **【已做 v4.2】桌面快捷键「灵枢面板」**:安装/启用面板时在桌面生成 `.lnk`,名字 **灵枢面板**,指向隐藏窗口启动脚本(`灵枢面板.vbs` → `panel_server.py`);已存在则跳过,`--remove-shortcut` 可删;路径随数据目录/端口自动适配。
|
|
453
453
|
|
|
454
|
-
77.
|
|
454
|
+
77. **【部分完成·已加体检告警】插件商店版本号不走 npm(A+B 收尾受限)**:
|
|
455
455
|
- **现象**:APP profile(`~/.app/profiles/desktop/package.json`)把 `lingshu-skill` 声明成 **GitHub 固定 commit** `github:Q2667671398/lingshu-skill#dbfb0a3...`(= v3.44),所以插件商店显示的版本与 npm 上的 `latest` 无关;`npm publish` 再多也不会影响它。
|
|
456
456
|
- **为什么文件却是新的**:每次发版后用 `scripts/update_app_copy.ps1` 把文件复制进 `node_modules/lingshu-skill`,所以**跑起来的是最新版**(当前 4.2),但**声明与 lock 仍是旧 commit**——一旦在商店点"重装/更新",会按旧 commit 解析、**降级回 v3.44**。
|
|
457
457
|
- **本次尝试**:把声明改成 `^4.1.0`(A:走 npm)并保留 GitHub tag 通道(B)。改完需要 `pnpm install --no-frozen-lockfile` 重解析 lockfile——**该命令被用户两次拒绝**,因此已按备份**回滚** `package.json`,恢复"声明=lock=旧 commit"的一致状态(宁可版本旧,不要 lock 与声明打架)。
|
|
@@ -509,6 +509,12 @@ startup 注入的记忆块与 cron 的瞬态提醒**同名**,于是 cron 的 p
|
|
|
509
509
|
- 成本:一条几十到几百字节,比整库备份便宜得多。
|
|
510
510
|
- **过程中修掉两个自己引入的 bug**:① 恢复时用 `write_jsonl(hippocampus)` 会把 `load_all()`(跨层合并)里的 cortex/dust 记录**整批灌进 hippocampus**,正确做法是 `save_all()`(按 layer 分写);② 层名写成 `"hippocampus"`(错误)导致 recall 认不出、恢复后搜不到,规范值是 **`"hippo"`**。两个 bug 都是"分写得对不上"的类型,已加回归(`test_restore_does_not_corrupt_layers`)。
|
|
511
511
|
|
|
512
|
+
87. **【已做 v4.9】doctor 新增第 14 项 `app-pin`:把 #77 的漂移变成可见告警**:
|
|
513
|
+
- **为什么**:A+B 要跑 `pnpm install --no-frozen-lockfile`,但该命令在本环境**被策略拦了三次**(不是用户手动拒绝)。既然改不动,至少要让它**不再静默腐烂**——原来"声明钉在 v3.44、实际跑 v4.8"这件事只有翻文件才知道。
|
|
514
|
+
- **实现**:`_doctor_app_pin()` 用 `os.listdir` 发现 APP profile(**不能用字面路径**:这些目录名含"长得像 ASCII"的 Unicode 字符,实测 `D:\APP`、`.app` 都会找不到),比对三处:声明 spec / `node_modules` 实装版本 / 当前 `SKILL.md` 版本。声明是 git 固定 commit 且实装≠源码 → WARN,并把**修复命令原样写进 detail**。
|
|
515
|
+
- **当前输出**:`[WARN] app-pin:APP 声明钉在旧 commit dbfb0a35,实际装 v4.8.0、源码 v4.8;商店会显示旧版、点重装还会降级。修:把 profile 的 package.json 改成 "^4.8.0" 后,在 profile 目录跑 pnpm install --no-frozen-lockfile(需你本人执行)`
|
|
516
|
+
- **踩坑**:`_doctor_runtime_liveness` / `_doctor_failures` 是**嵌套在 doctor 分支里**定义的(8 空格缩进),我第一次按模块级插入导致 `IndentationError`;已 `git checkout` 回滚重做,按嵌套风格对齐。
|
|
517
|
+
|
|
512
518
|
## 三、已知问题与风险
|
|
513
519
|
|
|
514
520
|
| # | 现象 | 影响 | 处置 |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lingshu-skill",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.0",
|
|
4
4
|
"description": "Brain-inspired persistent memory, persona and growth system for AI coding agents. Local-only, zero-dependency Python. Requires Python 3.10+.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"PATCH_NOTES.md": "9296e524f743f358fd11115598398a754cfd69534526dde9c8ad85f14a418f89",
|
|
3
3
|
"README.md": "3d634d743b085eebd2cbb5dd3a00edfa728ed23947e20cc29e7c3b29087ec043",
|
|
4
|
-
"engine/CHANGELOG.md": "
|
|
5
|
-
"engine/README.md": "
|
|
4
|
+
"engine/CHANGELOG.md": "312da3094b10d1f1287067b02d54fce98a1f7e91e2fc81b763f2fc6edcffff46",
|
|
5
|
+
"engine/README.md": "2f53c9f718b6aee1ff60ccece84884498a2c52a2adbe05d5657bfd550b136e32",
|
|
6
6
|
"engine/SKILL-lite.md": "04b87789232a0f7537c861c857888b4a0e947bcf92a461cbad5328af05361c58",
|
|
7
7
|
"engine/SKILL-tiny.md": "74e1955cc5bf4ec0ca28d52030f799f039283de27a52345a33ce783d6ee0c608",
|
|
8
|
-
"engine/SKILL.md": "
|
|
8
|
+
"engine/SKILL.md": "c618beba0195edc6e463d38547fa50488a58151c0792bf7b34b38c2e4d10d4d7",
|
|
9
9
|
"engine/assets/panel.html": "cdb54b41c363e37d3e85daa971a7d4cb1fd971f1788808ae451e2fac5a21ee8b",
|
|
10
10
|
"engine/docs/commands.md": "454b83814c74d8677c1a02754e4da24c73c1abebaa92a1cdcb0aa0b2e1472432",
|
|
11
11
|
"engine/docs/mechanics.md": "e8a6602a434ed5b78cac64a98884f65a6888eb48daa7a1c0be1f6c3984041b34",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"engine/scripts/check_pressure_sync.py": "46d53934f17c7b740d0ec9fdbef9d2653850f6e01e883eedd70ff9a1527e869a",
|
|
20
20
|
"engine/scripts/check_tag.py": "6f0b8209dc2deebb1f9ec90d429e1fad60c040a2ec014a6406d9d3498faafd7f",
|
|
21
21
|
"engine/scripts/checkpoint.py": "3a9292121042692dc872a865b6ee1c1e5f14c054791887e0791f19ccdb9638fb",
|
|
22
|
-
"engine/scripts/cli.py": "
|
|
22
|
+
"engine/scripts/cli.py": "a2479dce25ddcb4efac8ee09c4ec1627b2119c3c93a5d9b33b3c6bfbde9488ae",
|
|
23
23
|
"engine/scripts/context_ab.py": "3d383f1fc16d328612825bbf731866fa427da0746490d027a0ddb719d210f1cb",
|
|
24
24
|
"engine/scripts/core.py": "778ec1935722c0a32ee0a4b416f6676fd7599541fd1d50b2d78dbe4aaaee60c8",
|
|
25
25
|
"engine/scripts/desktop_shortcut.py": "ac202335a9ce32e12729e04d82e62337b880a49c962945e9112482523ce9cc0b",
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## v4.9(2026-11-24)
|
|
4
|
+
|
|
5
|
+
> 主题:**让"依赖声明悄悄变旧"这件事自己喊出来**(doctor 第 14 项 `app-pin`)。
|
|
6
|
+
|
|
7
|
+
- **背景**:APP profile 把 `lingshu-skill` 声明成 **git 固定 commit**(v3.44),而实际跑的是 `update_app_copy.ps1` 同步进来的新版。后果:插件商店显示旧版本,且在商店点"重装"会按旧 commit **降级**。修它需要 `pnpm install --no-frozen-lockfile`,但该命令在本环境被策略拦截(三次),改不动。
|
|
8
|
+
- **做法**:既然改不动,就别让它静默腐烂——doctor 新增第 14 项 `app-pin`,比对 **声明 spec / `node_modules` 实装版本 / 当前源码版本** 三处;声明是 git 固定 commit 且实装 ≠ 源码时 WARN,并把修复命令原样写进 detail。
|
|
9
|
+
- **实现要点**:APP profile 必须用 `os.listdir` 发现(这些目录名含"长得像 ASCII"的 Unicode 字符,字面路径 `D:\APP` / `.app` 实测都找不到)。
|
|
10
|
+
- **踩坑**:`_doctor_runtime_liveness` / `_doctor_failures` 是嵌套在 doctor 分支里的(8 空格缩进),第一次按模块级插入直接 `IndentationError`;已回滚重做。
|
|
11
|
+
|
|
12
|
+
验证:`tests/test_p15_app_pin.py` 3/3(体检清单含 app-pin / detail 说明声明类型 / 干净 HOME 无 FAIL);实测输出准确报出 `dbfb0a35 → 实装 v4.8.0 / 源码 v4.8`。
|
|
13
|
+
|
|
3
14
|
## v4.8(2026-11-24)
|
|
4
15
|
|
|
5
16
|
> 主题:**两处"删了就没"的地方,改成"能捞回来"**。
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> 名字取自《黄帝内经》:**算力给思考,人格给灵魂,记忆给生命。**
|
|
4
4
|
|
|
5
|
-
> 当前版本 **v4.
|
|
5
|
+
> 当前版本 **v4.9**(变更见 [CHANGELOG.md](CHANGELOG.md))
|
|
6
6
|
|
|
7
7
|
> 🔁 **双仓库镜像**:GitHub(主)与 Gitee(镜像)保持同步——[gitee.com/htmcwy_0/lingshu-skill](https://gitee.com/htmcwy_0/lingshu-skill)。灵枢的更新检查会探测两边最新提交,**谁更新就自动从谁拉取**;任一边不可达(Gitee 匿名风控 / GitHub 限额)时走另一边兜底。
|
|
8
8
|
|
|
@@ -3929,6 +3929,69 @@ def _main(argv=None) -> int:
|
|
|
3929
3929
|
# 六合一体检:已有实现直接复用,不重写逻辑;单项失败不影响其他项
|
|
3930
3930
|
checks = []
|
|
3931
3931
|
|
|
3932
|
+
def _doctor_app_pin() -> tuple:
|
|
3933
|
+
"""APP profile 里 lingshu 依赖声明 vs 实际安装 vs 当前源码(台账 #77)。"""
|
|
3934
|
+
import json as _json
|
|
3935
|
+
import os as _os
|
|
3936
|
+
import re as _re
|
|
3937
|
+
|
|
3938
|
+
home = Path(_os.path.expanduser("~"))
|
|
3939
|
+
prof = None
|
|
3940
|
+
# 用 listdir 拿真实名字:这些目录名可能含"长得像 ASCII"的 Unicode 字符,
|
|
3941
|
+
# 直接拼字面路径会找不到(实测踩过 D:\APP / .app 这类坑)。
|
|
3942
|
+
try:
|
|
3943
|
+
for name in _os.listdir(home):
|
|
3944
|
+
cand = home / name / "profiles" / "desktop"
|
|
3945
|
+
try:
|
|
3946
|
+
if (cand / "package.json").is_file():
|
|
3947
|
+
prof = cand
|
|
3948
|
+
break
|
|
3949
|
+
except OSError:
|
|
3950
|
+
continue
|
|
3951
|
+
except OSError:
|
|
3952
|
+
prof = None
|
|
3953
|
+
if prof is None:
|
|
3954
|
+
return ("app-pin", "PASS", "没发现 APP profile(跳过)")
|
|
3955
|
+
|
|
3956
|
+
try:
|
|
3957
|
+
data = _json.loads((prof / "package.json").read_text(encoding="utf-8-sig"))
|
|
3958
|
+
except Exception as exc: # noqa: BLE001
|
|
3959
|
+
return ("app-pin", "WARN", f"读不了 APP package.json:{exc}")
|
|
3960
|
+
spec = str(((data.get("dependencies") or {}).get("lingshu-skill")) or "")
|
|
3961
|
+
|
|
3962
|
+
installed = ""
|
|
3963
|
+
try:
|
|
3964
|
+
inst = prof / "node_modules" / "lingshu-skill" / "package.json"
|
|
3965
|
+
if inst.is_file():
|
|
3966
|
+
installed = str(_json.loads(
|
|
3967
|
+
inst.read_text(encoding="utf-8-sig")).get("version") or "")
|
|
3968
|
+
except Exception:
|
|
3969
|
+
installed = ""
|
|
3970
|
+
|
|
3971
|
+
src = ""
|
|
3972
|
+
try:
|
|
3973
|
+
root = Path(__file__).resolve().parent.parent
|
|
3974
|
+
m = _re.search(r"^version:\s*([\d.]+)",
|
|
3975
|
+
(root / "SKILL.md").read_text(encoding="utf-8-sig"), _re.M)
|
|
3976
|
+
src = m.group(1) if m else ""
|
|
3977
|
+
except Exception:
|
|
3978
|
+
src = ""
|
|
3979
|
+
|
|
3980
|
+
pinned = bool(_re.search(r"^github:.*#[0-9a-f]{7,}", spec))
|
|
3981
|
+
behind = bool(installed and src and installed != src)
|
|
3982
|
+
if pinned and behind:
|
|
3983
|
+
sha = spec.rsplit("#", 1)[-1][:8]
|
|
3984
|
+
return ("app-pin", "WARN",
|
|
3985
|
+
f"APP 声明钉在旧 commit {sha},实际装 v{installed}、源码 v{src};"
|
|
3986
|
+
f"商店会显示旧版、点重装还会降级。"
|
|
3987
|
+
f"修:把 profile 的 package.json 改成 \"^{src}.0\" 后,"
|
|
3988
|
+
f"在 profile 目录跑 pnpm install --no-frozen-lockfile(需你本人执行)")
|
|
3989
|
+
if pinned:
|
|
3990
|
+
sha = spec.rsplit("#", 1)[-1][:8]
|
|
3991
|
+
return ("app-pin", "PASS",
|
|
3992
|
+
f"声明为 git pin({sha}),实际 v{installed} = 源码 v{src}")
|
|
3993
|
+
return ("app-pin", "PASS", f"声明 {spec[:44] or '(无)'},实际 v{installed}")
|
|
3994
|
+
|
|
3932
3995
|
def _doctor_runtime_liveness() -> tuple:
|
|
3933
3996
|
"""v3.56:插件"装着但不动"自检(v3.53:自动通道全停 6 小时,doctor 还全绿)。
|
|
3934
3997
|
|
|
@@ -4219,6 +4282,12 @@ def _main(argv=None) -> int:
|
|
|
4219
4282
|
except Exception as e:
|
|
4220
4283
|
checks.append(("release-drift", "WARN", f"发布漂移自检失败:{e}"))
|
|
4221
4284
|
|
|
4285
|
+
# 11b. APP 里的依赖声明是否已陈旧(台账 #77)
|
|
4286
|
+
try:
|
|
4287
|
+
checks.append(_doctor_app_pin())
|
|
4288
|
+
except Exception as e:
|
|
4289
|
+
checks.append(("app-pin", "WARN", f"自检失败:{e}"))
|
|
4290
|
+
|
|
4222
4291
|
# 12. v3.56:被吞异常的可数账(failures.jsonl,近七天按类聚合)
|
|
4223
4292
|
try:
|
|
4224
4293
|
checks.append(_doctor_failures())
|
package/scripts/cli.py
CHANGED
|
@@ -3929,6 +3929,69 @@ def _main(argv=None) -> int:
|
|
|
3929
3929
|
# 六合一体检:已有实现直接复用,不重写逻辑;单项失败不影响其他项
|
|
3930
3930
|
checks = []
|
|
3931
3931
|
|
|
3932
|
+
def _doctor_app_pin() -> tuple:
|
|
3933
|
+
"""APP profile 里 lingshu 依赖声明 vs 实际安装 vs 当前源码(台账 #77)。"""
|
|
3934
|
+
import json as _json
|
|
3935
|
+
import os as _os
|
|
3936
|
+
import re as _re
|
|
3937
|
+
|
|
3938
|
+
home = Path(_os.path.expanduser("~"))
|
|
3939
|
+
prof = None
|
|
3940
|
+
# 用 listdir 拿真实名字:这些目录名可能含"长得像 ASCII"的 Unicode 字符,
|
|
3941
|
+
# 直接拼字面路径会找不到(实测踩过 D:\APP / .app 这类坑)。
|
|
3942
|
+
try:
|
|
3943
|
+
for name in _os.listdir(home):
|
|
3944
|
+
cand = home / name / "profiles" / "desktop"
|
|
3945
|
+
try:
|
|
3946
|
+
if (cand / "package.json").is_file():
|
|
3947
|
+
prof = cand
|
|
3948
|
+
break
|
|
3949
|
+
except OSError:
|
|
3950
|
+
continue
|
|
3951
|
+
except OSError:
|
|
3952
|
+
prof = None
|
|
3953
|
+
if prof is None:
|
|
3954
|
+
return ("app-pin", "PASS", "没发现 APP profile(跳过)")
|
|
3955
|
+
|
|
3956
|
+
try:
|
|
3957
|
+
data = _json.loads((prof / "package.json").read_text(encoding="utf-8-sig"))
|
|
3958
|
+
except Exception as exc: # noqa: BLE001
|
|
3959
|
+
return ("app-pin", "WARN", f"读不了 APP package.json:{exc}")
|
|
3960
|
+
spec = str(((data.get("dependencies") or {}).get("lingshu-skill")) or "")
|
|
3961
|
+
|
|
3962
|
+
installed = ""
|
|
3963
|
+
try:
|
|
3964
|
+
inst = prof / "node_modules" / "lingshu-skill" / "package.json"
|
|
3965
|
+
if inst.is_file():
|
|
3966
|
+
installed = str(_json.loads(
|
|
3967
|
+
inst.read_text(encoding="utf-8-sig")).get("version") or "")
|
|
3968
|
+
except Exception:
|
|
3969
|
+
installed = ""
|
|
3970
|
+
|
|
3971
|
+
src = ""
|
|
3972
|
+
try:
|
|
3973
|
+
root = Path(__file__).resolve().parent.parent
|
|
3974
|
+
m = _re.search(r"^version:\s*([\d.]+)",
|
|
3975
|
+
(root / "SKILL.md").read_text(encoding="utf-8-sig"), _re.M)
|
|
3976
|
+
src = m.group(1) if m else ""
|
|
3977
|
+
except Exception:
|
|
3978
|
+
src = ""
|
|
3979
|
+
|
|
3980
|
+
pinned = bool(_re.search(r"^github:.*#[0-9a-f]{7,}", spec))
|
|
3981
|
+
behind = bool(installed and src and installed != src)
|
|
3982
|
+
if pinned and behind:
|
|
3983
|
+
sha = spec.rsplit("#", 1)[-1][:8]
|
|
3984
|
+
return ("app-pin", "WARN",
|
|
3985
|
+
f"APP 声明钉在旧 commit {sha},实际装 v{installed}、源码 v{src};"
|
|
3986
|
+
f"商店会显示旧版、点重装还会降级。"
|
|
3987
|
+
f"修:把 profile 的 package.json 改成 \"^{src}.0\" 后,"
|
|
3988
|
+
f"在 profile 目录跑 pnpm install --no-frozen-lockfile(需你本人执行)")
|
|
3989
|
+
if pinned:
|
|
3990
|
+
sha = spec.rsplit("#", 1)[-1][:8]
|
|
3991
|
+
return ("app-pin", "PASS",
|
|
3992
|
+
f"声明为 git pin({sha}),实际 v{installed} = 源码 v{src}")
|
|
3993
|
+
return ("app-pin", "PASS", f"声明 {spec[:44] or '(无)'},实际 v{installed}")
|
|
3994
|
+
|
|
3932
3995
|
def _doctor_runtime_liveness() -> tuple:
|
|
3933
3996
|
"""v3.56:插件"装着但不动"自检(v3.53:自动通道全停 6 小时,doctor 还全绿)。
|
|
3934
3997
|
|
|
@@ -4219,6 +4282,12 @@ def _main(argv=None) -> int:
|
|
|
4219
4282
|
except Exception as e:
|
|
4220
4283
|
checks.append(("release-drift", "WARN", f"发布漂移自检失败:{e}"))
|
|
4221
4284
|
|
|
4285
|
+
# 11b. APP 里的依赖声明是否已陈旧(台账 #77)
|
|
4286
|
+
try:
|
|
4287
|
+
checks.append(_doctor_app_pin())
|
|
4288
|
+
except Exception as e:
|
|
4289
|
+
checks.append(("app-pin", "WARN", f"自检失败:{e}"))
|
|
4290
|
+
|
|
4222
4291
|
# 12. v3.56:被吞异常的可数账(failures.jsonl,近七天按类聚合)
|
|
4223
4292
|
try:
|
|
4224
4293
|
checks.append(_doctor_failures())
|