Release @pymthouse/builder-sdk v0.1.0 — config, tokens, device-initiate, workflows#17
Merged
Conversation
- Introduced `@pymthouse/builder-sdk/config` for environment configuration utilities. - Added `@pymthouse/builder-sdk/tokens` for signer session TTL and JWT expiry helpers. - Implemented `@pymthouse/builder-sdk/device-initiate` for Option B device login validation. - Enhanced Usage API with new methods: `fetchUsageForExternalUser`, `buildMeScopeUsagePayload`, and `getAppManifest`. - Updated README.md to reflect new features and usage examples. - Added tests for new functionalities to ensure reliability.
- Introduced `@pymthouse/builder-sdk/config` for environment configuration utilities. - Added `@pymthouse/builder-sdk/tokens` for signer session TTL and JWT expiry helpers. - Implemented `@pymthouse/builder-sdk/device-initiate` for Option B device login validation. - Enhanced Usage API with new methods: `fetchUsageForExternalUser`, `buildMeScopeUsagePayload`, and `getAppManifest`. - Updated README.md to reflect new features and usage examples. - Added tests for new functionalities to ensure reliability.
Replace global regex replaces with replaceAll, remove ReDoS-prone padding trim in token tests, flatten nested ternaries, and use optional chaining for client_id validation. Co-authored-by: Cursor <cursoragent@cursor.com>
|
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
@pymthouse/builder-sdk/config,/tokens, and/device-initiatefor Edge/middleware-safe env reads, signer session helpers, and Option B device login validation.PmtHouseClientwith usage BFF (fetchUsageForExternalUser), app manifest (getAppManifest), and workflow helpers (mintSignerSessionForExternalUser,approveDeviceLogin).githubactions:S7637).Test plan
pnpm test(43 tests)v0.1.0andpnpm publishafter merge (if not already published)Made with Cursor