@miniaxolotl/grove 0.3.1 → 0.5.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.
Files changed (59) hide show
  1. package/README.md +10 -108
  2. package/dist/bridge.js +30592 -0
  3. package/dist/bridge.js.map +7 -0
  4. package/dist/cli.js +32427 -34
  5. package/dist/cli.js.map +7 -1
  6. package/dist/hook.js +15682 -0
  7. package/dist/hook.js.map +7 -0
  8. package/dist/index.js +29223 -490
  9. package/dist/index.js.map +7 -1
  10. package/package.json +24 -19
  11. package/CHANGELOG.md +0 -62
  12. package/dist/cli.d.ts +0 -2
  13. package/dist/cli.d.ts.map +0 -1
  14. package/dist/config.d.ts +0 -27
  15. package/dist/config.d.ts.map +0 -1
  16. package/dist/config.js +0 -35
  17. package/dist/config.js.map +0 -1
  18. package/dist/index.d.ts +0 -2
  19. package/dist/index.d.ts.map +0 -1
  20. package/dist/repositories/entity.repository.d.ts +0 -44
  21. package/dist/repositories/entity.repository.d.ts.map +0 -1
  22. package/dist/repositories/entity.repository.js +0 -186
  23. package/dist/repositories/entity.repository.js.map +0 -1
  24. package/dist/repositories/memory.repository.d.ts +0 -59
  25. package/dist/repositories/memory.repository.d.ts.map +0 -1
  26. package/dist/repositories/memory.repository.js +0 -222
  27. package/dist/repositories/memory.repository.js.map +0 -1
  28. package/dist/repositories/relation.repository.d.ts +0 -38
  29. package/dist/repositories/relation.repository.d.ts.map +0 -1
  30. package/dist/repositories/relation.repository.js +0 -95
  31. package/dist/repositories/relation.repository.js.map +0 -1
  32. package/dist/services/embedding.d.ts +0 -4
  33. package/dist/services/embedding.d.ts.map +0 -1
  34. package/dist/services/embedding.js +0 -114
  35. package/dist/services/embedding.js.map +0 -1
  36. package/dist/services/qdrant.d.ts +0 -38
  37. package/dist/services/qdrant.d.ts.map +0 -1
  38. package/dist/services/qdrant.js +0 -117
  39. package/dist/services/qdrant.js.map +0 -1
  40. package/dist/services/reranking.d.ts +0 -6
  41. package/dist/services/reranking.d.ts.map +0 -1
  42. package/dist/services/reranking.js +0 -24
  43. package/dist/services/reranking.js.map +0 -1
  44. package/dist/utils/filter.d.ts +0 -10
  45. package/dist/utils/filter.d.ts.map +0 -1
  46. package/dist/utils/filter.js +0 -15
  47. package/dist/utils/filter.js.map +0 -1
  48. package/eslint.config.js +0 -1
  49. package/src/cli.ts +0 -37
  50. package/src/config.ts +0 -32
  51. package/src/index.ts +0 -594
  52. package/src/repositories/entity.repository.ts +0 -253
  53. package/src/repositories/memory.repository.ts +0 -316
  54. package/src/repositories/relation.repository.ts +0 -143
  55. package/src/services/embedding.ts +0 -150
  56. package/src/services/qdrant.ts +0 -201
  57. package/src/services/reranking.ts +0 -40
  58. package/src/utils/filter.ts +0 -20
  59. package/tsconfig.json +0 -10
package/package.json CHANGED
@@ -1,27 +1,28 @@
1
1
  {
2
2
  "name": "@miniaxolotl/grove",
3
- "version": "0.3.1",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
7
7
  "grove": "./dist/cli.js"
8
8
  },
9
- "description": "Self-hosted agentic memory MCP server backed by Qdrant, inspired by supermemory. Provides semantic memory storage, entity/relation knowledge graph, and optional reranking as MCP tools.",
9
+ "description": "Grove authenticated API client, setup CLI and four-tool memory MCP bridge",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "https://github.com/miniaxolotl/grove.git"
13
13
  },
