Skip to content

上线检查

使用 @consenger/companion-sdk 的 Vifu browser game,在提交前需要完成这份 checklist。

软件包

  • 使用 @consenger/[email protected]
  • 使用 @consenger/[email protected] 完成本地 run、test、build 和 publish workflow。
  • 除非文档发布新的 compatibility line,否则保持在 0.1.x
  • 如果游戏不使用 bundler,需要把 browser build 和游戏一起打包。

Manifest

  • entry 指向 browser entry file。
  • capabilities 中加入 companion.plugin.v1
  • title、description、language tag、genre tag 应该描述玩家看到的游戏,而不是实现细节。

Runtime behavior

  • 没有 Vifu host bridge 时,游戏也必须能在普通 browser tab 中运行。
  • companion feature 只在 companion.isHostConnected() 为 true 时启用。
  • context 和 command 在启动时注册,不要每帧重复注册。

Companion safety

  • context 只能包含玩家可以安全知道的信息。
  • 不要暴露 token、private note、account identifier、hidden answer 或 future content。
  • command 必须校验 input,并返回稳定的 result object。

验证

  • 本地打开游戏。
  • 确认 companion.status() 返回预期 SDK version 和 protocol。
  • 至少触发一次 context read、command 和 observation。
  • 确认没有 host bridge 时游戏仍然可用。