agent-afk 5.276.13 → 5.276.15

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,4 +21,5 @@ export declare function createDefaultHookRegistry(onSubagentComplete?: (info: Su
21
21
  sessionId?: string;
22
22
  traceWriter?: TraceSink;
23
23
  afkPromptForApproval?: boolean;
24
+ getTranscriptPath?: () => string | null;
24
25
  }, getCwd?: () => string | undefined): DefaultHookRegistryResult;
@@ -6,6 +6,7 @@ export interface ExecuteCommandOptions {
6
6
  sessionId?: string;
7
7
  timeoutMs: number;
8
8
  pluginRoot?: string;
9
+ transcriptPath?: string | null;
9
10
  }
10
11
  export interface CommandExecutorResult {
11
12
  decision: HookDecision;
@@ -3,5 +3,6 @@ import type { LoadedHooksConfig } from './config-loader.js';
3
3
  export interface AgentConfigForBridge {
4
4
  cwd?: string;
5
5
  sessionId?: string;
6
+ getTranscriptPath?: () => string | null;
6
7
  }
7
8
  export declare function loadAndRegisterConfigHooks(registry: HookRegistry, hookConfig: LoadedHooksConfig, agentConfig: AgentConfigForBridge): void;
@@ -1,3 +1,3 @@
1
1
  export declare const REINFORCED_LABEL = "reinforced";
2
2
  export declare const WEAKENED_LABEL = "partially weakened";
3
- export declare function stripTrailingAnnotation(description: string, label: string): string;
3
+ export declare function stripTrailingAnnotation(description: string, label: typeof REINFORCED_LABEL | typeof WEAKENED_LABEL): string;
@@ -15,4 +15,5 @@ export declare function createReplHookRegistry(a: {
15
15
  }): {
16
16
  hookRegistry: HookRegistry;
17
17
  addPreviewDiffRef: PreviewDiffRef;
18
+ setTranscriptPathGetter: (fn: (() => string | null) | null) => void;
18
19
  };
@@ -85,6 +85,7 @@ export interface InteractiveCtx {
85
85
  hookRegistry?: HookRegistry;
86
86
  addPreviewDiffRef?: PreviewDiffRef;
87
87
  hasPendingUserMessage?: () => boolean;
88
+ setTranscriptPathGetter?: (fn: (() => string | null) | null) => void;
88
89
  }
89
90
  export interface CompletionWriter {
90
91
  fn: (line: string) => void;
@@ -34,3 +34,4 @@ export declare function contentHugFrameSettled(self: {
34
34
  export declare function phase2PendingContentRows(self: {
35
35
  placementMode: FramePlacementMode;
36
36
  } & Parameters<typeof projectedBandLength>[0], geo: Parameters<typeof projectedBandLength>[1], route: Parameters<typeof projectedBandLength>[2]): number | null;
37
+ export declare function contentHugBandReserve(self: Pick<ContentHugHost, 'placementMode' | 'committedBand'>, rows: number): number;
@@ -20,5 +20,5 @@ export interface ViewportLayout {
20
20
  }
21
21
  export declare function truncateOverlayPreservingHead(lines: string[], budget: number): string[];
22
22
  export declare function hiddenIndicatorGutter(above: string | undefined, below: string | undefined, glyphs?: Readonly<Glyphs>): string;
23
- export declare function computeViewportLayout(chrome: ChromeRows, dropdownLength: number, hasHintRow: boolean, rows: number, scrollRegion: CompositorScrollRegionGuard | undefined): ViewportLayout;
24
- export declare function computePickerViewportLayout(chrome: ChromeRows, pickerRowCount: number, rows: number, scrollRegion: CompositorScrollRegionGuard | undefined): Omit<ViewportLayout, 'gapRows'>;
23
+ export declare function computeViewportLayout(chrome: ChromeRows, dropdownLength: number, hasHintRow: boolean, rows: number, scrollRegion: CompositorScrollRegionGuard | undefined, bandReserveRows?: number): ViewportLayout;
24
+ export declare function computePickerViewportLayout(chrome: ChromeRows, pickerRowCount: number, rows: number, scrollRegion: CompositorScrollRegionGuard | undefined, bandReserveRows?: number): Omit<ViewportLayout, 'gapRows'>;