cortico-world-fun 0.3.1 → 0.7.6

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +586 -410
  2. package/PUBLISHING.md +38 -66
  3. package/README.md +192 -47
  4. package/assets/home/chibi-cards.webp +0 -0
  5. package/assets/home/chibi-chatting.webp +0 -0
  6. package/assets/home/chibi-cooking.webp +0 -0
  7. package/assets/home/chibi-gaming.webp +0 -0
  8. package/assets/home/chibi-idle.webp +0 -0
  9. package/assets/home/chibi-looking_outside.webp +0 -0
  10. package/assets/home/chibi-painting.webp +0 -0
  11. package/assets/home/chibi-reading.webp +0 -0
  12. package/assets/home/chibi-sleeping.webp +0 -0
  13. package/assets/home/chibi-watching.webp +0 -0
  14. package/assets/icon.png +0 -0
  15. package/describe.json +365 -48
  16. package/dist/webui.js +6758 -749
  17. package/package.json +8 -8
  18. package/src/ENV_PROMPT.md +11 -10
  19. package/src/bridge-echo-solo.json +137 -0
  20. package/src/config.js +356 -176
  21. package/src/creek-letter.js +3 -0
  22. package/src/definition.js +121 -106
  23. package/src/exploration.js +2 -2
  24. package/src/home-room.js +895 -0
  25. package/src/joint.js +230 -0
  26. package/src/journeys.js +1 -1
  27. package/src/phases.js +5 -10
  28. package/src/place-cover.js +176 -0
  29. package/src/place-library.js +794 -0
  30. package/src/place-transfer.js +162 -0
  31. package/src/state.js +717 -596
  32. package/src/story-canon.js +21 -0
  33. package/src/story-dm.js +140 -0
  34. package/src/story-examples.js +597 -78
  35. package/src/story-free.js +298 -0
  36. package/src/story-images.js +474 -0
  37. package/src/story-library.js +187 -20
  38. package/src/story-node-limit.js +55 -0
  39. package/src/story-packs.js +333 -16
  40. package/src/story-panel.js +318 -0
  41. package/src/story-read.js +121 -0
  42. package/src/story-reliability.js +95 -0
  43. package/src/story-secrets.js +485 -0
  44. package/src/story-venue-migration.js +113 -0
  45. package/src/swapped-plaque-riddle.json +167 -0
  46. package/src/time.js +16 -0
  47. package/src/user-venues.js +44 -15
  48. package/src/venues.js +93 -9
  49. package/src/world.js +3683 -1847
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "cortico-world-fun",
3
- "version": "0.3.1",
3
+ "version": "0.7.6",
4
4
  "type": "module",
5
- "description": "娱乐时间 —— 给 Coopanion 桌宠二十处真能去逛的地方:游乐场、海洋馆、庙会、漫展、电影院、动物园、公园、电玩城、KTV、博物馆、猫咖、爬山、咖啡店、奶茶店、餐厅、图书馆、夜市、澡堂、旧货市场、江边。进门、逛摊位、买纪念品、拍张照、吃喝点什么,收摊记一笔。能和「鱼的每一天」「生图工作室」联动,但都不依赖。",
5
+ "description": "从0开始的肥鱼大冒险 —— 给 Coopanion 桌宠二十处真能去逛的地方:游乐场、海洋馆、庙会、漫展、电影院、动物园、公园、电玩城、KTV、博物馆、猫咖、爬山、咖啡店、奶茶店、餐厅、图书馆、夜市、澡堂、旧货市场、江边。进门、逛摊位、买纪念品、拍张照、吃喝点什么,回家记一笔。\n\n七个面板:家(2D 房间、十个活动)、去哪儿(此刻推荐)、地点册(唯一的编辑器)、出游(当前这一趟与故事)、纪念册、纪念品架、故事工坊。故事可以自己写:选项式一步一选,自由场景包交给主持即兴演;双人故事里的共同决定要两席同票才前进。24 个工具、0 个事件,数据全部存在本机 fun/ 目录。\n\n能和「鱼的每一天」「生图工作室」联动,但都不依赖;「鱼的小世界」已并入这里,地点与房间就是本插件的「地点册」与「家」,不必再装两个包。",
6
6
  "license": "MIT",
