Skip to content

docs(sim): document usage and Gate 3 screenshots - #6

Merged
TN019 merged 10 commits into
mainfrom
docs/usage-and-gate3-screenshots
Dec 1, 2026
Merged

TN019 merged 10 commits into
mainfrom
docs/usage-and-gate3-screenshots

Conversation

@TN019

@TN019 TN019 commented Dec 1, 2026

Copy link
Copy Markdown

Why

The repository had no README. People running the simulator need to know how to start and stop an entrance, what the browser messages are, and what access the bridge has, and the Gate 3 crash needs a reference screenshot.

What changed

  • Add README.md and README.zh-CN.md: running scripts/venue.sh up|status|down against a Gatepost checkout, the Gate 3 crash option --gate3-crash DIR, SIM_PORT, DOCKER_GID and AUTO_PASS_MS, the /ws message types in both directions, the development commands, and the Docker socket warning with the loopback-only page and the project and service allow-list.
  • Add docs/screenshots/README.md and its Chinese version with a table for gate3-stopped.png: the scenario, the two Gatepost revisions used, and the Playwright command.
  • Add docs/screenshots/gate3-stopped.png (1440 × 900, light scheme) from e2e/real-gate3-stopped.spec.ts.

How to verify

Open README.md and docs/screenshots/gate3-stopped.png. The screenshot should show Gate 3 with its scanner and outputs down while the other lanes are connected. To produce it again, start an entrance with --gate3-crash as the README describes and run:

scripts/e2e-gatepost.sh gate3-stopped
scripts/venue.sh down

背景

仓库还没有 README。运行模拟器的人需要知道如何启动和停止入口、浏览器消息有哪些、bridge 拥有什么权限;Gate 3 崩溃也需要一张参考截图。

改动

  • 新增 README.md 和 README.zh-CN.md:说明如何针对 Gatepost 检出运行 scripts/venue.sh up|status|down、Gate 3 崩溃场景的 --gate3-crash DIR 选项、SIM_PORT、DOCKER_GID 和 AUTO_PASS_MS、/ws 上双向的消息类型、开发命令,以及关于 Docker socket 的警告:页面只发布到回环地址,操作前会检查项目和服务白名单。
  • 新增 docs/screenshots/README.md 及中文版,用表格说明 gate3-stopped.png:场景、所用的两个 Gatepost 版本和 Playwright 命令。
  • 新增由 e2e/real-gate3-stopped.spec.ts 生成的 docs/screenshots/gate3-stopped.png(1440 × 900,浅色主题)。

怎么验证

打开 README.md 和 docs/screenshots/gate3-stopped.png。截图中 Gate 3 的扫码器和输出端应显示掉线,其余通道仍然连接。要重新生成,按 README 用 --gate3-crash 启动入口,然后运行:

scripts/e2e-gatepost.sh gate3-stopped
scripts/venue.sh down

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Author

Mateo Rossi · reviewer

The README says the bridge needs the socket's group. Does anyone have to set DOCKER_GID by hand?


README 说 bridge 需要 socket 所属的组。有人需要手动设置 DOCKER_GID 吗?

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Author

Noah Williams · author

No. scripts/venue.sh up reads the group of /var/run/docker.sock with stat and exports DOCKER_GID; the README mentions it because it can be overridden.


不需要。scripts/venue.sh up 会用 stat 读取 /var/run/docker.sock 的组并导出 DOCKER_GID。README 提到它,是因为这个值可以覆盖。

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Author

Mateo Rossi · reviewer

Does the screenshot table say which Gatepost code the capture came from?


截图表格有没有写明截图对应的 Gatepost 代码版本?

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Author

Noah Williams · author

Yes, the row names the working revision and the crash revision used through the adapter, next to the command that produced the file.


有。表格这一行写明了正常版本和通过适配器运行的崩溃版本,旁边是生成该文件的命令。

@TN019
TN019 merged commit 7482475 into main Dec 1, 2026
1 check failed
@TN019
TN019 deleted the docs/usage-and-gate3-screenshots branch December 1, 2026 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant