MCPcopy
hub / github.com/colbymchenry/codegraph / packageVersion

Method packageVersion

src/telemetry/index.ts:517–525  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

515 }
516
517 private packageVersion(): string {
518 try {
519 // dist/telemetry/index.js → ../../package.json (same layout in src/ for tests via tsx)
520 const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '..', '..', 'package.json'), 'utf8')) as { version?: string };
521 return pkg.version ?? '0.0.0';
522 } catch {
523 return '0.0.0';
524 }
525 }
526
527 private ensureExitHook(): void {
528 if (this.exitHookInstalled || !this.installExitHook) return;

Callers 1

sendMethod · 0.95

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected