@prmichaelsen/remember-mcp 3.14.21 → 3.15.1
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/CHANGELOG.md +8 -0
- package/agent/tasks/unassigned/task-174-wire-memory-index-service.md +97 -0
- package/dist/server-factory.js +391 -236
- package/dist/server.js +391 -236
- package/package.json +2 -2
- package/src/core-services.ts +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.15.0] - 2026-03-06
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Wire `MemoryIndexService` into `MemoryService` and `SpaceService` (task-174)
|
|
13
|
+
- All new memories and space-published memories are now indexed in Firestore lookup table
|
|
14
|
+
- Enables `resolveById()` cross-collection resolution and fixes 404s on published memories
|
|
15
|
+
|
|
8
16
|
## [3.14.21] - 2026-03-06
|
|
9
17
|
|
|
10
18
|
### Added
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Task 174: Wire MemoryIndexService into Core Services
|
|
2
|
+
|
|
3
|
+
**Milestone**: Unassigned (breaking change from remember-core v0.33.0)
|
|
4
|
+
**Estimated Time**: 0.5-1 hour
|
|
5
|
+
**Dependencies**: remember-core v0.33.0+
|
|
6
|
+
**Status**: Not Started
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Objective
|
|
11
|
+
|
|
12
|
+
Update `src/core-services.ts` to pass the now-required `MemoryIndexService` to both `MemoryService` and `SpaceService` constructors. remember-core v0.33.0 made `MemoryIndexService` a required parameter (no longer optional) in both services.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Context
|
|
17
|
+
|
|
18
|
+
remember-core task-117 made `MemoryIndexService` required in:
|
|
19
|
+
- `MemoryService` constructor: 4th param `options.memoryIndex` (was optional, now required)
|
|
20
|
+
- `SpaceService` constructor: new 6th positional param `memoryIndexService` (before the optional `options`)
|
|
21
|
+
|
|
22
|
+
Currently `src/core-services.ts` line 52 constructs `MemoryService` with 3 args (no memoryIndex) and line 54 constructs `SpaceService` with `{ moderationClient }` as the 6th arg (which is now the 7th position).
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Steps
|
|
27
|
+
|
|
28
|
+
### 1. Import MemoryIndexService
|
|
29
|
+
|
|
30
|
+
Add `MemoryIndexService` to the import from `@prmichaelsen/remember-core`.
|
|
31
|
+
|
|
32
|
+
### 2. Create singleton MemoryIndexService
|
|
33
|
+
|
|
34
|
+
Add alongside the other singletons (line ~31):
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
const memoryIndexService = new MemoryIndexService(coreLogger);
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### 3. Update MemoryService constructor call
|
|
41
|
+
|
|
42
|
+
Change line 52 from:
|
|
43
|
+
```typescript
|
|
44
|
+
memory: new MemoryService(collection, userId, coreLogger),
|
|
45
|
+
```
|
|
46
|
+
to:
|
|
47
|
+
```typescript
|
|
48
|
+
memory: new MemoryService(collection, userId, coreLogger, {
|
|
49
|
+
memoryIndex: memoryIndexService,
|
|
50
|
+
weaviateClient,
|
|
51
|
+
}),
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### 4. Update SpaceService constructor call
|
|
55
|
+
|
|
56
|
+
Change line 54 from:
|
|
57
|
+
```typescript
|
|
58
|
+
space: new SpaceService(weaviateClient, collection, userId, tokenService, coreLogger, { moderationClient }),
|
|
59
|
+
```
|
|
60
|
+
to:
|
|
61
|
+
```typescript
|
|
62
|
+
space: new SpaceService(weaviateClient, collection, userId, tokenService, coreLogger, memoryIndexService, { moderationClient }),
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### 5. Bump remember-core dependency
|
|
66
|
+
|
|
67
|
+
Update `package.json` to require `@prmichaelsen/remember-core` >= 0.33.0.
|
|
68
|
+
|
|
69
|
+
### 6. Build and verify
|
|
70
|
+
|
|
71
|
+
- `tsc --noEmit` passes
|
|
72
|
+
- All tests pass
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Verification
|
|
77
|
+
|
|
78
|
+
- [ ] `MemoryIndexService` imported and instantiated as singleton
|
|
79
|
+
- [ ] `MemoryService` receives `{ memoryIndex: memoryIndexService, weaviateClient }` in options
|
|
80
|
+
- [ ] `SpaceService` receives `memoryIndexService` as 6th positional arg
|
|
81
|
+
- [ ] `tsc --noEmit` passes
|
|
82
|
+
- [ ] All tests pass
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Files Modified
|
|
87
|
+
|
|
88
|
+
- `src/core-services.ts` — add import, singleton, update constructor calls
|
|
89
|
+
- `package.json` — bump remember-core dependency
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Notes
|
|
94
|
+
|
|
95
|
+
- Single file change (`core-services.ts`) — all service construction is centralized here
|
|
96
|
+
- `weaviateClient` is already available in `createCoreServices()`, so passing it to MemoryService options enables `resolveById()` cross-collection resolution
|
|
97
|
+
- This ensures all new memories created via MCP tools are indexed in the Firestore lookup table
|