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:
@@ -557,6 +557,9 @@ async function main() {
|
||||
|
||||
const command = args[0];
|
||||
|
||||
const { maybeAutoLaunchOnboarding } = await import("./commands/onboard-autolaunch.js");
|
||||
await maybeAutoLaunchOnboarding({ command, args });
|
||||
|
||||
const {
|
||||
runDashboard,
|
||||
runServe,
|
||||
|
||||
Reference in New Issue
Block a user