Overview
Complete guide for migrating ElizaOS plugins from version 0.x to 1.x
This comprehensive guide will walk you through migrating your ElizaOS plugins from version 0.x to 1.x. The migration process involves several key changes to architecture, APIs, and best practices.
π Migration Documentation
Follow these guides in order for a smooth migration:
1. Migration Overview
Start here! This guide covers:
- Key differences between 0.x and 1.x
- Breaking changes and new features
- Basic migration steps
- Common migration patterns
2. State and Providers Guide
Understanding the new state management system:
- How state management has changed
- Converting old state patterns to new providers
- Best practices for state composition
- Provider implementation examples
3. Prompt and Generation Guide
Adapting to the new prompt system:
- Template system changes
- Prompt generation updates
- LLM integration patterns
- Custom prompt strategies
4. Advanced Migration Guide
For complex plugin migrations:
- Handling custom services
- Migrating complex action chains
- Database adapter changes
- Performance optimization tips
5. Completion Requirements
Checklist for migration completion:
- Required changes checklist
- Validation steps
- Common pitfalls to avoid
- Migration verification
6. Testing Guide
Ensuring your migrated plugin works correctly:
- Updated testing patterns
- Migration test scenarios
- Integration testing
- Performance benchmarks
π Quick Start
If youβre migrating a simple plugin, you can start with these basic steps:
- Update imports - Change from
@ai16z/eliza
to@elizaos/core
- Convert actions - Update action signatures to include callbacks
- Update providers - Convert state getters to provider pattern
- Test thoroughly - Use the testing guide to verify functionality
π‘ Migration Tips
- Donβt rush - Take time to understand the new patterns
- Test incrementally - Migrate and test one component at a time
- Use TypeScript - The new type system will catch many issues
- Ask for help - Join our Discord for migration support
π§ Common Migration Scenarios
Simple Action Migration
Provider Migration
π Pre-Migration Checklist
Before starting your migration:
- Backup your existing plugin code
- Review all breaking changes
- Identify custom components that need migration
- Plan your testing strategy
- Allocate sufficient time for the migration
π Getting Help
If you encounter issues during migration:
- Review the migration guides for common issues
- Search existing GitHub issues
- Join our Discord community for real-time help
- Create a detailed issue with your migration problem
π― Migration Goals
The 1.x architecture brings:
- Better modularity - Cleaner separation of concerns
- Improved testing - Easier to test individual components
- Enhanced flexibility - More customization options
- Better performance - Optimized runtime execution
- Stronger typing - Catch errors at compile time
Start with the Migration Overview and work through each guide systematically for the best results!