WIP: Phase 9.78b - Unified registry integration (import issues pending)

Progress made:
- Add unified registry call to objects.rs execute_new() method
- Initialize unified registry in runner.rs on startup
- Create global registry management in runtime/unified_registry.rs
- Add test case for unified registry validation
- Implement fallback to legacy match statement for compatibility

Current issue:
- Module import errors in runtime/unified_registry.rs preventing build
- Need to resolve box_factory module path visibility from runtime context

Next steps:
- Fix import paths for box_factory modules
- Test unified registry functionality
- Remove legacy match statement after validation

Technical details:
- execute_new() now tries unified registry first, falls back to legacy
- Registry initialized with BuiltinBoxFactory and PluginBoxFactory
- Maintains backward compatibility during transition

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Moe Charm
2025-08-19 16:48:45 +09:00
parent 18d26ed130
commit fbb94aea17
4 changed files with 82 additions and 7 deletions

View File

@ -0,0 +1,16 @@
# Phase 9.78b: Unified BoxFactory Registry test
# Test basic Box creation through unified registry
local str = new StringBox("Hello UnifiedBox!")
print(str.to_string_box().value)
local num = new IntegerBox(42)
print(num.to_string_box().value)
local flag = new BoolBox(true)
print(flag.to_string_box().value)
local arr = new ArrayBox()
print("ArrayBox created: " + arr.type_name())
print("🎉 All unified registry tests passed!")