@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/AGENT.md +20 -2
- package/CHANGELOG.md +27 -0
- package/agent/commands/acp.commit.md +511 -0
- package/agent/design/comment-memory-type.md +556 -0
- package/agent/design/unified-public-collection.md +545 -0
- package/agent/progress.yaml +26 -0
- package/agent/scripts/install.sh +25 -1
- package/agent/scripts/update.sh +37 -0
- package/dist/server-factory.js +6 -6
- package/dist/server.js +6 -6
- package/package.json +1 -1
- package/src/tools/confirm.ts +8 -6
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
|
-
//
|
|
3871
|
+
// Add space-specific fields
|
|
3872
3872
|
space_id: request.target_collection || "the_void",
|
|
3873
3873
|
author_id: userId,
|
|
3874
|
-
//
|
|
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
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
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
package/src/tools/confirm.ts
CHANGED
|
@@ -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
|
-
//
|
|
173
|
+
// Add space-specific fields
|
|
173
174
|
space_id: request.target_collection || 'the_void',
|
|
174
|
-
author_id: userId, //
|
|
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
|
-
|
|
191
|
+
hasUserId: !!(publishedMemory as any).user_id,
|
|
192
|
+
hasAuthorId: !!publishedMemory.author_id,
|
|
193
|
+
hasSpaceId: !!publishedMemory.space_id,
|
|
191
194
|
});
|
|
192
195
|
|
|
193
|
-
|
|
194
|
-
|
|
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,
|