主な変更: - 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>
32 lines
774 B
Plaintext
32 lines
774 B
Plaintext
[box]
|
|
name = "<Your Plugin Name>"
|
|
version = "0.1.0"
|
|
description = "<Short description>"
|
|
author = "<Your Name>"
|
|
|
|
[provides]
|
|
boxes = ["<BoxTypeA>", "<BoxTypeB>"]
|
|
|
|
[<BoxTypeA>]
|
|
type_id = <u32>
|
|
|
|
[<BoxTypeA>.lifecycle]
|
|
birth = { id = 0 }
|
|
fini = { id = 4294967295 } # optional
|
|
|
|
[<BoxTypeA>.methods.<methodName>]
|
|
id = <u32>
|
|
args = [ { name = "<arg>", type = "<string|i64|box|varargs|dict>" } ] # optional
|
|
returns = { type = "<void|string|i64|box>", error = "string" } # optional
|
|
returns_result = <true|false> # optional: Ok/Err(ResultBox)に正規化
|
|
|
|
[implementation]
|
|
ffi_version = 1
|
|
thread_safe = <true|false>
|
|
|
|
[artifacts]
|
|
windows = "target/x86_64-pc-windows-msvc/release/<your>.dll"
|
|
linux = "target/release/lib<your>.so"
|
|
macos = "target/release/lib<your>.dylib"
|
|
|