Updating SDK Packages
How updates work
Business logic (auth, payments, games) lives in @cactus-agents/* packages. When the Cactus team releases updates, you pull them via pnpm:
# Update a specific package
pnpm update @cactus-agents/auth
# Update all @cactus-agents packages
pnpm update @cactus-agents/api-client @cactus-agents/auth @cactus-agents/brand @cactus-agents/types @cactus-agents/utils
What gets updated
- Bug fixes and security patches
- New features (e.g., new payment providers)
- API compatibility updates
What doesn't change
- Your theme colors (
theme.config.ts) - Your routes (
routes.config.ts) - Your layout (
layout.config.ts) - Your environment variables
Checking for updates
pnpm outdated @cactus-agents/*
After updating
- Run
pnpm installto resolve updated dependencies - Test locally with
pnpm dev - Verify key flows (login, registration, etc.)
- Deploy to production