@prmichaelsen/remember-mcp 2.3.1 → 2.3.4

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/dist/server.js CHANGED
@@ -3868,10 +3868,10 @@ async function executePublishMemory(request, userId) {
3868
3868
  const additionalTags = Array.isArray(request.payload.additional_tags) ? request.payload.additional_tags : [];
3869
3869
  const publishedMemory = {
3870
3870
  ...originalMemory.properties,
3871
- // Override specific fields
3871
+ // Add space-specific fields
3872
3872
  space_id: request.target_collection || "the_void",
3873
3873
  author_id: userId,
3874
- // Always attributed
3874
+ // Track original author
3875
3875
  published_at: (/* @__PURE__ */ new Date()).toISOString(),
3876
3876
  discovery_count: 0,
3877
3877
  doc_type: "space_memory",
@@ -3886,11 +3886,11 @@ async function executePublishMemory(request, userId) {
3886
3886
  console.log("[executePublishMemory] Inserting into space collection:", {
3887
3887
  spaceId: request.target_collection || "the_void",
3888
3888
  memoryId: request.payload.memory_id,
3889
- hasProperties: !!publishedMemory
3890
- });
3891
- const result = await targetCollection.data.insert({
3892
- properties: publishedMemory
3889
+ hasUserId: !!publishedMemory.user_id,
3890
+ hasAuthorId: !!publishedMemory.author_id,
3891
+ hasSpaceId: !!publishedMemory.space_id
3893
3892
  });
3893
+ const result = await targetCollection.data.insert(publishedMemory);
3894
3894
  console.log("[executePublishMemory] Insert result:", {
3895
3895
  success: !!result,
3896
3896
  spaceMemoryId: result
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prmichaelsen/remember-mcp",
3
- "version": "2.3.1",
3
+ "version": "2.3.4",
4
4
  "description": "Multi-tenant memory system MCP server with vector search and relationships",
5
5
  "main": "dist/server.js",
6
6
  "type": "module",
@@ -167,11 +167,12 @@ async function executePublishMemory(
167
167
  ? request.payload.additional_tags
168
168
  : [];
169
169
 
170
+ // Create published memory with space-specific fields
170
171
  const publishedMemory = {
171
172
  ...originalMemory.properties,
172
- // Override specific fields
173
+ // Add space-specific fields
173
174
  space_id: request.target_collection || 'the_void',
174
- author_id: userId, // Always attributed
175
+ author_id: userId, // Track original author
175
176
  published_at: new Date().toISOString(),
176
177
  discovery_count: 0,
177
178
  doc_type: 'space_memory',
@@ -187,12 +188,13 @@ async function executePublishMemory(
187
188
  console.log('[executePublishMemory] Inserting into space collection:', {
188
189
  spaceId: request.target_collection || 'the_void',
189
190
  memoryId: request.payload.memory_id,
190
- hasProperties: !!publishedMemory,
191
+ hasUserId: !!(publishedMemory as any).user_id,
192
+ hasAuthorId: !!publishedMemory.author_id,
193
+ hasSpaceId: !!publishedMemory.space_id,
191
194
  });
192
195
 
193
- const result = await targetCollection.data.insert({
194
- properties: publishedMemory as any,
195
- });
196
+ // Insert directly - publishedMemory is already the properties object
197
+ const result = await targetCollection.data.insert(publishedMemory as any);
196
198
 
197
199
  console.log('[executePublishMemory] Insert result:', {
198
200
  success: !!result,