From d7b020fdda8fd751fa5e6b1df9cbf0490fb30274 Mon Sep 17 00:00:00 2001 From: Richard Michael Date: Sun, 15 Jun 2025 14:04:17 -0700 Subject: [PATCH] Fix hard-coded CLI version, use package.json consistent with client --- cli/src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/src/index.ts b/cli/src/index.ts index 2b0c4f53..dea6e296 100644 --- a/cli/src/index.ts +++ b/cli/src/index.ts @@ -20,6 +20,8 @@ import { import { handleError } from "./error-handler.js"; import { createTransport, TransportOptions } from "./transport.js"; +import packageJson from "../package.json" with { type: "json" }; + type Args = { target: string[]; method?: string; @@ -89,7 +91,7 @@ async function callMethod(args: Args): Promise { const transport = createTransport(transportOptions); const client = new Client({ name: "inspector-cli", - version: "0.5.1", + version: packageJson.version, }); try {