Commit 669c612
authored
feat: list all realtime models in demo dropdown (#125)
## Summary
- The Realtime model selector in `packages/sdk/index.html` only listed 4
models. Adds all canonical realtime models from `src/shared/model.ts`
plus the `*-latest` aliases.
- Options grouped via `<optgroup>` into **Latest (server-resolved)**,
**Canonical**, and **Deprecated aliases** — old names kept since they
still resolve through the SDK's alias map.
- Default selection updated from the deprecated `mirage_v2` to canonical
`lucy-2.1`.
## Linear
Platform:
https://linear.app/decart/issue/PLA-227/demo-list-all-realtime-models-in-sdk-demo-dropdown
## Test plan
- [ ] Open `packages/sdk/index.html` in Chrome and confirm the dropdown
shows all three groups
- [ ] Pick a canonical model (e.g. `lucy-2.1-vton`) and verify camera +
connect flow still works
- [ ] Pick a deprecated alias (e.g. `mirage`) and verify it still
connects (deprecation warning expected in console)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Demo-only UI/configuration changes; no SDK runtime logic or
security-sensitive behavior is modified.
>
> **Overview**
> Updates the SDK demo (`packages/sdk/index.html`) realtime model
selector to list **all supported realtime models**, grouped into *Latest
(server-resolved)*, *Canonical*, and *Deprecated aliases*.
>
> Changes the demo’s default model from deprecated `mirage_v2` to
canonical `lucy-2.1`, while keeping legacy aliases available for
compatibility testing.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
5550974. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent f946a90 commit 669c612
1 file changed
Lines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
242 | 256 | | |
243 | 257 | | |
244 | 258 | | |
| |||
371 | 385 | | |
372 | 386 | | |
373 | 387 | | |
374 | | - | |
| 388 | + | |
375 | 389 | | |
376 | 390 | | |
377 | 391 | | |
| |||
0 commit comments