cortico-world-fun 0.8.0 → 0.8.1

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 CHANGED
@@ -2,14 +2,14 @@
2
2
 
3
3
  市场按 `##` 标题里的版本号切段,显示在「历史版本」里。
4
4
 
5
- ## 0.8.0
5
+ ## 0.8.1
6
6
 
7
7
  一次原地收拢:四个面板、15 个声明工具(默认可用 14 个),自由故事默认开启。新增字段只补充能力;旧存档的心愿、路线和时间线数据继续读取并写回。仅对已下线的普通游逛旧岔路做清理并提示;选项式故事自己的待选项仍可继续。
8
8
 
9
9
  ### 面板:7 → 4
10
10
 
11
11
  - 面板为「家」「自己去逛」「故事手账」「回忆手账」。story 的面板 ID 保持不变,标题为「故事手账 / Story Journal」。
12
- - 「自己去逛」合并此刻推荐与地点册;「回忆手账」合并行程与珍藏柜;故事手账首屏优先展示四张自由故事卡,选项式故事与作者工具收在「更多故事」里。
12
+ - 「自己去逛」合并此刻推荐与地点册;「回忆手账」合并行程与珍藏柜;故事手账首屏优先展示四张自由故事卡,作品与作者功能直接呈现,选项式故事收在目录内的「更多故事」里。
13
13
  - 宿主不再打开旧面板深链:`places` / `locations` 改用 `outing`,`book` / `shelf` 改用 `journal`,`stories` 改用 `story`。
14
14
  - 心愿管理与路线管理界面下线;历史行程仍能逐趟检索,旧联程数据保留。已有联程可用 fun_go 前往下一站;改去别处会停止后续联程,但不会删除原记录。
15
15
 
@@ -22,7 +22,8 @@
22
22
 
23
23
  ### 配置与故事
24
24
 
25
- - 配置页有 3 项常用设置;宿主没有可用的高级分组,另外 15 项仍在宿主配置页,标题加「高级 ·」区分。宿主默认/外接 DM 与关闭/委派/ComfyUI 直连分别由选择器控制。
25
+ - 配置页有 3 项常用设置;宿主没有可用的高级分组,另外 12 项仍在宿主配置页,标题加「高级 ·」区分。
26
+ - 主持方式、接口地址、模型名与 API Key 全部在「故事手账 → 设置 → 高级设置」一处配置,配置页不再出现这三项;剧情图片的关闭/委派/ComfyUI 直连也在同一页由选择器控制。
26
27
  - DPAPI 密钥改为按需加载;不开启外接 DM 时不读取密钥。外接失败仍回退宿主主持并在回执说明,不擅自改配置。
27
28
  - 自由故事默认开启,单段默认 200 回合软上限;四张内置自由故事卡置顶。多人 actions 汇总一轮一次推进,纯文本兜底上限 1500 字,redo 与故事检查点、幂等保护保留。
28
29
  - 故事包绑定的地点不存在时会在导入前报出,可当场改绑到现有地点;已入库的作品也可以从作者区改绑,不需要手改 JSON。
package/dist/webui.js CHANGED
@@ -8102,15 +8102,11 @@ function mountJournal(ctx) {
8102
8102
  function mountStoryJournal(ctx) {
8103
8103
  const doc = ctx.root.ownerDocument;
8104
8104
  const main = doc.createElement("section");
8105
- const more = doc.createElement("details");
8106
- more.className = "fun-more-stories";
8107
- const summary = doc.createElement("summary");
8108
- summary.textContent = "更多故事";
8109
- const authors = doc.createElement("div");
8110
- more.append(summary, authors);
8111
- ctx.root.replaceChildren(main, more);
8105
+ const library = doc.createElement("section");
8106
+ library.className = "fun-story-library";
8107
+ ctx.root.replaceChildren(main, library);
8112
8108
  mountFishStory({ ...ctx, root: main });
8113
- mountStories({ ...ctx, root: authors });
8109
+ mountStories({ ...ctx, root: library });
8114
8110
  }
8115
8111
  var testMounts = { home: mountHome, places: mountPlaces2, locations: mountPlaces, story: mountFishStory, stories: mountStories, book: mountBook, shelf: mountShelf };
8116
8112
  var webui_default = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortico-world-fun",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "type": "module",
5
5
  "description": "从0开始的肥鱼大冒险:四个面板(家、故事手账、自己去逛、回忆手账),15 个工具(默认可用 14 个),自由故事、地点探索与本地回忆。",
6
6
  "license": "MIT",
package/src/config.js CHANGED
@@ -311,15 +311,9 @@ export function configGroup(language = 'zh') {
311
311
  type: 'integer', title: advanced('funStoryNodeLimit'), description: t.funStoryNodeLimitDesc,
312
312
  minimum: 0, maximum: Number.MAX_SAFE_INTEGER, 'x-suffix': ' 个节点',
313
313
  },
314
- [`${K}.funStoryDM`]: {
315
- type: 'boolean', title: advanced('funStoryDM'), description: t.funStoryDMDesc,
316
- },
317
- [`${K}.funStoryDmUrl`]: {
318
- type: 'string', title: advanced('funStoryDmUrl'), description: t.funStoryDmUrlDesc,
319
- },
320
- [`${K}.funStoryDmModel`]: {
321
- type: 'string', title: advanced('funStoryDmModel'), description: t.funStoryDmModelDesc,
322
- },
314
+ // 主持方式、接口地址与模型名不在这里出现:它们和 API Key 一起放在
315
+ // 「故事手账 → 设置 → 高级设置」,一处配完。DEFAULTS 里仍保留这三个键,
316
+ // 面板保存走 #saveStorySettings 写回 cfg。
323
317
  [`${K}.funStoryImages`]: {
324
318
  type: 'boolean', title: advanced('funStoryImages'), description: t.funStoryImagesDesc,
325
319
  },