主な変更: - 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>
57 lines
1.0 KiB
TOML
57 lines
1.0 KiB
TOML
[box]
|
|
name = "Nyash Math/Time Plugin"
|
|
version = "0.1.0"
|
|
description = "Minimal MathBox/TimeBox"
|
|
author = "Nyash Team"
|
|
|
|
[provides]
|
|
boxes = ["MathBox", "TimeBox"]
|
|
|
|
[MathBox]
|
|
type_id = 50
|
|
|
|
[MathBox.lifecycle]
|
|
birth = { id = 0 }
|
|
fini = { id = 4294967295 }
|
|
|
|
[MathBox.methods.sqrt]
|
|
id = 1
|
|
args = [ { name = "x", type = "i64" } ]
|
|
returns = { type = "f64" }
|
|
|
|
[MathBox.methods.sin]
|
|
id = 2
|
|
args = [ { name = "x", type = "i64" } ]
|
|
returns = { type = "f64" }
|
|
|
|
[MathBox.methods.cos]
|
|
id = 3
|
|
args = [ { name = "x", type = "i64" } ]
|
|
returns = { type = "f64" }
|
|
|
|
[MathBox.methods.round]
|
|
id = 4
|
|
args = [ { name = "x", type = "i64" } ]
|
|
returns = { type = "f64" }
|
|
|
|
[TimeBox]
|
|
type_id = 51
|
|
|
|
[TimeBox.lifecycle]
|
|
birth = { id = 0 }
|
|
fini = { id = 4294967295 }
|
|
|
|
[TimeBox.methods.now]
|
|
id = 1
|
|
args = []
|
|
returns = { type = "i64" }
|
|
|
|
[implementation]
|
|
ffi_version = 1
|
|
thread_safe = true
|
|
|
|
[artifacts]
|
|
windows = "target/x86_64-pc-windows-msvc/release/nyash_math_plugin.dll"
|
|
linux = "target/release/libnyash_math_plugin.so"
|
|
macos = "target/release/libnyash_math_plugin.dylib"
|