feat(plugin): Fix plugin BoxRef return and Box argument support

- Fixed deadlock in FileBox plugin copyFrom implementation (single lock)
- Added TLV Handle (tag=8) parsing in calls.rs for returned BoxRefs
- Improved plugin loader with config path consistency and detailed logging
- Fixed loader routing for proper Handle type_id/fini_method_id resolution
- Added detailed logging for TLV encoding/decoding in plugin_loader_v2

Test docs/examples/plugin_boxref_return.nyash now works correctly:
- cloneSelf() returns FileBox Handle properly
- copyFrom(Box) accepts plugin Box arguments
- Both FileBox instances close and fini correctly

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Moe Charm
2025-08-21 00:41:26 +09:00
parent af32896574
commit cc2a820af7
274 changed files with 7244 additions and 4608 deletions

View File

@ -0,0 +1,33 @@
# Nyash Development Documentation 🔧
開発者向けの進行中タスクと開発計画ドキュメントです。
## 📂 ディレクトリ構造
### current/
- `CURRENT_TASK.md` - 現在進行中のタスク
- アクティブな開発作業の詳細
- 最新の実装状況
### roadmap/
- **phases/** - フェーズ別開発計画
- phase-8/ - AST→MIR変換
- phase-9/ - VM/JIT実装
- phase-10/ - AOT最適化
- **native-plan/** - ネイティブビルド計画
- 実行バックエンド統合
- パフォーマンス目標
### proposals/
- RFCRequest for Comments
- 新機能提案
- 設計ディスカッション
## 🎯 重要な参照先
- **進行状況**: `current/CURRENT_TASK.md`
- **開発計画**: `roadmap/phases/`
- **技術提案**: `proposals/`
## 📝 注意事項
このディレクトリの内容は開発中であり、頻繁に変更されます。
安定した仕様は`reference/`を参照してください。