agent-afk 5.83.3 → 5.83.4

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,6 +1,7 @@
1
1
  import type Anthropic from '@anthropic-ai/sdk';
2
2
  import type { ProviderEvent } from '../../../provider.js';
3
3
  import type { AuthMode, RunTurnInput } from '../types.js';
4
+ export declare const TWO_HOURS_MS: number;
4
5
  export declare const RATE_LIMIT_TRANSIENT_MAX_RETRIES = 3;
5
6
  export declare const RATE_LIMIT_RETRY_MAX_WAIT_MS = 120000;
6
7
  export interface RetryLayerOptions {
@@ -11,5 +11,6 @@ export { loadCredential, normalizeOpenAIBaseUrl, _resetOpenAIBaseUrlWarnCache, }
11
11
  export declare function _resetConfigCache(): void;
12
12
  export declare function loadTelegramConfig(): NonNullable<CliConfig['telegram']>;
13
13
  export declare function resolveCliPermissionMode(): PermissionMode;
14
+ export declare function resolveAutoResumeOnUsageLimit(): boolean;
14
15
  export declare function loadConfig(overrides?: Partial<CliConfig>): CliConfig;
15
16
  export declare function resolvedProviderName(config: CliConfig): BundledProviderName;
@@ -1,6 +1,8 @@
1
1
  import { type QuotaWindows } from './quota-indicator.js';
2
2
  export type QuotaUsageTier = 'quiet' | 'caution' | 'near' | 'over';
3
- export declare function formatQuotaUsage(windows: QuotaWindows | undefined, now?: Date): {
3
+ export declare function formatQuotaUsage(windows: QuotaWindows | undefined, now?: Date, opts?: {
4
+ autoResume?: boolean;
5
+ }): {
4
6
  tier: QuotaUsageTier;
5
7
  text: string | null;
6
8
  };
@@ -18,11 +18,14 @@ interface StatusLineOpts {
18
18
  stream?: NodeJS.WriteStream;
19
19
  force?: boolean;
20
20
  throttleMs?: number;
21
+ tickMs?: number;
21
22
  }
22
23
  export declare class StatusLine {
23
24
  private readonly stream;
24
25
  private readonly force;
25
26
  private readonly throttleMs;
27
+ private readonly tickMs;
28
+ private tickTimer;
26
29
  private started;
27
30
  private lastRepaint;
28
31
  private lastFields;