cortico-world-feast 0.7.4 → 0.7.5

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
@@ -28,6 +28,26 @@
28
28
 
29
29
  **测试** 323 → **337**(新增 `test/funlink.test.mjs` 14 条:装了才加 / 没装不加 / 停用不加 / 开关关掉不加 / 手抄过不重复 / `feast_life_start` 同一条路径 / config 缺失与坏 JSON 都不抛错)。
30
30
 
31
+ ## 0.7.5
32
+
33
+ **和「小地图」(`cortico-world-map`)联动**
34
+
35
+ 让 0.7.4 的「娱乐时间」那套做法再来一份:叫醒她过自己的时间时,例子里多一行,让她想起**周围有哪些地方**(家、常去的、附近)。
36
+
37
+ ```
38
+ - 看看周围、去个常去的地方:map_places 看有哪些地方 → map_look 看这一处长什么样
39
+ ```
40
+
41
+ 小地图管的是「这条鱼自己的周围环境」——家、常去的地方,每个人都不一样(有人家在小区、有人家在森林里)。所以这一行**不点任何地名**,让她自己 `map_places` 去看主人给她设了哪些地方。
42
+
43
+ - **和娱乐时间同构**(`src/life/maplink.js`):读 `<数据目录>/../config.json` 的 `worlds.map.enabled`,**只读这一个字段**——不调 `map_*` 工具、不读 `map/state.json`(读配置文件不算 World 间依赖)。
44
+ - **没装、停用、读到一半、你手抄过 `map_*`** → 那一行都不出现,绝不指向不存在的工具;解析失败等 200ms 重读一次再判。
45
+ - **`MAP_LINE` 与 `FUN_LINE` 并存互不打架**:去重各按自己的前缀(`map_` / `fun_`),顺序固定为**娱乐时间在前、小地图在后**;两行互不牵连,一个没装另一个照常加,一次读失败不会把另一个也变成「没装」。
46
+ - **新配置 1 项**:`lifeFreeMapOn`(「看看周围那一行」,默认开),同样归在「她自己的时间」卡,配置卡还是 6 张。
47
+ - **只追加,从不改写**你原有的任何一条例子。三处接线(叫醒事件 / `feast_life_start` / 面板「现在就想动」)走同一条路径。
48
+
49
+ **测试** 337 → **357**(新增 `test/maplink.test.mjs` 20 条:装了才加 / 没装不加 / 停用不加 / 开关关掉不加 / 手抄过不重复 / 两行并存顺序与互不误判 / 三处接线同一路径 / config 缺失与坏 JSON 都不抛错)。
50
+
31
51
  ## 0.7.3
32
52
 
33
53
  **让她知道外面现在什么天气,外加把两个漏发的提交和菜品体检一起收掉**
package/GUIDE.md CHANGED
@@ -29,7 +29,7 @@
29
29
  | **套餐**面板 | 一桌一桌地端:8 套现成的,或者自己勾几道攒一桌存下来 |
30
30
  | **吃过什么**面板 | 她吃过多少回、口味画像、最近几口、她自己记的反应 |
31
31
  | **今天**面板 | 她自己写下的这一天:此刻在做什么、今天/明天的时间线、往期,见第 5 节 |
32
- | **世界配置** | 39 项,按饭点 / 一起吃饭 / 她的一天 / 她自己的时间 / 生图联动 / 天气分成 6 张卡,见第 7 节 |
32
+ | **世界配置** | 41 项,按饭点 / 一起吃饭 / 她的一天 / 她自己的时间 / 生图联动 / 天气分成 6 张卡,见第 7 节 |
33
33
 
34
34
  **等待条**是这套东西的核心反馈:你端过去的东西还没被吃掉时,它会一直挂在顶上,右边写着还剩多久。到点没吃就自动收走(不打扰她);**端错了按下「收回」就撤掉**,不用等它过期。
35
35
 
@@ -202,9 +202,11 @@
202
202
 
203
203
  > 这些是**别的扩展**的工具。它们没装的话,她照菜单去做会失败——所以默认才不写死,让你按自己实际装了什么来填。
204
204
 
205
- ### 唯一一处例外:娱乐时间(0.7.4)
205
+ ### 自动接进来的那两行(0.7.4 / 0.7.5)
206
206
 
207
- 「娱乐时间」(`cortico-world-fun`)是唯一一个**自动**接进例子里的:装了它并且启用着,叫醒时会多一行
207
+ 有两个扩展是**自动**接进例子里的(别的仍要你手抄)。都是装了并启用着才加,没装整段不出现。
208
+
209
+ **① 娱乐时间**(`cortico-world-fun`,0.7.4):装了它并且启用着,叫醒时会多一行:
208
210
 
