cortico-world-fun 0.9.1 → 0.9.3

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/describe.json CHANGED
@@ -1,610 +1,758 @@
1
- {
2
- "tools": [
3
- {
4
- "name": "fun_places",
5
- "description": "查询地点、当前开放状态与可逛项目。",
6
- "parameters": {
7
- "type": "object",
8
- "properties": {
9
- "count": {
10
- "type": "integer",
11
- "description": "看几个,默认 4。",
12
- "minimum": 1,
13
- "maximum": 8
14
- },
15
- "kind": {
16
- "type": "string",
17
- "description": "筛一类:大类(「户外」)、感受(「室内」「夜」「免费」)或某处正名(「猫咖」)。"
18
- },
19
- "all": {
20
- "type": "boolean",
21
- "description": "true = 列全部地点,忽略 count。"
22
- },
23
- "now": {
24
- "type": "boolean",
25
- "description": "true = 查看此刻推荐的五处地点。"
26
- }
27
- },
28
- "additionalProperties": false
29
- },
30
- "tags": [
31
- "read",
32
- "snapshot"
33
- ],
34
- "summary": {
35
- "zh": "查询当前地点,按营业状态和拥挤度排序;可筛选或列出全部。",
36
- "en": "Query available places ranked by opening hours and crowd; filter by kind or list all."
37
- }
38
- },
39
- {
40
- "name": "fun_go",
41
- "description": "开始一趟出游,返回当下描写与可逛项目;续走未完行程时改填 tripId。steps>1 在同一地点批量逛,遇待选项或故事即停;不接受 area/note/buy/photo/consume,收获另用 fun_wander 记录。place 用 fun_places 给的地点名或别名。",
42
- "parameters": {
43
- "type": "object",
44
- "properties": {
45
- "place": {
46
- "type": "string",
47
- "description": "去哪儿,如「海洋馆」。"
48
- },
49
- "company": {
50
- "type": "string",
51
- "description": "同行人,可选;一个人不填。"
52
- },
53
- "tripId": {
54
- "type": "string",
55
- "description": "继续这趟未完行程时填 fun_journal 返回的行程 ID。"
56
- },
57
- "steps": {
58
- "type": "integer",
59
- "minimum": 1,
60
- "maximum": 8,
61
- "description": "默认 1 只进门;2–8 表示进门后在当前地点连续逛几处,遇待选项即停并汇总。"
62
- },
63
- "autoHome": {
64
- "type": "boolean",
65
- "description": "可选,默认 false。设为 true 时,逛完请求步数后若未遇待选项、故事或失败,自动回家并合并回家回执。"
66
- },
67
- "homeNote": {
68
- "type": "string",
69
- "description": "可选,仅 autoHome 为 true 时传给回家备注(最多 120 字)。"
70
- }
71
- },
72
- "additionalProperties": false
73
- },
74
- "tags": [
75
- "write"
76
- ],
77
- "summary": {
78
- "zh": "默认只进门;可用 tripId 续逛,steps 2–8 批量逛当前地点,autoHome 可在安全结束后自动回家并附上 homeNote。",
79
- "en": "Enter a place by default, resume with tripId, or explore with steps 2–8; autoHome returns home when safe, with an optional homeNote."
80
- }
81
- },
82
- {
83
- "name": "fun_wander",
84
- "description": "在当前地点逛一处;可记录本次真实收获。选项式故事的待选项请在故事手账里处理。",
85
- "parameters": {
86
- "type": "object",
87
- "properties": {
88
- "area": {
89
- "type": "string",
90
- "description": "逛哪儿,如「过山车」;不填自动挑一处没逛过的。"
91
- },
92
- "note": {
93
- "type": "string",
94
- "description": "一句话,可选。"
95
- },
96
- "buy": {
97
- "type": "string",
98
- "description": "买了什么,填 souvenir 名。"
99
- },
100
- "photo": {
101
- "type": "string",
102
- "description": "在哪儿拍照,填 photoSpot 名。"
103
- },
104
- "consume": {
105
- "type": "string",
106
- "description": "只填这处真有的品类。只记名字不记味道——味道用 feast_menu/feast_eat 去「鱼的每一天」点。"
107
- }
108
- },
109
- "additionalProperties": false
110
- },
111
- "tags": [
112
- "write"
113
- ],
114
- "summary": {
115
- "zh": "逛一个项目,可记录本次购买、拍照或吃喝。",
116
- "en": "Wander one spot and optionally record a purchase, photo or food."
117
- }
118
- },
119
- {
120
- "name": "fun_home",
121
- "description": "回家,把已发生的经历记入纪念册。",
122
- "parameters": {
123
- "type": "object",
124
- "properties": {
125
- "note": {
126
- "type": "string",
127
- "description": "一句话,可选。"
128
- },
129
- "draftId": {
130
- "type": "string",
131
- "description": "按已有记录结束未完行程时填 fun_journal 返回的行程 ID;结束正在逛的不填。"
132
- }
133
- },
134
- "additionalProperties": false
135
- },
136
- "tags": [
137
- "write"
138
- ],
139
- "summary": {
140
- "zh": "结束行程并返回本次摘要与记录提示。",
141
- "en": "End the trip and return its summary and logging prompt."
142
- }
143
- },
144
- {
145
- "name": "fun_home_room",
146
- "description": "读取房间状态;主对话开启或切换日常活动时,顺手调用本工具同步姿势与备注:sleeping 睡觉休息、reading 看书学习、watching 看剧看片、gaming 打游戏、painting 画画、cooking 做饭泡茶、cards 玩牌桌游、chatting 聊天、looking_outside 看窗外、idle 发呆放空。仅同步活动开启或切换,不因同一活动延续而重复调用,也不会写入出游经历。",
147
- "parameters": {
148
- "type": "object",
149
- "properties": {
150
- "activity": {
151
- "type": "string",
152
- "description": "可选:idle / reading / watching / cards / gaming / painting / cooking / looking_outside / sleeping / chatting。"
153
- },
154
- "note": {
155
- "type": "string",
156
- "description": "可选房间备注。"
157
- },
158
- "pose": {
159
- "type": "string",
160
- "description": "activity 的兼容别名。"
161
- }
162
- },
163
- "additionalProperties": false
164
- },
165
- "tags": [
166
- "read",
167
- "write",
168
- "snapshot"
169
- ],
170
- "summary": {
171
- "zh": "查看房间状态,可切换活动或写备注,不会写入经历。",
172
- "en": "Read the room, change an activity, or add a note without recording an outing."
173
- }
174
- },
175
- {
176
- "name": "fun_story",
177
- "description": "管理本地故事工坊:校验/预览只读,导入、改绑地点、启停、删除要指定 action。需打开「聊天里也能管故事」才挂。",
178
- "parameters": {
179
- "type": "object",
180
- "properties": {
181
- "action": {
182
- "type": "string",
183
- "enum": [
184
- "list",
185
- "template",
186
- "validate",
187
- "preview",
188
- "playtest",
189
- "export",
190
- "import",
191
- "rebind",
192
- "enable",
193
- "disable",
194
- "remove"
195
- ]
196
- },
197
- "id": {
198
- "type": "string",
199
- "description": "已有包 ID(list 取)。"
200
- },
201
- "json": {
202
- "type": "string",
203
- "description": "完整包 JSON,≤32 KB;validate/preview 不保存。"
204
- },
205
- "placeId": {
206
- "type": "string",
207
- "description": "template 绑定的地点 ID;rebind 要绑到的新地点 ID(list 可查)。"
208
- },
209
- "bindPlaceId": {
210
- "type": "string",
211
- "description": "import 时把包里不存在的地点改绑到这处已有地点。"
212
- },
213
- "mode": {
214
- "type": "string",
215
- "enum": [
216
- "static",
217
- "free"
218
- ],
219
- "description": "template 类型:static 选项式(默认)/ free 场景包。"
220
- },
221
- "area": {
222
- "type": "string",
223
- "description": "preview 的项目,默认起始项目。"
224
- },
225
- "time": {
226
- "type": "string",
227
- "description": "preview 的测试时刻 HH:MM,默认现在。"
228
- },
229
- "path": {
230
- "type": "array",
231
- "maxItems": 16,
232
- "items": {
233
- "type": "string",
234
- "maxLength": 24
235
- },
236
- "description": "playtest 已选的路径,只用临时状态。"
237
- },
238
- "replace": {
239
- "type": "boolean",
240
- "description": "import 覆盖同 ID 包时设 true。"
241
- }
242
- },
243
- "required": [
244
- "action"
245
- ],
246
- "additionalProperties": false
247
- },
248
- "tags": [
249
- "write"
250
- ],
251
- "summary": {
252
- "zh": "管理、校验与预览本地故事工坊,支持自填地点。",
253
- "en": "Manage, validate, and preview local story packs, including custom places."
254
- }
255
- },
256
- {
257
- "name": "fun_story_places",
258
- "description": "查询故事地点索引或单个地点详情;只读,不开始出游。",
259
- "parameters": {
260
- "type": "object",
261
- "properties": {
262
- "id": {
263
- "type": "string",
264
- "description": "地点 ID;不填返回索引。"
265
- },
266
- "full": {
267
- "type": "boolean",
268
- "description": "跳过 10 分钟记忆化,重取完整结果。"
269
- }
270
- },
271
- "additionalProperties": false
272
- },
273
- "tags": [
274
- "read",
275
- "snapshot"
276
- ],
277
- "summary": {
278
- "zh": "查询地点索引或单个地点详情,只读,不开始出游;JSON 回执经标准 text 返回。",
279
- "en": "Read the place index or one place detail; does not start an outing. JSON is returned in standard text."
280
- }
281
- },
282
- {
283
- "name": "fun_story_candidates",
284
- "description": "查询可用故事候选和公开简介(不含未来分支);只读。",
285
- "parameters": {
286
- "type": "object",
287
- "properties": {
288
- "full": {
289
- "type": "boolean",
290
- "description": "跳过 10 分钟记忆化,重取完整结果。"
291
- }
292
- },
293
- "additionalProperties": false
294
- },
295
- "tags": [
296
- "read",
297
- "snapshot"
298
- ],
299
- "summary": {
300
- "zh": "查询故事候选和公开简介,不返回未来分支;JSON 回执经标准 text 返回。",
301
- "en": "Read story candidates and public synopses without future branches. JSON is returned in standard text."
302
- }
303
- },
304
- {
305
- "name": "fun_story_detail",
306
- "description": "查询一篇故事的公开资料与可用原因,不含节点全文。",
307
- "parameters": {
308
- "type": "object",
309
- "properties": {
310
- "id": {
311
- "type": "string",
312
- "description": "故事 ID。"
313
- },
314
- "full": {
315
- "type": "boolean",
316
- "description": "跳过 10 分钟记忆化,重取完整结果。"
317
- }
318
- },
319
- "required": [
320
- "id"
321
- ],
322
- "additionalProperties": false
323
- },
324
- "tags": [
325
- "read",
326
- "snapshot"
327
- ],
328
- "summary": {
329
- "zh": "查询单个故事的公开资料与可用原因,不返回节点内容;JSON 回执经标准 text 返回。",
330
- "en": "Read one story’s public metadata and availability without node contents. JSON is returned in standard text."
331
- }
332
- },
333
- {
334
- "name": "fun_story_current",
335
- "description": "查询当前故事的状态、已发生片段与待选项;不推进。",
336
- "parameters": {
337
- "type": "object",
338
- "properties": {
339
- "full": {
340
- "type": "boolean",
341
- "description": "跳过 10 分钟记忆化,重取完整结果。"
342
- }
343
- },
344
- "additionalProperties": false
345
- },
346
- "tags": [
347
- "read",
348
- "snapshot"
349
- ],
350
- "summary": {
351
- "zh": "查询当前故事的状态和已发生内容,不推进故事;JSON 回执经标准 text 返回。",
352
- "en": "Read current story state and actual events without advancing it. JSON is returned in standard text."
353
- }
354
- },
355
- {
356
- "name": "fun_story_recap",
357
- "description": "查询已结束故事的事实回顾,只含实际发生。",
358
- "parameters": {
359
- "type": "object",
360
- "properties": {
361
- "id": {
362
- "type": "string",
363
- "description": "回忆 ID;不填取最近。"
364
- },
365
- "full": {
366
- "type": "boolean",
367
- "description": "跳过 10 分钟记忆化,重取完整结果。"
368
- }
369
- },
370
- "additionalProperties": false
371
- },
372
- "tags": [
373
- "read",
374
- "snapshot"
375
- ],
376
- "summary": {
377
- "zh": "查询已保存故事的事实回顾,不写入日程或长期记忆;JSON 回执经标准 text 返回。",
378
- "en": "Read an actual story recap without writing a schedule or long-term memory. JSON is returned in standard text."
379
- }
380
- },
381
- {
382
- "name": "fun_story_schedule",
383
- "description": "生成候选的可复制短文本;复制不写日程、不出发。",
384
- "parameters": {
385
- "type": "object",
386
- "properties": {
387
- "id": {
388
- "type": "string",
389
- "description": "候选 ID,可选。"
390
- },
391
- "full": {
392
- "type": "boolean",
393
- "description": "跳过 10 分钟记忆化,重取完整结果。"
394
- }
395
- },
396
- "additionalProperties": false
397
- },
398
- "tags": [
399
- "read",
400
- "snapshot"
401
- ],
402
- "summary": {
403
- "zh": "生成可复制的故事候选短文本;复制不写日程;JSON 回执经标准 text 返回。",
404
- "en": "Create copyable story-candidate text; copying does not write a schedule. JSON is returned in standard text."
405
- }
406
- },
407
- {
408
- "name": "fun_journal",
409
- "description": "查看行程、纪念品或珍藏;也可珍藏或取消珍藏行程。故事回顾请用 fun_story_recap。",
410
- "parameters": {
411
- "type": "object",
412
- "properties": {
413
- "view": {
414
- "type": "string",
415
- "enum": [
416
- "trips",
417
- "shelf",
418
- "keepsake"
419
- ],
420
- "description": "查看行程、纪念品展示柜或珍藏列表。"
421
- },
422
- "id": {
423
- "type": "string",
424
- "description": "行程 ID。"
425
- },
426
- "keep": {
427
- "type": "boolean",
428
- "description": "配合 id 珍藏或取消珍藏。"
429
- }
430
- },
431
- "required": [
432
- "view"
433
- ],
434
- "additionalProperties": false
435
- },
436
- "tags": [
437
- "read",
438
- "write",
439
- "snapshot"
440
- ],
441
- "summary": {
442
- "zh": "查看行程、纪念品或珍藏,也可珍藏或取消珍藏行程。",
443
- "en": "Browse trips, souvenirs, or keepsakes; keep or unkeep a trip."
444
- }
445
- },
446
- {
447
- "name": "fun_story_start",
448
- "description": "在聊天里开始一段故事(需开「文字通道也能玩故事」)。先从 fun_story_candidates / detail 取 packId、revision,从 fun_story_current 取 startStamp;开始前会重校验。自由故事可传 party 群聊名单;选项式故事不接受 party。用户明确说要开始才填 confirm:true。",
449
- "parameters": {
450
- "type": "object",
451
- "properties": {
452
- "packId": {
453
- "type": "string",
454
- "description": "候选里的故事 ID。"
455
- },
456
- "revision": {
457
- "type": "string",
458
- "description": "候选里的版本。"
459
- },
460
- "startStamp": {
461
- "type": "string",
462
- "description": "fun_story_current 的 startStamp。"
463
- },
464
- "confirm": {
465
- "type": "boolean",
466
- "description": "用户明确说要开始时填 true。"
467
- },
468
- "party": {
469
- "type": "array",
470
- "maxItems": 20,
471
- "description": "自由故事群聊参与者;省略时沿用常驻名单。",
472
- "items": {
473
- "type": "object",
474
- "properties": {
475
- "who": {
476
- "type": "string",
477
- "maxLength": 40
478
- },
479
- "tag": {
480
- "type": "string",
481
- "maxLength": 100
482
- }
483
- },
484
- "required": [
485
- "who"
486
- ],
487
- "additionalProperties": false
488
- }
489
- }
490
- },
491
- "required": [
492
- "packId",
493
- "revision",
494
- "startStamp",
495
- "confirm"
496
- ],
497
- "additionalProperties": false
498
- },
499
- "tags": [
500
- "write"
501
- ],
502
- "summary": {
503
- "zh": "在文字通道里开始一段故事(需开启文字通道开关),开始前重新校验条件;JSON 回执经标准 text 返回。",
504
- "en": "Start a story from a text channel (requires the text switch), rechecking conditions. JSON is returned in standard text."
505
- }
506
- },
507
- {
508
- "name": "fun_story_act",
509
- "description": "在聊天里推进当前故事。自由故事可用 say(≤1500 字)或 actions 一次汇总多人发言(每人≤500 字、合计≤1500 字),一组只推进一回合;早提交用 redo 重跑。选项式按回合身份提交:用户回合记 owner,鱼回合由鱼决定;原话对不上先返回 proposalId,确认后再带 proposalId+optionId。close 需 confirm:true。auto 携面板 mode 授权的 token,可用 batch:1–10 批量自演;须已开 autoplay,逐步验票计费,用户回合、待确认与 close 立即停。",
510
- "parameters": {
511
- "type": "object",
512
- "properties": {
513
- "tripId": {
514
- "type": "string",
515
- "description": "fun_story_current 的行程 ID。"
516
- },
517
- "stamp": {
518
- "type": "string",
519
- "description": "fun_story_current 的进度戳;变了重读,别猜。"
520
- },
521
- "intent": {
522
- "type": "string",
523
- "enum": [
524
- "say",
525
- "close",
526
- "redo",
527
- "auto"
528
- ],
529
- "description": "say 推进;close 结束;redo 重跑当前回合;auto 仅执行已授权的鱼回合。"
530
- },
531
- "batch": {
532
- "type": "integer",
533
- "minimum": 1,
534
- "maximum": 10,
535
- "description": "仅 auto 可用,默认 1;每次最多 10 步、90 秒,不自动续段或结束。"
536
- },
537
- "token": {
538
- "type": "string",
539
- "description": "auto 必填:面板开启鱼自主模式时返回的有效租约 token。不会凭空开启自主模式。"
540
- },
541
- "say": {
542
- "type": "string",
543
- "description": "用户原话。"
544
- },
545
- "actions": {
546
- "type": "array",
547
- "maxItems": 20,
548
- "description": "多人动作一次性汇总提交;每条 say ≤500 字,合计 ≤1500 字。",
549
- "items": {
550
- "type": "object",
551
- "properties": {
552
- "who": {
553
- "type": "string",
554
- "maxLength": 40
555
- },
556
- "say": {
557
- "type": "string",
558
- "maxLength": 500
559
- }
560
- },
561
- "required": [
562
- "who",
563
- "say"
564
- ],
565
- "additionalProperties": false
566
- }
567
- },
568
- "proposalId": {
569
- "type": "string",
570
- "description": "上次返回的提议 ID。"
571
- },
572
- "optionId": {
573
- "type": "string",
574
- "description": "确认提交的选项 ID。"
575
- },
576
- "from": {
577
- "type": "string",
578
- "description": "QQ 昵称,仅日志归属,可选。"
579
- },
580
- "confirm": {
581
- "type": "boolean",
582
- "description": "intent 为 close 时填 true。"
583
- }
584
- },
585
- "required": [
586
- "tripId",
587
- "stamp",
588
- "intent"
589
- ],
590
- "additionalProperties": false
591
- },
592
- "tags": [
593
- "write"
594
- ],
595
- "summary": {
596
- "zh": "在文字通道里推进当前故事:选项式先给待确认提议,自由模式每句推进一回合;JSON 回执经标准 text 返回。",
597
- "en": "Advance the current story from a text channel: option packs return a proposal, free packs advance one turn per line. JSON is returned in standard text."
598
- }
599
- }
600
- ],
601
- "events": [],
602
- "prompts": [
603
- {
604
- "key": "worlds.fun.env",
605
- "title": "从0开始的肥鱼大冒险",
606
- "role": "envPrompt",
607
- "content": "## 从0开始的肥鱼大冒险\n\n出游按 `fun_places` → `fun_go`(续逛带 tripId)→ `fun_wander` → `fun_home`;地点与收获以回执为准,行程/珍藏按需查 `fun_journal`。\n\n- `fun_home_room` 是画面非经历;`pendingLine` 仅供复制。主对话开启或切换日常活动时,顺手调用 `fun_home_room` 同步姿势与备注:`sleeping` 睡觉休息、`reading` 看书学习、`watching` 看剧看片、`gaming` 打游戏、`painting` 画画、`cooking` 做饭泡茶、`cards` 玩牌桌游、`chatting` 聊天、`looking_outside` 看窗外、`idle` 发呆放空。仅同步活动开启或切换,不因同一活动延续而重复调用;以行程 id/runId 作 `sourceRef` 防重,不自动互写,也不写入出游经历。若会话同时有生活日程与房间画面,回家或换活动时也可同步姿势,或用 `feast_life_play` 记经历。\n- 配图用 `imggen_draw`,`scene` / `outfits` 用正名,只画真实场景;库里没找到就省略。吃喝只记品类,不等于「鱼的每一天」的吃饭记账;开启联动且实际用 `feast_menu` → `feast_eat` 才形容味道,否则别形容味道。不会探测其他扩展,也不依赖其他 World。\n- 出门可用 `feast_life_now` 查日程、`feast_life_adjust` 写当天;没联动就跳过。本插件无定时器,是否出门由日程和主对话决定。时段影响项目,历史不编造;预设删不掉,只能恢复。\n- 故事同参数 10 分钟内见 `unchanged` 就停;上下文断了才加 `full:true`。\n- 群聊不要每看到一句就调用 `fun_story_act`;等大家表态完再以 `actions:[{who,say}]` 一次提交,一次只推进一回合。过早提交用 `intent:\"redo\"` 补充重跑。\n\n{{fun_places_block}}\n"
608
- }
609
- ]
610
- }
1
+ {
2
+ "tools": [
3
+ {
4
+ "name": "fun_places",
5
+ "description": "查询地点、当前开放状态与可逛项目。",
6
+ "parameters": {
7
+ "type": "object",
8
+ "properties": {
9
+ "count": {
10
+ "type": "integer",
11
+ "description": "看几个,默认 4。",
12
+ "minimum": 1,
13
+ "maximum": 8
14
+ },
15
+ "kind": {
16
+ "type": "string",
17
+ "description": "筛一类:大类(「户外」)、感受(「室内」「夜」「免费」)或某处正名(「猫咖」)。"
18
+ },
19
+ "all": {
20
+ "type": "boolean",
21
+ "description": "true = 列全部地点,忽略 count。"
22
+ },
23
+ "now": {
24
+ "type": "boolean",
25
+ "description": "true = 查看此刻推荐的五处地点。"
26
+ }
27
+ },
28
+ "additionalProperties": false
29
+ },
30
+ "tags": [
31
+ "read",
32
+ "snapshot"
33
+ ],
34
+ "summary": {
35
+ "zh": "查询当前地点,按营业状态和拥挤度排序;可筛选或列出全部。",
36
+ "en": "Query available places ranked by opening hours and crowd; filter by kind or list all."
37
+ }
38
+ },
39
+ {
40
+ "name": "fun_place_save",
41
+ "description": "新建或修改用户自建地点,不可修改内置预设,不支持删除。新建不传 id,name、desc 必填且不可重名;编辑须传已有自建地点 id,仅更新所传字段。areas 为可逛项目;可用 setHome:true 设为住所。描写只写场景,不写路线、坐标或方向。",
42
+ "parameters": {
43
+ "type": "object",
44
+ "properties": {
45
+ "id": {
46
+ "type": "string",
47
+ "description": "编辑时填已有自建地点 ID;新建省略。"
48
+ },
49
+ "name": {
50
+ "type": "string",
51
+ "maxLength": 40,
52
+ "description": "地点名,新建必填。"
53
+ },
54
+ "desc": {
55
+ "type": "string",
56
+ "maxLength": 400,
57
+ "description": "地点描写,新建必填。"
58
+ },
59
+ "aliases": {
60
+ "type": "array",
61
+ "maxItems": 8,
62
+ "items": {
63
+ "type": "string",
64
+ "maxLength": 40
65
+ }
66
+ },
67
+ "tags": {
68
+ "type": "array",
69
+ "maxItems": 8,
70
+ "items": {
71
+ "type": "string",
72
+ "maxLength": 20
73
+ }
74
+ },
75
+ "kind": {
76
+ "type": "string",
77
+ "maxLength": 40
78
+ },
79
+ "hours": {
80
+ "type": "object",
81
+ "properties": {
82
+ "open": {
83
+ "type": "string"
84
+ },
85
+ "close": {
86
+ "type": "string"
87
+ }
88
+ },
89
+ "required": [
90
+ "open",
91
+ "close"
92
+ ],
93
+ "additionalProperties": false
94
+ },
95
+ "crowd": {
96
+ "type": "string",
97
+ "enum": [
98
+ "quiet",
99
+ "normal",
100
+ "packed"
101
+ ]
102
+ },
103
+ "recommendedOutfit": {
104
+ "type": "string",
105
+ "maxLength": 40
106
+ },
107
+ "areas": {
108
+ "type": "array",
109
+ "maxItems": 30,
110
+ "items": {
111
+ "type": "string",
112
+ "maxLength": 40
113
+ },
114
+ "description": "可逛项目;非空时成为可玩场所,空数组清空项目。"
115
+ },
116
+ "souvenirs": {
117
+ "type": "array",
118
+ "maxItems": 20,
119
+ "items": {
120
+ "type": "string",
121
+ "maxLength": 40
122
+ }
123
+ },
124
+ "photoSpots": {
125
+ "type": "array",
126
+ "maxItems": 20,
127
+ "items": {
128
+ "type": "string",
129
+ "maxLength": 60
130
+ }
131
+ },
132
+ "randomEvents": {
133
+ "type": "array",
134
+ "maxItems": 20,
135
+ "items": {
136
+ "type": "string",
137
+ "maxLength": 120
138
+ }
139
+ },
140
+ "food": {
141
+ "anyOf": [
142
+ {
143
+ "type": "object",
144
+ "properties": {
145
+ "verb": {
146
+ "type": "string",
147
+ "enum": [
148
+ "吃",
149
+ "喝"
150
+ ]
151
+ },
152
+ "items": {
153
+ "type": "array",
154
+ "maxItems": 20,
155
+ "items": {
156
+ "type": "string",
157
+ "maxLength": 30
158
+ }
159
+ }
160
+ },
161
+ "required": [
162
+ "verb",
163
+ "items"
164
+ ],
165
+ "additionalProperties": false
166
+ },
167
+ {
168
+ "type": "null"
169
+ }
170
+ ]
171
+ },
172
+ "style": {
173
+ "type": "string",
174
+ "maxLength": 160
175
+ },
176
+ "setHome": {
177
+ "type": "boolean",
178
+ "description": "true = 保存成功后将该地点设为当前住所。"
179
+ }
180
+ },
181
+ "additionalProperties": false
182
+ },
183
+ "tags": [
184
+ "write"
185
+ ]
186
+ },
187
+ {
188
+ "name": "fun_go",
189
+ "description": "开始一趟出游,返回当下描写与可逛项目;续走未完行程时改填 tripId。steps>1 在同一地点批量逛,遇待选项或故事即停;不接受 area/note/buy/photo/consume,收获另用 fun_wander 记录。place 用 fun_places 给的地点名或别名。",
190
+ "parameters": {
191
+ "type": "object",
192
+ "properties": {
193
+ "place": {
194
+ "type": "string",
195
+ "description": "去哪儿,如「海洋馆」。"
196
+ },
197
+ "company": {
198
+ "type": "string",
199
+ "description": "同行人,可选;一个人不填。"
200
+ },
201
+ "tripId": {
202
+ "type": "string",
203
+ "description": "继续这趟未完行程时填 fun_journal 返回的行程 ID。"
204
+ },
205
+ "steps": {
206
+ "type": "integer",
207
+ "minimum": 1,
208
+ "maximum": 8,
209
+ "description": "默认 1 只进门;2–8 表示进门后在当前地点连续逛几处,遇待选项即停并汇总。"
210
+ },
211
+ "autoHome": {
212
+ "type": "boolean",
213
+ "description": "可选,默认 false。设为 true 时,逛完请求步数后若未遇待选项、故事或失败,自动回家并合并回家回执。"
214
+ },
215
+ "homeNote": {
216
+ "type": "string",
217
+ "description": "可选,仅 autoHome 为 true 时传给回家备注(最多 120 字)。"
218
+ }
219
+ },
220
+ "additionalProperties": false
221
+ },
222
+ "tags": [
223
+ "write"
224
+ ],
225
+ "summary": {
226
+ "zh": "默认只进门;可用 tripId 续逛,steps 2–8 批量逛当前地点,autoHome 可在安全结束后自动回家并附上 homeNote。",
227
+ "en": "Enter a place by default, resume with tripId, or explore with steps 2–8; autoHome returns home when safe, with an optional homeNote."
228
+ }
229
+ },
230
+ {
231
+ "name": "fun_wander",
232
+ "description": "在当前地点逛一处;可记录本次真实收获。选项式故事的待选项请在故事手账里处理。",
233
+ "parameters": {
234
+ "type": "object",
235
+ "properties": {
236
+ "area": {
237
+ "type": "string",
238
+ "description": "逛哪儿,如「过山车」;不填自动挑一处没逛过的。"
239
+ },
240
+ "note": {
241
+ "type": "string",
242
+ "description": "一句话,可选。"
243
+ },
244
+ "buy": {
245
+ "type": "string",
246
+ "description": "买了什么,填 souvenir 名。"
247
+ },
248
+ "photo": {
249
+ "type": "string",
250
+ "description": "在哪儿拍照,填 photoSpot 名。"
251
+ },
252
+ "consume": {
253
+ "type": "string",
254
+ "description": "只填这处真有的品类。只记名字不记味道——味道用 feast_menu/feast_eat 去「鱼的每一天」点。"
255
+ }
256
+ },
257
+ "additionalProperties": false
258
+ },
259
+ "tags": [
260
+ "write"
261
+ ],
262
+ "summary": {
263
+ "zh": "逛一个项目,可记录本次购买、拍照或吃喝。",
264
+ "en": "Wander one spot and optionally record a purchase, photo or food."
265
+ }
266
+ },
267
+ {
268
+ "name": "fun_home",
269
+ "description": "回家,把已发生的经历记入纪念册。",
270
+ "parameters": {
271
+ "type": "object",
272
+ "properties": {
273
+ "note": {
274
+ "type": "string",
275
+ "description": "一句话,可选。"
276
+ },
277
+ "draftId": {
278
+ "type": "string",
279
+ "description": "按已有记录结束未完行程时填 fun_journal 返回的行程 ID;结束正在逛的不填。"
280
+ }
281
+ },
282
+ "additionalProperties": false
283
+ },
284
+ "tags": [
285
+ "write"
286
+ ],
287
+ "summary": {
288
+ "zh": "结束行程并返回本次摘要与记录提示。",
289
+ "en": "End the trip and return its summary and logging prompt."
290
+ }
291
+ },
292
+ {
293
+ "name": "fun_home_room",
294
+ "description": "读取房间状态;主对话开启或切换日常活动时,顺手调用本工具同步姿势与备注:sleeping 睡觉休息、reading 看书学习、watching 看剧看片、gaming 打游戏、painting 画画、cooking 做饭泡茶、cards 玩牌桌游、chatting 聊天、looking_outside 看窗外、idle 发呆放空。仅同步活动开启或切换,不因同一活动延续而重复调用,也不会写入出游经历。",
295
+ "parameters": {
296
+ "type": "object",
297
+ "properties": {
298
+ "activity": {
299
+ "type": "string",
300
+ "description": "可选:idle / reading / watching / cards / gaming / painting / cooking / looking_outside / sleeping / chatting。"
301
+ },
302
+ "note": {
303
+ "type": "string",
304
+ "description": "可选房间备注。"
305
+ },
306
+ "pose": {
307
+ "type": "string",
308
+ "description": "activity 的兼容别名。"
309
+ }
310
+ },
311
+ "additionalProperties": false
312
+ },
313
+ "tags": [
314
+ "read",
315
+ "write",
316
+ "snapshot"
317
+ ],
318
+ "summary": {
319
+ "zh": "查看房间状态,可切换活动或写备注,不会写入经历。",
320
+ "en": "Read the room, change an activity, or add a note without recording an outing."
321
+ }
322
+ },
323
+ {
324
+ "name": "fun_story",
325
+ "description": "管理本地故事工坊:校验/预览只读,导入、改绑地点、启停、删除要指定 action。需打开「聊天里也能管故事」才挂。",
326
+ "parameters": {
327
+ "type": "object",
328
+ "properties": {
329
+ "action": {
330
+ "type": "string",
331
+ "enum": [
332
+ "list",
333
+ "template",
334
+ "validate",
335
+ "preview",
336
+ "playtest",
337
+ "export",
338
+ "import",
339
+ "rebind",
340
+ "enable",
341
+ "disable",
342
+ "remove"
343
+ ]
344
+ },
345
+ "id": {
346
+ "type": "string",
347
+ "description": "已有包 ID(list 取)。"
348
+ },
349
+ "json": {
350
+ "type": "string",
351
+ "description": "完整包 JSON,≤32 KB;validate/preview 不保存。"
352
+ },
353
+ "placeId": {
354
+ "type": "string",
355
+ "description": "template 绑定的地点 ID;rebind 要绑到的新地点 ID(list 可查)。"
356
+ },
357
+ "bindPlaceId": {
358
+ "type": "string",
359
+ "description": "import 时把包里不存在的地点改绑到这处已有地点。"
360
+ },
361
+ "mode": {
362
+ "type": "string",
363
+ "enum": [
364
+ "static",
365
+ "free"
366
+ ],
367
+ "description": "template 类型:static 选项式(默认)/ free 场景包。"
368
+ },
369
+ "area": {
370
+ "type": "string",
371
+ "description": "preview 的项目,默认起始项目。"
372
+ },
373
+ "time": {
374
+ "type": "string",
375
+ "description": "preview 的测试时刻 HH:MM,默认现在。"
376
+ },
377
+ "path": {
378
+ "type": "array",
379
+ "maxItems": 16,
380
+ "items": {
381
+ "type": "string",
382
+ "maxLength": 24
383
+ },
384
+ "description": "playtest 已选的路径,只用临时状态。"
385
+ },
386
+ "replace": {
387
+ "type": "boolean",
388
+ "description": "import 覆盖同 ID 包时设 true。"
389
+ }
390
+ },
391
+ "required": [
392
+ "action"
393
+ ],
394
+ "additionalProperties": false
395
+ },
396
+ "tags": [
397
+ "write"
398
+ ],
399
+ "summary": {
400
+ "zh": "管理、校验与预览本地故事工坊,支持自填地点。",
401
+ "en": "Manage, validate, and preview local story packs, including custom places."
402
+ }
403
+ },
404
+ {
405
+ "name": "fun_story_places",
406
+ "description": "查询故事地点索引或单个地点详情;只读,不开始出游。",
407
+ "parameters": {
408
+ "type": "object",
409
+ "properties": {
410
+ "id": {
411
+ "type": "string",
412
+ "description": "地点 ID;不填返回索引。"
413
+ },
414
+ "full": {
415
+ "type": "boolean",
416
+ "description": "跳过 10 分钟记忆化,重取完整结果。"
417
+ }
418
+ },
419
+ "additionalProperties": false
420
+ },
421
+ "tags": [
422
+ "read",
423
+ "snapshot"
424
+ ],
425
+ "summary": {
426
+ "zh": "查询地点索引或单个地点详情,只读,不开始出游;JSON 回执经标准 text 返回。",
427
+ "en": "Read the place index or one place detail; does not start an outing. JSON is returned in standard text."
428
+ }
429
+ },
430
+ {
431
+ "name": "fun_story_candidates",
432
+ "description": "查询可用故事候选和公开简介(不含未来分支);只读。",
433
+ "parameters": {
434
+ "type": "object",
435
+ "properties": {
436
+ "full": {
437
+ "type": "boolean",
438
+ "description": "跳过 10 分钟记忆化,重取完整结果。"
439
+ }
440
+ },
441
+ "additionalProperties": false
442
+ },
443
+ "tags": [
444
+ "read",
445
+ "snapshot"
446
+ ],
447
+ "summary": {
448
+ "zh": "查询故事候选和公开简介,不返回未来分支;JSON 回执经标准 text 返回。",
449
+ "en": "Read story candidates and public synopses without future branches. JSON is returned in standard text."
450
+ }
451
+ },
452
+ {
453
+ "name": "fun_story_detail",
454
+ "description": "查询一篇故事的公开资料与可用原因,不含节点全文。",
455
+ "parameters": {
456
+ "type": "object",
457
+ "properties": {
458
+ "id": {
459
+ "type": "string",
460
+ "description": "故事 ID。"
461
+ },
462
+ "full": {
463
+ "type": "boolean",
464
+ "description": "跳过 10 分钟记忆化,重取完整结果。"
465
+ }
466
+ },
467
+ "required": [
468
+ "id"
469
+ ],
470
+ "additionalProperties": false
471
+ },
472
+ "tags": [
473
+ "read",
474
+ "snapshot"
475
+ ],
476
+ "summary": {
477
+ "zh": "查询单个故事的公开资料与可用原因,不返回节点内容;JSON 回执经标准 text 返回。",
478
+ "en": "Read one story’s public metadata and availability without node contents. JSON is returned in standard text."
479
+ }
480
+ },
481
+ {
482
+ "name": "fun_story_current",
483
+ "description": "查询当前故事的状态、已发生片段与待选项;不推进。",
484
+ "parameters": {
485
+ "type": "object",
486
+ "properties": {
487
+ "full": {
488
+ "type": "boolean",
489
+ "description": "跳过 10 分钟记忆化,重取完整结果。"
490
+ }
491
+ },
492
+ "additionalProperties": false
493
+ },
494
+ "tags": [
495
+ "read",
496
+ "snapshot"
497
+ ],
498
+ "summary": {
499
+ "zh": "查询当前故事的状态和已发生内容,不推进故事;JSON 回执经标准 text 返回。",
500
+ "en": "Read current story state and actual events without advancing it. JSON is returned in standard text."
501
+ }
502
+ },
503
+ {
504
+ "name": "fun_story_recap",
505
+ "description": "查询已结束故事的事实回顾,只含实际发生。",
506
+ "parameters": {
507
+ "type": "object",
508
+ "properties": {
509
+ "id": {
510
+ "type": "string",
511
+ "description": "回忆 ID;不填取最近。"
512
+ },
513
+ "full": {
514
+ "type": "boolean",
515
+ "description": "跳过 10 分钟记忆化,重取完整结果。"
516
+ }
517
+ },
518
+ "additionalProperties": false
519
+ },
520
+ "tags": [
521
+ "read",
522
+ "snapshot"
523
+ ],
524
+ "summary": {
525
+ "zh": "查询已保存故事的事实回顾,不写入日程或长期记忆;JSON 回执经标准 text 返回。",
526
+ "en": "Read an actual story recap without writing a schedule or long-term memory. JSON is returned in standard text."
527
+ }
528
+ },
529
+ {
530
+ "name": "fun_story_schedule",
531
+ "description": "生成候选的可复制短文本;复制不写日程、不出发。",
532
+ "parameters": {
533
+ "type": "object",
534
+ "properties": {
535
+ "id": {
536
+ "type": "string",
537
+ "description": "候选 ID,可选。"
538
+ },
539
+ "full": {
540
+ "type": "boolean",
541
+ "description": "跳过 10 分钟记忆化,重取完整结果。"
542
+ }
543
+ },
544
+ "additionalProperties": false
545
+ },
546
+ "tags": [
547
+ "read",
548
+ "snapshot"
549
+ ],
550
+ "summary": {
551
+ "zh": "生成可复制的故事候选短文本;复制不写日程;JSON 回执经标准 text 返回。",
552
+ "en": "Create copyable story-candidate text; copying does not write a schedule. JSON is returned in standard text."
553
+ }
554
+ },
555
+ {
556
+ "name": "fun_journal",
557
+ "description": "查看行程、纪念品或珍藏;也可珍藏或取消珍藏行程。故事回顾请用 fun_story_recap。",
558
+ "parameters": {
559
+ "type": "object",
560
+ "properties": {
561
+ "view": {
562
+ "type": "string",
563
+ "enum": [
564
+ "trips",
565
+ "shelf",
566
+ "keepsake"
567
+ ],
568
+ "description": "查看行程、纪念品展示柜或珍藏列表。"
569
+ },
570
+ "id": {
571
+ "type": "string",
572
+ "description": "行程 ID。"
573
+ },
574
+ "keep": {
575
+ "type": "boolean",
576
+ "description": "配合 id 珍藏或取消珍藏。"
577
+ }
578
+ },
579
+ "required": [
580
+ "view"
581
+ ],
582
+ "additionalProperties": false
583
+ },
584
+ "tags": [
585
+ "read",
586
+ "write",
587
+ "snapshot"
588
+ ],
589
+ "summary": {
590
+ "zh": "查看行程、纪念品或珍藏,也可珍藏或取消珍藏行程。",
591
+ "en": "Browse trips, souvenirs, or keepsakes; keep or unkeep a trip."
592
+ }
593
+ },
594
+ {
595
+ "name": "fun_story_start",
596
+ "description": "在聊天里开始一段故事(需开「文字通道也能玩故事」)。先从 fun_story_candidates / detail 取 packId、revision,从 fun_story_current 取 startStamp;开始前会重校验。自由故事可传 party 群聊名单;选项式故事不接受 party。用户明确说要开始才填 confirm:true。",
597
+ "parameters": {
598
+ "type": "object",
599
+ "properties": {
600
+ "packId": {
601
+ "type": "string",
602
+ "description": "候选里的故事 ID。"
603
+ },
604
+ "revision": {
605
+ "type": "string",
606
+ "description": "候选里的版本。"
607
+ },
608
+ "startStamp": {
609
+ "type": "string",
610
+ "description": "fun_story_current 的 startStamp。"
611
+ },
612
+ "confirm": {
613
+ "type": "boolean",
614
+ "description": "用户明确说要开始时填 true。"
615
+ },
616
+ "party": {
617
+ "type": "array",
618
+ "maxItems": 20,
619
+ "description": "自由故事群聊参与者;省略时沿用常驻名单。",
620
+ "items": {
621
+ "type": "object",
622
+ "properties": {
623
+ "who": {
624
+ "type": "string",
625
+ "maxLength": 40
626
+ },
627
+ "tag": {
628
+ "type": "string",
629
+ "maxLength": 100
630
+ }
631
+ },
632
+ "required": [
633
+ "who"
634
+ ],
635
+ "additionalProperties": false
636
+ }
637
+ }
638
+ },
639
+ "required": [
640
+ "packId",
641
+ "revision",
642
+ "startStamp",
643
+ "confirm"
644
+ ],
645
+ "additionalProperties": false
646
+ },
647
+ "tags": [
648
+ "write"
649
+ ],
650
+ "summary": {
651
+ "zh": "在文字通道里开始一段故事(需开启文字通道开关),开始前重新校验条件;JSON 回执经标准 text 返回。",
652
+ "en": "Start a story from a text channel (requires the text switch), rechecking conditions. JSON is returned in standard text."
653
+ }
654
+ },
655
+ {
656
+ "name": "fun_story_act",
657
+ "description": "在聊天里推进当前故事。自由故事可用 say(≤1500 字)或 actions 一次汇总多人发言(每人≤500 字、合计≤1500 字),一组只推进一回合;早提交用 redo 重跑。选项式按回合身份提交:用户回合记 owner,鱼回合由鱼决定;原话对不上先返回 proposalId,确认后再带 proposalId+optionId。close 需 confirm:true。auto 携面板 mode 授权的 token,可用 batch:1–10 批量自演;须已开 autoplay,逐步验票计费,用户回合、待确认与 close 立即停。",
658
+ "parameters": {
659
+ "type": "object",
660
+ "properties": {
661
+ "tripId": {
662
+ "type": "string",
663
+ "description": "fun_story_current 的行程 ID。"
664
+ },
665
+ "stamp": {
666
+ "type": "string",
667
+ "description": "fun_story_current 的进度戳;变了重读,别猜。"
668
+ },
669
+ "intent": {
670
+ "type": "string",
671
+ "enum": [
672
+ "say",
673
+ "close",
674
+ "redo",
675
+ "auto"
676
+ ],
677
+ "description": "say 推进;close 结束;redo 重跑当前回合;auto 仅执行已授权的鱼回合。"
678
+ },
679
+ "batch": {
680
+ "type": "integer",
681
+ "minimum": 1,
682
+ "maximum": 10,
683
+ "description": "仅 auto 可用,默认 1;每次最多 10 步、90 秒,不自动续段或结束。"
684
+ },
685
+ "token": {
686
+ "type": "string",
687
+ "description": "auto 必填:面板开启鱼自主模式时返回的有效租约 token。不会凭空开启自主模式。"
688
+ },
689
+ "say": {
690
+ "type": "string",
691
+ "description": "用户原话。"
692
+ },
693
+ "actions": {
694
+ "type": "array",
695
+ "maxItems": 20,
696
+ "description": "多人动作一次性汇总提交;每条 say ≤500 字,合计 ≤1500 字。",
697
+ "items": {
698
+ "type": "object",
699
+ "properties": {
700
+ "who": {
701
+ "type": "string",
702
+ "maxLength": 40
703
+ },
704
+ "say": {
705
+ "type": "string",
706
+ "maxLength": 500
707
+ }
708
+ },
709
+ "required": [
710
+ "who",
711
+ "say"
712
+ ],
713
+ "additionalProperties": false
714
+ }
715
+ },
716
+ "proposalId": {
717
+ "type": "string",
718
+ "description": "上次返回的提议 ID。"
719
+ },
720
+ "optionId": {
721
+ "type": "string",
722
+ "description": "确认提交的选项 ID。"
723
+ },
724
+ "from": {
725
+ "type": "string",
726
+ "description": "QQ 昵称,仅日志归属,可选。"
727
+ },
728
+ "confirm": {
729
+ "type": "boolean",
730
+ "description": "intent 为 close 时填 true。"
731
+ }
732
+ },
733
+ "required": [
734
+ "tripId",
735
+ "stamp",
736
+ "intent"
737
+ ],
738
+ "additionalProperties": false
739
+ },
740
+ "tags": [
741
+ "write"
742
+ ],
743
+ "summary": {
744
+ "zh": "在文字通道里推进当前故事:选项式先给待确认提议,自由模式每句推进一回合;JSON 回执经标准 text 返回。",
745
+ "en": "Advance the current story from a text channel: option packs return a proposal, free packs advance one turn per line. JSON is returned in standard text."
746
+ }
747
+ }
748
+ ],
749
+ "events": [],
750
+ "prompts": [
751
+ {
752
+ "key": "worlds.fun.env",
753
+ "title": "从0开始的肥鱼大冒险",
754
+ "role": "envPrompt",
755
+ "content": "## 从0开始的肥鱼大冒险\n\n出游按 `fun_places` → `fun_go`(续逛带 tripId)→ `fun_wander` → `fun_home`;地点与收获以回执为准,行程/珍藏按需查 `fun_journal`。\n\n- `fun_place_save` 只新建或修改自建地点,不可改内置预设;可按需 `setHome: true` 设住所。\n- `fun_home_room` 是画面非经历;`pendingLine` 仅供复制。主对话开启或切换日常活动时,顺手调用 `fun_home_room` 同步姿势与备注:`sleeping` 睡觉休息、`reading` 看书学习、`watching` 看剧看片、`gaming` 打游戏、`painting` 画画、`cooking` 做饭泡茶、`cards` 玩牌桌游、`chatting` 聊天、`looking_outside` 看窗外、`idle` 发呆放空。仅同步活动开启或切换,不因同一活动延续而重复调用;以行程 id/runId 作 `sourceRef` 防重,不自动互写,也不写入出游经历。若会话同时有生活日程与房间画面,回家或换活动时也可同步姿势,或用 `feast_life_play` 记经历。\n- 配图用 `imggen_draw`,`scene` / `outfits` 用正名,只画真实场景;库里没找到就省略。吃喝只记品类,不等于「鱼的每一天」的吃饭记账;开启联动且实际用 `feast_menu` → `feast_eat` 才形容味道,否则别形容味道。不会探测其他扩展,也不依赖其他 World。\n- 出门可用 `feast_life_now` 查日程、`feast_life_adjust` 写当天;没联动就跳过。本插件无定时器,是否出门由日程和主对话决定。时段影响项目,历史不编造;预设删不掉,只能恢复。\n- 故事同参数 10 分钟内见 `unchanged` 就停;上下文断了才加 `full:true`。\n- 群聊不要每看到一句就调用 `fun_story_act`;等大家表态完再以 `actions:[{who,say}]` 一次提交,一次只推进一回合。过早提交用 `intent:\"redo\"` 补充重跑。\n\n{{fun_places_block}}\n"
756
+ }
757
+ ]
758
+ }