@mingxy/opencode-mascot 0.7.10 → 0.7.11
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
|
@@ -6,6 +6,7 @@ import type { MascotPack, MascotState } from "../core/types";
|
|
|
6
6
|
import { createAnimatedRenderer } from "../core/ascii-renderer";
|
|
7
7
|
import { onCelebrate, onVersion, onScatter } from "../core/celebration-bus";
|
|
8
8
|
import { pickPropByTrigger } from "../core/prop-loader";
|
|
9
|
+
import { log } from "../core/logger";
|
|
9
10
|
|
|
10
11
|
interface SidebarMascotProps {
|
|
11
12
|
mascots: Record<string, MascotPack>;
|
|
@@ -156,6 +157,7 @@ export function SidebarMascot(props: SidebarMascotProps): JSX.Element {
|
|
|
156
157
|
props.api.event.on("session.status", (data: unknown) => {
|
|
157
158
|
const payload = data as { type?: string; properties?: { sessionID?: string; status?: { type?: string } } } | null;
|
|
158
159
|
const statusType = payload?.properties?.status?.type;
|
|
160
|
+
log("DEBUG", `session.status: statusType=${statusType}, full=${JSON.stringify(payload)?.slice(0, 200)}`);
|
|
159
161
|
if (statusType === "busy" || statusType === "retry") {
|
|
160
162
|
if (hideSide) returnToView();
|
|
161
163
|
renderers[currentName()].setState("busy");
|