memctx 1.2.1 → 1.2.2
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/src/api/health.js +11 -1
- package/dist/src/api/health.js.map +1 -1
- package/package.json +1 -1
package/dist/src/api/health.js
CHANGED
|
@@ -6,8 +6,18 @@ const config_1 = require("../config");
|
|
|
6
6
|
const client_1 = require("../db/client");
|
|
7
7
|
const queue_1 = require("../services/queue");
|
|
8
8
|
const rate_limit_1 = require("../middleware/rate-limit");
|
|
9
|
+
const fs_1 = require("fs");
|
|
10
|
+
const path_1 = require("path");
|
|
9
11
|
exports.healthRouter = (0, express_1.Router)();
|
|
10
12
|
const startTime = Date.now();
|
|
13
|
+
// Read version from package.json
|
|
14
|
+
let version = '1.0.0';
|
|
15
|
+
try {
|
|
16
|
+
const pkgPath = (0, path_1.join)((0, path_1.dirname)((0, path_1.dirname)(__dirname)), 'package.json');
|
|
17
|
+
const pkg = JSON.parse((0, fs_1.readFileSync)(pkgPath, 'utf8'));
|
|
18
|
+
version = pkg.version;
|
|
19
|
+
}
|
|
20
|
+
catch { }
|
|
11
21
|
exports.healthRouter.get('/', rate_limit_1.standardRateLimit, (_req, res) => {
|
|
12
22
|
let dbConnected = false;
|
|
13
23
|
try {
|
|
@@ -17,7 +27,7 @@ exports.healthRouter.get('/', rate_limit_1.standardRateLimit, (_req, res) => {
|
|
|
17
27
|
catch { }
|
|
18
28
|
res.json({
|
|
19
29
|
status: 'ok',
|
|
20
|
-
version
|
|
30
|
+
version,
|
|
21
31
|
db: dbConnected ? 'connected' : 'error',
|
|
22
32
|
api_key: !!config_1.CONFIG.apiKey,
|
|
23
33
|
summaries_enabled: !config_1.CONFIG.disableSummaries,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health.js","sourceRoot":"","sources":["../../../src/api/health.ts"],"names":[],"mappings":";;;AAAA,qCAAgC;AAChC,sCAAkC;AAClC,yCAAoC;AACpC,6CAAgD;A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AC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC,GAAG,IAAI,CAAC;QACnD,UAAU,EAAE,IAAA,oBAAY,GAAE;KAC3B,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "memctx",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Autonomous session memory for Claude Code - automatically captures, analyzes, and summarizes your development sessions",
|
|
5
5
|
"author": "Fahad Aziz Qureshi <info@memctx.dev> (https://memctx.dev)",
|
|
6
6
|
"license": "MIT",
|