grov 0.5.8 → 0.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +4 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import 'dotenv/config';
|
|
3
3
|
import { Command } from 'commander';
|
|
4
|
+
import { createRequire } from 'module';
|
|
4
5
|
import { closeDatabase } from './lib/store.js';
|
|
6
|
+
const require = createRequire(import.meta.url);
|
|
7
|
+
const pkg = require('../package.json');
|
|
5
8
|
// SECURITY: Global error handlers to catch unhandled rejections from dynamic imports
|
|
6
9
|
process.on('unhandledRejection', (reason) => {
|
|
7
10
|
console.error('Error:', reason instanceof Error ? reason.message : 'Unknown error');
|
|
@@ -35,7 +38,7 @@ function safeAction(fn) {
|
|
|
35
38
|
program
|
|
36
39
|
.name('grov')
|
|
37
40
|
.description('Collective AI memory for engineering teams')
|
|
38
|
-
.version(
|
|
41
|
+
.version(pkg.version);
|
|
39
42
|
// grov init - Configure Claude Code to use grov proxy
|
|
40
43
|
program
|
|
41
44
|
.command('init')
|
package/package.json
CHANGED