clay-server 3.8.0-beta.1 → 3.8.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.
Files changed (35) hide show
  1. package/lib/builtin-mates.js +14 -14
  2. package/lib/mates.js +2 -6
  3. package/lib/project-mate-interaction.js +7 -7
  4. package/lib/project-sessions.js +1 -1
  5. package/lib/project-user-mention.js +4 -4
  6. package/lib/project.js +4 -3
  7. package/lib/public/css/avatar-imprints.css +46 -0
  8. package/lib/public/css/icon-strip.css +3 -3
  9. package/lib/public/css/profile.css +123 -95
  10. package/lib/public/css/session-actions.css +40 -9
  11. package/lib/public/css/user-settings.css +1 -1
  12. package/lib/public/index.html +2 -2
  13. package/lib/public/modules/app-cursors.js +2 -2
  14. package/lib/public/modules/app-dm.js +1 -8
  15. package/lib/public/modules/app-messages.js +2 -2
  16. package/lib/public/modules/app-projects.js +7 -6
  17. package/lib/public/modules/app-rate-limit.js +0 -1
  18. package/lib/public/modules/app-rendering.js +0 -3
  19. package/lib/public/modules/avatar-imprint.js +134 -0
  20. package/lib/public/modules/avatar.js +25 -19
  21. package/lib/public/modules/debate.js +10 -5
  22. package/lib/public/modules/mate-sidebar.js +2 -2
  23. package/lib/public/modules/mention.js +26 -16
  24. package/lib/public/modules/profile.js +73 -190
  25. package/lib/public/modules/session-actions.js +5 -3
  26. package/lib/public/modules/sidebar-mates.js +5 -4
  27. package/lib/public/modules/sidebar-sessions.js +1 -1
  28. package/lib/public/style.css +1 -0
  29. package/lib/server-auth.js +2 -2
  30. package/lib/server-dm.js +8 -8
  31. package/lib/server-mates.js +3 -3
  32. package/lib/server-settings.js +2 -2
  33. package/lib/server.js +5 -4
  34. package/lib/users.js +4 -4
  35. package/package.json +1 -1
package/lib/server.js CHANGED
@@ -355,7 +355,7 @@ function createServer(opts) {
355
355
  // origin. External sites still cannot frame Clay; frame-ancestors below
356
356
  // is the modern equivalent for browsers that honor CSP.
357
357
  "X-Frame-Options": "SAMEORIGIN",
358
- "Content-Security-Policy": "default-src 'self'; frame-ancestors 'self'; script-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net https://esm.sh; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.jsdelivr.net; img-src * data: blob:; connect-src 'self' ws: wss: https://cdn.jsdelivr.net https://esm.sh https://api.dicebear.com https://api.open-meteo.com https://ipapi.co; font-src 'self' data: https://fonts.gstatic.com https://cdn.jsdelivr.net;",
358
+ "Content-Security-Policy": "default-src 'self'; frame-ancestors 'self'; script-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net https://esm.sh; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.jsdelivr.net; img-src * data: blob:; connect-src 'self' ws: wss: https://cdn.jsdelivr.net https://esm.sh https://api.open-meteo.com https://ipapi.co; font-src 'self' data: https://fonts.gstatic.com https://cdn.jsdelivr.net;",
359
359
  };
360
360
  if (tlsOptions) {
361
361
  securityHeaders["Strict-Transport-Security"] = "max-age=31536000; includeSubDomains";
@@ -1418,8 +1418,9 @@ function createServer(opts) {
1418
1418
  id: u.id,
1419
1419
  displayName: p.name || u.displayName || u.username,
1420
1420
  username: u.username,
1421
- avatarStyle: p.avatarStyle || "thumbs",
1421
+ avatarStyle: p.avatarStyle || "imprint",
1422
1422
  avatarSeed: p.avatarSeed || u.username,
1423
+ avatarColor: p.avatarColor || "#5857fc",
1423
1424
  avatarCustom: p.avatarCustom || "",
1424
1425
  });
1425
1426
  });
@@ -1451,9 +1452,9 @@ function createServer(opts) {
1451
1452
  displayName: p.name || u.displayName || u.username,
1452
1453
  username: u.username,
1453
1454
  role: u.role,
1454
- avatarStyle: p.avatarStyle || "thumbs",
1455
+ avatarStyle: p.avatarStyle || "imprint",
1455
1456
  avatarSeed: p.avatarSeed || u.username,
1456
- avatarColor: p.avatarColor || "#7c3aed",
1457
+ avatarColor: p.avatarColor || "#5857fc",
1457
1458
  avatarCustom: p.avatarCustom || "",
1458
1459
  };
1459
1460
  });
package/lib/users.js CHANGED
@@ -81,8 +81,8 @@ function createUser(opts) {
81
81
  profile: opts.profile || {
82
82
  name: opts.displayName || opts.username,
83
83
  lang: "en-US",
84
- avatarColor: "#7c3aed",
85
- avatarStyle: "thumbs",
84
+ avatarColor: "#5857fc",
85
+ avatarStyle: "imprint",
86
86
  avatarSeed: crypto.randomBytes(4).toString("hex"),
87
87
  },
88
88
  };
@@ -315,8 +315,8 @@ function createUserWithoutPin(opts) {
315
315
  profile: opts.profile || {
316
316
  name: opts.displayName || opts.username,
317
317
  lang: "en-US",
318
- avatarColor: "#7c3aed",
319
- avatarStyle: "thumbs",
318
+ avatarColor: "#5857fc",
319
+ avatarStyle: "imprint",
320
320
  avatarSeed: crypto.randomBytes(4).toString("hex"),
321
321
  },
322
322
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clay-server",
3
- "version": "3.8.0-beta.1",
3
+ "version": "3.8.0-beta.2",
4
4
  "description": "Self-hosted team workspace for Claude Code and Codex. Multi-user, browser-based, with persistent AI mates.",
5
5
  "bin": {
6
6
  "clay-server": "./bin/cli.js",