@joshuaswarren/openclaw-engram 8.3.4 → 8.3.5
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 +14 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4090,6 +4090,12 @@ function serializeFrontmatter(fm) {
|
|
|
4090
4090
|
if (fm.supersededBy) lines.push(`supersededBy: ${fm.supersededBy}`);
|
|
4091
4091
|
if (fm.supersededAt) lines.push(`supersededAt: ${fm.supersededAt}`);
|
|
4092
4092
|
if (fm.archivedAt) lines.push(`archivedAt: ${fm.archivedAt}`);
|
|
4093
|
+
if (fm.lifecycleState) lines.push(`lifecycleState: ${fm.lifecycleState}`);
|
|
4094
|
+
if (fm.verificationState) lines.push(`verificationState: ${fm.verificationState}`);
|
|
4095
|
+
if (fm.policyClass) lines.push(`policyClass: ${fm.policyClass}`);
|
|
4096
|
+
if (fm.lastValidatedAt) lines.push(`lastValidatedAt: ${fm.lastValidatedAt}`);
|
|
4097
|
+
if (fm.decayScore !== void 0) lines.push(`decayScore: ${fm.decayScore}`);
|
|
4098
|
+
if (fm.heatScore !== void 0) lines.push(`heatScore: ${fm.heatScore}`);
|
|
4093
4099
|
if (fm.accessCount !== void 0 && fm.accessCount > 0) {
|
|
4094
4100
|
lines.push(`accessCount: ${fm.accessCount}`);
|
|
4095
4101
|
}
|
|
@@ -4161,6 +4167,8 @@ function parseFrontmatter(raw) {
|
|
|
4161
4167
|
lineage = lineageMatch[1].split(",").map((l) => l.trim().replace(/^"|"$/g, "")).filter(Boolean);
|
|
4162
4168
|
}
|
|
4163
4169
|
const accessCount = fm.accessCount ? parseInt(fm.accessCount, 10) : void 0;
|
|
4170
|
+
const decayScore = fm.decayScore !== void 0 ? parseFloat(fm.decayScore) : void 0;
|
|
4171
|
+
const heatScore = fm.heatScore !== void 0 ? parseFloat(fm.heatScore) : void 0;
|
|
4164
4172
|
let importance;
|
|
4165
4173
|
if (fm.importanceScore) {
|
|
4166
4174
|
const score = parseFloat(fm.importanceScore);
|
|
@@ -4198,6 +4206,12 @@ function parseFrontmatter(raw) {
|
|
|
4198
4206
|
supersededBy: fm.supersededBy || void 0,
|
|
4199
4207
|
supersededAt: fm.supersededAt || void 0,
|
|
4200
4208
|
archivedAt: fm.archivedAt || void 0,
|
|
4209
|
+
lifecycleState: fm.lifecycleState || void 0,
|
|
4210
|
+
verificationState: fm.verificationState || void 0,
|
|
4211
|
+
policyClass: fm.policyClass || void 0,
|
|
4212
|
+
lastValidatedAt: fm.lastValidatedAt || void 0,
|
|
4213
|
+
decayScore: Number.isFinite(decayScore) ? decayScore : void 0,
|
|
4214
|
+
heatScore: Number.isFinite(heatScore) ? heatScore : void 0,
|
|
4201
4215
|
// Access tracking
|
|
4202
4216
|
accessCount: accessCount && accessCount > 0 ? accessCount : void 0,
|
|
4203
4217
|
lastAccessed: fm.lastAccessed || void 0,
|