host: palette commands and developer mode watcher

plugins::commands: the palette commands a site tab reports (validated and
capped as a whole) and the page script that runs one, now built from the
SiteSpec (runtime global, primary origin) instead of a hard-coded x.com.
devmode: the debounced polling watcher (plugins, custom.css, one theme
file), reload order, DevError and theme-file reading; the app turns the
document into its own theme state through a callback.
This commit is contained in:
CRTkafa 2026-09-29 11:02:07 +07:00
parent b2744c1a45
commit c14dce3862
4 changed files with 434 additions and 1 deletions

View file

@ -12,6 +12,8 @@
//! That is a declaration plus a guard rail, not a sandbox: page JavaScript can always reach around
//! it. A plugin without the line is "legacy" (full API, labelled so in the app).
pub mod commands;
use serde::Serialize;
use sha2::{Digest, Sha256};
use std::collections::{BTreeMap, BTreeSet};