@miniaxolotl/grove 0.3.1 → 0.6.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 +15 -107
  2. package/dist/bridge.js +30615 -0
  3. package/dist/bridge.js.map +7 -0
  4. package/dist/cli.js +32893 -34
  5. package/dist/cli.js.map +7 -1
  6. package/dist/hook.js +15716 -0
  7. package/dist/hook.js.map +7 -0
  8. package/dist/index.js +29254 -490
  9. package/dist/index.js.map +7 -1
  10. package/package.json +22 -17
  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/README.md CHANGED
@@ -1,113 +1,21 @@
1
- # @miniaxolotl/grove
1
+ # Grove
2
2
 
3
- [![npm](https://img.shields.io/npm/v/@miniaxolotl/grove)](https://npmjs.com/package/@miniaxolotl/grove)
4
- [![Docker Hub](https://img.shields.io/docker/v/miniaxolotl/grove?label=docker%20hub)](https://hub.docker.com/r/miniaxolotl/grove)
5
- [![GHCR](https://img.shields.io/github/v/release/miniaxolotl/grove?label=ghcr)](https://github.com/miniaxolotl/grove/releases)
6
- [![License](https://img.shields.io/npm/l/@miniaxolotl/grove)](LICENSE)
3
+ Authenticated memory CLI and stdio MCP bridge. Node 22+.
7
4
 
8
- Self-hosted agentic memory MCP server backed by Qdrant vector database. Provides semantic memory storage, entity/relation knowledge graph, and optional reranking as MCP tools for AI agents.
9
-
10
- ## Features
11
-
12
- - **Semantic Memory** — Store and search memories with vector embeddings
13
- - **Knowledge Graph** — Entity/relation graph for structured knowledge
14
- - **Local Embeddings** — Uses ONNX models (no external API needed)
15
- - **Remote Embeddings** — OpenAI-compatible API support
16
- - **Optional Reranking** — Cross-encoder reranking for better results
17
- - **HTTP Transport** — Run as a server or via stdio
18
- - **Health Checks** — Built-in `/health` and `/ready` endpoints
19
-
20
- ## Installation
21
-
22
- ```bash
23
- npm install @miniaxolotl/grove
24
- ```
25
-
26
- ## Quick Start
27
-
28
- ### 1. Start Qdrant
29
-
30
- ```bash
31
- docker run -p 6333:6333 qdrant/qdrant
32
- ```
33
-
34
- ### 2. Run the server
35
-
36
- ```bash
37
- npx @miniaxolotl/grove
38
- ```
39
-
40
- Or via code:
41
-
42
- ```typescript
43
- import { server } from "@miniaxolotl/grove";
44
-
45
- // Start with HTTP transport (default port 26080)
46
- server.run({ transport: "http" });
47
-
48
- // Or stdio for Claude Desktop
49
- server.run({ transport: "stdio" });
50
- ```
51
-
52
- ## Configuration
53
-
54
- | Variable | Default | Description |
55
- |----------|---------|-------------|
56
- | `QDRANT_URL` | `http://localhost:6333` | Qdrant server URL |
57
- | `QDRANT_API_KEY` | — | Qdrant API key |
58
- | `TRANSPORT` | `http` | `stdio` or `http` |
59
- | `PORT` | `26080` | HTTP server port |
60
- | `COLLECTION_PREFIX` | `memory` | Prefix for collection names |
61
- | `EMBEDDING_URL` | — | Remote embedding URL (OpenAI-compatible) |
62
- | `EMBEDDING_MODEL` | — | Model name for remote embedding |
63
- | `RERANKING_URL` | — | Remote reranking URL |
64
- | `RERANKING_MODEL` | — | Model name for reranking |
65
-
66
- ### Local Embeddings
67
-
68
- By default, uses `Xenova/all-MiniLM-L6-v2` via ONNX — no external service required.
69
-
70
- ## MCP Tools
71
-
72
- ### Memory
73
-
74
- - `memory_save` — Save a memory
75
- - `memory_search` — Search memories by similarity
76
- - `memory_save_batch` — Save multiple memories
77
- - `memory_search_batch` — Batch search
78
- - `memory_update` — Update a memory
79
- - `memory_get` — Get a memory by ID
80
- - `memory_forget` — Delete memories
81
- - `memory_scroll` — List memories with pagination
82
- - `memory_stats` — Get memory statistics
83
- - `memory_export` / `memory_import` — Backup/restore
84
-
85
- ### Entities
86
-
87
- - `entity_create` — Create an entity
88
- - `entity_get` — Get entity by name
89
- - `entity_search` — Search entities
90
- - `entity_list` — List all entities
91
- - `entity_add_observations` — Add observations
92
- - `entity_update` — Update entity
93
-
94
- ### Relations
95
-
96
- - `relation_create` — Create a relation
97
- - `relation_search` — Search relations
98
- - `relation_list` — List relations
99
- - `relation_delete` — Delete a relation
100
-
101
- ## Docker
102
-
103
- ```bash
104
- docker run -e QDRANT_URL=http://host.docker.internal:6333 \
105
- -p 26080:26080 \
106
- ghcr.io/miniaxolotl/grove
5
+ ```sh
6
+ npx @miniaxolotl/grove connect
107
7
  ```
108
8
 
109
- Or use `docker-compose.yml` from the repo for full stack.
9
+ Grove detects an installed agent or offers a choice. You can also use
10
+ `connect opencode`, `connect claude` or `connect codex`. Run inside your project.
11
+ Create an account or sign in and approve access in the browser. Keep the terminal
12
+ open while Grove links your project and configures the integration, then follow
13
+ its activation step. Repeat the command to resume. Grove Cloud is the default;
14
+ use `--url https://YOUR-GROVE-API` for Grove Open Source.
110
15
 
111
- ## License
16
+ Use `login --key-stdin` with a scoped API key for headless setup.
17
+ `grove mcp --stdio` exposes remember, recall, memories and forget. Argument-free
18
+ invocation starts guided setup in an interactive terminal; `--help` prints usage.
19
+ Credentials are stored privately in your user config, with a separate origin per agent.
112
20
 
113
- MIT
21
+ See [installation](https://github.com/miniaxolotl/grove/blob/development/documentation/client.md).