mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-17 17:51:20 +08:00
- Added internal capability for handler invocation in SupervisorRuntime. - Implemented lifecycle hooks (on_start, on_stop) in Star class and PluginWorkerRuntime. - Updated CapabilityRouter to support request_id in call and stream handlers. - Refactored message handling in PeerRuntime to include request_id. - Introduced tests for API contract, legacy adapter, and migration scenarios. - Improved WebSocketServerTransport to manage connection state more effectively. - Enhanced plugin loading and discovery to maintain compatibility with legacy systems.
947 B
947 B
CLAUDE Notes
- 2026-03-12:
refactor.mdon disk was empty, while the active collaboration context contained the full v4 refactor design. Treat the conversation-approved v4 design as source of truth unless a newer committed document replaces it. - 2026-03-12: Legacy
handshakepayloads only containevent_type/handler_full_namemetadata and do not preserve v4 command/message trigger details such as command names, aliases, keywords, or regex. Any legacy-to-v4 handshake translation must approximate handlers as coarse event subscriptions and keep the raw handshake payload in metadata for lossless fallback. - 2026-03-12:
src/astrbot_sdk/tests/start_client.pyandbenchmark_8_plugins_resource_usage.pystill reference legacyastrbot_sdk.runtime.galaxy, butsrc-new/astrbot_sdk/runtime/galaxy.pyno longer exists. Treattests_v4/test_script_migrations.pyas the maintained replacement instead of reviving the old Galaxy path.