Will change this commit message to mean something later
Some checks failed
dev release / build (push) Failing after 0s

This commit is contained in:
Breadway 2026-07-22 19:52:16 +08:00
parent f3905d8114
commit 8d3f55b607
14 changed files with 1491 additions and 40 deletions

View file

@ -27,7 +27,7 @@ use crate::lua::RuntimeHandle;
/// something new-but-additive (a binding, an event, an IPC param); bump the
/// major version only for a breaking change, which should not happen inside
/// this daemon's v1 lifetime per that section's stated policy.
const API_VERSION: &str = "1.2.0";
const API_VERSION: &str = "1.4.0";
#[derive(Clone)]
pub struct Server {
@ -222,6 +222,10 @@ impl Server {
let full = self.state_handle.state_dump().await;
Ok(full.get("workflows").cloned().unwrap_or_else(|| json!([])))
}
"widgets.list" => {
let full = self.state_handle.state_dump().await;
Ok(full.get("widgets").cloned().unwrap_or_else(|| json!([])))
}
"modules.reload" => {
let started = Instant::now();
if let Err(err) = self.lua_runtime.reload().await {