SMOODEV-1844: Parity — prompts, pre-chat form, full theming, OTP/HITL + npm publishing#2
Merged
Merged
Conversation
…/HITL plumbing + npm publishing Toward retiring @smooai/ui-chat-widget. Adds to the standalone widget: - Starter-prompt chips (examplePrompts) — clickable, send on tap, capped at 5. - Pre-chat identity form (requireName/requireEmail/requirePhone, allowAnonymous); name/email flow into the session, phone via session metadata. - Full dashboard theming parity: 10-color model (secondary + chatBubble* aliases that win over the canonical keys), so a dashboard-exported config themes it. - OTP + tool-confirmation (HITL) in ConversationController: surfaces otp_verification_required/otp_sent/otp_verified/otp_invalid + write_confirmation_required as an onInterrupt event, resumed via verifyOtp(code)/confirmTool(approved). (Built-in dialog UI lands next.) - npm publishing wired via changesets (release.yml) — minor bump 0.2.0 -> 0.3.0. Voice is intentionally out of scope: the smooth-operator protocol has no audio surface yet, so voice parity is blocked on a backend/protocol feature. 8 new tests (theming aliases, needsUserInfo, prompt cap, chips + form gating). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 1d6dd64 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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
Feature-parity pass toward retiring the legacy
@smooai/ui-chat-widget, plus npm publishing.Added (all unblocked parity)
examplePrompts) — clickable, send on tap, capped at 5.requireName/requireEmail/requirePhone,allowAnonymous) — collected name/email attach to the session; phone rides sessionmetadata.secondary+chatBubbleInbound/…Text/chatBubbleOutbound/…Textaliases that win over the canonical keys), so a dashboard-exported config themes the widget directly.ConversationController— surfacesotp_verification_required/otp_sent/otp_verified/otp_invalid+write_confirmation_requiredvia anonInterruptcallback, resumed withverifyOtp(code)/confirmTool(approved). (Built-in dialog UI is the next step; protocol plumbing ships here.)release.yml,SMOOAI_NPM_TOKEN) → merging this opens a "🦋 version" PR bumping 0.2.0 → 0.3.0 and publishes to npm.Intentionally NOT included
Verification
pnpm check(typecheck + 26 tests + build) green. IIFE ~21 kB gzipped.needsUserInfo, prompt cap, and chips + form gating (jsdom shadow-tree).Part of epic SMOODEV-1841. The OTP/HITL dialog UI and voice are the remaining 1844 items (voice blocked).
🤖 Generated with Claude Code