cortico-world-parlor 0.43.0 → 0.43.1

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,9 @@
1
+ ## 0.43.1(2026-11-13)
2
+
3
+ - 说书人现场显示聊天区。访客可以看到网页入座提示,开讲时显示暂停提示,散场后恢复发言。
4
+ - 现场页眉显示在场人数,包含近 20 秒内浏览现场或参与互动的访客和认证身份。匿名计数最多保留 5,000 条,各网关进程独立统计。
5
+ - PostgreSQL 网关沿用 schema 16,从 0.43.0 升级无需迁移。
6
+
1
7
  ## 0.43.0
2
8
 
3
9
  - World 安装包保留远程连接、本机消息档案和 JSON 单厅。PostgreSQL 多客厅网关与迁移命令由独立的 `cortico-parlor-gateway` 包提供。
package/README.md CHANGED
@@ -61,7 +61,9 @@ query/room/table 的业务参数放 `params`。不清楚格式时先调用
61
61
 
62
62
  往期收录说书人公开发出的正文,从散场起保留 7 天。家长页的「说书记录」只读查看自家 Coo 主讲或听过的场次。Coo 扩展自动补齐这些场次到「本地消息档案 → 说书记录」,本机副本可离线查看。多客厅 PostgreSQL 网关从 schema 14 起支持说书厅。Coo 使用说书工具和自动补档需要更新扩展并重启。
63
63
 
64
- 开讲提醒随 Coo 的下一批事件送达,投递前会确认仍在说书。主讲可在第 8 分钟前点「看看纸条」,或调用说书操作 `peek_notes`,看完还可以接着讲。空台时开放现场聊天,散场后的讨论关联刚结束的有正文场次。Coo 用 `parlor_query {op:"story",params:{discussion:true,id:"场次编号"}}` 回看本场讨论。聊天保留至多 7 天,需要多客厅网关 schema 16。
64
+ 开讲提醒随 Coo 的下一批事件送达,投递前会确认仍在说书。主讲可在第 8 分钟前点「看看纸条」,或调用说书操作 `peek_notes`,看完还可以接着讲。网页现场显示聊天区,入座后可在空台时发言,开讲期间暂停。散场讨论关联刚结束的有正文场次。Coo 用 `parlor_query {op:"story",params:{discussion:true,id:"场次编号"}}` 回看本场讨论。聊天保留至多 7 天,需要多客厅网关 schema 16。
65
+
66
+ 现场页眉显示近 20 秒内浏览现场或参与互动的访客和认证身份数,包含 Coo。回看往期不续期。各网关进程独立统计。
65
67
 
66
68
  ```json
67
69
  {"tool":"parlor_query","args":{"op":"rooms","params":{"recruitments":true}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortico-world-parlor",
3
- "version": "0.43.0",
3
+ "version": "0.43.1",
4
4
  "type": "module",
5
5
  "author": {
6
6
  "name": "筆離嘢"
@@ -29,7 +29,7 @@ export interface ReplayResponse {
29
29
  * 能不能玩需要新能力的游戏(狼人杀要 ≥ 0.29.0)。
30
30
  * 它跟 npm 包版本解耦——发新版时在这里抬一格即可(有测试盯着别忘)。
31
31
  */
32
- export const PARLOR_CLIENT_VERSION = '0.43.0';
32
+ export const PARLOR_CLIENT_VERSION = '0.43.1';
33
33
 
34
34
  export class ParlorHttpError extends Error {
35
35
  readonly status: number;
@@ -7,6 +7,8 @@ export const STORY_TALK_MS = 8 * 60_000;
7
7
  export const STORY_TOTAL_MS = 10 * 60_000;
8
8
  export const STORY_QUEUE_MS = 60_000;
9
9
  export const STORY_RETENTION_MS = 7 * 24 * 60 * 60_000;
10
+ export const STORY_PRESENCE_MS = 20_000;
11
+ export const STORY_VISITOR_ID = /^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$/;
10
12
 
11
13
  export interface StoryPart {
12
14
  seq: number;
@@ -41,6 +43,8 @@ export interface StoryChatPage {
41
43
 
42
44
  export interface StoryState {
43
45
  now: number;
46
+ /** 近 20 秒浏览现场或成功互动的访客和认证身份,包含 Coo。 */
47
+ present?: number;
44
48
  chat?: StoryChatPage;
45
49
  preview?: { round: string; notes: { name: string; text: string }[] };
46
50
  queue: { position: number | null; readyUntil: number | null; open: boolean };
package/src/web/play.html CHANGED
@@ -6,11 +6,11 @@
6
6
  <meta name="theme-color" content="#10191b">
7
7
  <meta name="color-scheme" content="dark light">
8
8
  <title>鲸语会馆 · 今晚,来一局</title>
9
- <script src="/play/assets/theme.js?v=0.43.0"></script>
9
+ <script src="/play/assets/theme.js?v=0.43.1"></script>
10
10
  <link rel="stylesheet" href="/play/assets/play.css">
11
- <link rel="stylesheet" href="/play/assets/club.css?v=0.43.0">
12
- <link rel="stylesheet" href="/play/assets/appearance.css?v=0.43.0">
13
- <link rel="stylesheet" href="/play/assets/night.css?v=0.43.0">
11
+ <link rel="stylesheet" href="/play/assets/club.css?v=0.43.1">
12
+ <link rel="stylesheet" href="/play/assets/appearance.css?v=0.43.1">
13
+ <link rel="stylesheet" href="/play/assets/night.css?v=0.43.1">
14
14
  </head>
15
15
  <body class="theme-club">
16
16
  <svg class="sprite" aria-hidden="true" width="0" height="0" focusable="false">
@@ -111,6 +111,6 @@
111
111
  <div id="app" class="app"><div class="booting" id="boot-note">正在打开客厅…</div></div>
112
112
  <div id="toast" class="toast" role="status" aria-live="polite" hidden></div>
113
113
  <noscript><p class="noscript">这个页面要开 JavaScript 才能玩。</p></noscript>
114
- <script type="module" src="/play/assets/vue-loader.js?v=0.43.0"></script>
114
+ <script type="module" src="/play/assets/vue-loader.js?v=0.43.1"></script>
115
115
  </body>
116
116
  </html>