agent-afk 5.84.17 → 5.85.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,6 @@
1
+ export declare const MAX_ROOT_FAILURE_SUMMARY_CHARS = 500;
2
+ export interface RootFailure {
3
+ repoRoot: string;
4
+ reason: string;
5
+ }
6
+ export declare function summarizeRootFailures(failures: readonly RootFailure[]): string;
@@ -0,0 +1,14 @@
1
+ export interface PruneTickTotals {
2
+ removed: number;
3
+ warnings: number;
4
+ wouldRemove: number;
5
+ liveRoots: number;
6
+ previewRoots: number;
7
+ contestedRoots: number;
8
+ failedRoots: number;
9
+ totalRoots: number;
10
+ }
11
+ export declare function countPrunable(candidates: readonly {
12
+ verdict: string;
13
+ }[]): number;
14
+ export declare function formatWorktreePruneSummary(totals: PruneTickTotals): string;
@@ -13,6 +13,7 @@ export declare class AgentSession implements IAgentSession {
13
13
  private providerIterator;
14
14
  private conversationHistory;
15
15
  private turnCount;
16
+ private inboundMessageCount;
16
17
  private pendingFrameworkContext;
17
18
  private lastResponseMetadata;
18
19
  private initPromise;
@@ -0,0 +1,22 @@
1
+ export declare const MAX_CAPTURED_PROMPT_BYTES: number;
2
+ export declare const PROMPT_CAPTURE_BANNER = "<!-- Best-effort secret redaction only. Connection strings, PEM blocks, and PII are NOT caught. -->";
3
+ export interface CaptureSubagentPromptInput {
4
+ sessionId: string | undefined;
5
+ subagentId: string | undefined;
6
+ isSubagentFork: boolean;
7
+ model: string | undefined;
8
+ turn: number;
9
+ prompt: string;
10
+ }
11
+ export declare function shouldCaptureSubagentPrompt(input: CaptureSubagentPromptInput): boolean;
12
+ export declare function truncateToBytes(text: string, maxBytes: number): {
13
+ text: string;
14
+ originalBytes: number;
15
+ truncated: boolean;
16
+ };
17
+ export declare function buildPromptDocument(input: CaptureSubagentPromptInput, capture: {
18
+ text: string;
19
+ originalBytes: number;
20
+ truncated: boolean;
21
+ }): string;
22
+ export declare function captureSubagentPrompt(input: CaptureSubagentPromptInput): Promise<void>;
@@ -0,0 +1 @@
1
+ export declare function normalizeRootPath(root: string): Promise<string>;
@@ -0,0 +1,8 @@
1
+ export interface RootLivenessResult<T> {
2
+ alive: T[];
3
+ dead: Set<string>;
4
+ duplicates: boolean;
5
+ }
6
+ export declare function classifyRootLiveness<T extends {
7
+ path: string;
8
+ }>(entries: readonly T[]): Promise<RootLivenessResult<T>>;
@@ -0,0 +1,3 @@
1
+ export declare function registerWorktreeRoot(repoRoot: string): Promise<void>;
2
+ export declare function readRegisteredWorktreeRoots(): Promise<string[]>;
3
+ export declare function sweepRootSet(primary: string | null): Promise<string[]>;
@@ -0,0 +1,3 @@
1
+ export declare const SOFT_LAUNCH_RUNS = 3;
2
+ export declare function readRootSweepCount(repoRoot: string): Promise<number | null>;
3
+ export declare function recordRootSweep(repoRoot: string): Promise<void>;
@@ -31,6 +31,7 @@ export interface SweepResult {
31
31
  warnings: string[];
32
32
  dryRun: boolean;
33
33
  candidates: SweepCandidateSummary[];
34
+ contested?: boolean;
34
35
  }
35
36
  export declare const MIN_EMPTY_AGE_MS = 3600000;
36
37
  export declare function runSweep(options: SweepOptions): Promise<SweepResult>;