@aeriondyseti/vector-memory-mcp 0.9.0-dev.4 โ†’ 0.9.0-dev.8

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.
Files changed (52) hide show
  1. package/README.md +1 -21
  2. package/dist/package.json +72 -0
  3. package/dist/src/config/index.d.ts +1 -0
  4. package/dist/src/config/index.d.ts.map +1 -1
  5. package/dist/src/config/index.js +4 -2
  6. package/dist/src/config/index.js.map +1 -1
  7. package/dist/src/db/memory.repository.d.ts +27 -2
  8. package/dist/src/db/memory.repository.d.ts.map +1 -1
  9. package/dist/src/db/memory.repository.js +101 -22
  10. package/dist/src/db/memory.repository.js.map +1 -1
  11. package/dist/src/db/schema.d.ts.map +1 -1
  12. package/dist/src/db/schema.js +4 -1
  13. package/dist/src/db/schema.js.map +1 -1
  14. package/dist/src/http/server.d.ts +1 -0
  15. package/dist/src/http/server.d.ts.map +1 -1
  16. package/dist/src/http/server.js +47 -5
  17. package/dist/src/http/server.js.map +1 -1
  18. package/dist/src/mcp/handlers.d.ts +1 -0
  19. package/dist/src/mcp/handlers.d.ts.map +1 -1
  20. package/dist/src/mcp/handlers.js +24 -1
  21. package/dist/src/mcp/handlers.js.map +1 -1
  22. package/dist/src/mcp/tools.d.ts +1 -0
  23. package/dist/src/mcp/tools.d.ts.map +1 -1
  24. package/dist/src/mcp/tools.js +43 -14
  25. package/dist/src/mcp/tools.js.map +1 -1
  26. package/dist/src/services/memory.service.d.ts +4 -2
  27. package/dist/src/services/memory.service.d.ts.map +1 -1
  28. package/dist/src/services/memory.service.js +86 -17
  29. package/dist/src/services/memory.service.js.map +1 -1
  30. package/dist/src/types/memory.d.ts +15 -4
  31. package/dist/src/types/memory.d.ts.map +1 -1
  32. package/dist/src/types/memory.js +3 -0
  33. package/dist/src/types/memory.js.map +1 -1
  34. package/package.json +8 -9
  35. package/src/config/index.ts +78 -0
  36. package/src/db/connection.ts +11 -0
  37. package/src/db/memory.repository.ts +205 -0
  38. package/src/db/schema.ts +42 -0
  39. package/src/http/mcp-transport.ts +255 -0
  40. package/src/http/server.ts +264 -0
  41. package/src/index.ts +70 -0
  42. package/src/mcp/handlers.ts +279 -0
  43. package/src/mcp/server.ts +34 -0
  44. package/src/mcp/tools.ts +284 -0
  45. package/src/services/embeddings.service.ts +48 -0
  46. package/src/services/memory.service.ts +266 -0
  47. package/src/types/memory.ts +43 -0
  48. package/dist/scripts/publish.d.ts +0 -13
  49. package/dist/scripts/publish.d.ts.map +0 -1
  50. package/dist/scripts/publish.js +0 -56
  51. package/dist/scripts/publish.js.map +0 -1
  52. package/scripts/publish.ts +0 -61
