Skip to content

chore(white-label-minimal): update @base44/platform to 0.2.0 - #76

Closed
amitbardos wants to merge 1 commit into
mainfrom
amitb/platform-0.2.0
Closed

amitbardos wants to merge 1 commit into
mainfrom
amitb/platform-0.2.0

Conversation

@amitbardos

Copy link
Copy Markdown
Contributor

What

Moves the Tiny Sunny example (examples/white-label-minimal) from @base44/platform@0.1.0 to 0.2.0, which changes the client and the event types in breaking ways.

  • Session. openLiveSession (server action) now returns session_token, socket_url and socket_path from POST /api/service/socket-sessions, typed as the SDK's SocketSession. session_id and expires_in stay on the server. The browser no longer works out serverUrl from socket_url; 0.2.0 connects on the session's own socket_path.
  • Client. useLiveChat uses createPlatformClient().builder.init({ getSession: () => openLiveSession(appId), onError }). The SDK calls getSession on the first connect() 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 (the client_closed rejection from close()) are not shown.
  • Types. ChatMessage is now Message, ToolQuestionArguments is Question[] on ask_clarifying_questions, and ToolSecretArguments is SecretField[] on set_secrets. ToolCall is now a union that includes OtherToolCall and per-guard approvals, so arguments, display, approval.reason and approval.details.summary are narrowed by name plus in.
  • The hook never reads queue, and onEvent uses if checks rather than an exhaustive switch, so the optional queue and the "unknown" event need no handling. No README or doc in the repo showed the old client API.

Lockfile: please review

package-lock.json changes in two places only: the workspace's @base44/platform range (^0.2.0), and the node_modules/@base44/platform entry (version 0.2.0, resolved set to https://registry.npmjs.org/@base44/platform/-/platform-0.2.0.tgz, and integrity sha512-fN3JggD6GLAnOzc2CfRr3oWoyss5xRfDfy+ktqp2wJ0DbgWM5SufrZox35RnlIAzvmmxmPV6CntvGTVhhyTZ7g==, which matches the npmjs publish and the mirror). The install ran against the Wix npm mirror. Its npm install also pruned extraneous entries (examples/tiny-sunny, the optional peer playwright) and nested the package under the workspace. I reverted that and applied just the @base44/platform change by hand. A follow-up npm ci left the lockfile untouched.

Checks

npm run typecheck (after next typegen, which creates LayoutProps):

> tsc --noEmit
(no errors)

npm run lint:

✖ 3 problems (0 errors, 3 warnings)

(The warnings are already on main: examples/white-label-minimal/postcss.config.mjs, src/views/Board.jsx and src/views/Boards.jsx.)

npm run minimal:typecheck:

> next typegen && tsc --noEmit
✓ Types generated successfully

npm run minimal:build:

✓ Compiled successfully in 3.1s
  Finished TypeScript in 1041ms ...
✓ Generating static pages using 4 workers (3/3) in 213ms

Not run: the smoke suites, which need npm run dev and a database, and a live socket check against a Base44 app.

🤖 Generated with Claude Code

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>
@netlify

netlify Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for sunny44-builder ready!

Name Link
🔨 Latest commit 945b143
🔍 Latest deploy log https://app.netlify.com/projects/sunny44-builder/deploys/6ad0a12589df9174cb244747
😎 Deploy Preview https://deploy-preview-76--sunny44-builder.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base44-platform-starter ready!

Name Link
🔨 Latest commit 945b143
🔍 Latest deploy log https://app.netlify.com/projects/base44-platform-starter/deploys/6ad0a125b6b2c7d2d9f12f64
😎 Deploy Preview https://deploy-preview-76--base44-platform-starter.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@amitbardos

Copy link
Copy Markdown
Contributor Author

Superseded by #79, which moves Tiny Sunny straight to @base44/platform 0.3.0.

@amitbardos amitbardos closed this Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant