agent-afk 5.307.3 → 5.307.6

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,2 @@
1
+ export declare function findMatchingOpen(content: string, closeIdx: number): number;
2
+ export declare function findMatchingClose(content: string, openIdx: number): number;
@@ -1,4 +1,8 @@
1
1
  import type { LedgerRecord } from './session-end-hook.js';
2
+ export interface LedgerReadResult {
3
+ records: LedgerRecord[];
4
+ ledgerTruncated: boolean;
5
+ }
2
6
  export interface DefectCluster {
3
7
  repo: string;
4
8
  locus: string;
@@ -8,5 +12,5 @@ export interface DefectCluster {
8
12
  firstSeen: string;
9
13
  lastSeen: string;
10
14
  }
11
- export declare function readLedgerRecords(ledgerPath?: string): LedgerRecord[];
15
+ export declare function readLedgerRecords(ledgerPath?: string): LedgerReadResult;
12
16
  export declare function clusterLedgerRecords(records: LedgerRecord[]): DefectCluster[];
@@ -0,0 +1,2 @@
1
+ import type { AgentConfig } from '../types/config-types.js';
2
+ export declare function appendSystemPromptBlock(config: AgentConfig, block: string): AgentConfig;
@@ -11,4 +11,5 @@ export interface InFlightTaskSnapshot {
11
11
  elapsedMs: number;
12
12
  }
13
13
  export declare function registerDaemonCrashHandlers(getInFlightTasks?: () => InFlightTaskSnapshot[]): void;
14
+ export declare function registerEarlyDaemonCrashHandlers(): (source: () => InFlightTaskSnapshot[]) => void;
14
15
  export declare function registerDaemonCommand(program: Command): void;
@@ -0,0 +1,2 @@
1
+ import { Command } from 'commander';
2
+ export declare function registerDefectsCommand(program: Command): void;
@@ -0,0 +1 @@
1
+ export declare function printWarnings(warnings: readonly string[]): boolean;
@@ -1,5 +1,4 @@
1
1
  import type { ImageAttachment } from './attachments.js';
2
2
  export declare function isCommandAvailable(cmd: string, args: string[]): Promise<boolean>;
3
3
  export declare function linuxClipboardRead(cmd: string, args: string[]): Promise<Buffer | null>;
4
- export declare function detectMediaTypeLinux(buffer: Buffer): ImageAttachment['mediaType'] | null;
5
4
  export declare function readClipboardImageLinux(): Promise<ImageAttachment | null>;
@@ -0,0 +1,2 @@
1
+ import type { ImageAttachment } from './attachments.js';
2
+ export declare function detectMediaType(buffer: Buffer): ImageAttachment['mediaType'] | null;
@@ -24,6 +24,7 @@ export interface CommittedBandHost {
24
24
  bottom: number;
25
25
  } | null;
26
26
  bandGeometryStale: boolean;
27
+ resizeGeometryStale: boolean;
27
28
  anchorRow: number | undefined;
28
29
  armed: boolean;
29
30
  readonly suspended: boolean;
@@ -101,6 +101,7 @@ export declare class TerminalCompositor {
101
101
  requeryCt: number;
102
102
  } | null;
103
103
  bandGeometryStale: boolean;
104
+ resizeGeometryStale: boolean;
104
105
  lifecycleStateDirty: boolean;
105
106
  commitInFlight: boolean;
106
107
  private commitBarrier;
@@ -37,6 +37,7 @@ export interface FrameHost {
37
37
  lastKnownRows: number;
38
38
  commitInFlight: boolean;
39
39
  cprPending: boolean;
40
+ resizeGeometryStale: boolean;
40
41
  readonly scrollRegion?: CompositorScrollRegionGuard;
41
42
  readonly stdout: NodeJS.WriteStream;
42
43
  }
@@ -51,6 +51,7 @@ export interface LifecycleHost {
51
51
  committedBandPaintedRows: number;
52
52
  committedBandArchivedPrefix: number;
53
53
  bandGeometryStale: boolean;
54
+ resizeGeometryStale: boolean;
54
55
  lastMeasuredFrameTop: number;
55
56
  lastMeasuredFrameBottom: number;
56
57
  lifecycleStateDirty: boolean;
@@ -29,6 +29,7 @@ export interface ResetStateHost {
29
29
  bottom: number;
30
30
  } | null;
31
31
  bandGeometryStale: boolean;
32
+ resizeGeometryStale: boolean;
32
33
  lastKnownRows: number;
33
34
  cprPending: boolean;
34
35
  pickerController: PickerController | null;