@mingxy/opencode-mascot 0.4.16 → 0.4.18

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.16",
3
+ "version": "0.4.18",
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) {
@@ -112,7 +112,7 @@ export function createAnimatedRenderer(pack: MascotPack): {
112
112
  if (currentState() !== "idle") return;
113
113
  idleSleepTimeout = setTimeout(() => {
114
114
  if (currentState() === "idle") {
115
- setCurrentState("sleeping");
115
+ setState("sleeping");
116
116
  stopWalk();
117
117
  }
118
118
  }, anim.idleTimeout);