Plugin seeds: add FileBox minimal slots (open/read/write/close)\n- Enables method_id for common plugin calls when type known (new FileBox)

This commit is contained in:
Moe Charm
2025-08-26 23:07:43 +09:00
parent bd8a63911c
commit c0b70c0e4e

View File

@ -37,6 +37,8 @@ static BUILTIN_SLOTS: Lazy<HashMap<&'static str, Vec<(&'static str, MethodSlot)>
]);
m.insert("IntegerBox", vec![("abs", 4)]);
m.insert("StringBox", vec![("substring", 4), ("concat", 5)]);
// Common plugin boxes (minimal seed)
m.insert("FileBox", vec![ ("open", 4), ("read", 5), ("write", 6), ("close", 7) ]);
HashMap::from_iter(m)
});