@zhuweiyou/dsh-holdem 0.1.2 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhuweiyou/dsh-holdem",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "德州扑克:6 人桌、超员自动观战、多局排行榜;牌桌可跑在本机或 Cloudflare Worker 上。",
5
5
  "keywords": [
6
6
  "deepseek-harness",
package/worker/index.ts CHANGED
@@ -22,6 +22,8 @@ export interface Env {
22
22
  ROOMS: DurableObjectNamespace
23
23
  /** 房间上限等可选覆盖 */
24
24
  MAX_ROOMS?: string
25
+ /** 观战席位上限的可选覆盖 */
26
+ MAX_SPECTATORS?: string
25
27
  }
26
28
 
27
29
  const CORS_HEADERS = {
@@ -103,6 +105,7 @@ export class RoomsDurableObject {
103
105
  constructor(_state: DurableObjectState, env: Env) {
104
106
  const overrides: Record<string, unknown> = {}
105
107
  if (env.MAX_ROOMS) overrides.maxRooms = Number(env.MAX_ROOMS)
108
+ if (env.MAX_SPECTATORS) overrides.maxSpectators = Number(env.MAX_SPECTATORS)
106
109
  const config = resolveConfig(overrides as never)
107
110
  this.manager = new RoomManager({
108
111
  config,