7
7
  "author": "青",
8
8
  "repository": {
@@ -42,7 +42,7 @@
42
42
  "build:webui": "esbuild webui/webui.js --bundle --format=esm --platform=browser --target=es2022 --charset=utf8 --outfile=dist/webui.js",
43
43
  "pretest": "npm run build:webui",
44
44
  "prepack": "npm run build:webui",
45
- "test": "node test/story-packs.test.mjs && node test/story-world.test.mjs && node test/journal-world.test.mjs && node test/branches.test.mjs && node test/journeys.test.mjs && node test/exploration.test.mjs && node test/venues.test.mjs && node test/state.test.mjs && node test/events.test.mjs && node test/memories.test.mjs && node test/phases.test.mjs && node test/keepsakes.test.mjs && node test/user-venues.test.mjs && node test/aquarium.test.mjs && node test/wishes.test.mjs && node test/choices.test.mjs && node test/world.test.mjs && node test/panels.test.mjs",
45
+ "test": "node test/story-secrets.test.mjs && node test/story-images.test.mjs && node test/story-migration.test.mjs && node test/story-venue-migration.test.mjs && node test/story-config.test.mjs && node test/story-stages.test.mjs && node test/story-dm.test.mjs && node test/story-packs.test.mjs && node test/story-panel.test.mjs && node test/story-world.test.mjs && node test/story-free.test.mjs && node test/story-text.test.mjs && node test/story-read-cache.test.mjs && node test/memory-trash.test.mjs && node test/journal-world.test.mjs && node test/branches.test.mjs && node test/journeys.test.mjs && node test/exploration.test.mjs && node test/venues.test.mjs && node test/state.test.mjs && node test/events.test.mjs && node test/memories.test.mjs && node test/phases.test.mjs && node test/keepsakes.test.mjs && node test/user-venues.test.mjs && node test/aquarium.test.mjs && node test/wishes.test.mjs && node test/choices.test.mjs && node test/world.test.mjs && node test/panels.test.mjs && node webui/story/webui.test.mjs && node test/place-library.test.mjs && node webui/places/webui.test.mjs && node test/home-room.test.mjs && node test/home-entry.test.mjs && node test/home-tools.test.mjs && node test/home-circle.test.mjs && node webui/home/webui.test.mjs",
46
46
  "verify": "node tools/check-webui.mjs && node tools/fix-ps1-bom.mjs install.ps1 && node tools/check-prompt.mjs && node tools/check-isolation.mjs && node tools/smoke.mjs && node tools/make-describe.mjs --check",
47
47
  "describe": "node tools/make-describe.mjs",
48
48
  "check:publish": "node tools/publish-check.mjs --online",
@@ -53,7 +53,7 @@
53
53
  "cortico": {
54
54
  "kind": "world",
55
55
  "api": 6,
56
- "displayName": "娱乐时间",
56
+ "displayName": "从0开始的肥鱼大冒险",
57
57
  "icon": "assets/icon.png",
58
58
  "describe": "describe.json",
59
59
  "webUiClient": "dist/webui.js",
@@ -62,12 +62,12 @@
62
62
  ],
63
63
  "locales": {
64
64
  "zh": {
65
- "displayName": "娱乐时间",
66
- "description": "给 Coo 二十处能真去逛的地方:游乐场、海洋馆、庙会、漫展、电影院、动物园、公园、电玩城、KTV、博物馆、猫咖、爬山、咖啡店、奶茶店、餐厅、图书馆、夜市、澡堂、旧货市场、江边。她说一声进门,一处一处地逛项目、抽个签、买点纪念品、拍张照、喝杯奶茶,收摊时回执把这一趟收成一句话,接着去记进自己的日程。\n\n能和别的插件联动,但都不依赖:装了「鱼的每一天」时,日程叫醒里会顺手提到这块、收摊回执也会提醒她去 feast_life_play 记一笔;咖啡店、奶茶店、餐厅、夜市吃的东西去「鱼的每一天」点一道,那里才有九维口感、香气和余韵——没装就只知道喝了杯奶茶,不编味道。装了「生图工作室」时,收摊回执会告诉她发图该填哪个 scene、哪身衣服;素材库里没有的那几处会明说不用填,绝不替她编一个不存在的场景名。这些插件一个都不装也照样能逛,库挪走了也不影响。\n\n0.3.0 新增用户自填剧情包、两站出游、未完行程恢复、长期探索档案与可检索的出游手账。四个面板配原创地点插画、沿途时间线和纪念品图标。用户剧情与地点配置独立保存,预设只提供少量可停用示例,自填地点无剧情也可正常游玩。"
65
+ "displayName": "从0开始的肥鱼大冒险",
66
+ "description": "给 Coo 二十处能真去逛的地方:游乐场、海洋馆、庙会、漫展、电影院、动物园、公园、电玩城、KTV、博物馆、猫咖、爬山、咖啡店、奶茶店、餐厅、图书馆、夜市、澡堂、旧货市场、江边。她说一声进门,一处一处地逛项目、抽个签、买点纪念品、拍张照、喝杯奶茶,回家时回执把这一趟收成一句话,接着去记进自己的日程。\n\n七个面板各管一段:**家**是一张 2D 房间、十个活动,能换背景、能摆她买回来的东西;**去哪儿**推荐此刻能去的地方;**地点册**是唯一的编辑器,场所、画风、关联、封面都在这里改;**出游**管当前这一趟、故事与进度;**纪念册**把每一趟收成一张票笺;**纪念品架**排成展示柜;**故事工坊**写故事。\n\n故事有两种写法:**选项式**一步一选,像翻分支小说;**自由场景包**只写大方向、正史、人物与收尾条件,每一回合交给主持即兴演。可以在面板里玩,也可以在聊天里开局推进。双人故事里的共同决定要两席各投一票、两边一致才前进,分歧不替任何一席作主。\n\n「鱼的小世界」(cortico-world-map)已经并入:它原来的地点与房间就是这里的「地点册」与「家」,不必再装两个包;旧版导出的备份可以在「地点册 → 整理与设置 → 从小世界迁入」一次性搬进来。\n\n能和别的插件联动,但都不依赖:装了「鱼的每一天」时,日程叫醒里会顺手提到这块、回家回执也会提醒她去 feast_life_play 记一笔;咖啡店、奶茶店、餐厅、夜市吃的东西去「鱼的每一天」点一道,那里才有九维口感、香气和余韵——没装就只知道喝了杯奶茶,不编味道。装了「生图工作室」时,回家回执会告诉她发图该填哪个 scene、哪身衣服;素材库里没有的那几处会明说不用填,绝不替她编一个不存在的场景名。这些插件一个都不装也照样能逛,库挪走了也不影响。"
67
67
  },
68
68
  "en": {
69
- "displayName": "Fun time",
70
- "description": "Twenty places she can actually go: an amusement park, an aquarium, a temple fair, a fan convention, a cinema, a zoo, a park, an arcade, a karaoke box, a museum, a cat cafe, a hike, a coffee shop, a bubble-tea stand, a restaurant, a library, a night market, a bathhouse, a flea market and a riverside walk. She walks in, wanders one spot at a time, buys a souvenir, takes a photo, has something to eat or drink, and the closing receipt sums the trip up in one line she can log into her own day.\n\nWorks alongside other plugins but depends on none. With Fish Every Day installed, the own-time menu points at this world and the closing receipt reminds her to log the trip with feast_life_play; food and drink at the coffee shop, tea stand and restaurant are meant to be ordered from Fish Every Day, where the nine-axis flavour profile and aroma actually live — without it she only knows she had a bubble tea, and she is told not to invent how it tasted. With the image studio installed, the receipt names the scene and outfit to draw; venues the library does not have are marked as such instead of inventing a name. None of them are required, and it still works if the image library is gone.\n\nVersion 0.3.0 adds user-authored story packs, two-stop outings, unfinished-trip recovery, permanent exploration and searchable trip journals. Four panels include original venue art, action timelines and souvenir icons. User stories and place settings are stored separately from plugin code; the small preset story collection is optional, and custom places work without stories."
69
+ "displayName": "Adventures of Fat Fish from Scratch",
70
+ "description": "Twenty places she can actually go: an amusement park, an aquarium, a temple fair, a fan convention, a cinema, a zoo, a park, an arcade, a karaoke box, a museum, a cat cafe, a hike, a coffee shop, a bubble-tea stand, a restaurant, a library, a night market, a bathhouse, a flea market and a riverside walk. She says the word, wanders one spot at a time, buys a souvenir, takes a photo, has something to eat or drink, and the closing receipt sums the trip up in one line she can log into her own day.\n\nSeven panels: Home (a 2D room with ten activities), Where to (what is open right now), Place Book (the only editor for places, styles, links and covers), Outing (this trip and its story), Trip Book, Souvenir Shelf, and the Story Workshop. Stories are authored here too: choice stories go one step at a time like a branching novel, free scene packs hand every turn to a DM to improvise, and a duo story only moves on when both seats vote the same. 24 tools, 0 events, everything stored locally under fun/.\n\nLittle World (cortico-world-map) is now folded in: its places and rooms are this plugin's Place Book and Home, so there is no need to keep both installed; a backup exported from the old version can be moved over in one go from Place Book → Tidy & settings → Import from Little World.\n\nWorks alongside other plugins but depends on none: with Fish Every Day the own-time menu points here and the closing receipt reminds her to log the trip with feast_life_play, and food is ordered there where the nine-axis flavour profile lives; with the image studio the receipt names the scene and outfit to draw. None of them are required."
71
71
  }
72
72
  }
73
73
  },
