@prmichaelsen/remember-mcp 2.7.9 → 2.7.10
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 +21 -0
- package/dist/server-factory.js +20 -0
- package/dist/server.js +20 -0
- package/package.json +1 -1
- package/src/tools/confirm.ts +24 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,27 @@ 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
|
+
## [2.7.9] - 2026-02-17
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **Bidirectional Linking for Published Memories**
|
|
13
|
+
- Original memories now store `space_memory_id` after publishing
|
|
14
|
+
- Enables correlation between source memory and published space memory
|
|
15
|
+
- Added automatic update of original memory after successful publish
|
|
16
|
+
- Non-critical update - publish still succeeds if update fails
|
|
17
|
+
- Improves traceability and enables future features (unpublish, sync)
|
|
18
|
+
|
|
19
|
+
### Technical Details
|
|
20
|
+
|
|
21
|
+
- Modified: `src/tools/confirm.ts` (lines 277-296)
|
|
22
|
+
- Added `userCollection.data.update()` call after publish
|
|
23
|
+
- Updates original memory with `space_memory_id` field
|
|
24
|
+
- Includes error handling with warning log (non-blocking)
|
|
25
|
+
- Maintains backward compatibility
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
8
29
|
## [2.7.8] - 2026-02-17
|
|
9
30
|
|
|
10
31
|
### Fixed
|
package/dist/server-factory.js
CHANGED
|
@@ -4355,6 +4355,26 @@ async function executePublishMemory(request, userId) {
|
|
|
4355
4355
|
spaceMemoryId: result,
|
|
4356
4356
|
spaces: request.payload.spaces
|
|
4357
4357
|
});
|
|
4358
|
+
try {
|
|
4359
|
+
await userCollection.data.update({
|
|
4360
|
+
id: request.payload.memory_id,
|
|
4361
|
+
properties: {
|
|
4362
|
+
space_memory_id: result
|
|
4363
|
+
}
|
|
4364
|
+
});
|
|
4365
|
+
logger.info("Updated original memory with space_memory_id", {
|
|
4366
|
+
function: "executePublishMemory",
|
|
4367
|
+
memoryId: request.payload.memory_id,
|
|
4368
|
+
spaceMemoryId: result
|
|
4369
|
+
});
|
|
4370
|
+
} catch (updateError) {
|
|
4371
|
+
logger.warn("Failed to update original memory with space_memory_id", {
|
|
4372
|
+
function: "executePublishMemory",
|
|
4373
|
+
memoryId: request.payload.memory_id,
|
|
4374
|
+
spaceMemoryId: result,
|
|
4375
|
+
error: updateError instanceof Error ? updateError.message : String(updateError)
|
|
4376
|
+
});
|
|
4377
|
+
}
|
|
4358
4378
|
return JSON.stringify(
|
|
4359
4379
|
{
|
|
4360
4380
|
success: true,
|
package/dist/server.js
CHANGED
|
@@ -4423,6 +4423,26 @@ async function executePublishMemory(request, userId) {
|
|
|
4423
4423
|
spaceMemoryId: result,
|
|
4424
4424
|
spaces: request.payload.spaces
|
|
4425
4425
|
});
|
|
4426
|
+
try {
|
|
4427
|
+
await userCollection.data.update({
|
|
4428
|
+
id: request.payload.memory_id,
|
|
4429
|
+
properties: {
|
|
4430
|
+
space_memory_id: result
|
|
4431
|
+
}
|
|
4432
|
+
});
|
|
4433
|
+
logger.info("Updated original memory with space_memory_id", {
|
|
4434
|
+
function: "executePublishMemory",
|
|
4435
|
+
memoryId: request.payload.memory_id,
|
|
4436
|
+
spaceMemoryId: result
|
|
4437
|
+
});
|
|
4438
|
+
} catch (updateError) {
|
|
4439
|
+
logger.warn("Failed to update original memory with space_memory_id", {
|
|
4440
|
+
function: "executePublishMemory",
|
|
4441
|
+
memoryId: request.payload.memory_id,
|
|
4442
|
+
spaceMemoryId: result,
|
|
4443
|
+
error: updateError instanceof Error ? updateError.message : String(updateError)
|
|
4444
|
+
});
|
|
4445
|
+
}
|
|
4426
4446
|
return JSON.stringify(
|
|
4427
4447
|
{
|
|
4428
4448
|
success: true,
|
package/package.json
CHANGED
package/src/tools/confirm.ts
CHANGED
|
@@ -274,6 +274,30 @@ async function executePublishMemory(
|
|
|
274
274
|
spaces: request.payload.spaces,
|
|
275
275
|
});
|
|
276
276
|
|
|
277
|
+
// Update original memory with space_memory_id for bidirectional linking
|
|
278
|
+
try {
|
|
279
|
+
await userCollection.data.update({
|
|
280
|
+
id: request.payload.memory_id,
|
|
281
|
+
properties: {
|
|
282
|
+
space_memory_id: result,
|
|
283
|
+
},
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
logger.info('Updated original memory with space_memory_id', {
|
|
287
|
+
function: 'executePublishMemory',
|
|
288
|
+
memoryId: request.payload.memory_id,
|
|
289
|
+
spaceMemoryId: result,
|
|
290
|
+
});
|
|
291
|
+
} catch (updateError) {
|
|
292
|
+
logger.warn('Failed to update original memory with space_memory_id', {
|
|
293
|
+
function: 'executePublishMemory',
|
|
294
|
+
memoryId: request.payload.memory_id,
|
|
295
|
+
spaceMemoryId: result,
|
|
296
|
+
error: updateError instanceof Error ? updateError.message : String(updateError),
|
|
297
|
+
});
|
|
298
|
+
// Don't fail the publish if this update fails - it's not critical
|
|
299
|
+
}
|
|
300
|
+
|
|
277
301
|
// Return minimal response with spaces array
|
|
278
302
|
return JSON.stringify(
|
|
279
303
|
{
|