agent-afk 5.240.0 → 5.240.1

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.
@@ -0,0 +1,11 @@
1
+ import type { Writable } from 'node:stream';
2
+ export declare class CupWriteBatcher {
3
+ private readonly stream;
4
+ private buffer;
5
+ constructor(stream: NodeJS.WriteStream & Writable);
6
+ get isTTY(): boolean;
7
+ append(seq: string): void;
8
+ beginFrame(): void;
9
+ flush(): void;
10
+ writeAtomic(seq: string): void;
11
+ }
@@ -0,0 +1,12 @@
1
+ export declare class CupCursorTracker {
2
+ private _previousTopRow;
3
+ private _previousLineCount;
4
+ private _previousRawLineCount;
5
+ eraseBottomOverride: number | undefined;
6
+ get previousTopRow(): number;
7
+ get previousLineCount(): number;
8
+ get previousRawLineCount(): number;
9
+ commit(topRow: number, lineCount: number, rawLineCount: number): void;
10
+ consumeEraseBottomOverride(): number | undefined;
11
+ reset(): void;
12
+ }
@@ -1,10 +1,8 @@
1
1
  import type { Writable } from 'node:stream';
2
2
  export declare class CupFrameRenderer {
3
3
  private readonly stream;
4
- private previousTopRow;
5
- private previousLineCount;
6
- private previousRawLineCount;
7
- private eraseBottomOverride;
4
+ private readonly cursor;
5
+ private readonly batcher;
8
6
  constructor(stream: NodeJS.WriteStream & Writable);
9
7
  setEraseBottomOverride(row: number): void;
10
8
  get topRow(): number;
@@ -0,0 +1,6 @@
1
+ export declare const SYNC_START = "\u001B[?2026h";
2
+ export declare const SYNC_END = "\u001B[?2026l";
3
+ export declare const cup: (row: number, col: number) => string;
4
+ export declare const ERASE_LINE = "\u001B[2K";
5
+ export declare const CURSOR_HIDE = "\u001B[?25l";
6
+ export declare const CURSOR_SHOW = "\u001B[?25h";