agent-afk 5.152.1 → 5.152.3

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,3 +1,4 @@
1
1
  import type { ToolHandler } from '../types.js';
2
+ export declare const MAX_ENTRIES = 500;
2
3
  export declare function createListDirectoryHandler(cwd?: string): ToolHandler;
3
4
  export declare const listDirectoryHandler: ToolHandler;
@@ -0,0 +1,21 @@
1
+ import type { OutputEvent } from '../../../agent/types.js';
2
+ import type { AgentSession } from '../../../agent/session.js';
3
+ import type { CompletionWriter } from './shared.js';
4
+ import type { TerminalCompositor } from '../../terminal-compositor.js';
5
+ export type PausedEvent = Extract<OutputEvent, {
6
+ type: 'paused';
7
+ }>;
8
+ export interface PausedPickerRef {
9
+ abort: AbortController | null;
10
+ }
11
+ export interface HandlePausedEventParams {
12
+ event: PausedEvent;
13
+ session: AgentSession;
14
+ borrowedCompositor: TerminalCompositor | null;
15
+ pickerRef: PausedPickerRef;
16
+ completionWriter: CompletionWriter | undefined;
17
+ disposeRendererOnce: () => Promise<void>;
18
+ setPausedState: ((paused: boolean) => void) | undefined;
19
+ onPauseInterrupt: () => void;
20
+ }
21
+ export declare function handlePausedEvent(params: HandlePausedEventParams): Promise<void>;