segv-oss/santity-core ? reverse-engineered prompt
Reverse engineered prompt
Build me the core engine for Santity, a small Rust app that acts like the host for the whole system.
It should connect to a Discord style gateway, receive events, pass them into a safe WebAssembly runtime, and store state in SQLite so plugins can keep data between runs. I want it split into a few clean pieces, one for the core command line app, one for the gateway client, one for the WASM runtime with WIT based host and guest communication, and one for storage.
Please make it able to load a plugin component, run it in a sandbox, and support reloading it without restarting the whole app. If you need to check current docs or examples for Wasmtime or WIT, look them up online. Keep it simple, practical, and ready to build with Cargo and run from the command line.
Are you gonna build this?
make sure you review the code using coderabbit