module

ClaudePersona::Migrator

Class methods

compare_versions(a : String, b : String) : Int32

Compare semantic versions: -1 if a < b, 0 if equal, 1 if a > b Used for future migration ordering

Source
effective_version(config : PersonaConfig) : String

Get effective version (nil treated as "0.0.0")

Source
needs_upgrade?(config : PersonaConfig) : Bool

Check if persona needs upgrade

Source
pre_parse_migrate(path : Path) : Bool

Pre-parse migration: runs BEFORE TOML parsing to fix issues that would corrupt data during parsing. This is necessary because toml.cr has a bug with embedded quotes in multi-line basic strings (""").

Returns true if migration was performed, false if not needed

Source
upgrade(name : String, config : PersonaConfig, path : Path) : Result

Upgrade persona at path, returns result

Source

Nested types