agent-afk 5.310.11 → 5.310.12

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,2 +1,3 @@
1
1
  export declare function sanitizeSchemaString(s: string, maxLen?: number): string;
2
+ export declare function sanitizeTerminalText(s: string, maxLen?: number): string;
2
3
  export declare function truncateMessageWithCount(s: string, maxLen?: number): string;
@@ -0,0 +1,13 @@
1
+ import type { ElicitationRequest } from '../../agent/types/sdk-types.js';
2
+ export declare const MIN_OPTION_ROWS = 3;
3
+ export interface TerminalSize {
4
+ columns: number;
5
+ rows: number;
6
+ }
7
+ export interface AgentQuestionLayout {
8
+ header: readonly string[];
9
+ options: readonly string[];
10
+ scrollback: readonly string[];
11
+ choiceFor(label: string): string | undefined;
12
+ }
13
+ export declare function layoutAgentQuestion(request: ElicitationRequest, size: TerminalSize): AgentQuestionLayout;
@@ -19,6 +19,10 @@ export interface ReplElicitationDeps {
19
19
  validate?: (value: string) => string | null;
20
20
  signal: AbortSignal;
21
21
  }) => Promise<string | null>;
22
+ terminalSize?: () => {
23
+ columns: number;
24
+ rows: number;
25
+ };
22
26
  }
23
27
  export declare const DECLINE: ElicitationResult;
24
28
  export declare const CANCEL: ElicitationResult;