feat(contracts): declare every gateway method, server request and event; commit the generated TS + OpenRPC (#110522, part 2)

215 methods, 13 server→client requests and 67 notifications now have Pydantic
contracts under tui_gateway/contracts/<topic>.py, rendered to
apps/shared/src/gateway-contract.generated.ts (616 types) and
gateway-contract.openrpc.json. tests/contracts/test_generated.py pins both
files to an in-memory regeneration and asserts catalog completeness from the
CODE side (every registered handler / emitted event / sent request has a
contract, nothing orphaned). scripts/ci/classify_changes.py runs the Python
lane when either generated file changes.

Phantom fields the hand-typed TS carried and no emitter ever set:
tool.start.todos, error.reason, voice.transcript.voice_stopped.
This commit is contained in:
teknium1
2026-09-14 01:29:49 -07:00
committed by Teknium
parent 0cec9299fa
commit 0250c8bcae
17 changed files with 45385 additions and 22 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff