feat(FN-1225): add headless fn serve command with health checks

- Add a new serve command implementation that runs the dashboard server in headless mode and exposes a health endpoint
- Register the serve command in CLI routing and extend bin command coverage for dispatch behavior
- Add comprehensive serve command tests for startup flow, options handling, and health-check responses
- Fix mission event ordering in MissionStore to keep health snapshots deterministic under concurrent updates
- Include a changeset for @gsxdsm/fusion documenting the new fn serve capability
This commit is contained in:
gsxdsm
2026-04-08 09:26:56 -07:00
parent a4e79f84f6
commit eac3f1c6a1
8 changed files with 1235 additions and 7 deletions

View File

@@ -405,7 +405,7 @@ export class MissionStore extends EventEmitter<MissionStoreEvents> {
SELECT *
FROM mission_events
WHERE ${whereSql}
ORDER BY timestamp DESC
ORDER BY timestamp DESC, rowid DESC
LIMIT ? OFFSET ?
`).all(...params, limit, offset) as any[];