agent-afk 5.276.0 → 5.276.2

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.
@@ -21,6 +21,7 @@ export interface SessionEndContext {
21
21
  parentSessionId?: string;
22
22
  tracePath?: string;
23
23
  cwd?: string;
24
+ assistantTexts?: readonly string[];
24
25
  }
25
26
  export interface SubagentStartContext {
26
27
  event: 'SubagentStart';
@@ -0,0 +1,9 @@
1
+ export type SignalKind = 'preexisting-sentence' | 'deferred-bullet';
2
+ export type DefectCategory = 'failing-test' | 'gate' | 'size-ceiling' | 'other';
3
+ export interface DetectedEntry {
4
+ signal: SignalKind;
5
+ category: DefectCategory;
6
+ loci: string[];
7
+ }
8
+ export declare const MAX_SCAN_CHARS = 500000;
9
+ export declare function detectInText(text: string): DetectedEntry[];
@@ -0,0 +1,2 @@
1
+ export declare function getPreexistingLedgerPath(): string;
2
+ export declare function getPreexistingBackfillPath(): string;
@@ -0,0 +1,2 @@
1
+ export declare function findLocusMatches(locus: string, files: readonly string[]): string[];
2
+ export declare function resolveLocusPath(locus: string, files: readonly string[]): string | undefined;
@@ -0,0 +1,13 @@
1
+ import type { HookHandler } from '../hooks.js';
2
+ import type { DetectedEntry } from './detector.js';
3
+ export interface LedgerRecord {
4
+ ts: string;
5
+ sessionId: string;
6
+ turn: number;
7
+ repo: string;
8
+ signal: DetectedEntry['signal'];
9
+ category: DetectedEntry['category'];
10
+ loci: string[];
11
+ }
12
+ export declare function createPreexistingLedgerHook(): HookHandler;
13
+ export declare function resolveAssistantTexts(sessionId: string, fromContext: readonly string[] | undefined): readonly string[] | undefined;
@@ -11,6 +11,7 @@ export interface ShutdownDeps {
11
11
  getSessionId: () => string | undefined;
12
12
  ownedTraceWriter: TraceWriter | undefined;
13
13
  ownsTraceSeal: boolean;
14
+ getAssistantTexts?: () => readonly string[];
14
15
  }
15
16
  export declare class SessionShutdown {
16
17
  private dispatched;
@@ -0,0 +1,3 @@
1
+ export declare function _resetScanExemptCacheForTests(): void;
2
+ export declare function isBashScanExemptPath(absPath: string): boolean;
3
+ export declare function scanCandidatePaths(command: string, home: string): string[];
@@ -37,6 +37,8 @@ export type GuardedRemoveOutcome = {
37
37
  } | {
38
38
  removed: false;
39
39
  reason: 'ignored-local-state';
40
+ detail: string;
41
+ because: 'non-rebuildable-entry' | 'git-failed';
40
42
  };
41
43
  export interface RemoveManagedWorktreeArgs {
42
44
  execFile: ExecFileFn;
@@ -58,8 +60,10 @@ export interface IsolatedTeardownResult {
58
60
  removed: boolean;
59
61
  preserved: boolean;
60
62
  reason?: 'dirty' | 'commits-ahead' | 'ignored-local-state';
63
+ ignoredDetail?: string;
64
+ ignoredBecause?: 'non-rebuildable-entry' | 'git-failed';
61
65
  }
62
- export declare function describePreserveReason(reason: NonNullable<IsolatedTeardownResult['reason']>): string;
66
+ export declare function describePreserveReason(reason: NonNullable<IsolatedTeardownResult['reason']>, detail?: string, because?: 'non-rebuildable-entry' | 'git-failed'): string;
63
67
  export declare function teardownIsolatedWorktree(args: {
64
68
  execFile?: ExecFileFn;
65
69
  repoRoot: string;
@@ -0,0 +1 @@
1
+ export declare function closeLazyBrowser(): Promise<void>;