huskies: merge 898
This commit is contained in:
@@ -38,6 +38,8 @@ pub mod rebuild;
|
||||
mod service;
|
||||
/// Services — shared service bundle injected into HTTP handlers and bot tasks.
|
||||
pub mod services;
|
||||
/// Sled uplink — background task that forwards permission requests to an upstream gateway.
|
||||
pub mod sled_uplink;
|
||||
mod startup;
|
||||
mod state;
|
||||
mod store;
|
||||
@@ -233,6 +235,14 @@ async fn main() -> Result<(), std::io::Error> {
|
||||
status: agents.status_broadcaster(),
|
||||
});
|
||||
|
||||
// Sled uplink: forward permission requests to an upstream gateway when configured.
|
||||
let upstream_gateway = cli
|
||||
.upstream_gateway
|
||||
.clone()
|
||||
.or_else(|| std::env::var("HUSKIES_UPSTREAM_GATEWAY").ok())
|
||||
.unwrap_or_default();
|
||||
sled_uplink::spawn_uplink_task(upstream_gateway, Arc::clone(&services));
|
||||
|
||||
// ── Build bot contexts (WhatsApp / Slack / Discord) ───────────────────────
|
||||
let (bot_ctxs, matrix_shutdown_rx) =
|
||||
startup::bots::build_bot_contexts(&startup_root, &services);
|
||||
|
||||
Reference in New Issue
Block a user