Skip to content

feat: structured RPC route#145

Closed
0xpolarzero wants to merge 2 commits into
wevm:mainfrom
0xpolarzero:rpc-structured-command
Closed

feat: structured RPC route#145
0xpolarzero wants to merge 2 commits into
wevm:mainfrom
0xpolarzero:rpc-structured-command

Conversation

@0xpolarzero
Copy link
Copy Markdown

@0xpolarzero 0xpolarzero commented May 22, 2026

Warning

This PR is part of a stacked PR chain. Review/merge in order:
#144
> #145
#143
#147

Overview

Adds a structured RPC endpoint for command execution. This is the transport base for the TypeScript client (implemented in #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.
  • Document the RPC endpoint in the README.
  • Add a changeset.

Tests

  • Adds RPC route tests for execution, shape validation, and schema validation errors.

@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: structured RPC route May 24, 2026
@0xpolarzero
Copy link
Copy Markdown
Author

Will reopen better PRs after playing around and figuring out the best API.

@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