- Vendored
src/lib/scenaro-sdk/folder → published@scenaro/sdkpackage - Pre-0.3 API (
useScenarioSession+AgentListener) →useScenaroSession
Before and after
Migration steps
1
Install the package
2
Replace API client
3
Replace provider
4
Replace the session hook
5
Remove AgentListener and RoomContext wiring
useScenaroSession handles the data channel, config handshake, tool RPC, and RoomContext
injection internally. Delete these from your components:6
Update auth calls
Remove any
generateToken usage. The hook runs identify + session start automatically
on start().7
Update event listeners
8
Remove vendored copies
Delete duplicated
AgentListener, protocol/, and auth/ files. Keep only feature
components and your registry.Pre-0.3 API mapping (historical)
These exports were removed in 0.3.0. If you still import them, upgrade to 0.3.What to keep locally
Storage migration
Since@scenaro/sdk@0.1.1, legacy storage keys are migrated automatically on read. No manual
migration needed for users with existing sessions.