FN-5807: add onboarding auto-launch hook before interactive commands
Ensure CLI onboarding auto-launch runs before interactive command execution when central DB is missing. - Hooked auto-launch flow into bin.ts before interactive command handling. - Added a dedicated onboard-autolaunch command module to detect missing central DB and trigger onboarding. - Added focused CLI tests covering auto-launch behavior and guard conditions. - Added a changeset for @runfusion/fusion patch release. Files changed: .changeset/fn-5807-onboarding-autolaunch.md | 5 + packages/cli/src/bin.ts | 3 + .../commands/__tests__/onboard-autolaunch.test.ts | 164 +++++++++++++++++++++ packages/cli/src/commands/onboard-autolaunch.ts | 116 +++++++++++++++ 4 files changed, 288 insertions(+) Fusion-Task-Id: FN-5807 Fusion-Task-Lineage: a12551b3-d8a4-492a-81f8-e92b4e138204
This commit is contained in:
5
.changeset/fn-5807-onboarding-autolaunch.md
Normal file
5
.changeset/fn-5807-onboarding-autolaunch.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@runfusion/fusion": minor
|
||||
---
|
||||
|
||||
Add a safe onboarding auto-launch hook in the CLI bootstrap path. When the central DB is missing, interactive TTY commands now trigger `fn onboard` automatically before command dispatch, while non-interactive contexts (non-TTY, `serve`, `daemon`, explicit skip signals) remain unchanged and never block execution.
|
||||
Reference in New Issue
Block a user