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/cli.js CHANGED
@@ -1654,6 +1654,7 @@ function parseAvatar3d(json) {
1654
1654
  };
1655
1655
  if (typeof o.browStyle === "string" && o.browStyle) cfg.browStyle = o.browStyle;
1656
1656
  if (typeof o.tieStyle === "string" && o.tieStyle) cfg.tieStyle = o.tieStyle;
1657
+ if (typeof o.eyeStyle === "string" && o.eyeStyle) cfg.eyeStyle = o.eyeStyle;
1657
1658
  if (typeof o.tie === "string" && HEX6_RE.test(o.tie)) cfg.tie = o.tie;
1658
1659
  if (typeof o.eye === "string" && HEX6_RE.test(o.eye)) cfg.eye = o.eye;
1659
1660
  return cfg;
@@ -2825,6 +2826,9 @@ function runSeed() {
2825
2826
  if (!existing.avatar3d && d.avatar3d) {
2826
2827
  updateAgent(d.id, { avatar3d: d.avatar3d });
2827
2828
  }
2829
+ if (existing.avatarPath === `/avatars/${d.id}.svg`) {
2830
+ updateAgent(d.id, { avatarPath: d.avatarPath });
2831
+ }
2828
2832
  }
2829
2833
  }
2830
2834
  const existingChair = getAgent(CHAIR_ID);
@@ -9100,7 +9104,7 @@ function agentsRouter() {
9100
9104
  const roleTag = typeof b.roleTag === "string" && b.roleTag.trim().length > 0 ? b.roleTag.trim().slice(0, 80) : "director";
9101
9105
  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.`;
9102
9106
  const coverQuote = typeof b.coverQuote === "string" ? b.coverQuote.trim().slice(0, 220) : null;
9103
- const avatarPath = typeof b.avatarPath === "string" && isValidAvatar(b.avatarPath) ? b.avatarPath : "/avatars/socrates.svg";
9107
+ const avatarPath = typeof b.avatarPath === "string" && isValidAvatar(b.avatarPath) ? b.avatarPath : "/avatars/3d/socrates.png";
9104
9108
  const ability = parseAbilityFromRequest(b.ability) ?? synthesizeAbility(`${bio} ${roleTag} ${partial.description}`);
9105
9109
  const finalSpec = { ...partial, description: partial.description || job.description };
9106
9110
  const instructionOverride = typeof b.instruction === "string" ? b.instruction.trim() : "";
@@ -9177,7 +9181,7 @@ function agentsRouter() {
9177
9181
  return c.json({ error: `unknown model: ${modelV}` }, 400);
9178
9182
  }
9179
9183
  const rawAvatar = typeof b.avatarPath === "string" ? b.avatarPath : "";
9180
- const avatarPath = rawAvatar && isValidAvatar(rawAvatar) ? rawAvatar : "/avatars/socrates.svg";
9184
+ const avatarPath = rawAvatar && isValidAvatar(rawAvatar) ? rawAvatar : "/avatars/3d/socrates.png";
9181
9185
  let roleTag = typeof b.roleTag === "string" ? b.roleTag.trim() : "";
9182
9186
  if (!roleTag) {
9183
9187
  const firstWord = bio.split(/\s+/)[0]?.toLowerCase() || "";
@@ -27129,7 +27133,7 @@ function voicesRouter() {
27129
27133
  init_paths();
27130
27134
 
27131
27135
  // src/version.ts
27132
- var VERSION = "0.1.40";
27136
+ var VERSION = "0.1.41";
27133
27137
 
27134
27138
  // src/utils/render-picker-catalog.ts
27135
27139
  function renderPickerCatalog() {