Skip to content

SMOODEV-1844: Parity — prompts, pre-chat form, full theming, OTP/HITL + npm publishing#2

Merged
brentrager merged 1 commit into
mainfrom
SMOODEV-1844-parity
Jun 13, 2026
Merged

SMOODEV-1844: Parity — prompts, pre-chat form, full theming, OTP/HITL + npm publishing#2
brentrager merged 1 commit into
mainfrom
SMOODEV-1844-parity

Conversation

@brentrager

Copy link
Copy Markdown
Contributor

What

Feature-parity pass toward retiring the legacy @smooai/ui-chat-widget, plus npm publishing.

Added (all unblocked parity)

  • Starter-prompt chips (examplePrompts) — clickable, send on tap, capped at 5.
  • Pre-chat identity form (requireName/requireEmail/requirePhone, allowAnonymous) — collected name/email attach to the session; phone rides session metadata.
  • Full dashboard theming parity — the theme accepts the agent dashboard's 10-color model (secondary + chatBubbleInbound/…Text / chatBubbleOutbound/…Text aliases that win over the canonical keys), so a dashboard-exported config themes the widget directly.
  • OTP + tool-confirmation (HITL) in ConversationController — surfaces otp_verification_required/otp_sent/otp_verified/otp_invalid + write_confirmation_required via an onInterrupt callback, resumed with verifyOtp(code)/confirmTool(approved). (Built-in dialog UI is the next step; protocol plumbing ships here.)
  • npm publishing wired via changesets (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

  • Voice — smooth-operator has no audio/voice in its protocol (verified), so voice parity is blocked on a backend/protocol feature, not a widget change.

Verification

  • pnpm check (typecheck + 26 tests + build) green. IIFE ~21 kB gzipped.
  • New tests cover theming aliases, 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

…/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-bot

changeset-bot Bot commented Jun 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1d6dd64

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@smooai/chat-widget Minor

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

@brentrager brentrager merged commit 3e4c979 into main Jun 13, 2026
1 check passed
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