feat: auto-install gateway in quickstart
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
- Onboarding: tighten QuickStart hint copy for configuring later.
|
- Onboarding: tighten QuickStart hint copy for configuring later.
|
||||||
- Onboarding: avoid “token expired” for Codex CLI when expiry is heuristic.
|
- Onboarding: avoid “token expired” for Codex CLI when expiry is heuristic.
|
||||||
- Onboarding: QuickStart jumps straight into provider selection with Telegram preselected when unset.
|
- Onboarding: QuickStart jumps straight into provider selection with Telegram preselected when unset.
|
||||||
|
- Onboarding: QuickStart auto-installs the Gateway daemon with Node (no runtime picker).
|
||||||
|
|
||||||
## 2026.1.8
|
## 2026.1.8
|
||||||
|
|
||||||
|
|||||||
@@ -433,17 +433,29 @@ export async function runOnboardingWizard(
|
|||||||
requireConfirm: false,
|
requireConfirm: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
const installDaemon = await prompter.confirm({
|
const installDaemon =
|
||||||
message: "Install Gateway daemon (recommended)",
|
flow === "quickstart"
|
||||||
initialValue: true,
|
? true
|
||||||
});
|
: await prompter.confirm({
|
||||||
|
message: "Install Gateway daemon (recommended)",
|
||||||
|
initialValue: true,
|
||||||
|
});
|
||||||
|
|
||||||
if (installDaemon) {
|
if (installDaemon) {
|
||||||
const daemonRuntime = (await prompter.select({
|
const daemonRuntime =
|
||||||
message: "Gateway daemon runtime",
|
flow === "quickstart"
|
||||||
options: GATEWAY_DAEMON_RUNTIME_OPTIONS,
|
? (DEFAULT_GATEWAY_DAEMON_RUNTIME as GatewayDaemonRuntime)
|
||||||
initialValue: opts.daemonRuntime ?? DEFAULT_GATEWAY_DAEMON_RUNTIME,
|
: ((await prompter.select({
|
||||||
})) as GatewayDaemonRuntime;
|
message: "Gateway daemon runtime",
|
||||||
|
options: GATEWAY_DAEMON_RUNTIME_OPTIONS,
|
||||||
|
initialValue: opts.daemonRuntime ?? DEFAULT_GATEWAY_DAEMON_RUNTIME,
|
||||||
|
})) as GatewayDaemonRuntime);
|
||||||
|
if (flow === "quickstart") {
|
||||||
|
await prompter.note(
|
||||||
|
"QuickStart uses Node for the Gateway daemon (stable + supported).",
|
||||||
|
"Gateway daemon runtime",
|
||||||
|
);
|
||||||
|
}
|
||||||
const service = resolveGatewayService();
|
const service = resolveGatewayService();
|
||||||
const loaded = await service.isLoaded({ env: process.env });
|
const loaded = await service.isLoaded({ env: process.env });
|
||||||
if (loaded) {
|
if (loaded) {
|
||||||
|
|||||||
Reference in New Issue
Block a user