Skip to content

feat: structured RPC route#4

Closed
0xpolarzero wants to merge 1 commit into
parse-object-validationfrom
rpc-structured-command
Closed

feat: structured RPC route#4
0xpolarzero wants to merge 1 commit into
parse-object-validationfrom
rpc-structured-command

Conversation

@0xpolarzero
Copy link
Copy Markdown
Owner

@0xpolarzero 0xpolarzero commented May 22, 2026

Warning

This PR is part of a stacked PR chain.

Upstream merge PRs:
wevm/incur#144 ->
wevm/incur#145 ->
wevm/incur#143 ->
wevm/incur#147

Correctly based review stack in this fork:
#3 ->
#4 ->
#5 ->
#2

Overview

Adds a structured RPC endpoint for command execution. This is the transport base for the TypeScript client (implemented in wevm/incur#143).

API

POST /_incur/rpc
content-type: application/json

{
  "command": "project deploy",
  "args": { "id": "p1" },
  "options": { "dryRun": true }
}

Changes

  • Add POST /_incur/rpc for structured command calls.
  • Add structured command execution so RPC receives args and options separately.
  • Return validation fieldErrors from HTTP command responses.
  • Reject raw fetch gateways from structured RPC with FETCH_GATEWAY_UNSUPPORTED; callers should use generated OpenAPI commands or direct HTTP routes.
  • Document the RPC endpoint in the README.
  • Add a changeset.

Tests

  • Adds RPC route tests for execution, shape validation, schema validation errors, and raw fetch gateway rejection.
  • Adds structured parse-mode validation coverage.

@0xpolarzero 0xpolarzero force-pushed the rpc-structured-command branch from e49c1d1 to 01d974e Compare May 22, 2026 20:49
@0xpolarzero 0xpolarzero changed the title feat(2): add structured RPC route feat(2): structured RPC route May 24, 2026
@0xpolarzero 0xpolarzero changed the title feat(2): structured RPC route feat: structured RPC route May 24, 2026
@0xpolarzero 0xpolarzero marked this pull request as draft May 24, 2026 23:12
@0xpolarzero 0xpolarzero deleted the rpc-structured-command branch May 25, 2026 16:36
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