@mingxy/opencode-mascot 0.4.36 → 0.4.37

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.36",
3
+ "version": "0.4.37",
4
4
  "description": "OpenCode TUI mascot plugin framework - customizable ASCII mascots for your terminal",
5
5
  "author": "mingxy",
6
6
  "license": "MIT",
@@ -44,6 +44,7 @@ export function SidebarMascot(props: SidebarMascotProps): JSX.Element {
44
44
  const [posY, setPosY] = createSignal(2);
45
45
  const [containerWidth, setContainerWidth] = createSignal(0);
46
46
  const [zBoost, setZBoost] = createSignal(false);
47
+ let firstStatus = true;
47
48
  let dragStartX = 0;
48
49
  let dragStartY = 0;
49
50
  let dragAnchorX = 0;
@@ -146,6 +147,10 @@ export function SidebarMascot(props: SidebarMascotProps): JSX.Element {
146
147
  props.api.event.on("session.status", (data: unknown) => {
147
148
  const payload = data as { type?: string; properties?: { sessionID?: string; status?: { type?: string } } } | null;
148
149
  const statusType = payload?.properties?.status?.type;
150
+ if (firstStatus) {
151
+ firstStatus = false;
152
+ renderers[currentName()].scatterIn();
153
+ }
149
154
  if (statusType === "busy" || statusType === "retry") {
150
155
  if (hideSide) returnToView();
151
156
  renderers[currentName()].setState("busy");