refactor(wizard): split onboarding

This commit is contained in:
Peter Steinberger
2026-01-14 05:40:10 +00:00
parent 35cea9be25
commit b11eea07b0
4 changed files with 723 additions and 573 deletions

View File

@@ -0,0 +1,25 @@
import type { GatewayAuthChoice } from "../commands/onboard-types.js";
export type WizardFlow = "quickstart" | "advanced";
export type QuickstartGatewayDefaults = {
hasExisting: boolean;
port: number;
bind: "loopback" | "lan" | "auto" | "custom";
authMode: GatewayAuthChoice;
tailscaleMode: "off" | "serve" | "funnel";
token?: string;
password?: string;
customBindHost?: string;
tailscaleResetOnExit: boolean;
};
export type GatewayWizardSettings = {
port: number;
bind: "loopback" | "lan" | "auto" | "custom";
customBindHost?: string;
authMode: GatewayAuthChoice;
gatewayToken?: string;
tailscaleMode: "off" | "serve" | "funnel";
tailscaleResetOnExit: boolean;
};