@tpsdev-ai/openclaw-flair 0.9.0 → 0.10.0
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/index.js +13 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -417,12 +417,20 @@ export default {
|
|
|
417
417
|
dedup: !supersedes,
|
|
418
418
|
dedupThreshold: 0.7,
|
|
419
419
|
});
|
|
420
|
-
const wasDeduped = result.id !== memId;
|
|
420
|
+
const wasDeduped = result.id !== memId || result.deduped === true;
|
|
421
421
|
return {
|
|
422
|
-
content: [{
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
422
|
+
content: [{
|
|
423
|
+
type: "text",
|
|
424
|
+
text: wasDeduped
|
|
425
|
+
? `⚠️ DEDUPLICATED — new content was NOT written. Matched existing memory id=${result.id}: ${result.content?.slice(0, 200)}`
|
|
426
|
+
: `Memory stored (id: ${memId})`,
|
|
427
|
+
}],
|
|
428
|
+
details: {
|
|
429
|
+
id: result.id,
|
|
430
|
+
deduplicated: wasDeduped,
|
|
431
|
+
written: !wasDeduped,
|
|
432
|
+
...(wasDeduped ? { mergedWith: result.id } : {}),
|
|
433
|
+
},
|
|
426
434
|
};
|
|
427
435
|
}
|
|
428
436
|
catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tpsdev-ai/openclaw-flair",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "OpenClaw memory plugin for Flair — agent identity and semantic memory",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@sinclair/typebox": "0.34.48",
|
|
61
|
-
"@tpsdev-ai/flair-client": "0.
|
|
61
|
+
"@tpsdev-ai/flair-client": "0.10.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"typescript": "5.9.3"
|