agent-afk 5.52.1 → 5.53.0

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.
@@ -2,6 +2,7 @@ export declare function detectCaptureMode(env?: NodeJS.ProcessEnv): boolean;
2
2
  export declare function detectBell(env?: NodeJS.ProcessEnv): boolean;
3
3
  export declare function detectReducedMotion(env?: NodeJS.ProcessEnv): boolean;
4
4
  export declare function detectCaretBlink(env?: NodeJS.ProcessEnv): boolean;
5
+ export declare function detectGoblinSpinner(env?: NodeJS.ProcessEnv): boolean;
5
6
  export declare function ringBellIfEnabled(stream: {
6
7
  write(s: string): unknown;
7
8
  isTTY?: boolean;
@@ -1,4 +1,6 @@
1
1
  export declare const SPINNER_VERBS: string[];
2
+ export declare const GOBLIN_SPINNER_VERBS: string[];
2
3
  export declare const COMPLETION_VERBS: Record<string, string>;
3
4
  export declare function pickRandomVerb(): string;
5
+ export declare function pickRandomGoblinVerb(): string;
4
6
  export declare function getCompletionVerb(verb: string): string;
@@ -1,13 +1,16 @@
1
1
  export interface SpinnerControllerOptions {
2
2
  captureMode: boolean;
3
3
  onTick: () => void;
4
+ goblin?: boolean;
4
5
  }
5
6
  export declare class SpinnerController {
6
7
  private state;
7
8
  private interval;
8
9
  private readonly captureMode;
9
10
  private readonly onTick;
11
+ private readonly goblin;
10
12
  constructor(opts: SpinnerControllerOptions);
13
+ private pickVerb;
11
14
  set(config: {
12
15
  enabled: boolean;
13
16
  rotateVerbEveryMs?: number;
@@ -1,6 +1,11 @@
1
1
  export type MascotState = 'idle' | 'working' | 'alert';
2
- export declare const MASCOT_WIDTH = 19;
3
- export declare const MASCOT_HEIGHT = 8;
2
+ export declare const MASCOT_WIDTH = 27;
3
+ export declare const MASCOT_HEIGHT = 13;
4
4
  export declare function renderMascotLines(state?: MascotState): string[];
5
5
  export declare function mascotSuppressed(): boolean;
6
6
  export declare const __GOBLIN_GRID_FOR_TESTS: readonly string[];
7
+ export declare const __GLYPH_OVERLAY_FOR_TESTS: Readonly<Record<string, {
8
+ char: string;
9
+ fg: string;
10
+ bg: string;
11
+ }>>;
@@ -0,0 +1,4 @@
1
+ export declare const ASCII_WORDMARK_HEIGHT = 5;
2
+ export declare const WORDMARK_TEXT = "AGENT AFK";
3
+ export declare function renderAsciiWordmark(text: string): string[];
4
+ export declare function asciiWordmarkWidth(text: string): number;
@@ -70,6 +70,7 @@ export interface TerminalCompositorOptions {
70
70
  formatInputBuffer?: (segment: string) => string;
71
71
  scrollRegion?: CompositorScrollRegionGuard;
72
72
  captureMode?: boolean;
73
+ goblinSpinner?: boolean;
73
74
  caretBlink?: boolean;
74
75
  caretBlinkIntervalMs?: number;
75
76
  anchorRow?: number;