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

30
docs/guides/README.md Normal file
View File

@ -0,0 +1,30 @@
# Nyash User Guides 📚
Nyashプログラミング言語の利用者向けガイドとチュートリアルです。
## 🚀 はじめに
- `getting-started.md` - Nyashを始めるためのクイックガイド
## 📖 サブディレクトリ
### tutorials/
- `hello-world.md` - 最初のNyashプログラム
- `basic-boxes.md` - Boxクラスの基礎
- `delegation.md` - デリゲーションの使い方
- `p2p-apps.md` - P2Pアプリケーション開発
### examples/
- 実践的なサンプルコード集
- よくあるパターンの実装例
- ベストプラクティス
### wasm-guide/
- WebAssemblyビルドガイド
- ブラウザープレイグラウンドの使い方
- Webアプリケーション開発
## 🎯 学習順序
1. `getting-started.md` から始める
2. `tutorials/` のチュートリアルを順番に
3. `examples/` で実践的なコードを学ぶ
4. 特定用途WASM等は各ガイドへ