@mingxy/opencode-mascot 0.2.3 → 0.2.4

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.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "OpenCode TUI mascot plugin framework - customizable ASCII mascots for your terminal",
5
5
  "author": "mingxy",
6
6
  "license": "MIT",
@@ -269,8 +269,8 @@ export function createAnimatedRenderer(pack: MascotPack): {
269
269
 
270
270
  return (
271
271
  <box flexDirection="column" left={left} top={top}>
272
- {renderLines(lines, fg)}
273
272
  {cel ? <text fg={fg}>{cel.text}</text> : null}
273
+ {renderLines(lines, fg)}
274
274
  </box>
275
275
  );
276
276
  };
@@ -315,7 +315,8 @@ export function createAnimatedRenderer(pack: MascotPack): {
315
315
  // 连续跳跃 + 吐火星文泡泡庆祝更新成功
316
316
  const celebrateUpdate = (newVersion: string) => {
317
317
  const bubbles = pack.bubbleTexts ?? ["ᵘᵖ~"];
318
- if (currentState() === "sleeping") setState("idle");
318
+ setState("happy");
319
+ setFrameOverride("happy");
319
320
 
320
321
  let step = 0;
321
322
  const JUMPS = 3;
@@ -323,6 +324,8 @@ export function createAnimatedRenderer(pack: MascotPack): {
323
324
  if (step >= JUMPS) {
324
325
  setJumpOffset(0);
325
326
  setCelebrate(null);
327
+ setFrameOverride(null);
328
+ setState("idle");
326
329
  return;
327
330
  }
328
331
  setJumpOffset(step % 2 === 0 ? -2 : 0);