Fix hard-coded CLI version, use package.json consistent with client

This commit is contained in:
Richard Michael 2025-06-15 14:04:17 -07:00
commit d7b020fdda

View file

@ -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<void> {
const transport = createTransport(transportOptions);
const client = new Client({
name: "inspector-cli",
version: "0.5.1",
version: packageJson.version,
});
try {