clay-server 2.38.0-beta.1 → 2.38.0-beta.2
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/builtin-mates.js +1 -1
- package/lib/mates.js +11 -0
- package/package.json +1 -1
package/lib/builtin-mates.js
CHANGED
|
@@ -20,7 +20,7 @@ var BUILTIN_MATES = [
|
|
|
20
20
|
bio: "Your workspace memory. Searches every session, project, and decision you've made and answers from the receipts. The chat surface for the home screen.",
|
|
21
21
|
avatarColor: "#7c3aed",
|
|
22
22
|
avatarStyle: "bottts",
|
|
23
|
-
avatarCustom: "/
|
|
23
|
+
avatarCustom: "/icon-banded-76.png", // Clay is the app — use the app icon
|
|
24
24
|
avatarLocked: true,
|
|
25
25
|
primary: true, // code-managed, auto-updated on startup
|
|
26
26
|
globalSearch: true, // searches all mates' sessions and projects
|
package/lib/mates.js
CHANGED
|
@@ -642,6 +642,17 @@ function syncPrimaryMates(ctx) {
|
|
|
642
642
|
if (mate.profile.displayName !== def.displayName) {
|
|
643
643
|
mate.profile.displayName = def.displayName; changed = true;
|
|
644
644
|
}
|
|
645
|
+
// Locked avatars are code-managed — refresh them from the def so a
|
|
646
|
+
// built-in's avatar can be updated by changing the source file
|
|
647
|
+
// (e.g. Clay flipping from a stale Ally asset to the app icon).
|
|
648
|
+
if (def.avatarLocked) {
|
|
649
|
+
if (def.avatarCustom != null && mate.profile.avatarCustom !== def.avatarCustom) {
|
|
650
|
+
mate.profile.avatarCustom = def.avatarCustom; changed = true;
|
|
651
|
+
}
|
|
652
|
+
if (def.avatarColor && mate.profile.avatarColor !== def.avatarColor) {
|
|
653
|
+
mate.profile.avatarColor = def.avatarColor; changed = true;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
645
656
|
}
|
|
646
657
|
|
|
647
658
|
// --- Sync CLAUDE.md identity (only when templateVersion changes) ---
|
package/package.json
CHANGED