package/src/ENV_PROMPT.md CHANGED
@@ -1,14 +1,15 @@
1
- ## 娱乐时间
1
+ ## 从0开始的肥鱼大冒险
2
2
 
3
- 出游流程:`fun_places` 查询地点 → `fun_go` 进门 → `fun_wander` 逐处游逛 → `fun_home` 收摊;现在出门可用 `fun_start`。地点、项目、纪念品和拍照点名称以工具回执为准;吃喝只填当前地点真实提供的品类。历史与收藏按需用 `fun_view`、`fun_shelf` 查询。
3
+ 出游:`fun_places` 查地点 → `fun_go` 进门 → `fun_wander` 逐处逛 → `fun_home` 回家;也能用 `fun_start` 现在出门。地点、项目、纪念品、拍照点名称以回执为准;吃喝只填当前地点真有的品类。历史与收藏按需查 `fun_view`、`fun_shelf`。
4
4
 
5
- - 连逛两处可用 `fun_route` 规划;每站自己进门、收摊,再决定下一站、换一站或提前结束,不自动移动。
6
- - 中断后用 `fun_view` 找未完行程,再决定续逛或按已有记录收摊。待选事件按回执的选项处理。
5
+ - 连逛两处用 `fun_route`:每站自己进门、回家,再决定下一站、换一站或提前结束,不自动移动。中断后用 `fun_view` 找未完行程;待选事件按回执处理。
6
+ - 房间状态是画面,不是经历;切姿势用 `fun_home_activity`,只读看房间用 `fun_home_state`;`pendingLine` 只是可复制文本。
7
7
  - 明确表达想去或想做时用 `fun_wish` 记录、`fun_wishes` 查询;不催促、不从旧行程推断完成。