209
211
  ```
210
212
  - 出门去逛逛:fun_places 看今天能去哪 → fun_go 进门 → fun_wander 逛一处 → fun_home 收摊
@@ -220,6 +222,18 @@
220
222
 
221
223
  不想让它自动加:配置 →「她自己的时间」→「出门逛逛那一行」关掉(`lifeFreeFunOn`,默认开)。
222
224
 
225
+ **② 鱼的小世界**(`cortico-world-map`,0.7.5:同一套,另外一行)
226
+
227
+ 装了它并且启用着,例子里再多一行:
228
+
229
+ ```
230
+ - 看看周围、去个常去的地方:map_places 看有哪些地方 → map_look 看这一处长什么样
231
+ ```
232
+
233
+ 它管的是**她周围有哪些地方**(家、常去的、附近),地点是每个主人自己写的——所以这一行不点任何地名,让她自己 `map_places` 去看。
234
+
235
+ 判定和娱乐时间一模一样:没装、停用、或你自己抄过 `map_*` 都不加;两行可以同时存在,顺序是**娱乐时间在前、鱼的小世界在后**。要单独关掉:配置 →「她自己的时间」→「看看周围那一行」(`lifeFreeMapOn`,默认开)。两行各有各的开关,关一个不影响另一个。
236
+
223
237
  **明天那格写着「等她写」**:说明已经问过她、她还没交回。正常,等她回就行,或者按「请她写明天」再催一次。
224
238
 
225
239
  **她写的东西你不喜欢**:不用改她——那是她自己的日子。真想调,用「临时改主意」改一段(她第二天会看到自己那天是这么过的)。真想从头来,去存储页清「她的一天」。
@@ -255,7 +269,7 @@
255
269
 
256
270
  ---
257
271
 
258
- ## 7. 配置(39 项,在「鱼的每一天」的世界配置里,按 6 张卡分开)
272
+ ## 7. 配置(41 项,在「鱼的每一天」的世界配置里,按 6 张卡分开)
259
273
 
260
274
  配置页不再是一张列到底的长表,按**你脑子里那几件事**切成 6 张卡:
261
275
 
@@ -314,6 +328,7 @@
314
328
  | `lifeFreeMenu` | 4 条通用说法 | 叫醒时贴给她的**例子**(措辞里写明「不照着也行」)。想让她用具体工具就在这里填 |
315
329
  | `lifeFreeAskReport` | `true` | 做完提醒她跟你说一句 |
316
330
  | `lifeFreeFunOn` | `true` | **出门逛逛那一行**(0.7.4)。装了「娱乐时间」并启用着才自动追加一行 `fun_*`;没装/停用/你手抄过都不加 |
331
+ | `lifeFreeMapOn` | `true` | **看看周围那一行**(0.7.5)。装了「小地图」并启用着才自动追加一行 `map_*`;没装/停用/你手抄过都不加 |
317
332
  | `lifeWardrobeOn` | `true` | 生图联动总开关:扫素材库、列给她、自动补穿着、提示词互指 |
318
333
  | `lifeWardrobeDir` | 空 | 素材库目录。留空自动跟 imggen 的 `libraryRoot`,再降级到 `<数据目录>/imggen-library`。配置页上有原生选目录按钮 |
319
334
  | `lifeWardrobeAutoOutfit` | `true` | 自动补 outfit(情境穿搭 > 情境默认 > 延续上一段 > 场景默认 > 默认服饰) |
package/PUBLISHING.md CHANGED
@@ -17,13 +17,13 @@ cd 'E:\deep seek\feed-world'
17
17
  node tools/validate-dishes.mjs # 菜品库:字段、九维、类别、套话、菜系与文件名一致
18
18
  node tools/selfcheck.mjs # 复刻 Coo 的干装载检查
19
19
  node tools/publish-check.mjs --online # 市场收录口径 + npm 包名占用
20
- npm test # 12 个文件,337 项
20
+ npm test # 13 个文件,357 项
21
21
  node tools/make-describe.mjs --check
22
22
  ```
23
23
 
24
24
  `prepublishOnly` 已经把这些串起来了:`npm publish` 之前会自动跑一遍,有任何一处失败就发不出去。这不是多余的谨慎——`describe.json` 与代码脱节、标签写了词表外的值、图标超 512KB,都会让市场那张卡片缺一块,而发出去之后改不了(只能发新版本)。
25
25
 
26
- 当前状态(0.7.4):**17 项通过、0 失败、4 条警告**(没截 `screenshots`;工具数 / 工具 token 在卡片上会标 yellow——0.7.0 之后工具涨到 16 个;解包 2.0MB;没查在线包名占用);**337 项测试全绿**(12 个文件:dishes 25 · eat 14 · state 31 · combos 39 · together 13 · life 36 · wardrobe 20 · life-world 47 · weather 10 · funlink 14 · world 41 · panels 47)。
26
+ 当前状态(0.7.5):**17 项通过、0 失败、4 条警告**(没截 `screenshots`;工具数 / 工具 token 在卡片上会标 yellow——0.7.0 之后工具涨到 16 个;解包 2.0MB;没查在线包名占用);**357 项测试全绿**(13 个文件:dishes 25 · eat 14 · state 31 · combos 39 · together 13 · life 36 · wardrobe 20 · life-world 47 · weather 10 · funlink 14 · maplink 20 · world 41 · panels 47)。
27
27
 
28
28
  ---
29
29
 
@@ -118,8 +118,8 @@ npm publish --otp 123456
118
118
  npm pack --dry-run
119
119
  ```
120
120
 
121
- 0.7.4 应该是 **58 个文件**,解包约 2.0MB(压缩后大小以 `npm pack --dry-run` 的输出为准):
122
- `package.json`、`src/`(含 28 个菜品 json + `src/life/` 10 个 js)、`dist/webui.js`、`describe.json`、
121
+ 0.7.5 应该是 **59 个文件**,解包约 2.0MB(压缩后大小以 `npm pack --dry-run` 的输出为准):
122
+ `package.json`、`src/`(含 28 个菜品 json + `src/life/` 11 个 js)、`dist/webui.js`、`describe.json`、
123
123
  `assets/icon.png`、`README.md`、`CHANGELOG.md`、`PUBLISHING.md`、`GUIDE.md`。
124
124
 
125
125
  `test/`、`tools/`、`install.ps1`、`COMBO-SPEC.md`、`TOGETHER-SPEC.md`、`DISH-SPEC.md` 都在 `files` 之外,
@@ -135,15 +135,15 @@ npm publish --otp 123456 # 没开 2FA、或用了带 bypass 2FA 的 granula
135
135
 
136
136
  这个包不是新包(0.1.1 / 0.2.0 / 0.3.0 / 0.4.0 / 0.5.0 / 0.6.0 / 0.6.1 / 0.6.2 / 0.6.3 / 0.7.0 / 0.7.1 / 0.7.2 都发过),所以**不需要** `--access public`(那是作用域包 `@you/xxx` 才要的)。
137
137
 
138
- `latest` 会从 **0.7.3** 走到 **0.7.4**。版本序列是 0.6.0 → 0.6.1 → 0.6.2 → 0.6.3 → 0.7.0 → 0.7.1 → 0.7.2 → 0.7.3 → 0.7.4。
138
+ `latest` 会从 **0.7.4** 走到 **0.7.5**。版本序列是 0.6.0 → … → 0.7.3 → 0.7.4 → 0.7.5。
139
139
  (0.6.0 那会儿「0.7.0」这个号本来打算给套餐用、后来并进了 0.6.0;真正的 0.7.0 是后来「她的一天」才发的。)
140
140
 
141
141
  发完立刻验:
142
142
 
143
143
  ```powershell
144
- npm view cortico-world-feast version # 应回 0.7.4
144
+ npm view cortico-world-feast version # 应回 0.7.5
145
145
  npm view cortico-world-feast cortico --json # 应能看到 kind/api/displayName/tags/locales
146
- npm view cortico-world-feast dist-tags # latest 应是 0.7.4
146
+ npm view cortico-world-feast dist-tags # latest 应是 0.7.5
147
147
  ```
148
148
 
149
149
  `npm view` 走的是 CDN,刚发出去可能有几十秒到几分钟的滞后,回 `E404` 先等一下再查。
@@ -186,8 +186,8 @@ gh issue create --repo Pal-AI-Lab/cortico-extensions `
186
186
  "screenshots": ["assets/screenshot-1.png", "assets/screenshot-2.png", "assets/screenshot-3.png"],
