🚀 Phase 10.11: Everything is Plugin革命完了!

主な変更:
- ConsoleBox/MathBoxプラグイン実装・登録完了
- nyash_box.toml 2ファイルシステム設計(中央レジストリ+個別仕様書)
- 全プラグインにnyash_box.tomlテンプレート追加
- プラグイン優先機能(NYASH_USE_PLUGIN_BUILTINS=1)文書化
- ビルトインBox削除準備(ChatGPT5実装中)
- ネイティブビルドデモ追加(Linux/Windows動作確認済み)

Everything is Box → Everything is Plugin への歴史的転換!
開発20日目にしてビルトインBox全削除という革命的決定。

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Moe Charm
2025-08-30 01:33:52 +09:00
parent 15e0a1ab34
commit 1b98f85df9
34 changed files with 1410 additions and 62 deletions

View File

@ -18,8 +18,13 @@ pub fn init_global_unified_registry() {
GLOBAL_REGISTRY.get_or_init(|| {
let mut registry = UnifiedBoxRegistry::new();
// Register built-in Box factory (highest priority)
registry.register(Arc::new(BuiltinBoxFactory::new()));
// Register built-in Box factory (highest priority) unless disabled
let disable_builtins = std::env::var("NYASH_DISABLE_BUILTINS").ok().as_deref() == Some("1");
if !disable_builtins {
registry.register(Arc::new(BuiltinBoxFactory::new()));
} else {
eprintln!("[UnifiedRegistry] Builtin boxes disabled via NYASH_DISABLE_BUILTINS=1");
}
// Register plugin Box factory (lowest priority)
#[cfg(feature = "plugins")]