Conversation
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/sdk@0.8.48-pr.286.a571e29Prefer not to change any import paths? Install using npm alias so your code still imports npm i "@base44/sdk@npm:@base44-preview/sdk@0.8.48-pr.286.a571e29"Or add it to your {
"dependencies": {
"@base44/sdk": "npm:@base44-preview/sdk@0.8.48-pr.286.a571e29"
}
}
Preview published to npm registry — try new features instantly! |
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
Add
@base44/sdk/platform/clientfor browser subscriptions to the white-label builder socket. This is an independent PR againstmain, using #283 as the packaging reference; it does not include or depend on that PR's platform-server implementation. Shared package/build configuration conflicts can be reconciled when the entries merge.builder.init(...); independent builder sessions own connect/subscribe/close. SharedrefreshTokenruns only when a builder connects. Public models live in*.types.tsfiles following the module conventions in Add @base44/sdk/platform/server entry point #283./partnernamespace and/ws-whitelabel/socket.io/path, WebSocket-only transport, fresh CONNECTauth.tokenon each connection attempt, and no write channel.Validation
git diff --checkpassed.The local fixture is not a deployed-preview validation. Real browser-token integration and workspace enablement remain backend rollout prerequisites. No live provisioning, deployment, token issuance or external documentation publication was performed.
Intent (for reviewers & PR Autofix)
What this PR does
Implement the browser side of the white-label socket contract as a separate public SDK entry point, with documented types and reliable cursor handling.
Key decisions & why
*.types.tsfiles;refreshTokenis shared client configuration.What NOT to touch
The lack of API keys, token minting, chat commands, raw write events and HTTP fallback in the browser client is intentional. Preserve original public field names and independent entry points. Do not add private backend models or implementation details to this public package.
Tradeoffs / follow-ups
The backend token verifier and real deployment verification remain prerequisites. Snapshot/replay reconciliation is coordinated by the partner backend. This is at-least-once recovery with bounded retention, not exactly-once delivery. Package configuration conflicts with #283 will be resolved later.