agent-afk 5.112.4 → 5.112.6

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,5 @@
1
+ export declare const MAX_SUBAGENT_PREVIEW_LINES = 4;
2
+ export declare function humanizeToolActivity(toolName: string): string;
3
+ export declare function formatTelegramActivity(description?: string, toolName?: string): string;
4
+ export declare function formatTelegramAgentLabel(label: string): string;
5
+ export declare function renderSubagentFooter(steps: number, recent: readonly string[]): string;
@@ -2,6 +2,8 @@ import type { Context } from 'telegraf';
2
2
  import { StreamTimeoutError } from './stream-timeout-error.js';
3
3
  import type { IAgentSession, ResponseMetadata } from '../agent/types.js';
4
4
  import type { ContentBlockParam } from '@anthropic-ai/sdk/resources';
5
+ import { formatTelegramActivity, formatTelegramAgentLabel, renderSubagentFooter } from './streaming.activity.js';
6
+ export { formatTelegramActivity, formatTelegramAgentLabel, renderSubagentFooter };
5
7
  export { StreamTimeoutError };
6
8
  export declare function replyWithFloodRetry(reply: (text: string, extra?: {
7
9
  parse_mode?: 'HTML';
@@ -11,9 +13,6 @@ export declare function replyWithFloodRetry(reply: (text: string, extra?: {
11
13
  maxRetries?: number;
12
14
  sleep?: (ms: number) => Promise<void>;
13
15
  }): Promise<void>;
14
- export declare function formatTelegramActivity(description?: string, toolName?: string): string;
15
- export declare function formatTelegramAgentLabel(label: string): string;
16
- export declare function renderSubagentFooter(steps: number, recent: readonly string[]): string;
17
16
  export declare function renderProgressRegion(lines: readonly string[]): string;
18
17
  export type ProgressEntry = {
19
18
  readonly label: string;