feat: port typed REST client from @keepergate/core#1
Open
mandatedisrael wants to merge 1 commit into
Open
Conversation
Initial implementation of @KeeperHub/sdk: lands the typed client, direct executor, workflow tool, and trigger-input inference from the ETHGlobal hackathon prototype. - KeeperHubClient with pollUntilDone + bounded retries - DirectExecutor with read/write discriminator - WorkflowTool for end-to-end create-execute-poll flows - extractTriggerInputFields for SDK input schema inference - Unit tests ported to vitest (24/24 passing)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Initial implementation of
@keeperhub/sdk: a straight port of@keepergate/corefrom the ETHGlobal Open Agent 2026 hackathon prototype, with thedata.template-resolution workaround stripped (now fixed upstream).What's in the port
KeeperHubClient— typed HTTP client withpollUntilDoneand bounded retriesDirectExecutor— one-shot read/write executor withisReadResultdiscriminatorWorkflowTool— end-to-end create + execute + poll convenience wrapperextractTriggerInputFields— inferred input schema for trigger-typed inputsTests
Unit tests ported to vitest to match the existing setup (24/24 passing):
test/template-refs.test.ts— 18 cases including pathological inputstest/discriminator.test.ts— 4 cases forisReadResulttest/poll-timeout.test.ts— 2 cases (timeout + happy path) using injected fetchLocal validation
npm install— cleannpm run type-check— no errorsnpm run build— ESM + CJS +.d.tsall emittednpm test— 24/24 passingTest plan
package.jsonversion andnpm publishmanually for the first release