feat(FN-4313): complete Step 3-6 — orchestrator primary engine resolution

Fusion-Task-Id: FN-4313
Fusion-Task-Lineage: 36b8aad3-20f4-475b-9b0f-63e5458d1b91
This commit is contained in:
Fusion
2026-05-13 22:35:03 -07:00
committed by gsxdsm
parent 8e2d4c962b
commit 9db9cfea07
8 changed files with 209 additions and 60 deletions

View File

@@ -0,0 +1,9 @@
---
"@runfusion/fusion": minor
---
Add `--project <id|name>` support to `fn serve` and `fn daemon` for explicit primary project binding.
Headless startup now resolves its primary engine in this order: CLI `--project`, central `defaultProjectId`, cwd project, then first started engine from the central registry. `serve`/`daemon` no longer require cwd to be a registered project and now only exit when no engines start across the registry.
Add central `defaultProjectId` persistence so headless nodes can select a default project across restarts.