14
- "homepage": "https://github.com/miniaxolotl/grove#readme",
14
+ "homepage": "https://grove-six-rosy.vercel.app",
15
+ "author": "Bramble Labs Inc.",
15
16
  "publishConfig": {
16
17
  "access": "public"
17
18
  },
18
19
  "keywords": [
19
20
  "mcp",
20
21
  "memory",
21
- "qdrant",
22
+ "postgresql",
22
23
  "vector-database",
23
24
  "semantic-search",
24
- "knowledge-graph",
25
+ "private-memory",
25
26
  "agent",
26
27
  "ai",
27
28
  "llm",
@@ -31,29 +32,33 @@
31
32
  "context"
32
33
  ],
33
34
  "exports": {
34
- ".": "./dist/index.js",
35
- "./config": "./dist/config.js",
36
- "./services/*": "./dist/services/*.js",
37
- "./repositories/*": "./dist/repositories/*.js"
35
+ ".": "./dist/index.js"
36
+ },
37
+ "files": [
38
+ "dist",
39
+ "README.md",
40
+ "LICENSE"
41
+ ],
42
+ "engines": {
43
+ "node": ">=22"
38
44
  },
39
45
  "dependencies": {
40
- "@huggingface/transformers": "~3.0.0",
41
- "fastmcp": "~1.27.7",
42
- "uuid": "~11.0.0",
43
- "zod": "~3.25.0"
46
+ "@modelcontextprotocol/sdk": "1.32.1",
47
+ "jsonc-parser": "^3.3.1",
48
+ "zod": "~4.1.8"
44
49
  },
45
50
  "devDependencies": {
46
- "@types/uuid": "~11.0.0",
47
51
  "tsx": "~4.21.0",
48
52
  "typescript": "~6.0.2",
49
53
  "@lib/eslint-config": "0.0.0",
50
- "@lib/typescript-config": "0.0.0",
51
- "@lib/shared": "0.0.0"
54
+ "@lib/shared": "0.0.0",
55
+ "@lib/integration-core": "0.0.0",
56
+ "@lib/typescript-config": "0.0.0"
52
57
  },
53
58
  "scripts": {
54
- "build": "tsc",
55
- "start": "node dist/index.js",
56
- "dev": "tsx watch src/index.ts",
59
+ "build": "node ../../scripts/build.mjs mcp",
60
+ "start": "node dist/cli.js",
61
+ "dev": "tsx src/cli.ts",
57
62
  "lint": "eslint src/",
58
63
  "lint:fix": "eslint src/ --fix"
59
64
  }
