Youzini-afk
d8cff92434
Refactor host regex reuse and injection sanitization
2026-04-08 00:10:20 +08:00
Youzini-afk
c32414f720
Fix world info custom filter payload sanitization
2026-04-07 00:05:21 +08:00
Hao19911125
78cd92f707
Add custom world info filter mode
2026-04-06 23:02:04 +08:00
Youzini-afk
8320e3e7f6
Add debug log toggle and silence diagnostic logs
2026-04-06 11:26:37 +08:00
Hao19911125
5404cd7fad
Add detailed block-level diagnostic logging for prompt build
...
Logs all block names/roles/enabled status at loop entry, user-block
content lengths before sanitization, and final execution message counts
to pinpoint exactly where user-role blocks disappear.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-06 09:21:59 +08:00
Hao19911125
bd4e82c12c
Add diagnostic logging for user-block fallback in prompt builder
...
When user-role blocks are missing from executionMessages, logs details
about where content was lost (sanitization, blockedContents, etc.)
to help diagnose why custom extract prompt falls back to hardcoded default.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-06 09:13:36 +08:00
Youzini-afk
12f2a7a6eb
Fix regex stage timing and implicit world info resolution
2026-04-05 18:12:09 +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
e9758feed3
Fix Tavern regex reuse inspection and matching
2026-04-05 02:00:37 +08:00
Youzini-afk
5cc33fabda
Fix task regex final input pipeline
2026-04-05 00:30:54 +08:00
Youzini-afk
07f289ca38
fix: batch 3+4 - reroll abort handling, payload regex skip, README fix, mobile graph controls
2026-03-29 14:47:35 +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
Youzini-afk
9a5c83dbde
fix: align prompt assembly with executed messages
2026-03-27 03:03:50 +08:00
Youzini-afk
c31af1d1a4
Harden runtime debug and task pipeline
2026-03-27 01:26:56 +08:00
Youzini-afk
ae82d89605
fix: reduce startup load risks for plugin init
2026-03-26 23:39:53 +08:00
Youzini-afk
28616fc177
feat: add runtime debug snapshots and injection planning
2026-03-26 23:15:35 +08:00
Youzini-afk
777edf9f9a
feat: integrate host bridge prompt pipeline
2026-03-26 22:24:45 +08:00
Youzini-afk
d31c0325d3
feat: Phase 3 世界书引擎移植 + EJS 支持
...
- 新增 task-worldinfo.js: 从 EW 移植世界书激活/分桶引擎
- 新增 task-ejs.js: 从 EW 移植 EJS 模板渲染引擎
- 新增 vendor/ejs.js: EJS runtime vendor
- prompt-builder.js: 改为异步, 接入 worldInfoBefore/After/atDepth
- prompt-profiles.js: 新增内置块 charDescription/userPersona/worldInfoBefore/After
- 更新 extractor/retriever/compressor/consolidator 接入新 builder
- st-context.js: 扩展 ST 上下文字段兜底
- 新增 tests/task-worldinfo.mjs: 世界书引擎测试
2026-03-26 13:57:07 +08:00
Youzini-afk
c10847793a
feat: add task profile workspace
2026-03-25 20:02:29 +08:00