cortico-world-fun 0.9.1 → 0.9.2

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,6 +2,11 @@
2
2
 
3
3
  市场按 `##` 标题里的版本号切段,显示在「历史版本」里。
4
4
 
5
+ ## 0.9.2
6
+
7
+ - **跨 World 联动开关默认关闭**:`funShareAfter`(含兼容别名 `funAskReport`)与 `funTasteFromFeast` 默认值改为 `false`,避免向未安装「鱼的每一天」的用户默认推荐 `feast_life_adjust` / `feast_life_play` / `feast_eat` 等外部工具;`fun_go` 进门与 `fun_home` 回家回执严格受 `funShareAfter` 开关控制。已安装联动插件的用户可在设置中按需手动开启。
8
+ - **文档与测试同步**:更新配置说明、安装脚本默认键与用户手册,并补充默认关闭态的联动隔离回归校验。
9
+
5
10
  ## 0.9.1
6
11
 
7
12
  - **「鱼的家」沉浸式改版**:去掉外围标题和长折叠表单,房间铺满舞台,顶部用手账 HUD 显示状态,底部换成悬浮毛玻璃 Dock,只留「换姿势 / 留灯 / 记一笔 / 装修」4 个按钮;换姿势点开是向上弹出的 `2×5` 网格气泡。宽屏(`>=560px`)保持 `16:9`,窄屏(`<560px`)自动切为 `4:5`,给角色和按钮留足空间。
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  - `fun_places` 看今天哪几处开着、人多不多(按开放时段和拥挤度排,不是随机给);
8
8
  - `fun_go` 进门,回执是进门那一下看到的样子和这一处能逛什么;
9
9
  - `fun_wander` 一处一处地逛:过山车、鲸豚湾、捞金鱼、同人展台;顺手能买纪念品、拍张照;
10
- - `fun_home` 回家,回执把这一趟收成一句话,**交给她 `feast_life_play` 记进自己的日程**,并告诉生图该填哪个场景名;
10
+ - `fun_home` 回家,回执把这一趟收成一句话,并告诉生图该填哪个场景名;若已安装「鱼的每一天」,可按需开启 `funShareAfter`,提醒她用 `feast_life_play` 记进自己的日程(默认关闭);
11
11
  - `fun_journal` 行程与珍藏:这些趟攒下来的东西按地方归着,写清哪件在哪儿哪天拿到的、还差什么没逛。
12
12
 
13
13
  二十处场所、每处 5–8 个可逛的项目、纪念品、拍照点和随机小事件都是**内置**的,装完就能用,不依赖任何别的扩展。
@@ -291,11 +291,11 @@ fun_story_act { tripId, stamp, intent: "close", confirm: true }
291
291
 
292
292
  | 开关 | 吃喝的回执 |
293
293
  |---|---|
294
- | **开**(默认) | 「装了鱼的每一天就用 `feast_menu` → `feast_eat` 点一道真的,那里才有九维口感、香气和余韵」 |
295
- | **关** | 只说「你在这儿喝了什么」,**一个字都不提味道** |
294
+ | **开** | 「装了鱼的每一天就用 `feast_menu` → `feast_eat` 点一道真的,那里才有九维口感、香气和余韵」 |
295
+ | **关**(默认) | 只说「你在这儿喝了什么」,**一个字都不提味道**,也不提示外部吃喝工具 |
296
296
 
297
297
  ⚠️ **这不是自动检测**。World 契约不允许一个 World 去探测别的扩展装没装
298
- (探测本身就是依赖,认证会查)。所以「鱼的每一天」装没装都要你自己拨这一项。
298
+ (探测本身就是依赖,认证会查)。此项默认关闭;若已安装「鱼的每一天」可按需开启。
299
299
  但两条路都**不编味道**:开着时她调不到 `feast_eat`,也会自然退回「只说喝了什么」。
300
300
 
301
301
  ## 名字、项目与事件要对得上
@@ -395,7 +395,7 @@ fun_story_act { tripId, stamp, intent: "close", confirm: true }
395
395
 
