@ai-devkit/memory 0.2.0 → 0.3.0

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/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- export {};
2
+ export * from './api';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAIA,cAAc,OAAO,CAAC"}
package/dist/index.js CHANGED
@@ -4,6 +4,20 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  const _server = require("./server");
7
+ _export_star(require("./api"), exports);
8
+ function _export_star(from, to) {
9
+ Object.keys(from).forEach(function(k) {
10
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
11
+ Object.defineProperty(to, k, {
12
+ enumerable: true,
13
+ get: function() {
14
+ return from[k];
15
+ }
16
+ });
17
+ }
18
+ });
19
+ return from;
20
+ }
7
21
  (0, _server.runServer)().catch((error)=>{
8
22
  console.error('Failed to start server:', error);
9
23
  process.exit(1);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { runServer } from './server';\n\nrunServer().catch((error: Error) => {\n console.error('Failed to start server:', error);\n process.exit(1);\n});\n"],"names":["runServer","catch","error","console","process","exit"],"mappings":";;;;;wBAE0B;AAE1BA,IAAAA,iBAAS,IAAGC,KAAK,CAAC,CAACC;IACfC,QAAQD,KAAK,CAAC,2BAA2BA;IACzCE,QAAQC,IAAI,CAAC;AACjB"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { runServer } from './server';\n\nexport * from './api';\n\nrunServer().catch((error: Error) => {\n console.error('Failed to start server:', error);\n process.exit(1);\n});\n"],"names":["runServer","catch","error","console","process","exit"],"mappings":";;;;;wBAE0B;qBAEZ;;;;;;;;;;;;;;AAEdA,IAAAA,iBAAS,IAAGC,KAAK,CAAC,CAACC;IACfC,QAAQD,KAAK,CAAC,2BAA2BA;IACzCE,QAAQC,IAAI,CAAC;AACjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-devkit/memory",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Lightweight MCP-based memory service for AI agents - store and retrieve actionable knowledge",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,7 +26,8 @@
26
26
  "test": "jest",
27
27
  "test:coverage": "jest --coverage",
28
28
  "lint": "eslint src/**/*.ts",
29
- "clean": "rm -rf dist"
29
+ "clean": "rm -rf dist",
30
+ "benchmark": "npx ts-node --swc scripts/benchmark.ts --items=5000 --searches=300"
30
31
  },
31
32
  "keywords": [
32
33
  "mcp",
@@ -54,6 +55,7 @@
54
55
  "@types/uuid": "^10.0.0",
55
56
  "chokidar": "^3.6.0",
56
57
  "jest": "^29.7.0",
58
+ "ts-node": "^10.9.2",
57
59
  "typescript": "^5.4.5"
58
60
  },
59
61
  "engines": {