This repository was archived by the owner on May 24, 2026. It is now read-only.
Add beginner-friendly high-level SDK API and quickstart example#26
Closed
GsCommand wants to merge 1 commit into
Closed
Add beginner-friendly high-level SDK API and quickstart example#26GsCommand wants to merge 1 commit into
GsCommand wants to merge 1 commit into
Conversation
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Motivation
run/verifysurface and a quickstart example.https://runtime.commandlayer.orgwhile preserving existing low-level APIs and backwards-compatible options.Description
commandlayerexport withcommandlayer.run(action, input, options?)andcommandlayer.verify(receipt, options?)backed by a module-wide default client.CommandLayerClient.run(...)andCommandLayerClient.verify(...)helpers and extendcreateClient(options?)to acceptbaseUrl(falls back toruntimeandhttps://runtime.commandlayer.org).commandlayer.verifydelegates to the existingverifyReceiptlogic and return a beginner-friendlyvalidalias (valid === ok) while leaving the fullVerifyResultintact.examples/quickstart-node(package.json,index.js,README.md) and update the top of the repo and TypeScript SDKREADME.mdto show install + a 10-line run/verify example.typescript-sdk/tests/high-level-api.test.mjsfor defaultbaseUrl, custombaseUrl,commandlayer.rundelegation, andcommandlayer.verifydelegation, and keep all existing low-level exports unchanged.Testing
npm run buildintypescript-sdkand produceddistartifacts.node --test typescript-sdk/tests/high-level-api.test.mjsand they passed.npm test) which produced43 passed, 1 failed; the single failing assertion is from an existing unit test in the suite and appears unrelated to the added high-level onboarding API.Codex Task