Repository navigation
chore(white-label-minimal): update @base44/platform to 0.2.0 - #76
Closed
amitbardos wants to merge 1 commit into
Closed
amitbardos wants to merge 1 commit into
amitbardos wants to merge 1 commit into
Conversation
openLiveSession returns the socket session's session_token, socket_url and socket_path, and the client passes it to builder.init as getSession, so the SDK renews the session itself. Types follow the 0.2.0 names, and ToolCall fields are narrowed with `in` on the new per-tool union. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ Deploy Preview for sunny44-builder ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for base44-platform-starter ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
Author
|
Superseded by #79, which moves Tiny Sunny straight to @base44/platform 0.3.0. |
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.
What
Moves the Tiny Sunny example (
examples/white-label-minimal) from@base44/platform@0.1.0to0.2.0, which changes the client and the event types in breaking ways.openLiveSession(server action) now returnssession_token,socket_urlandsocket_pathfromPOST /api/service/socket-sessions, typed as the SDK'sSocketSession.session_idandexpires_instay on the server. The browser no longer works outserverUrlfromsocket_url; 0.2.0 connects on the session's ownsocket_path.useLiveChatusescreatePlatformClient().builder.init({ getSession: () => openLiveSession(appId), onError }). The SDK callsgetSessionon the firstconnect()and again by itself when the session expires or a token is rejected, so the hook no longer fetches the session up front. Errors that arrive after unmount (theclient_closedrejection fromclose()) are not shown.ChatMessageis nowMessage,ToolQuestionArgumentsisQuestion[]onask_clarifying_questions, andToolSecretArgumentsisSecretField[]onset_secrets.ToolCallis now a union that includesOtherToolCalland per-guard approvals, soarguments,display,approval.reasonandapproval.details.summaryare narrowed by name plusin.queue, andonEventusesifchecks rather than an exhaustive switch, so the optionalqueueand the"unknown"event need no handling. No README or doc in the repo showed the old client API.Lockfile: please review
package-lock.jsonchanges in two places only: the workspace's@base44/platformrange (^0.2.0), and thenode_modules/@base44/platformentry (version0.2.0,resolvedset tohttps://registry.npmjs.org/@base44/platform/-/platform-0.2.0.tgz, and integritysha512-fN3JggD6GLAnOzc2CfRr3oWoyss5xRfDfy+ktqp2wJ0DbgWM5SufrZox35RnlIAzvmmxmPV6CntvGTVhhyTZ7g==, which matches the npmjs publish and the mirror). The install ran against the Wix npm mirror. Itsnpm installalso pruned extraneous entries (examples/tiny-sunny, the optional peerplaywright) and nested the package under the workspace. I reverted that and applied just the@base44/platformchange by hand. A follow-upnpm cileft the lockfile untouched.Checks
npm run typecheck(afternext typegen, which createsLayoutProps):npm run lint:(The warnings are already on
main:examples/white-label-minimal/postcss.config.mjs,src/views/Board.jsxandsrc/views/Boards.jsx.)npm run minimal:typecheck:npm run minimal:build:Not run: the smoke suites, which need
npm run devand a database, and a live socket check against a Base44 app.🤖 Generated with Claude Code