@@ -1,56 +0,0 @@
1
- #!/usr/bin/env bun
2
- /**
3
- * Publish script for vector-memory-mcp
4
- *
5
- * Prerequisites:
6
- * 1. Create a granular access token at https://www.npmjs.com/settings/tokens
7
- * 2. Store it: npm config set //registry.npmjs.org/:_authToken=npm_YOUR_TOKEN
8
- * Or set NPM_TOKEN environment variable
9
- *
10
- * Usage: bun run scripts/publish.ts [--dry-run]
11
- */
12
- import { $ } from "bun";
13
- const dryRun = process.argv.includes("--dry-run");
14
- async function main() {
15
- // Check for authentication
16
- console.log("๐Ÿ” Checking NPM authentication...");
17
- try {
18
- const whoami = await $ `npm whoami`.text();
19
- console.log(`โœ… Authenticated as: ${whoami.trim()}`);
20
- }
21
- catch {
22
- console.error("โŒ Not authenticated with NPM.");
23
- console.error(" Option 1: npm login");
24
- console.error(" Option 2: npm config set //registry.npmjs.org/:_authToken=npm_YOUR_TOKEN");
25
- console.error(" Option 3: Set NPM_TOKEN environment variable");
26
- process.exit(1);
27
- }
28
- // Run tests
29
- console.log("๐Ÿงช Running tests...");
30
- const testResult = await $ `bun run test`.quiet();
31
- if (testResult.exitCode !== 0) {
32
- console.error("โŒ Tests failed. Aborting publish.");
33
- process.exit(1);
34
- }
35
- console.log("โœ… Tests passed");
36
- // Build
37
- console.log("๐Ÿ”จ Building...");
38
- await $ `bun run build`;
39
- console.log("โœ… Build complete");
40
- // Get version info
41
- const pkg = await Bun.file("package.json").json();
42
- console.log(`\n๐Ÿ“ฆ Publishing ${pkg.name}@${pkg.version}...`);
43
- if (dryRun) {
44
- console.log("๐Ÿ” Dry run - would publish:");
45
- await $ `npm publish --dry-run`;
46
- }
47
- else {
48
- await $ `npm publish --access public`;
49
- console.log(`\nโœ… Published ${pkg.name}@${pkg.version}`);
50
- }
51
- }
52
- main().catch((err) => {
53
- console.error("โŒ Publish failed:", err.message);
54
- process.exit(1);
55
- });
56
- //# sourceMappingURL=publish.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"publish.js","sourceRoot":"","sources":["../../scripts/publish.ts"],"names":[],"mappings":";AACA;;;;;;;;;GASG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AAElD,KAAK,UAAU,IAAI;IACjB,2BAA2B;IAC3B,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;IACjD,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,CAAC,CAAA,YAAY,CAAC,IAAI,EAAE,CAAC;QAC1C,OAAO,CAAC,GAAG,CAAC,uBAAuB,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAC/C,OAAO,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;QACxC,OAAO,CAAC,KAAK,CAAC,6EAA6E,CAAC,CAAC;QAC7F,OAAO,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAC;QACjE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,YAAY;IACZ,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;IACnC,MAAM,UAAU,GAAG,MAAM,CAAC,CAAA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s.com/settings/tokens
7
- * 2. Store it: npm config set //registry.npmjs.org/:_authToken=npm_YOUR_TOKEN
8
- * Or set NPM_TOKEN environment variable
9
- *
10
- * Usage: bun run scripts/publish.ts [--dry-run]
11
- */
12
-
13
- import { $ } from "bun";
14
-
15
- const dryRun = process.argv.includes("--dry-run");
16
-
17
- async function main() {
18
- // Check for authentication
19
- console.log("๐Ÿ” Checking NPM authentication...");
20
- try {
21
- const whoami = await $`npm whoami`.text();
22
- console.log(`โœ… Authenticated as: ${whoami.trim()}`);
23
- } catch {
24
- console.error("โŒ Not authenticated with NPM.");
25
- console.error(" Option 1: npm login");
26
- console.error(" Option 2: npm config set //registry.npmjs.org/:_authToken=npm_YOUR_TOKEN");
27
- console.error(" Option 3: Set NPM_TOKEN environment variable");
28
- process.exit(1);
29
- }
30
-
31
- // Run tests
32
- console.log("๐Ÿงช Running tests...");
33
- const testResult = await $`bun run test`.quiet();
34
- if (testResult.exitCode !== 0) {
35
- console.error("โŒ Tests failed. Aborting publish.");
36
- process.exit(1);
37
- }
38
- console.log("โœ… Tests passed");
39
-
40
- // Build
41
- console.log("๐Ÿ”จ Building...");
42
- await $`bun run build`;
43
- console.log("โœ… Build complete");
44
-
45
- // Get version info
46
- const pkg = await Bun.file("package.json").json();
47
- console.log(`\n๐Ÿ“ฆ Publishing ${pkg.name}@${pkg.version}...`);
48
-
49
- if (dryRun) {
50
- console.log("๐Ÿ” Dry run - would publish:");
51
- await $`npm publish --dry-run`;
52
- } else {
53
- await $`npm publish --access public`;
54
- console.log(`\nโœ… Published ${pkg.name}@${pkg.version}`);
55
- }
56
- }
57
-
58
- main().catch((err) => {
59
- console.error("โŒ Publish failed:", err.message);
60
- process.exit(1);
61
- });