|
|
367066376a
|
refactor(handlers): extract boxes_plugin module (Phase 2-3) - Phase 2 complete!
Split handlers/boxes.rs (497→322 lines, -175 lines, -35.2%)
Changes:
- Created boxes_plugin.rs (175 lines)
- Extracted invoke_plugin_box function
- Handles PluginBoxV2 method dispatch
- Includes fallback handlers for InstanceBox methods
- Special handling for ConsoleBox.readLine, VoidBox methods
- Updated mod.rs to declare new module
- Updated boxes.rs to redirect to new module
- Build verified: 0 errors, 85 warnings
Phase 2 Complete Summary:
- boxes.rs: 1008→322 lines (-686 lines, -68.1% reduction!)
- Split into 3 focused modules:
- boxes_object_fields.rs (359 lines) - getField/setField
- boxes_instance.rs (150 lines) - InstanceBox dispatch
- boxes_plugin.rs (175 lines) - Plugin dispatch
Overall Progress:
- Phase 1: Legacy deletion (2,997 lines)
- Phase 2-1: boxes_object_fields split (360 lines)
- Phase 2-2: boxes_instance split (151 lines)
- Phase 2-3: boxes_plugin split (175 lines)
- Total reduction: 3,683 lines deleted
Next: Phase 3 (builder_calls.rs split, ~142 lines)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-01 12:42:52 +09:00 |
|