agent-afk 5.93.0 → 5.93.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.
- package/dist/cli/commands/interactive/footer-subsystems.d.ts +2 -4
- package/dist/cli/commands/interactive/mascot-bar.d.ts +41 -0
- package/dist/cli/commands/interactive/surface-setup.d.ts +2 -2
- package/dist/cli.mjs +483 -483
- package/dist/index.mjs +2 -2
- package/dist/telegram.mjs +2 -2
- package/package.json +1 -1
- package/dist/cli/commands/interactive/mascot-band.d.ts +0 -26
- package/dist/cli/commands/interactive/mascot-live.d.ts +0 -28
|
@@ -3,8 +3,7 @@ import { createContextPane } from './context-pane.js';
|
|
|
3
3
|
import { createVerdictLedger } from './verdict-ledger.js';
|
|
4
4
|
import { BackgroundStatusBar } from '../../background-status-bar.js';
|
|
5
5
|
import { LoopStageBar } from './loop-stage.js';
|
|
6
|
-
import {
|
|
7
|
-
import { MascotBand } from './mascot-band.js';
|
|
6
|
+
import { MascotBar } from './mascot-bar.js';
|
|
8
7
|
import { ShellPassthrough } from './shell-passthrough.js';
|
|
9
8
|
import { BgResultNotifier } from './bg-result-notifier.js';
|
|
10
9
|
import type { TurnState } from './repl-loop-shared.js';
|
|
@@ -12,8 +11,7 @@ export interface FooterSubsystems {
|
|
|
12
11
|
contextPane: ReturnType<typeof createContextPane>;
|
|
13
12
|
bgStatusBar: BackgroundStatusBar;
|
|
14
13
|
loopStageBar: LoopStageBar;
|
|
15
|
-
|
|
16
|
-
mascotBand: MascotBand;
|
|
14
|
+
mascotBar: MascotBar;
|
|
17
15
|
verdictLedger: ReturnType<typeof createVerdictLedger>;
|
|
18
16
|
shellPassthrough: ShellPassthrough;
|
|
19
17
|
bgResultNotifier: BgResultNotifier;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type MascotState } from '../../mascot.js';
|
|
2
|
+
import type { LoopStage } from './loop-stage.js';
|
|
3
|
+
export declare const MASCOT_BAR_ROWS = 3;
|
|
4
|
+
export declare const MASCOT_BAR_MIN_CONTENT_ROWS = 8;
|
|
5
|
+
export declare class MascotBar {
|
|
6
|
+
private readonly stream;
|
|
7
|
+
private readonly getAdjacentRows;
|
|
8
|
+
private readonly frameMs;
|
|
9
|
+
private started;
|
|
10
|
+
private state;
|
|
11
|
+
private frame;
|
|
12
|
+
private rowCount;
|
|
13
|
+
private lastStartRow;
|
|
14
|
+
private lastRowCount;
|
|
15
|
+
private timer;
|
|
16
|
+
private stageState;
|
|
17
|
+
private alertTimer;
|
|
18
|
+
private resizeUnsub;
|
|
19
|
+
private onRowCountChange?;
|
|
20
|
+
constructor(opts: {
|
|
21
|
+
getAdjacentRows: () => number;
|
|
22
|
+
stream?: NodeJS.WriteStream;
|
|
23
|
+
frameMs?: number;
|
|
24
|
+
});
|
|
25
|
+
setRowCountChangeHandler(handler: (rows: number) => void): void;
|
|
26
|
+
stop(): void;
|
|
27
|
+
start(): void;
|
|
28
|
+
setState(state: MascotState): void;
|
|
29
|
+
onStage(stage: LoopStage, signals?: {
|
|
30
|
+
toolErrored?: boolean;
|
|
31
|
+
}): void;
|
|
32
|
+
redraw(): void;
|
|
33
|
+
getRowCount(): number;
|
|
34
|
+
private clearBand;
|
|
35
|
+
private repaint;
|
|
36
|
+
private visibleRows;
|
|
37
|
+
private clearAlertTimer;
|
|
38
|
+
private flashAlert;
|
|
39
|
+
private stopTimer;
|
|
40
|
+
private startTimer;
|
|
41
|
+
}
|
|
@@ -2,11 +2,11 @@ import type { InputSurface } from '../../input/input-surface.js';
|
|
|
2
2
|
import type { InteractiveCtx } from './shared.js';
|
|
3
3
|
import type { TranscriptHandle } from './transcript.js';
|
|
4
4
|
import type { LoopStageBar } from './loop-stage.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { MascotBar } from './mascot-bar.js';
|
|
6
6
|
import { type TurnState } from './repl-loop-shared.js';
|
|
7
7
|
export interface SurfaceSetupDeps {
|
|
8
8
|
getLoopStageBar: () => LoopStageBar | undefined;
|
|
9
|
-
|
|
9
|
+
getMascotBar: () => MascotBar | undefined;
|
|
10
10
|
}
|
|
11
11
|
export interface SurfaceSetupResult {
|
|
12
12
|
installSoftStop: (handler: (() => void) | null) => void;
|