feat: Phase 9.78b完了 - UnifiedBoxRegistry統合とビルド最適化

🏭 **Phase 9.78b: 統合レジストリ実装完了**

**主要な変更:**
- execute_new()に統合レジストリを統合、レガシーmatch文への自動フォールバック
- 全importエラー解決(RuntimeError, モジュールパス修正)
- runner.rs起動時に統合レジストリ初期化
- 20+種類のビルトインBoxが統合ファクトリ経由で作成可能

**ビルド時間最適化:**
- wasmtime/wabt依存を"wasm-backend"フィーチャーでオプション化
- デフォルトビルド 4分 → 43秒の劇的高速化達成

**技術的達成:**
- 600+行match文 → 30行ファクトリパターンへの移行基盤完成
- プラグイン・ユーザー定義・ビルトインBox統一アーキテクチャ確立
- Everything is Box哲学の実装レベル体現

**次のステップ:**
Phase 9.78c: プラグインBox統合、Phase 9.78d: ユーザー定義Box統合

🤖 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:56:44 +09:00
parent fbb94aea17
commit 5b6cf828af
11 changed files with 25 additions and 12 deletions

View File

@ -5,7 +5,7 @@
* Integrates all Box creation sources (builtin, user-defined, plugin)
*/
use super::super::box_factory::{UnifiedBoxRegistry, builtin::BuiltinBoxFactory, plugin::PluginBoxFactory};
use crate::box_factory::{UnifiedBoxRegistry, builtin::BuiltinBoxFactory, plugin::PluginBoxFactory};
use std::sync::{Arc, Mutex, OnceLock};
/// Global registry instance
@ -35,7 +35,7 @@ pub fn get_global_unified_registry() -> Arc<Mutex<UnifiedBoxRegistry>> {
}
/// Register a user-defined Box factory (called by interpreter)
pub fn register_user_defined_factory(factory: Arc<dyn super::super::box_factory::BoxFactory>) {
pub fn register_user_defined_factory(factory: Arc<dyn crate::box_factory::BoxFactory>) {
let registry = get_global_unified_registry();
let mut registry_lock = registry.lock().unwrap();