docs(tui): align frontend protocol references
Merged
LA
1mo ago+68+68+01234567890123456789-3-3-0123456789
Summary
- update English and Japanese frontend README protocol claims to v12
- add a contract test that derives the version from the web client and raw protocol guide
- run the contract in the TUI spec workflow
Verification
- commit
a0ec52cfd2adds the failing contract test (red) - commit
a4a0767325updates docs and workflow wiring (green) python3 cmux-tui/scripts/test_frontend_docs.py -vpython3 -m py_compile cmux-tui/scripts/test_frontend_docs.py- PyYAML workflow contract and
actionlint - TUI inventory, SDK schema, resource boundary, and codegen checks
No build, package publication, workflow dispatch, or merge was performed. This PR is independent of #10241 and #10242.
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Aligns frontend README protocol references to v12 and adds a contract test so docs can't drift from the supported WebSocket protocol. READMEs previously could claim an outdated protocol version with nothing enforcing it; now the spec workflow fails when they mismatch.
- Updates
frontends/README.md,frontends/README.ja.md, andfrontends/web/README.ja.mdto reference protocol v12. - Adds
cmux-tui/scripts/test_frontend_docs.pyto assert that the web client'sSUPPORTED_PROTOCOL, the protocol guide heading, and README claims all match. - Runs the new test in
cmux-tui-spec.ymlso version drift fails the workflow. - On protocol bumps, update
frontends/web/src/lib/protocol.tsanddocs/protocol.mdfirst, then fix README references to the new version.