Module migration

Module migration 

Source
Expand description

Migration shim for legacy TOML agent definitions

Provides compatibility layer for transitioning from legacy agent TOML format to the new extension manifest system. Emits deprecation warnings and maps legacy agent_type fields to extension manifests.

Structs§

DeprecationConfig
Deprecation warning configuration
MigrationShim
Migration shim for converting legacy agent formats to extensions
MigrationStats
Statistics from migration-aware loading

Functions§

convert_legacy_to_extension_toml
Convert a legacy agent TOML string to new extension format string
is_legacy_agent_file
Utility function to check if a file is in legacy agent format
is_legacy_agent_format
Utility function to check if content is in legacy agent format
load_registry_with_migration
Integration with ExtensionRegistry to load legacy agents with warnings
reset_deprecation_warning_flag
Reset the global deprecation warning flag (useful for tests)