mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
@@ -4,6 +4,9 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
export function getCliVersion(): string {
|
||||
return process.env.CLI_VERSION || 'unknown';
|
||||
import { getPackageJson } from './package.js';
|
||||
|
||||
export async function getCliVersion(): Promise<string> {
|
||||
const pkgJson = await getPackageJson();
|
||||
return process.env.CLI_VERSION || pkgJson?.version || 'unknown';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user