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
package/dist/utils/errors.d.ts
CHANGED
|
@@ -39,3 +39,18 @@ export declare class UnsupportedProviderConfigError extends Error {
|
|
|
39
39
|
readonly field: string;
|
|
40
40
|
constructor(provider: string, field: string, message?: string);
|
|
41
41
|
}
|
|
42
|
+
export type UsageLimitProvider = 'anthropic' | 'codex';
|
|
43
|
+
export interface UsageLimitInfo {
|
|
44
|
+
provider: UsageLimitProvider;
|
|
45
|
+
kind: 'subscription' | 'credit';
|
|
46
|
+
resetsAt?: Date;
|
|
47
|
+
plan?: string;
|
|
48
|
+
}
|
|
49
|
+
export declare class UsageLimitError extends Error {
|
|
50
|
+
readonly info: UsageLimitInfo;
|
|
51
|
+
readonly status: number;
|
|
52
|
+
readonly cause?: unknown;
|
|
53
|
+
constructor(message: string, info: UsageLimitInfo, options?: {
|
|
54
|
+
cause?: unknown;
|
|
55
|
+
});
|
|
56
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-afk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.292.0",
|
|
4
4
|
"description": "Open-source coding-agent harness you can actually change — own the loop (prompts, gates, routing, skills, terminal states), use any model, run long tasks while you're away.",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|