Commit Graph

74 Commits

Author SHA1 Message Date
RT15548
11e48f8dc5 纳入小白板内容+世界书读取逻辑修正 (#23) (#25)
* Strip everything before and including </think> (handles unclosed think blocks)

* Log 样式优化

* Log样式优化

* 小白板内容曝露给ena-planner

* 小白板内容曝露给ena-planner

* 修正世界书宏读取问题

* 修正summary触发绿灯的问题

* 向量存储到ST端

* 向量存储到ST端

* 向量到ST服务器

* 向量存储到ST端

* backup file名称修正

* 存取向量逻辑修正

* 切聊天时清掉旧 summary

* 新增向量备份管理 UI(清单 + Modal)

- vector-io.js:新增 fetchManifest / upsertManifestEntry / deleteServerBackup 等清单管理函数;backupToServer 成功后自动写入 LWB_BackupManifest.json
- story-summary.html:在服务器 IO 区域新增「管理」按钮及独立 Modal 弹窗
- story-summary-ui.js:新增备份列表渲染、删除确认、只读模式降级逻辑
- story-summary.js:新增 VECTOR_LIST_BACKUPS / VECTOR_DELETE_BACKUP 消息处理



* 备份管理 Modal 移至父窗口,修复层级与配色问题

- Modal 从 iframe 移到父窗口 DOM(z-index:100000),不再被 settings modal 遮挡
- 改为白底深色文字,配色清晰可读
- 删除逻辑直接在父窗口调用,无需跨帧消息
- 简化 story-summary-ui.js,移除 modal 相关代码



* 删除聊天时自动清理服务器向量备份

- vector-io.js:导出 getBackupFilename
- story-summary.js:监听 CHAT_DELETED / GROUP_CHAT_DELETED,静默删除对应 zip 和清单条目



* 修复 serverPath 含前导斜杠导致删除失败的问题

buildSafeServerPath 比较前 strip 前导 /,upsertManifestEntry 写入前同样 normalize,
确保清单和校验逻辑使用统一格式



* normalizeManifestEntry 读取时同步 strip serverPath 前导斜杠

补全斜杠 normalize 的覆盖点:写入(upsertManifestEntry)、校验(buildSafeServerPath)、
读取(normalizeManifestEntry)三处统一,旧清单条目自动修正



* 重要NPC生成路径:拆分添加按钮 + 完整角色档案模板

- 陌路人卡片"添加"按钮拆为"重要"(importantNpc)和"背景板"(npc)两个
- 新增 importantNpc 生成路径,传递 npcType 贯穿 genAddCt → CHECK_STRANGER_WORLDBOOK_RESULT → GENERATE_NPC_RESULT
- 新增 importantNpc JSON 模板:白描外貌、世界观适配、性格调色盘+衍生、台词示例、结构化二次解释
- 新增 importantNpc UAUA 提示词:内嵌白描规则+正反示范、调色盘衍生写法指导



* 高级设置模板编辑器加注授权声明



* 授权声明仅在重要NPC生成模板下显示



---------

Co-authored-by: Hao19911125 <99091644+Hao19911125@users.noreply.github.com>
Co-authored-by: LittleWhiteBox Dev <dev@littlewhitebox.local>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 00:50:14 +08:00
RT15548
80f7e37843 fix JSON output template for stranger extraction 2026-03-18 22:40:20 +08:00
RT15548
fb65573a4f 3.15Update
本次调整:
wrapper-inline.js:新增数据中继(这可能不安全,但是别人提的意见)
scheduled-tasks.js:解除了插件必须等待上一个任务进程完成的限制,同时新增了一键清理进行中的任务(/xbtaskreset)。
xbgen流式命令:支持<varevent>和{{xbgetvar::}}语法
2026-03-15 01:25:56 +08:00
Hao19911125
d217323fdf 前文截掉</think>以前+Log显示优化 (#22)
* Strip everything before and including </think> (handles unclosed think blocks)

* Log 样式优化

* 小白板内容曝露给ena-planner
2026-03-02 23:37:51 +08:00
RT15548
3048b2885a Add files via upload 2026-02-28 21:44:17 +08:00
RT15548
2a7a7fa669 Merge branch 'test' into main 2026-02-28 21:24:17 +08:00
Hao19911125
6e2b3dcdaa Update ena-planner.js 2026-02-28 11:50:03 +08:00
Hao19911125
19ffd157b4 自动去 message 层级获取变量+暴露整个 vars 对象 2026-02-28 11:32:00 +08:00
RT15548
69beb7ff0d Update ena-planner.html 2026-02-26 16:15:53 +08:00
RT15548
b521419e21 Update subtitle to include creator's name 2026-02-26 16:13:03 +08:00
RT15548
c3bb162a10 feat: updates to test branch 2026-02-25 23:58:05 +08:00
Hao19911125
54598d40d7 new (#14)
* Update story-summary.js

* Update settings.html

* Update index.js

* Create ena-planner

* Delete modules/ena-planner

* Add files via upload

* Update manifest.json

* Rename ena-planner.js.js to ena-planner.js

* Rename ena-planner.css.css to ena-planner.css

* Update ena-planner.js

* Create sync-upstream.yml

* Update ena-planner.js

* Update ena-planner.js

* Update ena-planner.css

* Update ena-planner.js

* Update ena-planner.js

* Update ena-planner.js

* Update ena-planner.js

* Update ena-planner.js

* Update ena-planner.js

* Update manifest.json

* Delete .github/workflows/sync-upstream.yml

---------

Co-authored-by: Hao19911125 <hao19911125@users.noreply.github.com>
Co-authored-by: GH Action - Upstream Sync <action@github.com>
Co-authored-by: RT15548 <168917470+RT15548@users.noreply.github.com>
2026-02-24 18:20:22 +08:00
RT15548
a56ae37d4e fix: persist story-summary relationships and sync local changes
Add functions to parse relationships and merge facts
2026-02-24 15:31:12 +08:00
RT15548
a86aa999c3 feat(story-summary): default hide summarized to enabled 2026-02-24 13:53:34 +08:00
RT15548
4ee528621f 修复-世界推演 2026-02-19 23:30:39 +08:00
RT15548
4e8424ed17 四次元壁鉴权模式,claude4.6预填充等等 2026-02-19 00:46:13 +08:00
RT15548
9e92a9d1b5 Add files via upload 2026-02-17 23:12:35 +08:00
RT15548
4bbc2f9fd5 Add files via upload 2026-02-17 22:45:01 +08:00
RT15548
59e7301bf8 Add files via upload 2026-02-17 15:24:39 +08:00
RT15548
50ebef2970 Delete modules/story-summary/llm-service.js 2026-02-17 15:23:48 +08:00
RT15548
cd9fe53f84 2.0变量 , 向量总结正式推送 2026-02-16 00:30:59 +08:00
RT15548
17b1fe9091 Add files via upload 2026-02-06 00:30:49 +08:00
RT15548
664dc2e61c Add files via upload 2026-02-04 16:21:01 +08:00
RT15548
9a84ad3cc4 UI 2026-02-04 15:41:39 +08:00
RT15548
0477a0e6da Add files via upload 2026-02-04 15:34:48 +08:00
RT15548
8d8dc61822 Add files via upload 2026-02-04 15:33:43 +08:00
RT15548
079cadca36 Delete modules/wallhaven-background.js 2026-01-22 13:38:38 +08:00
RT15548
29b0ae5824 Add files via upload 2026-01-21 14:45:03 +08:00
RT15548
761486f25b . 2026-01-21 12:20:42 +08:00
RT15548
4c26cb7e5b Delete modules/story-outline/story-summary.js 2026-01-21 12:01:02 +08:00
RT15548
67872c20b9 Add files via upload 2026-01-21 12:00:37 +08:00
RT15548
3a42b61d4d Delete modules/story-summary.js 2026-01-21 12:00:23 +08:00
RT15548
ecc92c6f63 Add files via upload 2026-01-21 11:59:54 +08:00
RT15548
1e04d36919 调整未总结时无法保存隐藏已总结楼层的bug 2026-01-21 11:41:45 +08:00
RT15548
e56cfa6a18 调整为默认不传参数的模式 2026-01-21 11:40:37 +08:00
RT15548
d1a4aca025 调整1.0鉴权音色方式 2026-01-20 10:36:35 +08:00
Air
844707e16d 增加强制插入功能和NoAss标记 2026-01-19 19:08:38 +08:00
EVA09
47eccd0e7a Merge branch 'RT15548:main' into main 2026-01-19 12:43:39 +08:00
RT15548
0a58b11876 Add files via upload 2026-01-18 23:26:51 +08:00
RT15548
03ba508a31 1.18更新 2026-01-18 20:04:43 +08:00
EVA09
d424933ad9 Merge branch 'RT15548:main' into main 2026-01-18 13:52:49 +08:00
RT15548
be142640c0 Update story-summary.html 2026-01-16 10:56:58 +08:00
RT15548
fae4e40f4b Add files via upload 2026-01-15 19:16:00 +08:00
EVA09
7e0f2404bb Fix depth assignment in story-summary.js 2026-01-15 10:12:15 +08:00
EVA09
c3efac8def 强制将总结深度下降到最后 2026-01-15 09:55:38 +08:00
RT15548
eace36cbdb Add files via upload 2026-01-07 00:41:11 +08:00
RT15548
88c923cb0f 2026-01-06 17:28:06 +08:00
RT15548
5f5f20136a Add files via upload 2026-01-05 21:39:24 +08:00
RT15548
a68c8259c7 Add files via upload 2026-01-05 10:35:22 +08:00
RT15548
d1c54be71b a 2026-01-04 16:44:55 +08:00