cortico-world-fun 0.7.7 → 0.8.0

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
@@ -2,7 +2,7 @@
2
2
  "tools": [
3
3
  {
4
4
  "name": "fun_places",
5
- "description": "查询地点、当前可逛项目及心愿的合适时段。",
5
+ "description": "查询地点、当前开放状态与可逛项目。",
6
6
  "parameters": {
7
7
  "type": "object",
8
8
  "properties": {
@@ -18,7 +18,11 @@
18
18
  },
19
19
  "all": {
20
20
  "type": "boolean",
21
- "description": "true = 列全部二十处(按开放排序),忽略 count。"
21
+ "description": "true = 列全部地点,忽略 count。"
22
+ },
23
+ "now": {
24
+ "type": "boolean",
25
+ "description": "true = 查看此刻推荐的五处地点。"
22
26
  }
23
27
  },
24
28
  "additionalProperties": false
@@ -34,7 +38,7 @@
34
38
  },
35
39
  {
36
40
  "name": "fun_go",
37
- "description": "开始一趟出游,返回当下描写与可逛项目。place 用 fun_places 给的地点名或别名。",
41
+ "description": "开始一趟出游,返回当下描写与可逛项目;续走未完行程时改填 tripId。place 用 fun_places 给的地点名或别名。",
38
42
  "parameters": {
39
43
  "type": "object",
40
44
  "properties": {
@@ -45,24 +49,25 @@
45
49
  "company": {
46
50
  "type": "string",
47
51
  "description": "同行人,可选;一个人不填。"
52
+ },
53
+ "tripId": {
54
+ "type": "string",
55
+ "description": "继续这趟未完行程时填 fun_journal 返回的行程 ID。"
48
56
  }
49
57
  },
50
- "required": [
51
- "place"
52
- ],
53
58
  "additionalProperties": false
54
59
  },
55
60
  "tags": [
56
61
  "write"
57
62
  ],
58
63
  "summary": {
59
- "zh": "进门开始行程,返回当前时段描写和可逛项目。",
60
- "en": "Start a trip and return the current-time description and available areas."
64
+ "zh": "只进门开始行程,或用 tripId 继续未完行程。",
65
+ "en": "Enter a place without exploring it, or resume an unfinished trip with tripId."
61
66
  }
62
67
  },
63
68
  {
64
69
  "name": "fun_wander",
65
- "description": "在当前地点逛一处;可记录本次真实收获。回执带 choiceId 时先用 fun_choice。",
70
+ "description": "在当前地点逛一处;可记录本次真实收获。选项式故事的待选项请在故事手账里处理。",
66
71
  "parameters": {
67
72
  "type": "object",
68
73
  "properties": {
@@ -93,61 +98,8 @@
93
98
  "write"
94
99
  ],
95
100
  "summary": {
96
- "zh": "逛一个项目,可记录本次购买、拍照或吃喝;待选择事件按回执处理。",
97
- "en": "Wander one spot and optionally record a purchase, photo or food; resolve pending choices from the receipt."
98
- }
99
- },
100
- {
101
- "name": "fun_choice",
102
- "description": "按待选回执的选项处理当前事件,也可略过。",
103
- "parameters": {
104
- "type": "object",
105
- "properties": {
106
- "choiceId": {
107
- "type": "string",
108
- "description": "回执的 choiceId。"
109
- },
110
- "optionId": {
111
- "type": "string",
112
- "description": "回执的 optionId,或 skip。"
113
- }
114
- },
115
- "required": [
116
- "choiceId",
117
- "optionId"
118
- ],
119
- "additionalProperties": false
120
- },
121
- "tags": [
122
- "write"
123
- ],
124
- "summary": {
125
- "zh": "处理待选择事件,可按回执选择或略过。",
126
- "en": "Resolve or skip a pending event choice."
127
- }
128
- },
129
- {
130
- "name": "fun_resume",
131
- "description": "继续未逛完的行程,返回进度和待选事件。",
132
- "parameters": {
133
- "type": "object",
134
- "properties": {
135
- "id": {
136
- "type": "string",
137
- "description": "fun_view 的未完行程 ID。"
138
- }
139
- },
140
- "required": [
141
- "id"
142
- ],
143
- "additionalProperties": false
144
- },
145
- "tags": [
146
- "write"
147
- ],
148
- "summary": {
149
- "zh": "继续一趟未逛完的行程。",
150
- "en": "Resume an unfinished outing."
101
+ "zh": "逛一个项目,可记录本次购买、拍照或吃喝。",
102
+ "en": "Wander one spot and optionally record a purchase, photo or food."
151
103
  }
152
104
  },
153
105
  {
@@ -162,7 +114,7 @@
162
114
  },
163
115
  "draftId": {
164
116
  "type": "string",
165
- "description": "按已有记录结束未完行程时填 fun_view 的 ID;结束正在逛的不填。"
117
+ "description": "按已有记录结束未完行程时填 fun_journal 返回的行程 ID;结束正在逛的不填。"
166
118
  }
167
119
  },
168
120
  "additionalProperties": false
@@ -176,272 +128,39 @@
176
128
  }
