clay-server 2.18.0-beta.3 → 2.18.0-beta.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/lib/project.js +22 -1
- package/lib/public/css/mates.css +6 -2
- package/package.json +1 -1
package/lib/project.js
CHANGED
|
@@ -3797,8 +3797,29 @@ function createProjectContext(opts) {
|
|
|
3797
3797
|
// CLAUDE.md may not exist for new mates
|
|
3798
3798
|
}
|
|
3799
3799
|
|
|
3800
|
+
// Load recent session digests for context continuity
|
|
3801
|
+
var recentDigests = "";
|
|
3802
|
+
try {
|
|
3803
|
+
var digestFile = path.join(mateDir, "knowledge", "session-digests.jsonl");
|
|
3804
|
+
if (fs.existsSync(digestFile)) {
|
|
3805
|
+
var allLines = fs.readFileSync(digestFile, "utf8").trim().split("\n");
|
|
3806
|
+
var recent = allLines.slice(-5); // last 5 digests
|
|
3807
|
+
if (recent.length > 0) {
|
|
3808
|
+
recentDigests = "\n\nYour recent session memories (from past @mentions):\n";
|
|
3809
|
+
for (var di = 0; di < recent.length; di++) {
|
|
3810
|
+
try {
|
|
3811
|
+
var d = JSON.parse(recent[di]);
|
|
3812
|
+
recentDigests += "- [" + (d.date || "?") + "] " + (d.topic || "unknown") + ": " + (d.my_position || "") +
|
|
3813
|
+
(d.decisions ? " | Decisions: " + d.decisions : "") +
|
|
3814
|
+
(d.open_items ? " | Open: " + d.open_items : "") + "\n";
|
|
3815
|
+
} catch (e) {}
|
|
3816
|
+
}
|
|
3817
|
+
}
|
|
3818
|
+
}
|
|
3819
|
+
} catch (e) {}
|
|
3820
|
+
|
|
3800
3821
|
// Build initial mention context
|
|
3801
|
-
var mentionContext = buildMentionContext(userName, recentTurns);
|
|
3822
|
+
var mentionContext = buildMentionContext(userName, recentTurns) + recentDigests;
|
|
3802
3823
|
|
|
3803
3824
|
// Create new persistent mention session
|
|
3804
3825
|
sdk.createMentionSession({
|
package/lib/public/css/mates.css
CHANGED
|
@@ -2002,10 +2002,14 @@ body.mate-dm-active .ask-user-container:not(.mate-ask-user),
|
|
|
2002
2002
|
body.mate-dm-active .subagent-log,
|
|
2003
2003
|
body.mate-dm-active .conflict-msg,
|
|
2004
2004
|
body.mate-dm-active .context-overflow-msg,
|
|
2005
|
-
body.mate-dm-active .sys-msg
|
|
2006
|
-
body.mate-dm-active .activity-inline:not(.mention-activity-bar) {
|
|
2005
|
+
body.mate-dm-active .sys-msg {
|
|
2007
2006
|
display: none;
|
|
2008
2007
|
}
|
|
2008
|
+
body.mate-dm-active .activity-inline:not(.mention-activity-bar) {
|
|
2009
|
+
padding-left: 60px;
|
|
2010
|
+
margin-left: 0;
|
|
2011
|
+
margin-right: 0;
|
|
2012
|
+
}
|
|
2009
2013
|
|
|
2010
2014
|
/* ==========================================================================
|
|
2011
2015
|
Mobile Mate DM Title Bar
|