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.
- package/dist/agent/provider.d.ts +3 -0
- package/dist/agent/providers/anthropic-direct/usage-limit.error.d.ts +5 -0
- package/dist/agent/providers/openai-compatible/query/chatgpt-usage-limit.d.ts +8 -0
- package/dist/agent/providers/shared/usage-limit-error.d.ts +4 -0
- package/dist/agent/tools/skill-executor/fork-dispatch.d.ts +2 -1
- package/dist/agent/tools/skill-executor/fork-identity.d.ts +3 -0
- package/dist/agent/types/session-types.d.ts +4 -0
- package/dist/agent/types/skill-identity.d.ts +5 -0
- package/dist/agent/usage/usage-formatter.d.ts +4 -0
- package/dist/agent/usage/usage-limit-info.d.ts +3 -0
- package/dist/cli/_lib/skill-identity-format.d.ts +11 -0
- package/dist/cli/_lib/skill-identity-state.d.ts +11 -0
- package/dist/cli/_lib/stream-renderer-contexts.d.ts +1 -0
- package/dist/cli/_lib/stream-renderer-lifecycle.d.ts +2 -0
- package/dist/cli/_lib/stream-renderer-options.d.ts +1 -0
- package/dist/cli/_lib/stream-renderer-orchestrator.d.ts +2 -0
- package/dist/cli/_lib/stream-renderer.d.ts +1 -0
- package/dist/cli/commands/interactive/peer-arrival-format.d.ts +3 -0
- package/dist/cli/commands/interactive/tool-lane.d.ts +2 -0
- package/dist/cli/commands/interactive/tool-lane.labels.d.ts +2 -0
- package/dist/cli/commands/interactive/turn-handler.paused.d.ts +1 -0
- package/dist/cli/errors/classifier.d.ts +1 -1
- package/dist/cli/render/usage-limit-box.d.ts +3 -0
- package/dist/cli/slash/_lib/create-skill-renderer.d.ts +1 -0
- package/dist/cli.mjs +327 -326
- package/dist/index.mjs +144 -144
- package/dist/telegram/error-utils.d.ts +3 -1
- package/dist/telegram/streaming.handlers.d.ts +3 -0
- package/dist/telegram/streaming.paused-copy.d.ts +10 -0
- package/dist/telegram.mjs +166 -166
- package/dist/utils/errors.d.ts +15 -0
- 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 {
|
|
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;
|