fix(cli): send version during daemon handshake

This commit is contained in:
Mohamed Boudra
2026-04-22 16:19:51 +07:00
parent 43b9123c5c
commit 9e3d8f0ec5
4 changed files with 26 additions and 16 deletions
+2
View File
@@ -3,6 +3,7 @@ import { loadConfig, resolvePaseoHome, DaemonClient } from "@getpaseo/server";
import path from "node:path";
import WebSocket from "ws";
import { getOrCreateCliClientId } from "./client-id.js";
import { resolveCliVersion } from "../version.js";
export interface ConnectOptions {
host?: string;
@@ -207,6 +208,7 @@ export async function connectToDaemon(options?: ConnectOptions): Promise<DaemonC
url: target.url,
clientId,
clientType: "cli",
appVersion: resolveCliVersion(),
connectTimeoutMs: timeout,
webSocketFactory: (url: string, config?: { headers?: Record<string, string> }) =>
nodeWebSocketFactory(url, {