8
- - 发图用 `imggen_draw`:按 `fun_home` 回执填写 `scene` / `outfits` 正名,不编场景或衣服名字;库里没找到的不要填。
9
- - 食物只记品类。开关联动允许且实际用「鱼的每一天」的 `feast_menu` → `feast_eat` 后才能描述口感;否则只说吃喝了什么,别形容味道。本插件不会探测别的扩展装没装,不依赖其他 World。
10
- - 时段可能改变氛围和可逛项目;重复到访有效。历史只按需查询,不编造未发生的经历。
11
- - 用户自填地点通常没有素材库场景;以回执为准。地点清单和动态详情通过 `fun_places` 查询。预设删不掉,只能恢复。
12
- - 出门前可用 `feast_life_now` 对齐日程;收摊后按回执用 `feast_life_play` 记录实际经历。
8
+ - 配图:想画就自己画(`imggen_draw`),不想画不用管;`scene` / `outfits` 用正名,只画真实发生过的样子,库里没找到的不要填。
9
+ - 吃喝只记品类。允许且实际用「鱼的每一天」的 `feast_menu` → `feast_eat` 后才形容味道;否则只说吃喝了什么,别形容味道。本插件不会探测别的扩展装没装,不依赖其他 World。
10
+ - 时段会改变氛围和可逛项目;重复到访有效。历史只按需查,不编造未发生的经历。
11
+ - 用户自填地点通常没有素材库场景;地点清单与详情用 `fun_places`。预设删不掉,只能恢复;故事库随包四篇,也能自己写。
12
+ - 出门前可用 `feast_life_now` 对齐日程,用 `feast_life_adjust` 写进当天;回家后按回执用 `feast_life_play` 记录。自己出门不限次数:到时段会收到提醒,去不去、去哪儿由你和主对话按日程定。
13
+ - 故事只读查询同一参数 10 分钟内只回「没变化」:看到 `unchanged` 就停;上下文断了才加 `full:true`。
13
14
 
