Commit Graph

5 Commits

Author SHA1 Message Date
adbb0201a9 chore(fmt): add legacy stubs and strip trailing whitespace to unblock cargo fmt 2025-09-17 07:43:07 +09:00
4f360e0fbb fix: Replace static mut with Lazy for thread safety in FileBoxRegistry
- Eliminate static_mut_refs warnings by using once_cell::sync::Lazy
- Make FileMode enum public to fix private_interfaces warning
- Reduce warnings from 6 to 3
- Prepare for Rust 2024 edition compatibility
2025-08-21 12:14:33 +09:00
670615d1de feat: WASMビルド完全対応+finiシステム修正 🎉
## WASMビルド対応
- TimerBox、AudioBox等の問題のあるBoxをWASM環境では条件付きコンパイルで除外
- WebBox (WebDisplayBox, WebConsoleBox, WebCanvasBox) にas_anyメソッド追加
- プラグイン関連コードに#[cfg]ガードを追加
- web-sysフィーチャーを追加(Performance、MouseEvent等)
- projects/nyash-wasmのビルドが完全に通るように!

## finiシステム修正
- フィールド差し替え時の自動fini削除(Nyashの明示的哲学に従う)
- スコープ離脱時のみfini実行(meは除外)
- ドキュメント更新で正しいfiniルールを明記

## その他
- CLAUDE.mdにWASMビルド方法を追記(wasm-pack build --target web)
- 開発サーバー起動方法を記載(python3 -m http.server 8010)
- cargo testで全テスト成功を確認

これでNyashがブラウザで動作可能に!🐱

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-20 07:33:18 +09:00
e8b1ccaeaf feat: Complete v2 plugin system migration with compilation fixes
🎉 Phase 9.75g-1: v2プラグインシステム移行完成

###  修正完了項目
- bid/mod.rs: 古いregistryモジュールの無効化
- generic_plugin_box.rs: registry依存の削除、簡易clone実装
- objects.rs: 古いBIDレジストリ呼び出しを無効化、v2システム用コメント追加
- main.rs, runner.rs: import修正(nyash_rust::cli::CliConfigへ)
- lib.rs: CLI モジュール export追加

### 🚀 達成事項
-  全コンパイルエラー修正完了
-  v2プラグインシステム正常起動確認
-  nyash.toml読み込み・設定統合成功
-  BoxFactoryRegistry + PluginLoaderV2連携実装
-  test_filebox_v2.nyash テストファイル追加

### 📊 実行結果
```
🔌 v2 plugin system initialized from nyash.toml
 v2 plugin system fully configured
📦 Registering plugin provider for FileBox
```

### 🔧 次のステップ (Phase 9.75g-2)
- BoxFactoryRegistry統合: new FileBox() → v2プラグインBox生成
- TLV通信実装: 実際のプラグインメソッド呼び出し

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-19 05:36:01 +09:00
5f6f946179 feat: 汎用プラグインBox生成システム実装とnyash.toml v2対応準備
- GenericPluginBoxを実装し、任意のプラグインBoxを動的に生成可能に
- FileBox決め打ちコードを削除(設計思想違反の解消)
- CURRENT_TASK.mdを更新し、nyash.toml v2対応の必要性を明確化
- 問題: プラグインテスターとNyash本体が古い単一Box型形式のまま

次のステップ:
1. nyash.tomlをv2形式(マルチBox型)に更新
2. プラグインテスターをv2対応に
3. Nyash本体のレジストリをv2対応に

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-19 03:48:44 +09:00