187
187
  ```
188
188
 
189
- 7. 截图塞进**当前这一版**:现在的版本号是 `0.7.4`(还没发),加完直接 `npm publish` 就行;
190
- 要是 0.7.4 已经发出去了,就再升一位重发
189
+ 7. 截图塞进**当前这一版**:现在的版本号是 `0.7.5`(还没发),加完直接 `npm publish` 就行;
190
+ 要是 0.7.5 已经发出去了,就再升一位重发
191
191
 
192
192
  截图改了就必须发新版本——市场按版本扫包,不发新版本改不了已收录的那一版。
193
193
 
@@ -226,8 +226,8 @@ gh issue create --repo Pal-AI-Lab/cortico-extensions `
226
226
  3. World 扩展不直接依赖其他 World 扩展
227
227
  4. **至少有过一次后续更新**
228
228
 
229
- 第 4 条意味着至少要发两个版本才能申请。0.1.1 / 0.2.0 / 0.3.0 / 0.4.0 / 0.5.0 / 0.6.0 / 0.6.1 / 0.6.2 / 0.6.3 / 0.7.0 / 0.7.1 / 0.7.2 / 0.7.3 都发过,
230
- 早就满足了;想把截图一并带上再申请也行,那就等 0.7.4 发出去。
229
+ 第 4 条意味着至少要发两个版本才能申请。0.1.1 / 0.2.0 / 0.3.0 / 0.4.0 / 0.5.0 / 0.6.0 / 0.6.1 / 0.6.2 / 0.6.3 / 0.7.0 / 0.7.1 / 0.7.2 / 0.7.3 / 0.7.4 都发过,
230
+ 早就满足了;想把截图一并带上再申请也行,那就等 0.7.5 发出去。
231
231
 
232
232
  申请方式是开一个 `[认证]` issue:
233
233
 
package/README.md CHANGED
@@ -2,11 +2,22 @@
2
2
 
3
3
  先给她一天,再给她一桌饭。
4
4
 
5
- > **只想学会怎么用?** 看 [`GUIDE.md`](GUIDE.md):三分钟上手、四个面板怎么点、一起吃饭怎么玩、39 项配置(分 6 张卡)、常见情况。
5
+ > **只想学会怎么用?** 看 [`GUIDE.md`](GUIDE.md):三分钟上手、四个面板怎么点、一起吃饭怎么玩、41 项配置(分 6 张卡)、常见情况。
6
6
  > 这一份 README 讲的是"里面有什么、为什么这么做"。
7
7
 
