huskies: merge 899
This commit is contained in:
+19
-1
@@ -241,7 +241,25 @@ async fn main() -> Result<(), std::io::Error> {
|
||||
.clone()
|
||||
.or_else(|| std::env::var("HUSKIES_UPSTREAM_GATEWAY").ok())
|
||||
.unwrap_or_default();
|
||||
sled_uplink::spawn_uplink_task(upstream_gateway, Arc::clone(&services));
|
||||
// Project name for the identity frame (story 899 AC 5). Env-var override
|
||||
// wins; otherwise derive from the project_root basename.
|
||||
let project_name = std::env::var("HUSKIES_PROJECT_NAME").unwrap_or_else(|_| {
|
||||
services
|
||||
.project_root
|
||||
.file_name()
|
||||
.and_then(|n| n.to_str())
|
||||
.unwrap_or("unknown")
|
||||
.to_string()
|
||||
});
|
||||
let local_mcp_url = format!("http://127.0.0.1:{port}/mcp");
|
||||
sled_uplink::spawn_uplink_task(
|
||||
sled_uplink::UplinkConfig {
|
||||
upstream_url: upstream_gateway,
|
||||
project_name,
|
||||
local_mcp_url,
|
||||
},
|
||||
Arc::clone(&services),
|
||||
);
|
||||
|
||||
// ── Build bot contexts (WhatsApp / Slack / Discord) ───────────────────────
|
||||
let (bot_ctxs, matrix_shutdown_rx) =
|
||||
|
||||
Reference in New Issue
Block a user