Skip to content

Tiny Sunny: headless chat on option B of @base44/platform/react - #67

Closed
amitbardos wants to merge 1 commit into
amitb/tiny-sunny-leanfrom
amitb/tiny-sunny-option-b
Closed

amitbardos wants to merge 1 commit into
amitb/tiny-sunny-leanfrom
amitb/tiny-sunny-option-b

Conversation

@amitbardos

@amitbardos amitbardos commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

The Tiny Sunny side of option B. It pairs with base44/javascript-sdk#314. The other option is base44/base44-platform-starter#66. Stacked on base44/base44-platform-starter#64, so this diff shows only the switch.

What changes

Option B ships the hook plus a provider and parts. Tiny wraps the chat in <Base44ChatProvider components={chatParts}>, and <Message> draws each item with Tiny's parts. The list and the composer read the chat with useChatState / useChatActions.

  • lean/sdk/ is a copy of packages/platform/src/react from feat(platform): @base44/platform/react, option B: hook, provider and parts javascript-sdk#314, with imports pointed at @base44/platform, until @base44/platform/react is published. The copy is byte-identical apart from those imports and a header comment, plus one file-level lint exception explained in the file.
  • lean/components/chats/headless/: chatParts.tsx holds Tiny's look (the same file in both options, plus the chatParts object the provider takes), and HeadlessChat.tsx is rebuilt on option B.
  • The headless tab opens first, so a preview lands on it.
  • The hand-written chats in without-sdk/ type their answer input as Record<string, unknown>, as the SDK does.

Checked

  • Type-check and the example's tests pass; lint on lean/ shows only the two warnings that were already there.
  • Run locally with TINY_SUNNY_LEAN=true against the workspace: the habit app's open clarifying question renders with Tiny's parts, the phase reads "Waiting for your answer", and Send is locked while the question is open. Nothing was answered or sent.

🤖 Generated with Claude Code

lean/sdk/ is now a copy of packages/platform/src/react from
base44/javascript-sdk#314, with imports pointed at @base44/platform, until the
subpath is published. The headless tab opens first, and its chat is rebuilt on
that API; chatParts holds Tiny's look. The hand-written chats type their answer
input as the SDK does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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