@hasna/mementos 0.4.20 → 0.4.22

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/mcp/index.js CHANGED
@@ -6016,9 +6016,12 @@ var FORMAT_UNITS = [
6016
6016
  ];
6017
6017
 
6018
6018
  // src/mcp/index.ts
6019
+ import { createRequire } from "module";
6020
+ var _require = createRequire(import.meta.url);
6021
+ var _pkg = _require("../../package.json");
6019
6022
  var server = new McpServer({
6020
6023
  name: "mementos",
6021
- version: "0.1.0"
6024
+ version: _pkg.version
6022
6025
  });
6023
6026
  var _autoProjectInitialized = false;
6024
6027
  function ensureAutoProject() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":";AACA;;;GAGG;AAkoCH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAkH9C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":";AACA;;;GAGG;AAkoCH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAsH9C"}
@@ -1,5 +1,22 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
+ var __create = Object.create;
4
+ var __getProtoOf = Object.getPrototypeOf;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __toESM = (mod, isNodeMode, target) => {
9
+ target = mod != null ? __create(__getProtoOf(mod)) : {};
10
+ const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
11
+ for (let key of __getOwnPropNames(mod))
12
+ if (!__hasOwnProp.call(to, key))
13
+ __defProp(to, key, {
14
+ get: () => mod[key],
15
+ enumerable: true
16
+ });
17
+ return to;
18
+ };
19
+ var __require = import.meta.require;
3
20
 
4
21
  // src/server/index.ts
5
22
  import { existsSync as existsSync3 } from "fs";
@@ -2930,7 +2947,10 @@ function startServer(port) {
2930
2947
  }
2931
2948
  if (pathname === "/api/health" || pathname === "/health") {
2932
2949
  const profile = getActiveProfile();
2933
- return json({ status: "ok", version: "0.1.0", profile: profile ?? "default", db_path: getDbPath2(), hostname });
2950
+ const { createRequire } = await import("module");
2951
+ const req2 = createRequire(import.meta.url);
2952
+ const pkg = req2("../../package.json");
2953
+ return json({ status: "ok", version: pkg.version, profile: profile ?? "default", db_path: getDbPath2(), hostname });
2934
2954
  }
2935
2955
  if (pathname === "/api/profile" && req.method === "GET") {
2936
2956
  const profile = getActiveProfile();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/mementos",
3
- "version": "0.4.20",
3
+ "version": "0.4.22",
4
4
  "description": "Universal memory system for AI agents - CLI + MCP server + library API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",