@mingxy/opencode-mascot 0.4.15 → 0.4.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mingxy/opencode-mascot",
3
- "version": "0.4.15",
3
+ "version": "0.4.17",
4
4
  "description": "OpenCode TUI mascot plugin framework - customizable ASCII mascots for your terminal",
5
5
  "author": "mingxy",
6
6
  "license": "MIT",
@@ -138,6 +138,11 @@ const yueerEffects: MascotPack["effects"] = {
138
138
  if (faceIdx >= 0) {
139
139
  result[faceIdx] = waveSide ? "╲( ^ω^ )╱ " : " ~( ^ω^ )~";
140
140
  }
141
+ const ahogeIdx = result.findIndex((l) => l.includes("☆") || l.includes("★"));
142
+ if (ahogeIdx >= 0) {
143
+ const mark = result[ahogeIdx].includes("★") ? "★" : "☆";
144
+ result[ahogeIdx] = waveSide ? " " + mark : " " + mark;
145
+ }
141
146
  }
142
147
 
143
148
  if (stompActive) {
@@ -355,10 +355,10 @@ export function createAnimatedRenderer(pack: MascotPack): {
355
355
 
356
356
  if (s === "sleeping") {
357
357
  let phase = 1;
358
- setZzz("Z");
358
+ setZzz("");
359
359
  zzzTimer = setInterval(() => {
360
360
  phase = (phase % 3) + 1;
361
- setZzz("Z" + "z".repeat(phase - 1));
361
+ setZzz("".repeat(phase));
362
362
  }, 1500);
363
363
  } else {
364
364
  if (zzzTimer) { clearInterval(zzzTimer); zzzTimer = null; }