agent-afk 5.295.3 → 5.295.5

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.
@@ -1,4 +1,5 @@
1
1
  export declare const DELIVERED_RETENTION_INTERVAL_MS: number;
2
+ export declare const UNACKED_RETENTION_MAX_AGE_MS: number;
2
3
  export declare const DELIVERED_RECEIPT_MAX_AGE_MS: number;
3
4
  export interface PruneDeliveredReceiptsOpts {
4
5
  sessionId: string;
@@ -12,5 +13,6 @@ export interface PruneResult {
12
13
  pruned: number;
13
14
  skippedHasPending: number;
14
15
  skippedFresh: number;
16
+ skippedUnacked: number;
15
17
  }
16
18
  export declare function pruneDeliveredReceipts(opts: PruneDeliveredReceiptsOpts): Promise<PruneResult>;
@@ -22,6 +22,8 @@ export declare function dropHeld(sessionId: string, file: string): Promise<boole
22
22
  export declare function countPending(sessionId: string): Promise<number>;
23
23
  export declare function reclaimDelivered(sessionId: string, file: string): Promise<boolean>;
24
24
  export declare function findDeliveredEnvelope(sessionId: string, messageId: string): Promise<PeerEnvelope | null>;
25
+ export declare function writeInjectionAck(sessionId: string, file: string): Promise<void>;
26
+ export declare function recoverUnackedDelivered(sessionId: string): Promise<string[]>;
25
27
  export declare function sweepPeerInboxes(opts: {
26
28
  liveSessionIds: ReadonlySet<string>;
27
29
  maxAgeMs?: number;
@@ -1,3 +1,6 @@
1
+ export declare const SPINNER_WARM_FRAME_MS = 80;
2
+ export declare const SPINNER_IDLE_FRAME_MS = 250;
3
+ export declare const SPINNER_WARMUP_MS = 2000;
1
4
  export interface SpinnerControllerOptions {
2
5
  captureMode: boolean;
3
6
  onTick: () => void;
@@ -8,6 +11,9 @@ export interface SpinnerControllerOptions {
8
11
  export declare class SpinnerController {
9
12
  private state;
10
13
  private interval;
14
+ private intervalMs;
15
+ private cadenceStartedAt;
16
+ private lastFrameKey;
11
17
  private readonly captureMode;
12
18
  private readonly onTick;
13
19
  private readonly goblin;
@@ -19,6 +25,10 @@ export declare class SpinnerController {
19
25
  enabled: boolean;
20
26
  rotateVerbEveryMs?: number;
21
27
  }): void;
28
+ private armInterval;
29
+ private clearTimer;
30
+ private syncCadence;
31
+ private frameKey;
22
32
  dispose(): void;
23
33
  renderSpinnerRow(): string | null;
24
34
  renderTipRow(cols: number): string | null;