MCPcopy Index your code
hub / github.com/continuedev/continue / getVersion

Function getVersion

extensions/cli/src/version.ts:9–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import { logger } from "./util/logger.js";
8
9export function getVersion(): string {
10 try {
11 const __filename = fileURLToPath(import.meta.url);
12 const __dirname = dirname(__filename);
13 const packageJsonPath = join(__dirname, "../package.json");
14 const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf8"));
15 return packageJson.version;
16 } catch {
17 console.warn("Warning: Could not read version from package.json");
18 return "unknown";
19 }
20}
21
22function getEventUserId(): string {
23 return node_machine_id.machineIdSync();

Callers 8

index.tsFile · 0.85
getUserAgentFunction · 0.85
getVersionInfoFunction · 0.85
asciiArt.tsFile · 0.85
initializeMethod · 0.85
getStandardAttributesMethod · 0.85
constructorMethod · 0.85

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected