Serve editable world web files and mount the complete host API (T88)

This commit is contained in:
2026-11-12 00:11:20 +00:00
parent ea155ef70b
commit fc07894d52
35 changed files with 440 additions and 293 deletions
+2 -2
View File
@@ -191,7 +191,7 @@ impl Runtime {
cred.clone(),
&world.host_dir,
"localhost",
"http://localhost:8090",
"http://localhost:8080",
)?),
};
router.attach_journal(world.root.journal());
@@ -226,7 +226,7 @@ impl Runtime {
cache::precompile(runtime.compiler.clone(), runtime.world.root.clone());
Ok(runtime)
}
/// Register native listener ports through the shared network policy.
/// Access the shared network policy for explicit host-port rules.
pub fn network_policy(&self) -> &net::NetPolicy {
&self.network
}
+1 -1
View File
@@ -1,5 +1,5 @@
//! Host-side network policy. `<dir>/host/network.toml` accepts `deny = ["address:port"]`.
//! Host listeners register their ports with `deny_host_port`. Guests cannot bind or connect there.
//! Explicit host-port rules supplement the address rules when needed.
use std::{
collections::HashSet,
net::{IpAddr, SocketAddr},