You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Adds end-to-end RPC coverage for typegres query-builder usage over two RPC mechanisms (exoeval-evaluated closures and capnweb record/replay closures), plus a capnweb shim that enforces the existing @expose capability surface across the RPC boundary.
Changes:
Added comprehensive integration tests for “typegres over exoeval RPC” and “typegres over capnweb RPC”, including @expose-gating scenarios and scalar/hydrate behaviors.
Introduced a capnweb toRpc/fromRpc shim + in-memory harness to adapt @expose capability objects to capnweb’s RPC model.
Updated query hydration to preserve the @expose field-marker (toolFieldsSymbol) on hydrated instances.
Reviewed changes
Copilot reviewed 8 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
File
Description
src/rpc-exoeval.test.ts
New exoeval RPC end-to-end tests for query-builder composition and @expose gating.
src/rpc-capnweb.test.ts
New capnweb RPC end-to-end tests mirroring the exoeval scenarios.
src/capnweb/shim.ts
New capnweb shim to wrap/unwrap @expose objects/functions across RPC.
src/capnweb/shim.test.ts
Unit + end-to-end tests validating shim behavior and RPC closure replay.
src/capnweb/harness.ts
Test-only in-memory capnweb wiring for client/server session pairs.
src/builder/query.ts
Preserve toolFieldsSymbol marker during hydrateRows instance construction.
package.json
Adds local capnweb dependency via file:packages/capnweb.
.gitmodules
Adds packages/capnweb as a git submodule.
.gitignore
Stops ignoring all packages/, only ignores packages/exoagent/.
- Cap'n Web upstream based on cloudflare/capnweb#162, with extra commits to:
- (a) unwrap RpcStubs that point back to local objects (getLocalTarget)
- (b) replay record/replay closures synchronously instead of eagerly Promisifying them (so fully-local chains run sync end to end), plus allow zero-arg closures
- @expose <-> RpcTarget translation exposing only the members we manually @expose, and crucially unwrapping RpcStubs that point to local objects (the record-replay closures) back to their raw builder objects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.