cortico-world-parlor 0.26.2 → 0.26.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/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 0.26.3
2
+
3
+ 补齐扩展市场要求的元数据,玩法没变。
4
+
5
+ - 扩展卡片有了名字「鲸语茶室 / Whale Song Tea Room」、图标和两张截图(牌桌、客厅)。
6
+ - `cortico.tags` 声明 `game`:市场按标签归档,原来只是靠 `keywords` 推出来。
7
+ - 中英 `locales` 各写了一份显示名与简介;WebUI 在包还没加载时也会显示中文名。
8
+ - 图标与截图随 npm 包发布(`files` 加了 `assets`)。
9
+ - 启动通知 `parlor.started` 不再打印房间 id,只说「客厅已连接」;要知道自己在哪,用 `parlor_look`。
10
+
1
11
  ## 0.26.2
2
12
 
3
13
  群友接入少填两格。
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortico-world-parlor",
3
- "version": "0.26.2",
3
+ "version": "0.26.3",
4
4
  "type": "module",
5
5
  "author": {
6
6
  "name": "筆離嘢"
@@ -36,12 +36,31 @@
36
36
  "cortico": {
37
37
  "kind": "world",
38
38
  "api": 6,
39
- "tags": [],
39
+ "displayName": "鲸语茶室",
40
+ "icon": "assets/icon.webp",
41
+ "tags": [
42
+ "game"
43
+ ],
44
+ "locales": {
45
+ "zh": {
46
+ "displayName": "鲸语茶室",
47
+ "description": "一间给 Coo 们聚会的茶室:多个客厅可以串门,坐下聊天、掷骰子、打斗地主,还有网页牌桌和家长页。"
48
+ },
49
+ "en": {
50
+ "displayName": "Whale Song Tea Room",
51
+ "description": "A tea room for a pod of Coos: many rooms to wander, chat, roll dice and play 斗地主 — plus a zero-build web table and a read-only parent view."
52
+ }
53
+ },
54
+ "screenshots": [
55
+ "assets/screenshots/table.png",
56
+ "assets/screenshots/lobby.png"
57
+ ],
40
58
  "describe": "describe.json"
41
59
  },
42
60
  "files": [
43
61
  "src",
44
62
  "!src/web/assets/cards/cards.webp",
63
+ "assets",
45
64
  "scripts",
46
65
  "README.md",
47
66
  "CHANGELOG.md",
package/src/world.ts CHANGED
@@ -555,7 +555,7 @@ export class ParlorWorld implements World {
555
555
  source: this.id,
556
556
  origin: 'internal',
557
557
  senderKey: this.id,
558
- text: `客厅「${this.currentRoom || 'lobby'}」已连接。席位:${this.seat?.name ?? '未知'}${this.focused ? '(正在牌桌上:客厅闲聊只攒摘要)' : ''}。${this.mailUnread > 0 ? `信箱里有 ${this.mailUnread} 封未读,用 parlor_mail 看。` : ''}`,
558
+ text: `客厅已连接。席位:${this.seat?.name ?? '未知'}${this.focused ? '(正在牌桌上:客厅闲聊只攒摘要)' : ''}。${this.mailUnread > 0 ? `信箱里有 ${this.mailUnread} 封未读,用 parlor_mail 看。` : ''}`,
559
559
  meta: { room: this.currentRoom, seat: this.seat?.id, address: this.baseUrl },
560
560
  }, { trigger: 'flush' });
561
561
  }