396
396
  咖啡店、奶茶店、餐厅、夜市这四处**能吃到能喝到**,但本插件只有**品类名**(拿铁、珍珠奶茶、一桌热菜),没有九维口感、香气、余韵,也没有实吃描写——**那些全在「鱼的每一天」的菜品库里,而本插件绝不读它**。
397
397
 
398
- 所以 `fun_wander` 的回执是这样的:
398
+ 默认关闭味道联动,只记录吃喝品类,不提示外部工具。若已安装「鱼的每一天」,按需开启 `funTasteFromFeast` 后,`fun_wander` 的回执是这样的:
399
399
 
400
400
  ```
401
401
  喝了:珍珠奶茶。
@@ -405,7 +405,7 @@ fun_story_act { tripId, stamp, intent: "close", confirm: true }
405
405
  你才能说得出九维口感、香气和余韵;没装就只说在这儿喝了什么,一句人话,别形容味道。
406
406
  ```
407
407
 
408
- - **装了 feast**:她自己 `feast_menu` → `feast_eat`,味道从那边来。
408
+ - **装了 feast 且开启联动**:她自己 `feast_menu` → `feast_eat`,味道从那边来。
409
409
  - **没装 feast**:她只知道「我在奶茶店喝了杯珍珠奶茶」。**没有九维、没有香气余韵,也不编。** 这正是要的降级。
410
410
  - 本插件**永远不会去探测 feast 装没装**(那本身就是一种依赖),所以这段话同时给两条路,让她按手头有什么走。
411
411
 
@@ -454,10 +454,10 @@ fun_story_act({tripId, stamp, intent:"auto", token, batch:5})
454
454
  |---|---|---|
455
455
  | `funOn` | `true` | 总开关。关掉=不注入场所清单,工具和面板照旧可用 |
456
456
  | `funAutoOuting` | `false` | 主人允许她自己出门;只是许可,不带自己的时段、叫醒或定时器。几点算她自己的时间跟着「鱼的每一天」;本插件不读对方日程、不挑地方、不替她出门 |
457
- | `funShareAfter` | `true` | 回家回执提醒她 `feast_life_play` 记一笔、跟主人说一句;只提醒,不代写日程 |
457
+ | `funShareAfter` | `false` | 默认关闭;若已安装「鱼的每一天」可按需开启,回家回执提醒她 `feast_life_play` 记一笔、跟主人说一句;只提醒,不代写日程 |
458
458
  | `funSessionTTLMin` | `90` | 高级。一趟多久不再算「正在逛」(15–480 分钟);不会催她回家,也不替她记 |
459
459
  | `funTerseReceipts` | `false` | 高级。缩短进门、游逛、回家回执,保留可操作字段和实际收获,配图详情在面板查看 |
460
- | `funTasteFromFeast` | `true` | 高级。吃喝的味道去不去「鱼的每一天」拿(关掉只说吃喝、不提味道);不是自动探测,装没装都要自己拨 |
460
+ | `funTasteFromFeast` | `false` | 高级。默认关闭;若已安装「鱼的每一天」可按需开启吃喝味道联动(关掉只说吃喝、不提味道或外部吃喝工具);不是自动探测 |
461
461
  | `funStoryNodeLimit` | `16` | 高级。新建/导入故事最多几个节点;0 = 不限,单篇仍限 32 KB;改小不删除或阻断已有故事 |
462
462
  | `funStoryImages` | `false` | 高级。剧情图片总闸;故事手账高级设置也可选择关闭、委派或本机 ComfyUI;直连仍需手动触发 |
463
463
  | `funStoryAutoImages` | `true` | 高级。自动准备配图参数,只对委派型来源生效;故事页顶部也有同一开关,无行程或总闸关时禁用 |
@@ -469,7 +469,7 @@ fun_story_act({tripId, stamp, intent:"auto", token, batch:5})
469
469
  | `funAutoSteps` | `20` | 高级。鱼自己玩每段最多几步(1–200),不限制你的手动操作 |
470
470
  | `funAutoCalls` | `6` | 高级。鱼自己玩每段最多几次决定(1–120);自由模式每句另有一次主持调用,合计两次真实模型请求 |
471
471
 
