- FileBoxプラグイン単体実装 - birth/finiライフサイクル対応 - 6つのメソッド定義(birth/open/read/write/close/fini) - プラグインが自らBox名「FileBox」を宣言 - nyash.toml設定ファイル作成 - FileBox = "nyash-filebox-plugin" マッピング定義 - プラグイン検索パス設定 - プラグインテスター作成(tools/plugin-tester) - Box名を決め打ちしない汎用設計 - プラグインから型情報を動的取得 - メソッド一覧表示機能 - 診断機能付きチェックコマンド 重要な設計原則: - プラグインが自分のBox名を宣言(ローダーは知らない) - 汎用的で拡張可能な設計 - メモリ管理の明確な責任分担 次のステップ:Nyashとの統合(Step 4) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
9 lines
164 B
TOML
9 lines
164 B
TOML
[package]
|
|
name = "plugin-tester"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
libloading = "0.8"
|
|
clap = { version = "4", features = ["derive"] }
|
|
colored = "2" |