agent-afk 5.291.1 → 5.292.0

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.
Files changed (32) hide show
  1. package/dist/agent/provider.d.ts +3 -0
  2. package/dist/agent/providers/anthropic-direct/usage-limit.error.d.ts +5 -0
  3. package/dist/agent/providers/openai-compatible/query/chatgpt-usage-limit.d.ts +8 -0
  4. package/dist/agent/providers/shared/usage-limit-error.d.ts +4 -0
  5. package/dist/agent/tools/skill-executor/fork-dispatch.d.ts +2 -1
  6. package/dist/agent/tools/skill-executor/fork-identity.d.ts +3 -0
  7. package/dist/agent/types/session-types.d.ts +4 -0
  8. package/dist/agent/types/skill-identity.d.ts +5 -0
  9. package/dist/agent/usage/usage-formatter.d.ts +4 -0
  10. package/dist/agent/usage/usage-limit-info.d.ts +3 -0
  11. package/dist/cli/_lib/skill-identity-format.d.ts +11 -0
  12. package/dist/cli/_lib/skill-identity-state.d.ts +11 -0
  13. package/dist/cli/_lib/stream-renderer-contexts.d.ts +1 -0
  14. package/dist/cli/_lib/stream-renderer-lifecycle.d.ts +2 -0
  15. package/dist/cli/_lib/stream-renderer-options.d.ts +1 -0
  16. package/dist/cli/_lib/stream-renderer-orchestrator.d.ts +2 -0
  17. package/dist/cli/_lib/stream-renderer.d.ts +1 -0
  18. package/dist/cli/commands/interactive/peer-arrival-format.d.ts +3 -0
  19. package/dist/cli/commands/interactive/tool-lane.d.ts +2 -0
  20. package/dist/cli/commands/interactive/tool-lane.labels.d.ts +2 -0
  21. package/dist/cli/commands/interactive/turn-handler.paused.d.ts +1 -0
  22. package/dist/cli/errors/classifier.d.ts +1 -1
  23. package/dist/cli/render/usage-limit-box.d.ts +3 -0
  24. package/dist/cli/slash/_lib/create-skill-renderer.d.ts +1 -0
  25. package/dist/cli.mjs +327 -326
  26. package/dist/index.mjs +144 -144
  27. package/dist/telegram/error-utils.d.ts +3 -1
  28. package/dist/telegram/streaming.handlers.d.ts +3 -0
  29. package/dist/telegram/streaming.paused-copy.d.ts +10 -0
  30. package/dist/telegram.mjs +166 -166
  31. package/dist/utils/errors.d.ts +15 -0
  32. package/package.json +1 -1
@@ -2,4 +2,6 @@ import { classifyUsageLimitError } from '../agent/providers/anthropic-direct/usa
2
2
  export type { UsageLimitClassification } from '../agent/providers/anthropic-direct/usage-limit.js';
3
3
  export declare function isTelegramTransportError(error: unknown): boolean;
4
4
  export { classifyUsageLimitError as classifyUsageLimit };
5
- export { isRateLimitError, isNetworkError } from '../utils/error-classifiers.js';
5
+ export { isNetworkError } from '../utils/error-classifiers.js';
6
+ export declare function isRateLimitError(error: unknown): boolean;
7
+ export declare function formatRateLimitReply(error: unknown): string;
@@ -3,6 +3,7 @@ import type { Message } from 'telegraf/types';
3
3
  import type { SenderState } from './streaming.sender.js';
4
4
  import type { ProgressEntry } from './streaming.preview.js';
5
5
  import type { ResponseMetadata } from '../agent/types.js';
6
+ import type { UsageLimitProvider } from '../utils/errors.js';
6
7
  export declare const PAUSE_COUNTDOWN_INTERVAL_MS: number;
7
8
  export interface StreamState extends SenderState {
8
9
  accumulated: string;
@@ -34,6 +35,8 @@ export declare function handlePaused(event: {
34
35
  resetsAt?: Date | null;
35
36
  autoResume?: boolean;
36
37
  accountId?: string;
38
+ provider?: UsageLimitProvider;
39
+ plan?: string;
37
40
  }, params: HandlerParams): Promise<void>;
38
41
  export declare function handleResumed(event: {
39
42
  hotSwapped?: boolean;
@@ -0,0 +1,10 @@
1
+ import type { UsageLimitProvider } from '../utils/errors.js';
2
+ export interface PausedCopyInput {
3
+ timeStr: string | null;
4
+ minutesRemaining: number | null;
5
+ autoResume: boolean;
6
+ accountId?: string;
7
+ provider?: UsageLimitProvider;
8
+ plan?: string;
9
+ }
10
+ export declare function pausedMessage(input: PausedCopyInput): string;