472
- **兼容旧键**:`funHomeAutoGo` → `funAutoOuting`(默认 `false`);`funAskReport` → `funShareAfter`(默认 `true`)。旧配置仍可读取和迁移,配置组不重复显示这两个别名。
472
+ **兼容旧键**:`funHomeAutoGo` → `funAutoOuting`(默认 `false`);`funAskReport` → `funShareAfter`(默认 `false`;若已安装「鱼的每一天」可按需开启)。旧配置仍可读取和迁移,显式设为 `true` 的联动设置会保留,配置组不重复显示这两个别名。
473
473
 
474
474
  **主持设置不在配置页**:`funStoryDM`(默认 `false`,即「宿主默认」)、`funStoryDmUrl`(默认空)、`funStoryDmModel`(默认空)仍在底层配置中保存,但统一在「故事手账 → 设置 → 高级设置」选择和填写。选「外接接口」才显示地址、模型与 API Key;密钥只存本机 Windows DPAPI 密文,不进普通配置。该页的修改需点「保存设置」。
475
475
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortico-world-fun",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "type": "module",
5
5
  "description": "给 Coo 的出门、房间、故事与回忆:二十多处可逛场所、四篇选项式与五篇自由故事、2D 房间与纪念品,数据只存本机。",
6
6
  "license": "MIT",
