@prmichaelsen/remember-mcp 1.0.5 → 1.0.6
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-factory.js
CHANGED
|
@@ -1393,7 +1393,9 @@ async function handleCreateMemory(args, userId, context) {
|
|
|
1393
1393
|
base_weight: args.weight ?? 0.5,
|
|
1394
1394
|
computed_weight: args.weight ?? 0.5
|
|
1395
1395
|
};
|
|
1396
|
-
const result = await collection.data.insert(
|
|
1396
|
+
const result = await collection.data.insert({
|
|
1397
|
+
properties: memory
|
|
1398
|
+
});
|
|
1397
1399
|
logger.info("Memory created successfully", { memoryId: result, userId });
|
|
1398
1400
|
const response = {
|
|
1399
1401
|
memory_id: result,
|
|
@@ -2292,7 +2294,9 @@ async function handleCreateRelationship(args, userId, context) {
|
|
|
2292
2294
|
version: 1,
|
|
2293
2295
|
tags: args.tags || []
|
|
2294
2296
|
};
|
|
2295
|
-
const relationshipId = await collection.data.insert(
|
|
2297
|
+
const relationshipId = await collection.data.insert({
|
|
2298
|
+
properties: relationship
|
|
2299
|
+
});
|
|
2296
2300
|
logger.info("Relationship created, updating connected memories", {
|
|
2297
2301
|
relationshipId,
|
|
2298
2302
|
userId
|
package/dist/server.js
CHANGED
|
@@ -1322,7 +1322,9 @@ async function handleCreateMemory(args, userId, context) {
|
|
|
1322
1322
|
base_weight: args.weight ?? 0.5,
|
|
1323
1323
|
computed_weight: args.weight ?? 0.5
|
|
1324
1324
|
};
|
|
1325
|
-
const result = await collection.data.insert(
|
|
1325
|
+
const result = await collection.data.insert({
|
|
1326
|
+
properties: memory
|
|
1327
|
+
});
|
|
1326
1328
|
logger.info("Memory created successfully", { memoryId: result, userId });
|
|
1327
1329
|
const response = {
|
|
1328
1330
|
memory_id: result,
|
|
@@ -2221,7 +2223,9 @@ async function handleCreateRelationship(args, userId, context) {
|
|
|
2221
2223
|
version: 1,
|
|
2222
2224
|
tags: args.tags || []
|
|
2223
2225
|
};
|
|
2224
|
-
const relationshipId = await collection.data.insert(
|
|
2226
|
+
const relationshipId = await collection.data.insert({
|
|
2227
|
+
properties: relationship
|
|
2228
|
+
});
|
|
2225
2229
|
logger.info("Relationship created, updating connected memories", {
|
|
2226
2230
|
relationshipId,
|
|
2227
2231
|
userId
|
package/package.json
CHANGED
|
@@ -180,8 +180,11 @@ export async function handleCreateMemory(
|
|
|
180
180
|
computed_weight: args.weight ?? 0.5,
|
|
181
181
|
};
|
|
182
182
|
|
|
183
|
-
// Insert into Weaviate
|
|
184
|
-
|
|
183
|
+
// Insert into Weaviate v3 API
|
|
184
|
+
// v3 expects: { properties: {...} }
|
|
185
|
+
const result = await collection.data.insert({
|
|
186
|
+
properties: memory as any,
|
|
187
|
+
});
|
|
185
188
|
|
|
186
189
|
logger.info('Memory created successfully', { memoryId: result, userId });
|
|
187
190
|
|
|
@@ -182,8 +182,11 @@ export async function handleCreateRelationship(
|
|
|
182
182
|
tags: args.tags || [],
|
|
183
183
|
};
|
|
184
184
|
|
|
185
|
-
// Insert relationship into Weaviate
|
|
186
|
-
|
|
185
|
+
// Insert relationship into Weaviate v3 API
|
|
186
|
+
// v3 expects: { properties: {...} }
|
|
187
|
+
const relationshipId = await collection.data.insert({
|
|
188
|
+
properties: relationship as any,
|
|
189
|
+
});
|
|
187
190
|
|
|
188
191
|
logger.info('Relationship created, updating connected memories', {
|
|
189
192
|
relationshipId,
|