clementine-agent 1.2.1 → 1.2.3
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/agent/assistant.js +12 -0
- package/dist/cli/dashboard.js +724 -106
- package/dist/config.d.ts +11 -0
- package/dist/config.js +16 -0
- package/dist/index.js +20 -0
- package/dist/memory/chunker.js +13 -2
- package/dist/memory/hot-cache.d.ts +38 -0
- package/dist/memory/hot-cache.js +73 -0
- package/dist/memory/integrity.d.ts +28 -0
- package/dist/memory/integrity.js +119 -0
- package/dist/memory/maintenance.d.ts +23 -2
- package/dist/memory/maintenance.js +140 -3
- package/dist/memory/seed-user-model.d.ts +3 -1
- package/dist/memory/seed-user-model.js +6 -5
- package/dist/memory/store.d.ts +259 -2
- package/dist/memory/store.js +751 -21
- package/dist/memory/write-queue.d.ts +96 -0
- package/dist/memory/write-queue.js +165 -0
- package/dist/tools/memory-tools.js +38 -1
- package/dist/types.d.ts +10 -2
- package/package.json +1 -1
package/dist/agent/assistant.js
CHANGED
|
@@ -1574,6 +1574,18 @@ You have a cost budget per message — not a hard turn limit. Work until the tas
|
|
|
1574
1574
|
- **Model:** ${modelLabel} (${resolvedModel})
|
|
1575
1575
|
- **Vault:** ${vault}
|
|
1576
1576
|
`);
|
|
1577
|
+
// Staleness nudges — high-salience user-model slots that haven't been
|
|
1578
|
+
// touched in a long time (Mem0 2026 calls this out as an open problem:
|
|
1579
|
+
// confidently-wrong memories don't decay, they just become stale). Goes
|
|
1580
|
+
// in volatile because it changes day-to-day. Skipped when nothing is
|
|
1581
|
+
// stale so we don't clutter the prompt.
|
|
1582
|
+
try {
|
|
1583
|
+
const nudge = this.memoryStore?.getStalenessNudges?.({ agentSlug: profile?.slug });
|
|
1584
|
+
if (nudge) {
|
|
1585
|
+
volatileParts.push(`## Memory Maintenance\n\n${nudge}`);
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
catch { /* best-effort; never block the prompt */ }
|
|
1577
1589
|
return {
|
|
1578
1590
|
stable: parts.join('\n\n---\n\n'),
|
|
1579
1591
|
volatile: volatileParts.join('\n\n---\n\n'),
|