package/src/config.js CHANGED
@@ -25,14 +25,14 @@ export const DEFAULTS = Object.freeze({
25
25
  funOn: true,
26
26
  /** 新配置名;旧名 funHomeAutoGo 在读取与迁移时兼容。 */
27
27
  funAutoOuting: false,
28
- /** 新配置名;旧名 funAskReport 在读取与迁移时兼容。 */
29
- funShareAfter: true,
28
+ /** 默认关闭;若已安装「鱼的每一天」可按需开启。旧名 funAskReport 在读取与迁移时兼容。 */
29
+ funShareAfter: false,
30
30
  /** 一次出游挂多久自动回家(分钟)。到点不催,只是不再算「正在逛」。 */
31
31
  funSessionTTLMin: 90,
32
32
  funTerseReceipts: false,
33
33
  funPanelNotifyOnGo: true,
34
- /** 回家回执要不要提醒她 feast_life_play 记一笔、跟主人说一句。 */
35
- funAskReport: true,
34
+ /** funShareAfter 的兼容别名,默认关闭;若已安装「鱼的每一天」可按需开启回家记账提醒。 */
35
+ funAskReport: false,
36
36
  /**
37
37
  * 吃喝的味道去不去「鱼的每一天」拿。
38
38
  *
@@ -42,10 +42,9 @@ export const DEFAULTS = Object.freeze({
42
42
  * true → 吃喝的回执会写「用 feast_menu / feast_eat 去点一道真的,那里才有九维口感」
43
43
  * false → 只写「你在这儿喝了什么」,一个字都不提味道
44
44
  *
45
- * 默认 true:装了鱼的每一天是常见情况;没装时她调不到 feast_eat,会自己退回
46
- * 「只说我喝了什么」——所以开着也不会编味道。
45
+ * 默认关闭;若已安装「鱼的每一天」可按需开启。未开启时不提示外部吃喝工具。
47
46
  */
48
- funTasteFromFeast: true,
47
+ funTasteFromFeast: false,
49
48
  /**
50
49
  * 「家」的「允许她自己出门」:默认关;只是许可,不带自己的叫醒时段。
51
50
  * 时段跟着「鱼的每一天」的「她自己的时间」走——本 World 不读它的日程、不挑地方。
@@ -120,7 +119,7 @@ const ZH = {
120
119
  funOn: '开着',
121
120
  funOnDesc: '总开关。关掉之后不往提示词里注入场所清单;工具和面板照旧可用,她想逛随时能逛。',
122
121
  funShareAfter: '回家说一声',
123
- funShareAfterDesc: '开启时,回家回执会提醒她把「今天逛了什么」用 feast_life_play 记进自己的日程,再跟主人说一句。关掉就只给这段文字,不提记账。',
122
+ funShareAfterDesc: '默认关闭;若已安装「鱼的每一天」可按需开启。开启时,回家回执会提醒她把「今天逛了什么」用 feast_life_play 记进自己的日程,再跟主人说一句。关掉就只给这段文字,不提记账。',
124
123
  funAutoOuting: '家:允许她自己出门',
125
124
  funAutoOutingDesc: '打开后,她自己出门的许可跟着「鱼的每一天」的「她自己的时间」走:那边叫醒她时,先看当天日程(feast_life_now),自由就出门、写着上班睡觉就不出门。本插件不再单独设「自己出门的时段」,也不读对方的日程、不挑地方、不会自己把她送出门。默认关闭。',
126
125
  funSessionTTLMin: '一趟逛多久',
@@ -132,9 +131,9 @@ const ZH = {
132
131
  funStoryAutoImageCadenceDesc: '默认 segment:只在首幕、选项式故事换地点或节点、自由模式段落结束或暂停、以及结局时准备配图;step:每步都准备。手动「给你画一张」不受节奏限制。',
133
132
  funTerseReceiptsDesc: '默认关闭。开启后缩短进门、游逛和回家的描写,保留可逛项目、纪念品、拍照点、吃喝品类和实际收获;配图详情可在面板查看。',
134
133
  funAskReport: '回家说一声',
135
- funAskReportDesc: '开启时,回家回执会提醒她把「今天逛了什么」用 feast_life_play 记进自己的日程,再跟主人说一句。关掉就只给这段文字,不提记账。',
134
+ funAskReportDesc: '默认关闭;若已安装「鱼的每一天」可按需开启。开启时,回家回执会提醒她把「今天逛了什么」用 feast_life_play 记进自己的日程,再跟主人说一句。关掉就只给这段文字,不提记账。',
136
135
  funTasteFromFeast: '吃喝的味道去「鱼的每一天」拿',
137
- funTasteFromFeastDesc: '开启时,咖啡店/奶茶店/餐厅/夜市的回执会让她用 feast_menu → feast_eat 去「鱼的每一天」点一道真的,那里才有九维口感、香气和余韵。关掉就只说「在这儿喝了什么」,一个字都不提味道。\n\n注意:这不是自动检测——本插件不会去探测别的扩展装没装(World 契约不允许互相依赖)。所以装没装都要你自己定这一项:装了鱼的每一天建议开着。',
136
+ funTasteFromFeastDesc: '默认关闭;若已安装「鱼的每一天」可按需开启。开启时,咖啡店/奶茶店/餐厅/夜市的回执会让她用 feast_menu → feast_eat 去「鱼的每一天」点一道真的,那里才有九维口感、香气和余韵。关掉就只说「在这儿喝了什么」,一个字都不提味道。\n\n注意:这不是自动检测——本插件不会去探测别的扩展装没装(World 契约不允许互相依赖),需要你手动选择是否开启。',
138
137
  funHomeAutoGo: '家:允许她自己出门',
139
138
  funHomeAutoGoDesc: '打开后,她自己出门的许可跟着「鱼的每一天」的「她自己的时间」走:那边叫醒她时,先看当天日程(feast_life_now),自由就出门、写着上班睡觉就不出门。本插件不再单独设「自己出门的时段」,也不读对方的日程、不挑地方、不会自己把她送出门。默认关闭。',
140
139
  funStoryDM: '可选文本主持',
@@ -190,7 +189,7 @@ const EN = {
190
189
  funOn: 'Enabled',
191
190
  funOnDesc: 'Master switch. Off: no venue list in the prompt; the tools and panel still work, she can go any time.',
192
191
  funShareAfter: 'Say something at the end',
193
- funShareAfterDesc: 'When on, the closing receipt reminds her to log the trip with feast_life_play and tell the owner one sentence.',
192
+ funShareAfterDesc: 'Off by default; enable as needed if Fish Every Day is installed. When on, the closing receipt reminds her to log the trip with feast_life_play and tell the owner one sentence.',
194
193
  funAutoOuting: 'Home: let her go out on her own',
195
194
  funAutoOutingDesc: 'On: her permission to head out follows "her own time" in Fish Every Day. When that wake-up arrives she checks the day\'s schedule (feast_life_now) first — go out if the stretch is free, stay in if it says work or sleep. This plugin no longer keeps its own time slots, does not read the other world\'s schedule, never picks a place and never sends her out by itself. Off by default.',
196
195
  funSessionTTLMin: 'A trip lasts',
@@ -202,9 +201,9 @@ const EN = {
202
201
  funStoryAutoImageCadenceDesc: 'Default segment: prepare images at the opening, choice-story place or node changes, free-mode segment ends or pauses, and endings. Use step for every step. The manual drawing button is always independent of this cadence.',
203
202
  funTerseReceiptsDesc: 'Off by default. Shorten arrival, wandering and home receipts while keeping areas, souvenirs, photo spots, food categories and actual results. Image details remain in the panel.',
204
203
  funAskReport: 'Say something at the end',
205
- funAskReportDesc: 'When on, the closing receipt reminds her to log the trip with feast_life_play and tell the owner one sentence.',
204
+ funAskReportDesc: 'Off by default; enable as needed if Fish Every Day is installed. When on, the closing receipt reminds her to log the trip with feast_life_play and tell the owner one sentence.',
206
205
  funTasteFromFeast: 'Get tastes from Fish Every Day',
207
- funTasteFromFeastDesc: 'On: receipts at the coffee shop, tea stand, restaurant and night market tell her to order something real via feast_menu → feast_eat in Fish Every Day, where the nine-axis flavour profile lives. Off: she only says what she had, and never describes a taste.\n\nNote: this is not auto-detection — a World must not probe whether another extension is installed (the contract forbids interdependence). Set it yourself; leave it on if you have Fish Every Day.',
206
+ funTasteFromFeastDesc: 'Off by default; enable as needed if Fish Every Day is installed. On: receipts at the coffee shop, tea stand, restaurant and night market tell her to order something real via feast_menu → feast_eat in Fish Every Day, where the nine-axis flavour profile lives. Off: she only says what she had, and never describes a taste.\n\nNote: this is not auto-detection — a World must not probe whether another extension is installed (the contract forbids interdependence). Choose whether to enable it yourself.',
208
207
  funHomeAutoGo: 'Home: let her go out on her own',
209
208
  funHomeAutoGoDesc: 'On: her permission to head out follows "her own time" in Fish Every Day. When that wake-up arrives she checks the day\'s schedule (feast_life_now) first — go out if the stretch is free, stay in if it says work or sleep. This plugin no longer keeps its own time slots, does not read the other world\'s schedule, never picks a place and never sends her out by itself. Off by default.',
210
209
  funStoryDM: 'Optional text DM',
@@ -358,7 +358,9 @@ export class OutingService {
358
358
 
359
359
  }
360
360
 
361
- lines.push('把这一趟落进你今天的日程:feast_life_adjust 把这一段改成出门(已经写在计划里就不用改);回来再用 feast_life_play 记一笔。没有这些工具就跳过这句。');
361
+ if (this.#ctx.askReport()) {
362
+ lines.push('把这一趟落进你今天的日程:feast_life_adjust 把这一段改成出门(已经写在计划里就不用改);回来再用 feast_life_play 记一笔。没有这些工具就跳过这句。');
363
+ }
362
364
  lines.push('一处一处来:用 fun_wander 逛一处(不填 area 就自动挑一个没逛过的),也可以记下纪念品、拍照点或吃喝;选项式故事在故事手账里继续。');
363
365
  return { text: lines.join('\n') };
364
366
  }
@@ -652,8 +654,6 @@ export class OutingService {
652
654
  lines.push('这会儿顺手做两件事:');
653
655
  lines.push(`1) 用 feast_life_play 记一笔(activity 写「去${trip.placeName}逛」,note 就写上面那句话里你真有感觉的部分);`);
654
656
  lines.push('2) 跟主人说一句你刚才去了哪儿、看到什么——一句话就够,别列清单。');
655
- } else {
656
- lines.push(`(想记进日程就用 feast_life_play,不记也没关系。)`);
657
657
  }
658
658
  return { text: lines.join('\n') };
659
659
  }