lingshu-skill 5.9.0 → 5.11.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 +44 -0
- package/README.md +41 -3
- package/SKILL.md +2 -1
- package/assets/panel.html +655 -563
- package/docs//350/277/233/345/261/225/344/270/216/345/276/205/345/212/236.md +20 -0
- package/package.json +1 -1
- package/scripts/astrbot_plugin_lingshu/CHECKSUMS.json +10 -10
- package/scripts/astrbot_plugin_lingshu/engine/CHANGELOG.md +44 -0
- package/scripts/astrbot_plugin_lingshu/engine/README.md +41 -3
- package/scripts/astrbot_plugin_lingshu/engine/SKILL.md +2 -1
- package/scripts/astrbot_plugin_lingshu/engine/assets/panel.html +655 -563
- package/scripts/astrbot_plugin_lingshu/engine/scripts/cli.py +9 -3
- package/scripts/astrbot_plugin_lingshu/engine/scripts/core.py +2 -0
- package/scripts/astrbot_plugin_lingshu/engine/scripts/growth.py +4951 -4753
- package/scripts/astrbot_plugin_lingshu/engine/scripts/panel_server.py +39 -7
- package/scripts/astrbot_plugin_lingshu/engine/scripts/panel_settings.py +3 -0
- package/scripts/astrbot_plugin_lingshu/engine/scripts/panel_update.py +38 -9
- package/scripts/cli.py +9 -3
- package/scripts/core.py +2 -0
- package/scripts/growth.py +4951 -4753
- package/scripts/panel_server.py +39 -7
- package/scripts/panel_settings.py +3 -0
- package/scripts/panel_update.py +38 -9
|
@@ -1608,6 +1608,9 @@ def _main(argv=None) -> int:
|
|
|
1608
1608
|
p_au.add_argument("--check", action="store_true", help="只检查有没有新版本,不安装")
|
|
1609
1609
|
p_au.add_argument("--force", action="store_true", help="忽略 auto_update 开关强制执行一次")
|
|
1610
1610
|
p_au.add_argument("--json", action="store_true")
|
|
1611
|
+
p_au.add_argument("--source", choices=["auto", "npm", "git"], default="auto",
|
|
1612
|
+
help="下载源:auto(npm 优先,失败退回 Gitee/GitHub)/ npm(只走 npm)/ "
|
|
1613
|
+
"git(只走 Gitee/GitHub)")
|
|
1611
1614
|
|
|
1612
1615
|
# 附录 C P2 收尾:触发 + 落盘 + 回滚
|
|
1613
1616
|
p_ss = sub.add_parser("session-summary",
|
|
@@ -2655,15 +2658,17 @@ def _main(argv=None) -> int:
|
|
|
2655
2658
|
|
|
2656
2659
|
if args.cmd == "auto-update":
|
|
2657
2660
|
import panel_update as _pu
|
|
2661
|
+
_src = None if args.source == "auto" else args.source
|
|
2658
2662
|
if args.check:
|
|
2659
|
-
res = _pu.check(force_pull=True)
|
|
2663
|
+
res = _pu.check(force_pull=True, source=_src)
|
|
2660
2664
|
if args.json:
|
|
2661
2665
|
print(json.dumps(res, ensure_ascii=False, indent=2))
|
|
2662
2666
|
return 0
|
|
2663
2667
|
print(f"当前 {res.get('current')} / 最新 {res.get('latest')} "
|
|
2668
|
+
f"(来源 {res.get('source') or 'auto'})"
|
|
2664
2669
|
f"→ {'有新版可更新' if res.get('update_available') else '已是最新'}")
|
|
2665
2670
|
return 0
|
|
2666
|
-
res = _pu.run(force=args.force)
|
|
2671
|
+
res = _pu.run(force=args.force, source=_src)
|
|
2667
2672
|
if args.json:
|
|
2668
2673
|
print(json.dumps(res, ensure_ascii=False, indent=2))
|
|
2669
2674
|
return 0 if res.get("ok") else 1
|
|
@@ -2671,7 +2676,8 @@ def _main(argv=None) -> int:
|
|
|
2671
2676
|
print(f"跳过:{res.get('reason')}")
|
|
2672
2677
|
return 0
|
|
2673
2678
|
if res.get("ok"):
|
|
2674
|
-
print(f"
|
|
2679
|
+
print(f"已更新(来源 {res.get('source') or 'auto'}):"
|
|
2680
|
+
f"{res.get('from')} → {res.get('to')};更新前备份 {res.get('backup')}")
|
|
2675
2681
|
return 0
|
|
2676
2682
|
print(f"[错误] {res.get('reason')}", file=sys.stderr)
|
|
2677
2683
|
return 1
|
|
@@ -340,6 +340,8 @@ DEFAULT_CONFIG = {
|
|
|
340
340
|
# 面板空闲多少分钟自动退出(0 = 永不)。页面挂着长轮询保活(不受后台定时器节流影响),
|
|
341
341
|
# 关掉网页后连接断开 → 到点自退。默认 1 分钟:关掉尽快回收,不占后台。
|
|
342
342
|
"panel_idle_minutes": 1,
|
|
343
|
+
# 更新下载源:auto=npm 优先(失败退回 Gitee/GitHub)/ npm=只走 npm / git=只走 Gitee/GitHub
|
|
344
|
+
"update_source": "auto",
|
|
343
345
|
"auto_update_interval_hours": 24,
|
|
344
346
|
"session_state_cache": False,
|
|
345
347
|
"session_state_ttl": 300,
|