exec-server: use jsonrpsee for RPC dispatch

Rewrite the transport request/response path to register exec-server methods on a jsonrpsee RpcModule instead of the custom JSON-RPC router/processor, while keeping the in-process client on direct typed handler calls.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
starr-openai
2026-03-17 21:35:34 +00:00
parent 3d40df7939
commit cdd468a909
9 changed files with 281 additions and 1138 deletions

View File

@@ -18,7 +18,8 @@ unified-exec in this PR; it is only the standalone transport layer.
The internal shape is intentionally closer to `app-server` than the first cut:
- transport adapters are separate from the per-connection request processor
- JSON-RPC route matching is separate from the stateful exec handler
- JSON-RPC request dispatch is backed by `jsonrpsee` and kept separate from the
stateful exec handler
- the client only speaks the protocol; it does not spawn a server subprocess
- the client can also bypass the JSON-RPC transport/routing layer in local
in-process mode and call the typed handler directly