Commit Graph

12 Commits

Author SHA1 Message Date
Youzini-afk
eaac52473e Fix CI test compatibility on Node 20 2026-04-10 15:14:19 +08:00
Youzini-afk
3be915ba7a Fix host import paths after directory reorganization 2026-04-08 01:39:45 +08:00
Youzini-afk
feec17f3e3 Reorganize modules into layered directories 2026-04-08 01:17:57 +08:00
Youzini-afk
d8cff92434 Refactor host regex reuse and injection sanitization 2026-04-08 00:10:20 +08:00
Hao19911125
f21f2c4c1d Align custom world info rendering with ST runtime 2026-04-07 15:15:33 +08:00
Youzini-afk
f998553ab0 Revert "Merge PR #7: notice display and MVU diagnostics"
This reverts commit cdf6111482, reversing
changes made to 0d8dcb63d2.
2026-04-05 17:16:05 +08:00
Hao19911125
507f3b15d3 Add MVU sanitize warning diagnostics 2026-04-05 16:40:20 +08:00
Hao19911125
6a773265ff Fix: passive MVU sanitize mode for task input fields
用户原文字段(recentMessages/charDescription/userPersona/candidateNodes 等)
现在使用 passive mode 清洗——只剥离 MVU 容器/宏,不整段 drop。
这修复了含 MVU 状态栏角色卡时提取 LLM 收到空 context 的问题。

- mvu-compat.js: 导出 MVU_SANITIZE_MODES 常量,passive 分支显式注释
- prompt-builder.js: 加 INPUT_CONTEXT_FIELD_MODE 策略表,
  sanitizePromptContextInputs 按字段族查表传 mode;
  关键字段 omit 时 warn(兜底告警)
- 世界书条目路径(sanitizeWorldInfoEntries)保持 aggressive,守卫 6cec031 正收益
- 新增 6 条测试:passive 字段族不被整段 drop + worldInfo 仍 aggressive + warn 路径

Refs: mvu-aggressive-strip-regression-plan.md

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 16:26:43 +08:00
Youzini-afk
5cc33fabda Fix task regex final input pipeline 2026-04-05 00:30:54 +08:00
Youzini-afk
6cec03182b Fix MVU stripping order for world info prompts 2026-03-29 12:07:19 +08:00
Youzini-afk
67e6e29bb2 Harden recall flow and JSON task prompts 2026-03-28 20:38:57 +08:00
Youzini-afk
cf4a73e0a8 feat: MVU规则模块+世界书MVU过滤+prompt组装MVU清洗+端到端测试 2026-03-27 15:22:00 +08:00