177
129
  },
178
130
  {
179
- "name": "fun_home_state",
180
- "description": "查看房间状态:活动、备注、今天想做什么、待记一条、住所、是否在外。只读,不含图片。",
181
- "parameters": {
182
- "type": "object",
183
- "properties": {},
184
- "additionalProperties": false
185
- },
186
- "tags": [
187
- "read",
188
- "snapshot"
189
- ],
190
- "summary": {
191
- "zh": "只读查看房间状态与可复制的「待记一条」;不含图片,不写盘。",
192
- "en": "Read the room state and a copyable \"one line to log\"; no images, no writes."
193
- }
194
- },
195
- {
196
- "name": "fun_home_activity",
197
- "description": "切换她在家的活动(十个固定 id),可附一句备注。expectedRevision 不一致时返回原因,不自动重试。",
131
+ "name": "fun_home_room",
132
+ "description": "读取房间状态;可切换活动并写备注或今天计划,不会写入出游经历。",
198
133
  "parameters": {
199
134
  "type": "object",
200
135
  "properties": {
201
136
  "activity": {
202
137
  "type": "string",
203
- "description": "idle / reading / watching / cards / gaming / painting / cooking / looking_outside / sleeping / chatting。"
138
+ "description": "可选:idle / reading / watching / cards / gaming / painting / cooking / looking_outside / sleeping / chatting。"
204
139
  },
205
140
  "note": {
206
141
  "type": "string",
207
- "description": "房间备注,≤120 字,可选。"
208
- },
209
- "expectedRevision": {
210
- "type": "integer",
211
- "minimum": 0,
212
- "description": "fun_home_state 的 revision。"
213
- }
214
- },
215
- "required": [
216
- "activity",
217
- "expectedRevision"
218
- ],
219
- "additionalProperties": false
220
- },
221
- "tags": [
222
- "write"
223
- ],
224
- "summary": {
225
- "zh": "切换她在家的十个固定活动之一,可附备注;revision 冲突不自动重试。",
226
- "en": "Switch one of her ten fixed home activities, optionally with a note; no retry on revision conflicts."
227
- }
228
- },
229
- {
230
- "name": "fun_start",
231
- "description": "查看当前推荐地点;详细筛选用 fun_places。",
232
- "parameters": {
233
- "type": "object",
234
- "properties": {}
235
- },
236
- "tags": [
237
- "read"
238
- ],
239
- "summary": {
240
- "zh": "查看当前推荐地点;详细筛选用 fun_places。",
241
- "en": "Show current place recommendations; use fun_places for filters."
242
- }
243
- },
244
- {
245
- "name": "fun_route",
246
- "description": "规划两站出门、前往下一站、改下一站或取消后续;不自动移动。",
247
- "parameters": {
248
- "type": "object",
249
- "properties": {
250
- "action": {
251
- "type": "string",
252
- "enum": [
253
- "plan",
254
- "status",
255
- "next",
256
- "change",
257
- "cancel"
258
- ]
259
- },
260
- "places": {
261
- "type": "array",
262
- "items": {
263
- "type": "string"
264
- },
265
- "minItems": 2,
266
- "maxItems": 2,
267
- "description": "plan:两个不同地点。"
268
- },
269
- "id": {
270
- "type": "string",
271
- "description": "next/change/cancel:路线 ID。"
272
- },
273
- "place": {
274
- "type": "string",
275
- "description": "change:新下一站(只改未去的)。"
276
- },
277
- "company": {
278
- "type": "string",
279
- "description": "plan:同行人,可选。"
280
- }
281
- },
282
- "required": [
283
- "action"
284
- ],
285
- "additionalProperties": false
286
- },
287
- "tags": [
288
- "write"
289
- ],
290
- "summary": {
291
- "zh": "规划和管理最多两站的出门路线,明确前往下一站或提前结束。",
292
- "en": "Plan and manage a two-stop outing, explicitly move on or end early."
293
- }
294
- },
295
- {
296
- "name": "fun_view",
297
- "description": "查询行程,可按地点、同行人、日期或关键词检索。",
298
- "parameters": {
299
- "type": "object",
300
- "properties": {
301
- "count": {
302
- "type": "integer",
303
- "description": "最近几趟,默认 5。",
304
- "minimum": 1,
305
- "maximum": 20
306
- },
307
- "query": {
308
- "type": "string",
309
- "description": "搜地点、项目、备注、小事、纪念品。"
310
- },
311
- "place": {
312
- "type": "string",
313
- "description": "只看这处,正名或别名。"
314
- },
315
- "company": {
316
- "type": "string",
317
- "description": "只看这位同行人。"
318
- },
319
- "from": {
320
- "type": "string",
321
- "description": "YYYY-MM-DD,含当天。"
322
- },
323
- "to": {
324
- "type": "string",
325
- "description": "YYYY-MM-DD,含当天。"
142
+ "description": "可选房间备注。"
326
143
  },
327
- "id": {
144
+ "pose": {
328
145
  "type": "string",
329
- "description": "精确看一趟。"
146
+ "description": "activity 的兼容别名。"
330
147
  }
331
148
  },
332
149
  "additionalProperties": false
333
150
  },
334
151
  "tags": [
335
152
  "read",
153
+ "write",
336
154
  "snapshot"
337
155
  ],
338
156
  "summary": {
339
- "zh": "查看正在逛、未逛完或已回家的行程。",
340
- "en": "View active, unfinished, or finished outings."
341
- }
342
- },
343
- {
344
- "name": "fun_wishes",
345
- "description": "查看出游心愿及状态;只记明确说过的,不催促。",
346
- "parameters": {
347
- "type": "object",
348
- "properties": {},
349
- "additionalProperties": false
350
- },
351
- "tags": [
352
- "read",
353
- "snapshot"
354
- ],
355
- "summary": {
356
- "zh": "查看明确记下的出游心愿和状态,不催促。",
357
- "en": "View outing wishes and their status without reminders."
358
- }
359
- },
360
- {
361
- "name": "fun_wish",
362
- "description": "记录明确表达的出游心愿,或暂缓、恢复、取消。项目/时段/纪念品须填真实正名;不替你出游、不按旧行程补完成。",
363
- "parameters": {
364
- "type": "object",
365
- "properties": {
366
- "action": {
367
- "type": "string",
368
- "enum": [
369
- "add",
370
- "pause",
371
- "resume",
372
- "cancel"
373
- ]
374
- },
375
- "id": {
376
- "type": "string",
377
- "description": "fun_wishes 的心愿 ID。"
378
- },
379
- "place": {
380
- "type": "string",
381
- "description": "地点名,别名也认。"
382
- },
383
- "type": {
384
- "type": "string",
385
- "enum": [
386
- "visit",
387
- "area",
388
- "phase",
389
- "souvenir"
390
- ]
391
- },
392
- "target": {
393
- "type": "string",
394
- "description": "项目/时段/纪念品正名;visit 不填。"
395
- },
396
- "reason": {
397
- "type": "string",
398
- "description": "你明确说过的缘由,可选。"
399
- }
400
- },
401
- "required": [
402
- "action"
403
- ],
404
- "additionalProperties": false
405
- },
406
- "tags": [
407
- "write"
408
- ],
409
- "summary": {
410
- "zh": "记录、暂缓、恢复或取消一个出游心愿。",
411
- "en": "Add, pause, resume or cancel an outing wish."
412
- }
413
- },
414
- {
415
- "name": "fun_keepsake",
416
- "description": "珍藏或取消珍藏一趟已回家的行程;不影响收藏账本。",
417
- "parameters": {
418
- "type": "object",
419
- "properties": {
420
- "id": {
421
- "type": "string",
422
- "description": "fun_view 的行程 ID。"
423
- },
424
- "keep": {
425
- "type": "boolean",
426
- "description": "true 珍藏,false 取消。"
427
- }
428
- },
429
- "required": [
430
- "id"
431
- ],
432
- "additionalProperties": false
433
- },
434
- "tags": [
435
- "write"
436
- ],
437
- "summary": {
438
- "zh": "珍藏或取消珍藏一趟行程,不影响纪念册近期列表和长期收藏。",
439
- "en": "Keep or unkeep a trip without changing the recent trip book or permanent collection."
157
+ "zh": "查看房间状态,可切换活动或写备注,不会写入经历。",
158
+ "en": "Read the room, change an activity, or add a note without recording an outing."
440
159
  }
441
160
  },
442
161
  {
443
162
  "name": "fun_story",
444
- "description": "管理本地故事工坊:校验/预览只读,导入、启停、删除要指定 action。需打开「聊天里也能管故事」才挂。",
163
+ "description": "管理本地故事工坊:校验/预览只读,导入、改绑地点、启停、删除要指定 action。需打开「聊天里也能管故事」才挂。",
445
164
  "parameters": {
446
165
  "type": "object",
447
166
  "properties": {
@@ -455,6 +174,7 @@
455
174
  "playtest",
456
175
  "export",
457
176
  "import",
177
+ "rebind",
458
178
  "enable",
459
179
  "disable",
460
180
  "remove"
@@ -470,7 +190,11 @@
470
190
  },
471
191
  "placeId": {
472
192
  "type": "string",
473
- "description": "template 绑定的地点 ID(list 可查)。"
193
+ "description": "template 绑定的地点 ID;rebind 要绑到的新地点 ID(list 可查)。"
194
+ },
195
+ "bindPlaceId": {
196
+ "type": "string",
197
+ "description": "import 时把包里不存在的地点改绑到这处已有地点。"
474
198
  },
475
199
  "mode": {
476
200
  "type": "string",
@@ -515,28 +239,6 @@
515
239
  "en": "Manage, validate, and preview local story packs, including custom places."
516
240
  }
517
241
  },
518
- {
519
- "name": "fun_shelf",
520
- "description": "按地点查询长期纪念品收藏和收集进度。",
521
- "parameters": {
522
- "type": "object",
523
- "properties": {
524
- "place": {
525
- "type": "string",
526
- "description": "只看这处;不填看全部。"
527
- }
528
- },
529
- "additionalProperties": false
530
- },
531
- "tags": [
532
- "read",
533
- "snapshot"
534
- ],
535
- "summary": {
536
- "zh": "按地点查询长期纪念品收藏和收集进度。",
537
- "en": "Query long-term souvenirs and collection progress by place."
538
- }
539
- },
540
242
  {
541
243
  "name": "fun_story_places",
542
244
  "description": "查询故事地点索引或单个地点详情;只读,不开始出游。",
@@ -688,9 +390,48 @@
688
390
  "en": "Create copyable story-candidate text; copying does not write a schedule. JSON is returned in standard text."
689
391
  }
690
392
  },
393
+ {
394
+ "name": "fun_journal",
395
+ "description": "查看行程、纪念品或珍藏;也可珍藏或取消珍藏行程。故事回顾请用 fun_story_recap。",
396
+ "parameters": {
397
+ "type": "object",
398
+ "properties": {
399
+ "view": {
400
+ "type": "string",
401
+ "enum": [
402
+ "trips",
403
+ "shelf",
404
+ "keepsake"
405
+ ],
406
+ "description": "查看行程、纪念品展示柜或珍藏列表。"
407
+ },
408
+ "id": {
409
+ "type": "string",
410
+ "description": "行程 ID。"
411
+ },
412
+ "keep": {
413
+ "type": "boolean",
414
+ "description": "配合 id 珍藏或取消珍藏。"
415
+ }
416
+ },
417
+ "required": [
418
+ "view"
419
+ ],
420
+ "additionalProperties": false
421
+ },
422
+ "tags": [
423
+ "read",
424
+ "write",
425
+ "snapshot"
426
+ ],
427
+ "summary": {
428
+ "zh": "查看行程、纪念品或珍藏,也可珍藏或取消珍藏行程。",
429
+ "en": "Browse trips, souvenirs, or keepsakes; keep or unkeep a trip."
430
+ }
431
+ },
691
432
  {
692
433
  "name": "fun_story_start",
693
- "description": "在聊天里开始一段故事(需开「文字通道也能玩故事」)。先从 fun_story_candidates / detail 取 packId、revision,从 fun_story_current 取 startStamp;开始前会重校验。用户明确说要开始才填 confirm:true。",
434
+ "description": "在聊天里开始一段故事(需开「文字通道也能玩故事」)。先从 fun_story_candidates / detail 取 packId、revision,从 fun_story_current 取 startStamp;开始前会重校验。自由故事可传 party 群聊名单;选项式故事不接受 party。用户明确说要开始才填 confirm:true。",
694
435
  "parameters": {
695
436
  "type": "object",
696
437
  "properties": {
@@ -709,6 +450,28 @@
709
450
  "confirm": {
710
451
  "type": "boolean",
711
452
  "description": "用户明确说要开始时填 true。"
453
+ },
454
+ "party": {
455
+ "type": "array",
456
+ "maxItems": 20,
457
+ "description": "自由故事群聊参与者;省略时沿用常驻名单。",
458
+ "items": {
459
+ "type": "object",
460
+ "properties": {
461
+ "who": {
462
+ "type": "string",
463
+ "maxLength": 40
464
+ },
465
+ "tag": {
466
+ "type": "string",
467
+ "maxLength": 100
468
+ }
469
+ },
470
+ "required": [
471
+ "who"
472
+ ],
473
+ "additionalProperties": false
474
+ }
712
475
  }
713
476
  },
714
477
  "required": [
@@ -729,7 +492,7 @@
729
492
  },
730
493
  {
731
494
  "name": "fun_story_act",
732
- "description": "在聊天里推进当前故事,把用户原话交给它,不替用户编选择。选项式按回合身份提交:用户回合记 owner,鱼回合由鱼决定;原话对不上先返回 proposalId,确认后再带 proposalId+optionId。自由模式每句一回合;结束用 intent:close + confirm:true。",
495
+ "description": "在聊天里推进当前故事。自由故事可用 say(≤1500 字)或 actions 一次汇总多人发言(每人≤500 字、合计≤1500 字),一组只推进一回合;早提交用 redo 重跑。选项式按回合身份提交:用户回合记 owner,鱼回合由鱼决定;原话对不上先返回 proposalId,确认后再带 proposalId+optionId。close 需 confirm:true。",
733
496
  "parameters": {
734
497
  "type": "object",
735
498
  "properties": {
@@ -745,13 +508,37 @@
745
508
  "type": "string",
746
509
  "enum": [
747
510
  "say",
748
- "close"
511
+ "close",
512
+ "redo"
749
513
  ],
750
- "description": "say 说一句;close 结束并保存回忆。"
514
+ "description": "say 推进;close 结束;redo 重跑当前回合。"
751
515
  },
752
516
  "say": {
753
517
  "type": "string",
754
- "description": "用户原话,≤200 字。"
518
+ "description": "用户原话。"
519
+ },
520
+ "actions": {
521
+ "type": "array",
522
+ "maxItems": 20,
523
+ "description": "多人动作一次性汇总提交;每条 say ≤500 字,合计 ≤1500 字。",
524
+ "items": {
525
+ "type": "object",
526
+ "properties": {
527
+ "who": {
528
+ "type": "string",
529
+ "maxLength": 40
530
+ },
531
+ "say": {
532
+ "type": "string",
533
+ "maxLength": 500
534
+ }
535
+ },
536
+ "required": [
537
+ "who",
538
+ "say"
539
+ ],
540
+ "additionalProperties": false
541
+ }
755
542
  },
756
543
  "proposalId": {
757
544
  "type": "string",
@@ -792,7 +579,7 @@
792
579
  "key": "worlds.fun.env",
793
580
  "title": "从0开始的肥鱼大冒险",
794
581
  "role": "envPrompt",
795
- "content": "## 从0开始的肥鱼大冒险\n\n出游:`fun_places` 查地点 → `fun_go` 进门 → `fun_wander` 逐处逛 → `fun_home` 回家;也能用 `fun_start` 现在出门。地点、项目、纪念品、拍照点名称以回执为准;吃喝只填当前地点真有的品类。历史与收藏按需查 `fun_view`、`fun_shelf`。\n\n- 连逛两处用 `fun_route`:每站自己进门、回家,再决定下一站、换一站或提前结束,不自动移动。中断后用 `fun_view` 找未完行程;待选事件按回执处理。\n- 房间状态是画面,不是经历;切姿势用 `fun_home_activity`,只读看房间用 `fun_home_state`;`pendingLine` 只是可复制文本。\n- 明确表达想去或想做时用 `fun_wish` 记录、`fun_wishes` 查询;不催促、不从旧行程推断完成。\n- 配图:想画就自己画(`imggen_draw`),不想画不用管;`scene` / `outfits` 用正名,只画真实发生过的样子,库里没找到的不要填。\n- 吃喝只记品类。允许且实际用「鱼的每一天」的 `feast_menu` → `feast_eat` 后才形容味道;否则只说吃喝了什么,别形容味道。本插件不会探测别的扩展装没装,不依赖其他 World。\n- 时段会改变氛围和可逛项目;重复到访有效。历史只按需查,不编造未发生的经历。\n- 用户自填地点通常没有素材库场景;地点清单与详情用 `fun_places`。预设删不掉,只能恢复;故事库随包四篇,也能自己写。\n- 出门前可用 `feast_life_now` 对齐日程,用 `feast_life_adjust` 写进当天;回家后按回执用 `feast_life_play` 记录。自己出门不限次数:到时段会收到提醒,去不去、去哪儿由你和主对话按日程定。\n- 故事只读查询同一参数 10 分钟内只回「没变化」:看到 `unchanged` 就停;上下文断了才加 `full:true`。\n\n{{fun_places_block}}"
582
+ "content": "## 从0开始的肥鱼大冒险\n\n出游:`fun_places` 查地点 → `fun_go` 进门(续逛填 tripId)→ `fun_wander` 逐处逛 → `fun_home` 回家;`fun_places` 可用 now:true 看此刻推荐。地点、项目、纪念品、拍照点名称以回执为准;吃喝只填当前地点真有的品类。行程与珍藏按需查 `fun_journal`(view 为 trips / shelf / keepsake)。\n\n- 房间状态是画面,不是经历;切姿势用 `fun_home_room`,只读看房间用 `fun_home_room`;`pendingLine` 只是可复制文本。\n- 配图:想画就自己画(`imggen_draw`),不想画不用管;`scene` / `outfits` 用正名,只画真实发生过的样子,库里没找到的不要填。\n- 吃喝只记品类。允许且实际用「鱼的每一天」的 `feast_menu` → `feast_eat` 后才形容味道;否则只说吃喝了什么,别形容味道。本插件不会探测别的扩展装没装,不依赖其他 World。\n- 时段会改变氛围和可逛项目;重复到访有效。历史只按需查,不编造未发生的经历。\n- 用户自填地点通常没有素材库场景;地点清单与详情用 `fun_places`。预设删不掉,只能恢复;故事手账优先推荐四篇内置自由故事,也能自己写。\n- 出门前可用 `feast_life_now` 对齐日程,用 `feast_life_adjust` 写进当天;回家后按回执用 `feast_life_play` 记录。自己出门不限次数:到时段会收到提醒,去不去、去哪儿由你和主对话按日程定。\n- 故事只读查询同一参数 10 分钟内只回「没变化」:看到 `unchanged` 就停;上下文断了才加 `full:true`。\n\n- 故事可用 fun_story_places / fun_story_candidates / fun_story_detail / fun_story_current / fun_story_recap / fun_story_schedule 查询;按实际回执行动。\n- 群聊多人同时发言时不要每看到一句就调用 `fun_story_act`。等大家表态完或主人说「好了 / 就这么办 / 推进」,再把动作一次性用 `actions:[{who,say}]` 提交,一次只推进一回合;过早提交可用 `intent:\"redo\"` 带补充内容重跑。\n\n{{fun_places_block}}"
796
583
  }
797
584
  ]
798
585
  }