feat(FN-3111): add mesh configuration API routes and generator service

The merge lands the mesh configuration system (FN-3111) with type definitions, a `MeshConfigGenerator` service using a new `DockerClientService.recreateContainer()` method, and backend API routes for managing Docker-based mesh nodes. It also adds a "New Chat" button to the ChatView header on desktop

Fusion-Task-Id: FN-3111
This commit is contained in:
Fusion
2026-05-03 15:13:08 -07:00
committed by gsxdsm
parent 1e841df3c7
commit 7773e4e4ad
10 changed files with 1420 additions and 2 deletions

View File

@@ -223,7 +223,16 @@ export async function runServe(
serveStartTime = Date.now();
ensureProcessDiagnostics();
// Port resolution priority: CLI --port arg > process.env.PORT > default (4040)
// The env var fallback is critical for Docker containers where the mesh config
// injects PORT as an environment variable to control the container's listen port.
let selectedPort = port;
if (!opts.interactive && (port === 4040 || port === 0) && process.env.PORT) {
const envPort = Number(process.env.PORT);
if (Number.isFinite(envPort) && envPort > 0) {
selectedPort = envPort;
}
}
if (opts.interactive) {
try {
selectedPort = await promptForPort(port);