lingshu-skill 5.44.0 → 5.46.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/scripts/cli.py CHANGED
@@ -1109,7 +1109,20 @@ def cmd_startup(query: str = "", budget: int | None = None,
1109
1109
  _ab_report = None
1110
1110
  # v3.59:--minimal 走"极简注入"——resume 续聊默认用它(历史里已有完整记忆块,
1111
1111
  # 再来一份就是同一段上下文出现两遍)。省略技能库/人格自检、预算 ×0.45。
1112
- print(build_injection(query, budget, report=_ab_report, minimal=minimal))
1112
+ # SPEED-2(v5.45):面板常驻时优先走 serve 快路径拿注入包——跳过本进程
1113
+ # 的模块装配与冷读盘(实测省 ~150-200ms)。失败/超时/只读一律静默回退本进程。
1114
+ _packet = None
1115
+ if not READONLY:
1116
+ try:
1117
+ import startup_fast as _sf
1118
+ if (load_config().get("startup_use_serve", True)):
1119
+ _packet = _sf.try_serve_startup(query, budget)
1120
+ except Exception:
1121
+ _packet = None
1122
+ if _packet:
1123
+ print(_packet)
1124
+ else:
1125
+ print(build_injection(query, budget, report=_ab_report, minimal=minimal))
1113
1126
  # 水位提醒块:与 status 同一实现(memory._water_level),别两套口径。
1114
1127
  try:
1115
1128
  wl = memory._water_level()