14
- {{fun_places_block}}
15
+ {{fun_places_block}}
@@ -0,0 +1,137 @@
1
+ {
2
+ "version": 1,
3
+ "id": "bridge-echo-solo",
4
+ "title": "桥底下的回声",
5
+ "description": "你独自到江边散步,听见桥底下传来「咕——咕咕」,两短一长,像在等谁回答。是问候,还是回声?回应、下去看看,还是坐在长椅上听——这段水边的小谜,由你自己决定。",
6
+ "placeId": "riverside",
7
+ "start": "start",
8
+ "nodes": [
9
+ {
10
+ "id": "start",
11
+ "area": "步道",
12
+ "event": "你独自来到江边步道。桥底下传来「咕——咕咕」,两短一长,停一停,像在等谁回答。",
13
+ "prompt": "声音又来了。你打算怎么办?",
14
+ "choices": [
15
+ {
16
+ "id": "c-answer",
17
+ "label": "朝桥的方向回一声「咕——」",
18
+ "result": "你鼓起腮帮子,朝桥的方向回了一声。桥底下的声音停了一下,又响起来。",
19
+ "next": "answer"
20
+ },
21
+ {
22
+ "id": "c-listen",
23
+ "label": "先不出声,再听一会儿",
24
+ "result": "你停住鳍,仔细听,想先把这个节奏听清楚。",
25
+ "next": "listen"
26
+ }
27
+ ]
28
+ },
29
+ {
30
+ "id": "answer",
31
+ "area": "下到水边的台阶",
32
+ "event": "你游下到水边的台阶。声音更清楚了:每声「咕——咕咕」后面,都跟着半拍轻一点的回音,方向正是桥洞。",
33
+ "prompt": "像是回声。要下去桥洞,还是去对岸试试?",
34
+ "choices": [
35
+ {
36
+ "id": "c-enter-a",
37
+ "label": "悄悄游进桥洞",
38
+ "result": "你溜进桥洞的凉影里,想看看是谁在叫。",
39
+ "next": "frog"
40
+ },
41
+ {
42
+ "id": "c-opposite-a",
43
+ "label": "游到对岸,从那边回应",
44
+ "result": "你想试试:从对岸发声,会不会听起来像回声?",
45
+ "next": "opposite"
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "id": "listen",
51
+ "area": "栏杆边",
52
+ "event": "你停住鳍细听:两短一长,间隔总是一样;每轮之后,都有半拍轻一点的回音,从桥洞那边荡过来。",
53
+ "prompt": "声音和回音一前一后,像在对话。接下来呢?",
54
+ "choices": [
55
+ {
56
+ "id": "c-enter-b",
57
+ "label": "下去桥洞看看",
58
+ "result": "你游下台阶,想看看是谁在跟回音说话。",
59
+ "next": "frog"
60
+ },
61
+ {
62
+ "id": "c-bench",
63
+ "label": "坐到长椅上想一想",
64
+ "result": "你想先把这个节奏想明白,再决定怎么做。",
65
+ "next": "bench"
66
+ }
67
+ ]
68
+ },
69
+ {
70
+ "id": "bench",
71
+ "area": "长椅上",
72
+ "event": "坐在长椅上,你想明白了:叫的那一位只有自己,回音是它唯一的回答。它不是在玩,是在练习打招呼。你决定下去看看。",
73
+ "next": "frog"
74
+ },
75
+ {
76
+ "id": "frog",
77
+ "area": "桥底下",
78
+ "event": "桥洞里的石头上蹲着一只小青蛙,正对着桥洞认真地叫「咕——咕咕」。桥洞把声音还给它,它点点头。石头边有片叶子,上面画着五道小记号。",
79
+ "prompt": "它在跟自己的回声说话,已经练了五天。你……",
80
+ "choices": [
81
+ {
82
+ "id": "c-reveal",
83
+ "label": "在石头边轻轻回一声「咕——」",
84
+ "result": "你不想吓到它,只在石头边轻轻应了一声。",
85
+ "next": "duet"
86
+ },
87
+ {
88
+ "id": "c-quiet",
89
+ "label": "不打扰它,悄悄退开",
90
+ "result": "你慢慢退出桥洞的凉影,想把这个认真的小场景留在原处。",
91
+ "next": "secret"
92
+ },
93
+ {
94
+ "id": "c-opposite-b",
95
+ "label": "游去对岸,从那边回应",
96
+ "result": "你想到一个主意:从对岸发声,听起来一定像回声。",
97
+ "next": "opposite"
98
+ }
99
+ ]
100
+ },
101
+ {
102
+ "id": "opposite",
103
+ "area": "对岸的观景点",
104
+ "event": "你游到对岸的观景点,朝桥洞喊了一声「咕——」。桥洞把声音送回去,慢了半拍——从这边听,简直就像回声。",
105
+ "prompt": "桥洞下的小青蛙探出头,四处张望。你怎么办?",
106
+ "choices": [
107
+ {
108
+ "id": "c-again",
109
+ "label": "留在对岸,再应一声",
110
+ "result": "你想继续当这个「回声」,认真地又应了一声。",
111
+ "next": "trio"
112
+ },
113
+ {
114
+ "id": "c-return",
115
+ "label": "游回桥洞,当面见它",
116
+ "result": "你不想再藏着声音,朝桥洞的凉影游回去。",
117
+ "next": "duet"
118
+ }
119
+ ]
120
+ },
121
+ {
122
+ "id": "duet",
123
+ "area": "桥底下",
124
+ "event": "小青蛙回过头,终于看见了你。它愣了愣,认真鞠了一躬:「你好,我练了五天。」你回了一声「咕——」。这一次没有回声,是真的回答。叶子上多了一道记号。"
125
+ },
126
+ {
127
+ "id": "secret",
128
+ "area": "长椅上",
129
+ "event": "你悄悄退到长椅上,让问候继续。叶子上有五道记号,你记住了这个数字。你决定:明天再来,到时候,好好说一声你好。"
130
+ },
131
+ {
132
+ "id": "trio",
133
+ "area": "对岸的观景点",
134
+ "event": "你在对岸又应了一声「咕——」。桥洞把声音送回去,慢半拍,像一道新的回声。桥洞下的小青蛙兴奋地叫起来,三个声音轮流响,谁也不让谁掉在地上。你喜欢这个位置——可以当桥的声音。"
135
+ }
136
+ ]
137
+ }