repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by bugabinga
pi/agent/extensions/animations/types.ts
RawFile outline
import type { ThemeColors } from "./theme-colors";
export type AnimPhase = "thinking" | "working" | "tool";
export type AnimationFn = (
frame: number,
width: number,
phase?: AnimPhase,
colors?: ThemeColors,
) => string | string[];
export type AnimCategory = "thinking" | "working" | "both";
export interface AnimationDef {
name: string;
fn: AnimationFn;
category: AnimCategory;
description: string;
lines: number;
}
export const PHASE_LABELS: Record<AnimPhase, string> = {
thinking: "Thinking",
working: "Working",
tool: "Running",
};