claude-recall 0.3.0 → 0.3.1
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.
|
@@ -39,6 +39,7 @@ const config_1 = require("../services/config");
|
|
|
39
39
|
const logging_1 = require("../services/logging");
|
|
40
40
|
const commander_1 = require("commander");
|
|
41
41
|
const fs = __importStar(require("fs"));
|
|
42
|
+
const path = __importStar(require("path"));
|
|
42
43
|
const pattern_service_1 = require("../services/pattern-service");
|
|
43
44
|
const migrate_1 = require("./commands/migrate");
|
|
44
45
|
const server_1 = require("../mcp/server");
|
|
@@ -255,12 +256,22 @@ class ClaudeRecallCLI {
|
|
|
255
256
|
return str.substring(0, maxLength) + '...';
|
|
256
257
|
}
|
|
257
258
|
}
|
|
259
|
+
// Get version from package.json
|
|
260
|
+
function getVersion() {
|
|
261
|
+
try {
|
|
262
|
+
const packageJson = JSON.parse(fs.readFileSync(path.join(__dirname, '../../package.json'), 'utf-8'));
|
|
263
|
+
return packageJson.version;
|
|
264
|
+
}
|
|
265
|
+
catch (error) {
|
|
266
|
+
return '0.3.0'; // Fallback
|
|
267
|
+
}
|
|
268
|
+
}
|
|
258
269
|
// Setup CLI commands
|
|
259
270
|
async function main() {
|
|
260
271
|
program
|
|
261
272
|
.name('claude-recall')
|
|
262
273
|
.description('Memory-enhanced Claude Code via MCP')
|
|
263
|
-
.version(
|
|
274
|
+
.version(getVersion())
|
|
264
275
|
.option('--verbose', 'Enable verbose logging')
|
|
265
276
|
.option('--config <path>', 'Path to custom config file');
|
|
266
277
|
// MCP command
|