8
8
  0.7.0 起她有自己的日子:每晚到点请她自己写明天怎么过,第二天按它过;主人能在「今天」面板看此刻她在哪儿、临时改掉某一段。下面「[她的一天](#她的一天)」一节讲这个。0.7.3 起她会看**真实天气**(默认关:填了你自己城市的名字才提,见下面「天气」一节)。
9
9
 
10
+ **能和三个扩展联动,都是一个开关的事,不装就整段不出现、绝不报错**:
11
+
12
+ | 扩展 | 联动内容 | 开关 |
13
+ | --- | --- | --- |
14
+ | 「生图工作室」`cortico-world-imggen` | 写日程时列出衣柜/场景,发图时穿着、地点对得上 | `lifeWardrobeOn` |
15
+ | 「娱乐时间」`cortico-world-fun` | 「自己的时间」里多一行,她能真出门逛 | `lifeFreeFunOn` |
16
+ | 「鱼的小世界」`cortico-world-map` | 「自己的时间」里多一行,她会想起周围那些地方 | `lifeFreeMapOn` |
17
+ | 「鱼的每一天」(别的扩展反过来用它) | 它们通过 `lifeFreeMenu` 这个官方配置槽被叫到 | — |
18
+
19
+ 前三个都是**自动检测**:读 `config.json` 里对方那一个 `enabled` 字段,没装就不提;详情见下面各自那一节。
20
+
10
21
  桌上是 824 道菜(28 个菜系组),每道都有九维口味分值、上桌的样子、香气、口感、余韵,和一段 40-400 字的实吃描写。她能自己按菜系挑着吃,主人也能从面板把一道菜端到她面前,或者整桌端过去;还能**和她一起吃一顿**——邀请她、互相喂一口,你吃了什么她也知道。**同一道菜每次吃到的都不一样**——温度、状态、配的那口都会变,所以连着吃三次不会说三遍同一句话。吃过什么、对什么反应、攒出来的口味画像跨天留着。饭点提醒默认开着,可以在配置里一键关掉。
11
22
 
12
23
  ---
@@ -219,6 +230,20 @@ Cortico 的 `envPromptVars()` **只在前缀重建时重算**,不是每轮请
219
230
 
220
231
  想关掉这个自动追加、但保留你手写的内容:配置 →「她自己的时间」→ `lifeFreeFunOn` 关掉(默认开)。它只追加一行,**从不改写你原有的任何一条例子**。
221
232
 
233
+ ### 和「鱼的小世界」联动(0.7.5)
234
+
235
+ 装了 `cortico-world-map`(显示名「鱼的小世界」)并且它**启用着**,例子里会多一行(和上面那行可以并存):
236
+
237
+ ```
238
+ - 看看周围、去个常去的地方:map_places 看有哪些地方 → map_look 看这一处长什么样
239
+ ```
240
+
241
+ **不点名具体地点**:它的地点库是每个主人自己的(有人家在小区、有人家在森林里),她调 `map_places` 自己看有哪些地方。
242
+
243
+ 判据和上面完全同构——读 `<数据目录>/../config.json` 的 `worlds.map.enabled` 一个字段;没装 / 停用 / 你手抄过 `map_*` 都不加(`map_` 与 `fun_` 两个前缀各判各的,不会互相误伤)。开关:配置 →「她自己的时间」→ `lifeFreeMapOn`。
244
+
245
+ 两行都在时顺序固定:**娱乐时间在前、鱼的小世界在后**。两行各有各的开关,关一个不影响另一个。
246
+
222
247
 
223
248
  **记账单独存一份** `<数据目录>/feast/life/play-YYYY-MM-DD.json`,不写进日程:`feast_life_plan` 会整个重写一天,记进去她下次交回就覆盖了。计划和事实的生命周期不同,就该分开存。
224
249
 
@@ -365,6 +390,7 @@ Cortico 的 `envPromptVars()` **只在前缀重建时重算**,不是每轮请
365
390
  | `lifeFreeMenu` | 4 条通用说法 | 叫醒时贴给她的菜单。**默认不点名任何别的扩展的工具**;要用具体工具自己填 |
366
391
  | `lifeFreeAskReport` | `true` | 做完要不要提醒她跟主人说一句 |
367
392
  | `lifeFreeFunOn` | `true` | **出门逛逛那一行**(0.7.4)。装了「娱乐时间」并启用着才加;没装/停用/你自己抄过 `fun_*` 都不加。关掉=不自动加 |
393
+ | `lifeFreeMapOn` | `true` | **看看周围那一行**(0.7.5)。装了「鱼的小世界」并启用着才加;没装/停用/你自己抄过 `map_*` 都不加。关掉=不自动加 |
368
394
  | `lifeWardrobeOn` | `true` | **生图联动总开关**:扫素材库、列给她、自动补穿着、提示词互指 |
369
395
  | `lifeWardrobeDir` | 空 | 素材库目录。留空自动跟 imggen 的 `libraryRoot`,再降级到 `<数据目录>/imggen-library`。配置页上有原生选目录按钮 |
370
396
  | `lifeWardrobeAutoOutfit` | `true` | 自动补 outfit(情境穿搭 > 情境默认 > 延续上一段 > 场景默认 > 默认服饰) |
package/package.json CHANGED
@@ -1,79 +1,79 @@
1
- {
2
- "name": "cortico-world-feast",
3
- "version": "0.7.4",
4
- "description": "鱼的每一天 · 先给她一天,再给她一桌饭:她自己的日程(每晚自己写明天、到点过自己的时间、做完记一笔)+ 824 道菜的桌子,能端一道、端一桌,也能和她一起吃一顿。",
5
- "license": "MIT",
6
- "author": "青",
7
- "repository": {
8
- "type": "git",
9
- "url": "git+https://github.com/bailuhanyi/cortico-world-feast.git"
10
- },
11
- "homepage": "https://github.com/bailuhanyi/cortico-world-feast#readme",
12
- "bugs": {
13
- "url": "https://github.com/bailuhanyi/cortico-world-feast/issues"
14
- },
15
- "keywords": [
16
- "cortico-world",
17
- "cortico",
18
- "coopanion",
19
- "coo",
20
- "food",
21
- "eat",
22
- "taste",
23
- "flavor",
24
- "dish",
25
- "meal",
26
- "hunger",
27
- "companion"
28
- ],
29
- "type": "module",
30
- "main": "./src/index.js",
31
- "exports": {
32
- ".": "./src/index.js"
33
- },
34
- "files": [
35
- "src",
36
- "dist",
37
- "assets",
38
- "describe.json",
39
- "CHANGELOG.md",
40
- "README.md",
41
- "PUBLISHING.md",
42
- "GUIDE.md"
43
- ],
44
- "engines": {
45
- "node": ">=22.6"
46
- },
47
- "scripts": {
48
- "test": "node test/dishes.test.mjs && node test/eat.test.mjs && node test/state.test.mjs && node test/combos.test.mjs && node test/together.test.mjs && node test/life.test.mjs && node test/wardrobe.test.mjs && node test/life-world.test.mjs && node test/weather.test.mjs && node test/funlink.test.mjs && node test/world.test.mjs && node test/panels.test.mjs",
49
- "dishes": "node tools/validate-dishes.mjs",
50
- "selfcheck": "node tools/selfcheck.mjs",
51
- "check:install": "node tools/check-install.mjs",
52
- "check:publish": "node tools/publish-check.mjs --online",
53
- "describe": "node tools/make-describe.mjs",
54
- "prepublishOnly": "node tools/validate-dishes.mjs && node tools/selfcheck.mjs && node tools/publish-check.mjs --online && node test/dishes.test.mjs && node test/eat.test.mjs && node test/state.test.mjs && node test/combos.test.mjs && node test/together.test.mjs && node test/life.test.mjs && node test/wardrobe.test.mjs && node test/life-world.test.mjs && node test/weather.test.mjs && node test/funlink.test.mjs && node test/world.test.mjs && node test/panels.test.mjs && node tools/make-describe.mjs --check"
55
- },
56
- "cortico": {
57
- "kind": "world",
58
- "api": 6,
59
- "displayName": "鱼的每一天",
60
- "icon": "assets/icon.png",
61
- "webUiClient": "dist/webui.js",
62
- "describe": "describe.json",
63
- "locales": {
64
- "zh": {
65
- "displayName": "鱼的每一天",
66
- "description": "先给她一天,再给她一桌饭。每天晚上到点请她自己写明天怎么过(零 API Key,用已配的模型),第二天按它过;到点还有「她自己的时间」,让她挑件事做并记一笔。主人能在「今天」面板看今天和明天的时间线、此刻她在做什么、她做过什么、往前翻往期,也能临时改掉某一段。桌上是 824 道菜(28 个菜系组),每道都有九维口味、香气、口感、余韵和一段实吃描写;她能自己按菜系挑,主人也能从面板端一道或整桌端过去(8 套内置套餐,也能自己勾几道攒成一桌存下来);还能和她一起吃一顿:邀请她、互相喂一口,你吃了什么她也知道。同一道菜每次吃到的都不一样,吃过什么、对什么反应、口味画像跨天攒着。饭点提醒、「她的一天」和自由时间都能在配置里单独关掉。"
67
- },
68
- "en": {
69
- "displayName": "Fish Every Day",
70
- "description": "First a day of her own, then a table of food. Every evening she is asked to write tomorrow herself (no API key — it uses the model you already have), and the next day she lives it; on her own-time slots she picks something to do and logs it. The Today panel shows today's and tomorrow's timeline, what she is doing right now, what she has been up to, past days, and lets you change a stretch of it. The table holds 824 dishes across 28 cuisines, each with a nine-axis flavour profile, aroma, texture, aftertaste and a full paragraph of how it actually eats. She can pick by cuisine, or you can put a dish down in front of her from the panel — or serve a whole table at once (8 built-in set meals, plus your own saved tables). You can also share a meal with her: invite her, feed each other a bite, and tell her what you are eating. The same dish never lands the same way twice, and what she ate, how it landed and her taste profile accumulate across days. Meal reminders, her day, and her own time can each be switched off in config."
71
- }
72
- },
73
- "tags": [
74
- "companion",
75
- "internal-state",
76
- "experimental"
77
- ]
78
- }
79
- }
1
+ {
2
+ "name": "cortico-world-feast",
3
+ "version": "0.7.5",
4
+ "description": "鱼的每一天 · 先给她一天,再给她一桌饭:她自己的日程(每晚自己写明天、到点过自己的时间、做完记一笔)+ 824 道菜的桌子,能端一道、端一桌,也能和她一起吃一顿。可以跟「生图工作室」「娱乐时间」「鱼的小世界」各接一小截,不装也完整可用。",
5
+ "license": "MIT",
6
+ "author": "青",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/bailuhanyi/cortico-world-feast.git"
10
+ },
11
+ "homepage": "https://github.com/bailuhanyi/cortico-world-feast#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/bailuhanyi/cortico-world-feast/issues"
14
+ },
15
+ "keywords": [
16
+ "cortico-world",
17
+ "cortico",
18
+ "coopanion",
19
+ "coo",
20
+ "food",
21
+ "eat",
22
+ "taste",
23
+ "flavor",
24
+ "dish",
25
+ "meal",
26
+ "hunger",
27
+ "companion"
28
+ ],
29
+ "type": "module",
30
+ "main": "./src/index.js",
31
+ "exports": {
32
+ ".": "./src/index.js"
33
+ },
34
+ "files": [
35
+ "src",
36
+ "dist",
37
+ "assets",
38
+ "describe.json",
39
+ "CHANGELOG.md",
40
+ "README.md",
41
+ "PUBLISHING.md",
42
+ "GUIDE.md"
43
+ ],
44
+ "engines": {
45
+ "node": ">=22.6"
46
+ },
47
+ "scripts": {
48
+ "test": "node test/dishes.test.mjs && node test/eat.test.mjs && node test/state.test.mjs && node test/combos.test.mjs && node test/together.test.mjs && node test/life.test.mjs && node test/wardrobe.test.mjs && node test/life-world.test.mjs && node test/weather.test.mjs && node test/funlink.test.mjs && node test/maplink.test.mjs && node test/world.test.mjs && node test/panels.test.mjs",
49
+ "dishes": "node tools/validate-dishes.mjs",
50
+ "selfcheck": "node tools/selfcheck.mjs",
51
+ "check:install": "node tools/check-install.mjs",
52
+ "check:publish": "node tools/publish-check.mjs --online",
53
+ "describe": "node tools/make-describe.mjs",
54
+ "prepublishOnly": "node tools/validate-dishes.mjs && node tools/selfcheck.mjs && node tools/publish-check.mjs --online && node test/dishes.test.mjs && node test/eat.test.mjs && node test/state.test.mjs && node test/combos.test.mjs && node test/together.test.mjs && node test/life.test.mjs && node test/wardrobe.test.mjs && node test/life-world.test.mjs && node test/weather.test.mjs && node test/funlink.test.mjs && node test/maplink.test.mjs && node test/world.test.mjs && node test/panels.test.mjs && node tools/make-describe.mjs --check"
55
+ },
56
+ "cortico": {
57
+ "kind": "world",
58
+ "api": 6,
59
+ "displayName": "鱼的每一天",
60
+ "icon": "assets/icon.png",
61
+ "webUiClient": "dist/webui.js",
62
+ "describe": "describe.json",
63
+ "locales": {
64
+ "zh": {
65
+ "displayName": "鱼的每一天",
66
+ "description": "先给她一天,再给她一桌饭。每天晚上到点请她自己写明天怎么过(零 API Key,用已配的模型),第二天按它过;到点还有「她自己的时间」,让她挑件事做并记一笔。主人能在「今天」面板看今天和明天的时间线、此刻她在做什么、她做过什么、往前翻往期,也能临时改掉某一段。桌上是 824 道菜(28 个菜系组),每道都有九维口味、香气、口感、余韵和一段实吃描写;她能自己按菜系挑,主人也能从面板端一道或整桌端过去(8 套内置套餐,也能自己勾几道攒成一桌存下来);还能和她一起吃一顿:邀请她、互相喂一口,你吃了什么她也知道。同一道菜每次吃到的都不一样,吃过什么、对什么反应、口味画像跨天攒着。饭点提醒、「她的一天」和自由时间都能在配置里单独关掉。\n\n能和这几个扩展联动,都是一个开关的事,不装就整段不出现、绝不报错:装了「生图工作室」,她写日程时会列出衣柜和场景,发图时穿着地点对得上;装了「娱乐时间」,「自己的时间」里会多一行,她能真出门逛;装了「鱼的小世界」,「自己的时间」里会多一行,她会想起周围那些地方。"
67
+ },
68
+ "en": {
69
+ "displayName": "Fish Every Day",
70
+ "description": "First a day of her own, then a table of food. Every evening she is asked to write tomorrow herself (no API key — it uses the model you already have), and the next day she lives it; on her own-time slots she picks something to do and logs it. The Today panel shows today's and tomorrow's timeline, what she is doing right now, what she has been up to, past days, and lets you change a stretch of it. The table holds 824 dishes across 28 cuisines, each with a nine-axis flavour profile, aroma, texture, aftertaste and a full paragraph of how it actually eats. She can pick by cuisine, or you can put a dish down in front of her from the panel — or serve a whole table at once (8 built-in set meals, plus your own saved tables). You can also share a meal with her: invite her, feed each other a bite, and tell her what you are eating. The same dish never lands the same way twice, and what she ate, how it landed and her taste profile accumulate across days. Meal reminders, her day, and her own time can each be switched off in config.\n\nIt can also hook up to three other extensions, one switch each, and nothing breaks when they are absent: with the image studio installed she lists the wardrobe and scenes when writing her day, so the outfit and place match when she sends a picture; with Fun Time installed her own time gains one line and she can really go out; with Little World installed her own time gains another line and she remembers the places around her."
71
+ }
72
+ },
73
+ "tags": [
74
+ "companion",
75
+ "internal-state",
76
+ "experimental"
77
+ ]
78
+ }
79
+ }
package/src/config.js CHANGED
@@ -103,6 +103,9 @@ export const DEFAULTS = Object.freeze({
103
103
  // ---- 娱乐时间联动(0.7.4)----
104
104
  /** 「出门逛逛」那一行要不要加。娱乐时间没装/没启用时,这一项写了也不会加。 */
105
105
  lifeFreeFunOn: true,
106
+ // ---- 小地图联动(0.7.4)----
107
+ /** 「看看周围」那一行要不要加。小地图没装/没启用时,这一项写了也不会加。 */
108
+ lifeFreeMapOn: true,
106
109
  // ---- 生图工作室联动(0.7.1)----
107
110
  /** 联动总开关:扫素材库、列给 Coo、自动补 outfit、注入指向句。关掉=纯文本日程,不碰库。 */
108
111
  lifeWardrobeOn: true,
@@ -206,6 +209,8 @@ const ZH = {
206
209
  lifeFreeAskReportDesc: '开启时,叫醒和记账回执都会提醒她「跟主人说一句你刚才玩了什么」。',
207
210
  lifeFreeFunOn: '出门逛逛那一行',
208
211
  lifeFreeFunOnDesc: '开启时,如果装了「娱乐时间」(cortico-world-fun)并且启用着,叫醒事件的例子末尾会自动多一行「fun_places 看今天能去哪 → fun_go 进门 → fun_wander 逛一处 → fun_home 收摊」,她就能真的出门逛游乐场、海洋馆、庙会这些地方。**娱乐时间没装或没启用时这一行不会出现**,她也不会看到指向不存在工具的例子;你自己在「叫醒时给的例子」里抄过 fun_* 的话,这一项也不重复加。关掉=不管装没装都不加这一行。',
212
+ lifeFreeMapOn: '看看周围那一行',
213
+ lifeFreeMapOnDesc: '开启时,如果装了「小地图」(cortico-world-map)并且启用着,叫醒事件的例子末尾会自动多一行「map_places 看有哪些地方 → map_look 看这一处长什么样」,她就能想起来去看看自己周围那些地方(家、常去的、附近)。**小地图没装或没启用时这一行不会出现**,她也不会看到指向不存在工具的例子;你自己在「叫醒时给的例子」里抄过 map_* 的话,这一项也不重复加。关掉=不管装没装都不加这一行。',
209
214
  lifeWardrobeOn: '生图联动',
210
215
  lifeWardrobeOnDesc: '扫生图工作室的素材库(<数据目录>/imggen-library),写日程时列出衣柜/场景/道具和穿搭习惯,模型没填 outfit 时按习惯自动补,并在提示词里加一句指向生图工作室。关掉=纯文本日程,不碰库、不联动。库读不到时自动静默降级,不影响她的一天。',
211
216
  lifeWardrobeDir: '素材库目录',
@@ -316,6 +321,8 @@ const EN = {
316
321
  lifeFreeAskReportDesc: 'When on, both the wake-up and the logging receipt remind her to say one sentence about what she just did.',
317
322
  lifeFreeFunOn: 'Add the going-out line',
318
323
  lifeFreeFunOnDesc: 'When on, and the Fun Time world (cortico-world-fun) is installed and enabled, one extra line is appended to the wake-up examples: "fun_places to see where you can go → fun_go to walk in → fun_wander to look around → fun_home to head home", so she can really go out to an amusement park, an aquarium, a temple fair and so on. **If Fun Time is not installed or not enabled the line never appears**, so she never sees an example pointing at tools that do not exist; and if you already pasted fun_* into the examples yourself, this will not add it twice. Off = never add it, installed or not.',
324
+ lifeFreeMapOn: 'Add the look-around line',
325
+ lifeFreeMapOnDesc: 'When on, and the Map world (cortico-world-map) is installed and enabled, one extra line is appended to the wake-up examples: "map_places to see what places there are → map_look to look at one", so she remembers to visit the places around her (home, favourites, nearby). **If Map is not installed or not enabled the line never appears**, so she never sees an example pointing at tools that do not exist; and if you already pasted map_* into the examples yourself, this will not add it twice. Off = never add it, installed or not.',
319
326
  lifeWardrobeOn: 'Image-gen link',
320
327
  lifeWardrobeOnDesc: 'Scans the image-gen studio library (<dataDir>/imggen-library), lists wardrobe/scene/props and outfit habits when she writes her day, auto-fills outfit from habits when the model leaves it blank, and adds one line in the prompt pointing at the studio. Off = plain-text schedule, no library, no link. Degrades silently when the library is missing; her day is never affected.',
321
328
  lifeWardrobeDir: 'Library root',
@@ -601,6 +608,12 @@ function configProperties(language = 'zh') {
601
608
  description: t.lifeFreeFunOnDesc,
602
609
  'x-hot': true,
603
610
  },
611
+ [`${K}.lifeFreeMapOn`]: {
612
+ type: 'boolean',
613
+ title: t.lifeFreeMapOn,
614
+ description: t.lifeFreeMapOnDesc,
615
+ 'x-hot': true,
616
+ },
604
617
  [`${K}.lifeWardrobeOn`]: {
605
618
  type: 'boolean',
606
619
  title: t.lifeWardrobeOn,
package/src/life/index.js CHANGED
@@ -8,3 +8,4 @@ export * from './plan.js';
8
8
  export * from './free.js';
9
9
  export * from './wardrobe.js';
10
10
  export * from './funlink.js';
11
+ export * from './maplink.js';
@@ -0,0 +1,106 @@
1
+ /**
2
+ * 「她自己的时间」↔ 小地图(`cortico-world-map`)的那一行例子。
3
+ *
4
+ * 和 `funlink.js` **同构**——这是刻意的:同一件事(读一个 config 字段判断装没装、
5
+ * 拼一行例子、只追加不改写)有两份实现,就一定会有一份先腐烂。差别只有三处:
6
+ * world id(`map`)、那一行的文案(`MAP_LINE`)、去重前缀(`map_`)。
7
+ *
8
+ * 契约出处:`MAP-小地图插件-方案.md` §7「给鱼的每一天那个会话的契约」。
9
+ *
10
+ * 红线(和 `funlink.js` / `wardrobe.js` 读 imggen 的 libraryRoot 同一套):
11
+ * · **只读 config.json 一个字段**(`worlds.map.enabled`),不调小地图的工具、
12
+ * 不读它的 `dataDir/map/state.json` —— 读配置文件不算 World 间依赖;
13
+ * · 读不到 / 解析失败 / 没装 → 返回「没装」,那一行**整段不出现**,
14
+ * 绝不让她看到指向不存在工具的例子;
15
+ * · 任何异常都吞掉,**绝不抛错**(抛错会把整个 World 卸载)。
16
+ */
17
+ import { readFile } from 'node:fs/promises';
18
+ import { join } from 'node:path';
19
+
20
+ /**
21
+ * 要拼进「例子」的那一行。
22
+ *
23
+ * **刻意不点名具体地点**:小地图的地点库是**每个主人自己的**(有人家在小区、
24
+ * 有人家在森林里),写死任何一个地名都是替别人编。让 `map_places` 自己去列。
25
+ *
26
+ * 也刻意不写「画一张」「发张图」这类话:小地图**不强绑生图工作室**(方案 §4),
27
+ * 没装生图的主人照样用,这一行不能暗示她有出图能力。
28
+ */
29
+ export const MAP_LINE = '- 看看周围、去个常去的地方:map_places 看有哪些地方 → map_look 看这一处长什么样';
30
+
31
+ /**
32
+ * 判断这一行是不是「已经在菜单里了」。
33
+ *
34
+ * 和 `HAS_FUN_RE` 同样取「提到 map_ 开头的工具」,不按整行比——用户可能手改过
35
+ * 措辞、或者只抄了 `map_places` 那一半,整行匹配不上会再追加一条,菜单里就出现
36
+ * 两条几乎一样的。
37
+ *
38
+ * 注意前缀是 `map_` 不是 `fun_`:两行并存时各判各的,`fun_[a-z]+` 不会命中
39
+ * `MAP_LINE`,`map_[a-z]+` 也不会命中 `FUN_LINE`,所以谁先谁后都不会互相误伤。
40
+ */
41
+ const HAS_MAP_RE = /map_[a-z]+/;
42
+
43
+ /**
44
+ * 读小地图的安装/启用状态。
45
+ *
46
+ * 宿主的 config 路径按 `dataDir` 的父目录找(`<dataDir>/../config.json`),
47
+ * 和 `readFunEnabled` / `wardrobe.js` 的 `readImggenRoot` 完全一致。
48
+ *
49
+ * `config.json` 是 Coo **整份重写**的(改任何配置项都会重写一次),存在「读到写了
50
+ * 一半的文件」的窗口。解析失败时**等 200ms 重试一次**,再失败才判成「没装」——
51
+ * 否则用户改配置的那一瞬间正好触发叫醒,会误判成「没装小地图」而漏掉那一行。
52
+ *
53
+ * @returns {Promise<boolean>} 装并且启用了才 true;其余一律 false(静默降级)。
54
+ */
55
+ export async function readMapEnabled(dataDir) {
56
+ const tryOnce = async () => {
57
+ try {
58
+ const raw = JSON.parse(await readFile(join(dataDir, '..', 'config.json'), 'utf8'));
59
+ // 只认 `enabled`:那是宿主的 World 总开关,用户关掉世界页就是它在变。
60
+ return raw?.worlds?.map?.enabled === true;
61
+ } catch {
62
+ return null; // 区分「读不到/解析失败」(null) 和「读到了但没这个段」(false)
63
+ }
64
+ };
65
+ const first = await tryOnce();
66
+ if (first !== null) return first;
67
+ await new Promise((r) => setTimeout(r, 200));
68
+ const second = await tryOnce();
69
+ return second === true;
70
+ }
71
+
72
+ /**
73
+ * 该不该把那一行加进「例子」里。
74
+ *
75
+ * 三个条件都满足才加:
76
+ * 1. `lifeFreeMapOn` 没被关掉(默认开);
77
+ * 2. 小地图装了并且启用着(`worlds.map.enabled === true`);
78
+ * 3. **现有菜单里还没有指向 map_* 的一行**——用户自己抄过的话就别再叠一条。
79
+ *
80
+ * @param {string} menu 现有菜单(`cfg.lifeFreeMenu`、DEFAULTS,或已经被 funlink 拼过的菜单)
81
+ * @param {boolean} mapOn 小地图是否装了并启用
82
+ * @param {object} cfg 配置段(判 lifeFreeMapOn)
83
+ * @returns {string} 要追加的一行;不该加就是空串
84
+ */
85
+ export function mapMenuLine(menu, mapOn, cfg = {}) {
86
+ if (cfg?.lifeFreeMapOn === false) return '';
87
+ if (!mapOn) return '';
88
+ if (HAS_MAP_RE.test(typeof menu === 'string' ? menu : '')) return '';
89
+ return MAP_LINE;
90
+ }
91
+
92
+ /**
93
+ * 把那一行接到菜单末尾(没有要加的就不动原样)。
94
+ *
95
+ * 只追加,不改写、不排序、不动用户原有的任何一条——那是用户自己写的话。
96
+ * 接在 `withFunLine` 之后调用即可与「出门去逛逛」那一行并存,顺序固定为
97
+ * 娱乐时间在前、小地图在后。
98
+ */
99
+ export function withMapLine(menu, mapOn, cfg = {}) {
100
+ const base = typeof menu === 'string' ? menu : '';
101
+ const line = mapMenuLine(base, mapOn, cfg);
102
+ if (!line) return base;
103
+ const head = base.replace(/\s+$/, '');
104
+ // 空菜单时别拼出以换行开头的东西。
105
+ return head ? `${head}\n${line}` : line;
106
+ }
package/src/world.js CHANGED
@@ -25,10 +25,10 @@ import {
25
25
  } from './config.js';
26
26
  import {
27
27
  DEFAULT_DAY_TYPES, addDays, applyChange, cleanDay, clearDays, clearPlays, dateLabel, dayText, envBlock,
28
- findItem, freeEventText, funMenuLine, isAsleepActivity, isDateKey, isFreeActivity, LIFE_KEEP_DAYS, lifeDir, listDays, markFreeNudged,
28
+ findItem, freeEventText, funMenuLine, isAsleepActivity, isDateKey, isFreeActivity, LIFE_KEEP_DAYS, lifeDir, listDays, mapMenuLine, markFreeNudged,
29
29
  momentLine, newPlay, nextFreeSlotText, normalizePlan, nowText, parseClock, parseSlots, pendingDay,
30
- pickDayType, planEventText, planFreeTick, playDoneText, readDay, readFunEnabled, readPlay, recentSummary, recordPlay,
31
- segmentKey, skipFreeToday, templateDay, withFunLine, writeDay, writePlay, zonedNow,
30
+ pickDayType, planEventText, planFreeTick, playDoneText, readDay, readFunEnabled, readMapEnabled, readPlay, recentSummary, recordPlay,
31
+ segmentKey, skipFreeToday, templateDay, withFunLine, withMapLine, writeDay, writePlay, zonedNow,
32
32
  } from './life/index.js';
33
33
  import {
34
34
  autoOutfit, clearWardrobeCache, emptyWardrobe, enrichItems, loadWardrobe,
@@ -333,6 +333,9 @@ export class FeastWorld {
333
333
  /** 娱乐时间(cortico-world-fun)装没装并启用:叫醒事件拼例子时同步读,
334
334
  * 所以和素材库、天气一样在 tick 里刷新成快照。没装/读不到一律 false。 */
335
335
  #funInstalled = false;
336
+ /** 小地图(cortico-world-map)装没装并启用:同样在 tick 里刷新成快照。
337
+ * 和 #funInstalled 各存各的——两行例子互不牵连,一个没装不影响另一个。 */
338
+ #mapInstalled = false;
336
339
  /** 上次真正去取天气的时刻(ms):按 weatherRefreshMin 节流,别把接口当心跳打。 */
337
340
  #weatherAt = 0;
338
341
  /** 上次「重新想想」推给她的时间(按 date):连点不该连推,免得刷屏。 */
@@ -513,6 +516,11 @@ export class FeastWorld {
513
516
  return this.#freeOn() && this.cfg?.lifeFreeFunOn !== false;
514
517
  }
515
518
 
519
+ /** 小地图联动总开关。关掉=不管装没装都不往「例子」里加那一行。 */
520
+ #mapLinkOn() {
521
+ return this.#freeOn() && this.cfg?.lifeFreeMapOn !== false;
522
+ }
523
+
516
524
  /**
517
525
  * 刷新「娱乐时间装没装并启用」的快照(tick 里调)。
518
526
  *
@@ -531,6 +539,21 @@ export class FeastWorld {
531
539
  }
532
540
  }
533
541
 
542
+ /**
543
+ * 刷新「小地图装没装并启用」的快照(tick 里调)。
544
+ *
545
+ * 和 `#refreshFunInstalled` 同构,各刷各的:两个插件装没装互不牵连,
546
+ * 一个读失败不该把另一个也变成「没装」。
547
+ */
548
+ async #refreshMapInstalled() {
549
+ if (!this.#mapLinkOn()) { this.#mapInstalled = false; return; }
550
+ try {
551
+ this.#mapInstalled = await readMapEnabled(this.dataDir);
552
+ } catch {
553
+ this.#mapInstalled = false;
554
+ }
555
+ }
556
+
534
557
  /**
535
558
  * 刷新真实天气(tick 里调,按 weatherRefreshMin 节流)。
536
559
  * fetchWeather 自己绝不抛错,这里也不额外抛:失败只是让快照停在「不提天气」。
@@ -1653,6 +1676,8 @@ export class FeastWorld {
1653
1676
  await this.#refreshWardrobe();
1654
1677
  // 娱乐时间装没装:叫醒事件拼例子要用,顺手刷新(读不到就是没装)。
1655
1678
  await this.#refreshFunInstalled();
1679
+ // 小地图同理,各刷各的。
1680
+ await this.#refreshMapInstalled();
1656
1681
  const z = zonedNow(this.timezone, now);
1657
1682
  const today = await readDay(this.dataDir, z.date);
1658
1683
  if (!today || today.source === 'pending' || !today.items.length) {
@@ -2041,7 +2066,8 @@ export class FeastWorld {
2041
2066
  : String(DEFAULTS.lifeFreeMenu);
2042
2067
  // 娱乐时间装了才把「出门去逛逛」那一行接上去;关了开关、没装、或她自己抄过 fun_*
2043
2068
  // 都原样返回——绝不让她看到指向不存在工具的例子。
2044
- const menu = withFunLine(rawMenu, this.#funInstalled, this.cfg);
2069
+ // 小地图接在后面,两行互不打架(各按自己的前缀去重)。
2070
+ const menu = withMapLine(withFunLine(rawMenu, this.#funInstalled, this.cfg), this.#mapInstalled, this.cfg);
2045
2071
  await host.pushEvent({
2046
2072
  type: EVENT_LIFE_FREE,
2047
2073
  source: this.id,
@@ -2113,7 +2139,8 @@ export class FeastWorld {
2113
2139
  // 和叫醒事件同一条路径:装了娱乐时间才加那一行。这里是工具调用(异步),
2114
2140
  // 现读一次比等 tick 更稳——刚装完娱乐时间她就能看到它。
2115
2141
  await this.#refreshFunInstalled();
2116
- const menu = withFunLine(rawMenu, this.#funInstalled, this.cfg);
2142
+ await this.#refreshMapInstalled();
2143
+ const menu = withMapLine(withFunLine(rawMenu, this.#funInstalled, this.cfg), this.#mapInstalled, this.cfg);
2117
2144
  const done = play.done.length;
2118
2145
  const mood = typeof args?.mood === 'string' && args.mood.trim() ? `(${args.mood.trim().slice(0, 60)})` : '';
2119
2146
  const wshort = weatherShort(this.#weather);
@@ -2573,7 +2600,8 @@ export class FeastWorld {
2573
2600
  : String(DEFAULTS.lifeFreeMenu);
2574
2601
  // 面板这条通道也不等 tick:现读一次再拼,免得刚装完娱乐时间这里还没刷新。
2575
2602
  await this.#refreshFunInstalled();
2576
- const menu = withFunLine(rawMenu, this.#funInstalled, this.cfg);
2603
+ await this.#refreshMapInstalled();
2604
+ const menu = withMapLine(withFunLine(rawMenu, this.#funInstalled, this.cfg), this.#mapInstalled, this.cfg);
2577
2605
  const wshort = weatherShort(this.#weather);
2578
2606
  const whint = weatherFreeHint(this.#weather?.ok ? this.#weather.kind : null);
2579
2607
  await this.#host?.pushEvent?.({
@@ -2658,8 +2686,9 @@ export class FeastWorld {
2658
2686
  // 「她的一天」关着时 #lifeEnsure 会提前 return,所以这里单独补一次。
2659
2687
  try {
2660
2688
  await this.#refreshFunInstalled();
2689
+ await this.#refreshMapInstalled();
2661
2690
  } catch (err) {
2662
- host?.log?.warn?.('鱼的每一天:娱乐时间联动没读到', { err: msg(err) });
2691
+ host?.log?.warn?.('鱼的每一天:娱乐时间/小地图联动没读到', { err: msg(err) });
2663
2692
  }
2664
2693
  // 启动就先取一次真实天气:envPromptVars() 是同步的,前缀重建时得有内存快照可读。
2665
2694
  // 取不到就保持「不提天气」,下一拍 tick 再试。