package/CHANGELOG.md DELETED
@@ -1,62 +0,0 @@
1
- # @miniaxolotl/grove
2
-
3
- ## [0.3.1](https://github.com/miniaxolotl/grove/compare/grove-v0.3.0...grove-v0.3.1) (2026-04-26)
4
-
5
-
6
- ### Bug Fixes
7
-
8
- * update release workflow to include production branch and adjust publish steps ([9ac62b0](https://github.com/miniaxolotl/grove/commit/9ac62b0459c4144aaff71a1f9ca6382c3bdb9c22))
9
-
10
- ## [0.3.0](https://github.com/miniaxolotl/grove/compare/grove-v0.2.8...grove-v0.3.0) (2026-04-26)
11
-
12
-
13
- ### Features
14
-
15
- * add Grove Deployment Guide and update plugin configurations ([c8351ea](https://github.com/miniaxolotl/grove/commit/c8351ea074148d584eabdee5287c4835e0613c20))
16
- * add homepage field to package.json for better project visibility ([26b3ca9](https://github.com/miniaxolotl/grove/commit/26b3ca97fac0e9525c9868fde7eb3ec5e03e093b))
17
- * add shared library dependency to Grove OpenCode Plugin and MCP package ([3b7fd9e](https://github.com/miniaxolotl/grove/commit/3b7fd9e986b70212a40180adfc85e5a4b831fcd5))
18
- * add updateMemory method to MCPClient and refactor importance decay logic ([ff206a4](https://github.com/miniaxolotl/grove/commit/ff206a4c127a10a3cc678a2fa107c1d90669d967))
19
- * add validation for configuration values and improve error handling in repository methods ([563c9ad](https://github.com/miniaxolotl/grove/commit/563c9ad77a444295c4a00a6dcff9e090f2703147))
20
- * add warmup function to initialize local embedder in embedding service ([b927acc](https://github.com/miniaxolotl/grove/commit/b927acc5ba351901a963ba91aaa38ef60e317a1e))
21
- * bump version to 0.2.4 in package.json ([8a90f06](https://github.com/miniaxolotl/grove/commit/8a90f06685c599d24624241644c8d8ba41a92067))
22
- * enhance collection initialization to include index fields for entities, memories, and relations ([d86f894](https://github.com/miniaxolotl/grove/commit/d86f8948c8a66110aa65f3d3683597f8a24d682c))
23
- * implement graceful shutdown and logging for server initialization and index creation ([bd0244d](https://github.com/miniaxolotl/grove/commit/bd0244de3a520686ba6088fcfe2fac2b80ee678c))
24
- * implement memory and relation repositories with Qdrant integration ([660a718](https://github.com/miniaxolotl/grove/commit/660a718769a293726da46534cf3bcf82aebc5e2d))
25
- * **mcp:** add memory management tools and refactor repository methods ([70753f0](https://github.com/miniaxolotl/grove/commit/70753f054e54e6627b17651fc32b9392b7f50288))
26
- * update README files with additional badges for npm, Docker Hub, GHCR, and License ([dac3c3e](https://github.com/miniaxolotl/grove/commit/dac3c3ec3e9af1e07a633e13902db39633ef6424))
27
- * update release and deploy scripts for improved version handling and GitHub release creation ([b84a7f7](https://github.com/miniaxolotl/grove/commit/b84a7f77fcabbc5b76f15ad3d7f351a2ed18136d))
28
-
29
-
30
- ### Bug Fixes
31
-
32
- * enhance deleteEntities function to handle empty filter case ([081ee47](https://github.com/miniaxolotl/grove/commit/081ee470a4ad538b5391e52f2f7a4625468d105e))
33
- * revert version number in root package.json and update mcp package version to 0.2.3 ([c562e1e](https://github.com/miniaxolotl/grove/commit/c562e1e04a05efac5f29cbfa41f79b1379b64499))
34
- * update condition to check for text updates in updateMemory function ([2a36917](https://github.com/miniaxolotl/grove/commit/2a3691780f073386a71be99eb8e3797f81e85b83))
35
- * update eslint.config.js references from @grove/eslint-config to @lib/eslint-config ([d13e280](https://github.com/miniaxolotl/grove/commit/d13e280cdc4da96bbd6b307a5e0c618bef7b1a8e))
36
- * update remaining @grove/mcp references to @miniaxolotl/grove ([a6e67ec](https://github.com/miniaxolotl/grove/commit/a6e67ec97521c3e4f28b9e687f1065b6e4d0faff))
37
- * update version to 0.2.5 in package.json ([27e7079](https://github.com/miniaxolotl/grove/commit/27e7079ca890456de46f95507a6039e2d71752f5))
38
-
39
-
40
- ### Code Refactoring
41
-
42
- * rename internal packages to @script/* and @lib/* ([0ab2ceb](https://github.com/miniaxolotl/grove/commit/0ab2ceb5b9cc28da185276f2849afe32a583feff))
43
-
44
- ## 0.2.8 (2026-04-25)
45
-
46
- ### Features
47
-
48
- - CLI binary for global install (`grove serve`)
49
- - Release-please automated versioning and releases
50
- - Docker images pushed to GHCR and Docker Hub via CI
51
-
52
- ### Bug Fixes
53
-
54
- - Dockerfile base image label corrected to node:24
55
- - Removed stale changeset references from workflows
56
- - Removed scripts/release directory
57
-
58
- ### Documentation
59
-
60
- - Updated README with npm/pnpm/bun install instructions
61
- - Updated server documentation with correct ports and env vars
62
- - Added deployment and release guide
package/dist/cli.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=cli.d.ts.map
package/dist/cli.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
package/dist/config.d.ts DELETED
@@ -1,27 +0,0 @@
1
- export declare const config: {
2
- readonly transport: "stdio" | "http";
3
- readonly port: number;
4
- readonly qdrant: {
5
- readonly url: string;
6
- readonly apiKey: string | undefined;
7
- };
8
- readonly collection: {
9
- readonly prefix: string;
10
- };
11
- readonly embedding: {
12
- readonly url: string | undefined;
13
- readonly model: string | undefined;
14
- readonly batchSize: number;
15
- readonly maxTokensPerText: number;
16
- };
17
- readonly reranking: {
18
- readonly url: string | undefined;
19
- readonly model: string | undefined;
20
- };
21
- readonly vector: {
22
- readonly dim: number;
23
- };
24
- };
25
- export declare const hasRemoteEmbedding: boolean;
26
- export declare const hasRemoteReranking: boolean;
27
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;wBAC+B,OAAO,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;CAsBxD,CAAC;AAOX,eAAO,MAAM,kBAAkB,SAAyB,CAAC;AACzD,eAAO,MAAM,kBAAkB,SAAyB,CAAC"}
package/dist/config.js DELETED
@@ -1,35 +0,0 @@
1
- export const config = {
2
- transport: (process.env.TRANSPORT ?? "http"),
3
- port: parseInt(process.env.PORT ?? "26080", 10),
4
- qdrant: {
5
- url: process.env.QDRANT_URL ?? "http://localhost:6333",
6
- apiKey: process.env.QDRANT_API_KEY || undefined,
7
- },
8
- collection: {
9
- prefix: process.env.COLLECTION_PREFIX ?? "memory",
10
- },
11
- embedding: {
12
- url: process.env.EMBEDDING_URL ?? undefined,
13
- model: process.env.EMBEDDING_MODEL ?? undefined,
14
- batchSize: parseInt(process.env.EMBEDDING_BATCH_SIZE ?? "10", 10),
15
- maxTokensPerText: parseInt(process.env.EMBEDDING_MAX_TOKENS ?? "512", 10),
16
- },
17
- reranking: {
18
- url: process.env.RERANKING_URL ?? undefined,
19
- model: process.env.RERANKING_MODEL ?? undefined,
20
- },
21
- vector: {
22
- dim: parseInt(process.env.VECTOR_DIM ?? "384", 10),
23
- },
24
- };
25
- if (isNaN(config.port))
26
- throw new Error("Invalid PORT: must be a valid number");
27
- if (isNaN(config.embedding.batchSize))
28
- throw new Error("Invalid EMBEDDING_BATCH_SIZE: must be a valid number");
29
- if (isNaN(config.embedding.maxTokensPerText))
30
- throw new Error("Invalid EMBEDDING_MAX_TOKENS: must be a valid number");
31
- if (isNaN(config.vector.dim))
32
- throw new Error("Invalid VECTOR_DIM: must be a valid number");
33
- export const hasRemoteEmbedding = !!config.embedding.url;
34
- export const hasRemoteReranking = !!config.reranking.url;
35
- //# sourceMappingURL=config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,SAAS,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,MAAM,CAAqB;IAChE,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,OAAO,EAAE,EAAE,CAAC;IAC/C,MAAM,EAAE;QACN,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,uBAAuB;QACtD,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,SAAS;KAChD;IACD,UAAU,EAAE;QACV,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,QAAQ;KAClD;IACD,SAAS,EAAE;QACT,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,SAAS;QAC3C,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,SAAS;QAC/C,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,IAAI,EAAE,EAAE,CAAC;QACjE,gBAAgB,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,KAAK,EAAE,EAAE,CAAC;KAC1E;IACD,SAAS,EAAE;QACT,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,SAAS;QAC3C,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,SAAS;KAChD;IACD,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,KAAK,EAAE,EAAE,CAAC;KACnD;CACO,CAAC;AAEX,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;IAAE,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;AAChF,IAAI,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC;IAAE,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;AAC/G,IAAI,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC;IAAE,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;AACtH,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;IAAE,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;AAE5F,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC;AACzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC"}
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
@@ -1,44 +0,0 @@
1
- export interface Entity {
2
- id: string;
3
- name: string;
4
- entityType: string;
5
- observations: string[];
6
- metadata?: Record<string, unknown>;
7
- }
8
- export declare function createEntity(name: string, entityType: string, observations?: string[], metadata?: Record<string, unknown>): Promise<Entity>;
9
- export declare function getEntity(name: string): Promise<Entity | null>;
10
- export declare function searchEntities(query?: string, entityType?: string, limit?: number): Promise<Entity[]>;
11
- export declare function addObservations(name: string, newObservations: string[]): Promise<Entity | null>;
12
- export declare function deleteEntities(filter?: {
13
- name?: string;
14
- entityType?: string;
15
- }): Promise<void>;
16
- export declare function getEntityById(id: string): Promise<Entity | null>;
17
- export declare function updateEntity(id: string, updates: {
18
- name?: string;
19
- entityType?: string;
20
- metadata?: Record<string, unknown>;
21
- }): Promise<Entity | null>;
22
- export declare function getEntityStats(): Promise<{
23
- count: number;
24
- vectorsCount: number;
25
- indexedVectorsCount: number;
26
- }>;
27
- export declare function listEntities(entityType?: string, limit?: number, offset?: string): Promise<{
28
- entities: Entity[];
29
- offset: string | null;
30
- }>;
31
- export declare function initEntityCollection(): Promise<void>;
32
- export declare const entityRepository: {
33
- create: typeof createEntity;
34
- get: typeof getEntity;
35
- search: typeof searchEntities;
36
- addObservations: typeof addObservations;
37
- delete: typeof deleteEntities;
38
- init: typeof initEntityCollection;
39
- getById: typeof getEntityById;
40
- update: typeof updateEntity;
41
- stats: typeof getEntityStats;
42
- list: typeof listEntities;
43
- };
44
- //# sourceMappingURL=entity.repository.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entity.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/entity.repository.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,wBAAsB,YAAY,CAChC,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,YAAY,GAAE,MAAM,EAAO,EAC3B,QAAQ,CAAC,EAAE,MAAM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AAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC,CAsBxD;AAED,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC,CAK1D;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;CAW5B,CAAC"}
@@ -1,186 +0,0 @@
1
- import { randomUUID } from "crypto";
2
- import { config } from "../config.js";
3
- import { qdrant } from "../services/qdrant.js";
4
- import { buildFilter } from "../utils/filter.js";
5
- const COLLECTION = `${config.collection.prefix}_entities`;
6
- export async function createEntity(name, entityType, observations = [], metadata) {
7
- const existing = await getEntity(name);
8
- if (existing) {
9
- const mergedObservations = [
10
- ...existing.observations,
11
- ...observations.filter((o) => !existing.observations.includes(o)),
12
- ];
13
- const mergedMetadata = { ...existing.metadata, ...metadata };
14
- await qdrant.upsertPoints(COLLECTION, [
15
- {
16
- id: existing.id,
17
- vector: Array(config.vector.dim).fill(0),
18
- payload: {
19
- id: existing.id,
20
- name,
21
- entityType,
22
- observations: mergedObservations,
23
- metadata: mergedMetadata,
24
- },
25
- },
26
- ]);
27
- return {
28
- id: existing.id,
29
- name,
30
- entityType,
31
- observations: mergedObservations,
32
- metadata: mergedMetadata,
33
- };
34
- }
35
- const id = randomUUID();
36
- const point = {
37
- id,
38
- vector: Array(config.vector.dim).fill(0),
39
- payload: { id, name, entityType, observations, metadata },
40
- };
41
- await qdrant.upsertPoints(COLLECTION, [point]);
42
- return { id, name, entityType, observations, metadata };
43
- }
44
- export async function getEntity(name) {
45
- const { points } = await qdrant.scrollPoints(COLLECTION, {
46
- must: [{ key: "name", match: { value: name } }],
47
- });
48
- if (points.length === 0)
49
- return null;
50
- const p = points[0];
51
- return {
52
- id: p.id,
53
- name: p.payload.name,
54
- entityType: p.payload.entityType,
55
- observations: p.payload.observations ?? [],
56
- metadata: p.payload.metadata,
57
- };
58
- }
59
- export async function searchEntities(query, entityType, limit = 10) {
60
- const filter = buildFilter([
61
- query ? { key: "name", value: query } : null,
62
- entityType ? { key: "entityType", value: entityType } : null,
63
- ]);
64
- const { points } = await qdrant.scrollPoints(COLLECTION, filter, limit);
65
- return points.map((p) => ({
66
- id: p.id,
67
- name: p.payload.name,
68
- entityType: p.payload.entityType,
69
- observations: p.payload.observations ?? [],
70
- metadata: p.payload.metadata,
71
- }));
72
- }
73
- export async function addObservations(name, newObservations) {
74
- const entity = await getEntity(name);
75
- if (!entity)
76
- return null;
77
- const updated = {
78
- ...entity,
79
- observations: Array.from(new Set([...entity.observations, ...newObservations])),
80
- };
81
- await qdrant.upsertPoints(COLLECTION, [
82
- {
83
- id: entity.id,
84
- vector: Array(config.vector.dim).fill(0),
85
- payload: {
86
- id: updated.id,
87
- name: updated.name,
88
- entityType: updated.entityType,
89
- observations: updated.observations,
90
- metadata: updated.metadata,
91
- },
92
- },
93
- ]);
94
- return updated;
95
- }
96
- export async function deleteEntities(filter = {}) {
97
- const qdrantFilter = buildFilter([
98
- filter.name ? { key: "name", value: filter.name } : null,
99
- filter.entityType ? { key: "entityType", value: filter.entityType } : null,
100
- ]);
101
- if (!qdrantFilter)
102
- return;
103
- await qdrant.deleteByFilter(COLLECTION, qdrantFilter);
104
- }
105
- export async function getEntityById(id) {
106
- const point = await qdrant.getPoint(COLLECTION, id);
107
- if (!point)
108
- return null;
109
- return {
110
- id: point.id,
111
- name: point.payload.name,
112
- entityType: point.payload.entityType,
113
- observations: point.payload.observations ?? [],
114
- metadata: point.payload.metadata,
115
- };
116
- }
117
- export async function updateEntity(id, updates) {
118
- const existing = await getEntityById(id);
119
- if (!existing)
120
- return null;
121
- const updated = {
122
- ...existing,
123
- name: updates.name ?? existing.name,
124
- entityType: updates.entityType ?? existing.entityType,
125
- metadata: updates.metadata ?? existing.metadata,
126
- };
127
- await qdrant.upsertPoints(COLLECTION, [
128
- {
129
- id,
130
- vector: Array(config.vector.dim).fill(0),
131
- payload: {
132
- id,
133
- name: updated.name,
134
- entityType: updated.entityType,
135
- observations: updated.observations,
136
- metadata: updated.metadata,
137
- },
138
- },
139
- ]);
140
- return updated;
141
- }
142
- export async function getEntityStats() {
143
- const info = await qdrant.getCollectionInfo(COLLECTION);
144
- if (!info)
145
- return { count: 0, vectorsCount: 0, indexedVectorsCount: 0 };
146
- return {
147
- count: info.pointsCount,
148
- vectorsCount: info.vectorsCount,
149
- indexedVectorsCount: info.indexedVectorsCount,
150
- };
151
- }
152
- export async function listEntities(entityType, limit = 100, offset) {
153
- const filter = buildFilter([
154
- entityType ? { key: "entityType", value: entityType } : null,
155
- ]);
156
- const { points, nextPageOffset } = await qdrant.scrollPoints(COLLECTION, filter, limit, offset);
157
- return {
158
- entities: points.map((p) => ({
159
- id: p.id,
160
- name: p.payload.name,
161
- entityType: p.payload.entityType,
162
- observations: p.payload.observations ?? [],
163
- metadata: p.payload.metadata,
164
- })),
165
- offset: nextPageOffset,
166
- };
167
- }
168
- export async function initEntityCollection() {
169
- await qdrant.ensureCollection(COLLECTION, config.vector.dim, [
170
- "name",
171
- "entityType",
172
- ]);
173
- }
174
- export const entityRepository = {
175
- create: createEntity,
176
- get: getEntity,
177
- search: searchEntities,
178
- addObservations,
179
- delete: deleteEntities,
180
- init: initEntityCollection,
181
- getById: getEntityById,
182
- update: updateEntity,
183
- stats: getEntityStats,
184
- list: listEntities,
185
- };
186
- //# sourceMappingURL=entity.repository.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entity.repository.js","sourceRoot":"","sources":["../../src/repositories/entity.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,UAAU,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,WAAW,CAAC;AAU1D,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,IAAY,EACZ,U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AEF,OAAO;QACL,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAC3B,EAAE,EAAE,CAAC,CAAC,EAAE;YACR,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,IAAc;YAC9B,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,UAAoB;YAC1C,YAAY,EAAG,CAAC,CAAC,OAAO,CAAC,YAAyB,IAAI,EAAE;YACxD,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,QAA+C;SACpE,CAAC,CAAC;QACH,MAAM,EAAE,cAAc;KACvB,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oBAAoB;IACxC,MAAM,MAAM,CAAC,gBAAgB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE;QAC3D,MAAM;QACN,YAAY;KACb,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM,EAAE,YAAY;IACpB,GAAG,EAAE,SAAS;IACd,MAAM,EAAE,cAAc;IACtB,eAAe;IACf,MAAM,EAAE,cAAc;IACtB,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,aAAa;IACtB,MAAM,EAAE,YAAY;IACpB,KAAK,EAAE,cAAc;IACrB,IAAI,EAAE,YAAY;CACnB,CAAC"}
@@ -1,59 +0,0 @@
1
- import type { Memory, MemorySearchResult } from "@lib/shared";
2
- export type { Memory, MemorySearchResult };
3
- export declare function saveMemory(text: string, metadata?: Partial<Memory["metadata"]>): Promise<Memory>;
4
- export declare function searchMemories(query: string, options?: {
5
- project?: string;
6
- tags?: string[];
7
- limit?: number;
8
- }): Promise<MemorySearchResult[]>;
9
- export declare function deleteMemories(ids: string[]): Promise<void>;
10
- export declare function deleteMemoriesByFilter(filter: {
11
- project?: string;
12
- tags?: string[];
13
- }): Promise<void>;
14
- export declare function getMemoryById(id: string): Promise<Memory | null>;
15
- export declare function updateMemory(id: string, updates: {
16
- text?: string;
17
- metadata?: Partial<Memory["metadata"]>;
18
- }): Promise<Memory | null>;
19
- export declare function scrollMemories(options?: {
20
- project?: string;
21
- tags?: string[];
22
- limit?: number;
23
- offset?: string;
24
- }): Promise<{
25
- memories: Memory[];
26
- offset: string | null;
27
- }>;
28
- export declare function getMemoriesStats(): Promise<{
29
- count: number;
30
- vectorsCount: number;
31
- indexedVectorsCount: number;
32
- }>;
33
- export declare function compactMemories(options: {
34
- project?: string;
35
- sessionId?: string;
36
- importanceThreshold?: number;
37
- }): Promise<{
38
- compacted: number;
39
- }>;
40
- export declare function pruneMemories(options: {
41
- threshold: number;
42
- project?: string;
43
- }): Promise<{
44
- pruned: number;
45
- }>;
46
- export declare function initMemoryCollection(): Promise<void>;
47
- export declare const memoryRepository: {
48
- save: typeof saveMemory;
49
- search: typeof searchMemories;
50
- delete: typeof deleteMemories;
51
- deleteByFilter: typeof deleteMemoriesByFilter;
52
- init: typeof initMemoryCollection;
53
- update: typeof updateMemory;
54
- scroll: typeof scrollMemories;
55
- stats: typeof getMemoriesStats;
56
- compact: typeof compactMemories;
57
- prune: typeof pruneMemories;
58
- };
59
- //# sourceMappingURL=memory.repository.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"memory.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/memory.repository.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAI9D,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC;AAkB3C,wBAAsB,UAAU,CAC9B,IAAI,EAAE,MAAM,EACZ,QAAQ,GAAE,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAM,GACzC,OAAO,CAAC,MAAM,CAAC,CA2BjB;AAED,wBAAsB,cAAc,CAClC,KAAK,EAAE,MAAM,EACb,OAAO,GAAE;IACP,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CA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