From a4cfb5a85a32e75bf8c8f55128d02f3bbaeeddef Mon Sep 17 00:00:00 2001 From: Omkar Chebale Date: Sun, 27 Sep 2026 18:09:49 +0530 Subject: [PATCH] Send the real plugin version during login The auth URL hardcoded cli_version=2.0.10, so every release reported itself as 2.0.10. Use PLUGIN_VERSION, which is synced from package.json. --- src/services/auth.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/auth.ts b/src/services/auth.ts index bacfac8..c6ef20e 100644 --- a/src/services/auth.ts +++ b/src/services/auth.ts @@ -5,6 +5,7 @@ import { arch, homedir, hostname, platform } from "node:os"; import { randomBytes } from "node:crypto"; import type { AddressInfo } from "node:net"; import { openUrl } from "./openUrl.js"; +import { PLUGIN_VERSION } from "../version.js"; const CREDENTIALS_DIR = join(homedir(), ".supermemory-opencode"); export const CREDENTIALS_FILE = join(CREDENTIALS_DIR, "credentials.json"); @@ -162,7 +163,7 @@ export function startAuthFlow(timeoutMs = AUTH_TIMEOUT): Promise { hostname: `opencode - ${hostname()}`, os: `${platform()}-${arch()}`, cwd: process.cwd(), - cli_version: "2.0.10", + cli_version: PLUGIN_VERSION, }); const authUrl = `${AUTH_BASE_URL}?${params.toString()}`;