privateboard 0.1.40 → 0.1.41

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/boot.js CHANGED
@@ -1650,6 +1650,7 @@ function parseAvatar3d(json) {
1650
1650
  };
1651
1651
  if (typeof o.browStyle === "string" && o.browStyle) cfg.browStyle = o.browStyle;
1652
1652
  if (typeof o.tieStyle === "string" && o.tieStyle) cfg.tieStyle = o.tieStyle;
1653
+ if (typeof o.eyeStyle === "string" && o.eyeStyle) cfg.eyeStyle = o.eyeStyle;
1653
1654
  if (typeof o.tie === "string" && HEX6_RE.test(o.tie)) cfg.tie = o.tie;
1654
1655
  if (typeof o.eye === "string" && HEX6_RE.test(o.eye)) cfg.eye = o.eye;
1655
1656
  return cfg;
@@ -2821,6 +2822,9 @@ function runSeed() {
2821
2822
  if (!existing.avatar3d && d.avatar3d) {
2822
2823
  updateAgent(d.id, { avatar3d: d.avatar3d });
2823
2824
  }
2825
+ if (existing.avatarPath === `/avatars/${d.id}.svg`) {
2826
+ updateAgent(d.id, { avatarPath: d.avatarPath });
2827
+ }
2824
2828
  }
2825
2829
  }
2826
2830
  const existingChair = getAgent(CHAIR_ID);
@@ -9096,7 +9100,7 @@ function agentsRouter() {
9096
9100
  const roleTag = typeof b.roleTag === "string" && b.roleTag.trim().length > 0 ? b.roleTag.trim().slice(0, 80) : "director";
9097
9101
  const bio = typeof b.bio === "string" && b.bio.trim().length >= BIO_MIN ? b.bio.trim().slice(0, BIO_MAX) : partial.description ? partial.description.slice(0, BIO_MAX) : `A custom director built via deep persona replication.`;
9098
9102
  const coverQuote = typeof b.coverQuote === "string" ? b.coverQuote.trim().slice(0, 220) : null;
9099
- const avatarPath = typeof b.avatarPath === "string" && isValidAvatar(b.avatarPath) ? b.avatarPath : "/avatars/socrates.svg";
9103
+ const avatarPath = typeof b.avatarPath === "string" && isValidAvatar(b.avatarPath) ? b.avatarPath : "/avatars/3d/socrates.png";
9100
9104
  const ability = parseAbilityFromRequest(b.ability) ?? synthesizeAbility(`${bio} ${roleTag} ${partial.description}`);
9101
9105
  const finalSpec = { ...partial, description: partial.description || job.description };
9102
9106
  const instructionOverride = typeof b.instruction === "string" ? b.instruction.trim() : "";
@@ -9173,7 +9177,7 @@ function agentsRouter() {
9173
9177
  return c.json({ error: `unknown model: ${modelV}` }, 400);
9174
9178
  }
9175
9179
  const rawAvatar = typeof b.avatarPath === "string" ? b.avatarPath : "";
9176
- const avatarPath = rawAvatar && isValidAvatar(rawAvatar) ? rawAvatar : "/avatars/socrates.svg";
9180
+ const avatarPath = rawAvatar && isValidAvatar(rawAvatar) ? rawAvatar : "/avatars/3d/socrates.png";
9177
9181
  let roleTag = typeof b.roleTag === "string" ? b.roleTag.trim() : "";
9178
9182
  if (!roleTag) {
9179
9183
  const firstWord = bio.split(/\s+/)[0]?.toLowerCase() || "";
@@ -27125,7 +27129,7 @@ function voicesRouter() {
27125
27129
  init_paths();
27126
27130
 
27127
27131
  // src/version.ts
27128
- var VERSION = "0.1.40";
27132
+ var VERSION = "0.1.41";
27129
27133
 
27130
27134
  // src/utils/render-picker-catalog.ts
27131
27135
  function renderPickerCatalog() {