agent-afk 5.230.0 → 5.230.2
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/dag-subagent.d.ts +1 -1
- package/dist/agent/providers/anthropic-direct/loop/retry-budget.d.ts +2 -0
- package/dist/agent/providers/anthropic-direct/resolve-params.d.ts +2 -1
- package/dist/agent/providers/shared/error-status.d.ts +1 -0
- package/dist/agent/providers/shared/tracing-fetch.d.ts +9 -0
- package/dist/agent/subagent-read-scope.d.ts +1 -0
- package/dist/agent/worktree/display.d.ts +11 -0
- package/dist/cli.mjs +272 -272
- package/dist/index.mjs +112 -112
- package/dist/telegram/session-lifecycle.d.ts +12 -0
- package/dist/telegram.mjs +175 -175
- package/dist/utils/atomic-write.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getErrorStatus } from '../../shared/error-status.js';
|
|
1
2
|
export declare const OVERLOAD_MAX_RETRIES = 3;
|
|
2
3
|
export declare const OVERLOAD_BASE_DELAY_MS = 5000;
|
|
3
4
|
export declare const STREAM_INCOMPLETE_MAX_RETRIES = 2;
|
|
@@ -7,6 +8,7 @@ export declare const TTFB_MAX_RETRIES = 2;
|
|
|
7
8
|
export declare const TTFB_MAX_ATTEMPTS: number;
|
|
8
9
|
export declare function ttfbAttemptTimeoutMs(configuredTtfbMs: number): number;
|
|
9
10
|
export declare function isTransientServerError(err: Error): boolean;
|
|
11
|
+
export { getErrorStatus };
|
|
10
12
|
export declare function isOverloadedErrorEvent(err: unknown): boolean;
|
|
11
13
|
export declare class RoundRetryBudget {
|
|
12
14
|
overloadRetries: number;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { MessageParam, ThinkingConfigParam } from '@anthropic-ai/sdk/resources';
|
|
1
|
+
import type { ContentBlockParam, MessageParam, ThinkingConfigParam } from '@anthropic-ai/sdk/resources';
|
|
2
2
|
import type { AgentConfig, ResumeHistoryTurn } from '../../types/config-types.js';
|
|
3
3
|
import type { EffortLevel, ThinkingConfig } from '../../types/sdk-types.js';
|
|
4
4
|
export { resolveAutoCompactThreshold } from '../shared/auto-compact.js';
|
|
5
5
|
export declare function resolveAnthropicTemperature(temperature: number | undefined): number | undefined;
|
|
6
6
|
export declare function resolveMaxTokens(config: AgentConfig, model: string): number;
|
|
7
|
+
export declare function filterContentBlocks(raw: unknown[] | undefined): ContentBlockParam[];
|
|
7
8
|
export declare function resumeHistoryToMessages(history: ResumeHistoryTurn[] | undefined): MessageParam[] | undefined;
|
|
8
9
|
export declare function resolveThinkingParam(tc: ThinkingConfig, maxTokens: number, model?: string): ThinkingConfigParam;
|
|
9
10
|
export declare function resolveEffort(callerEffort: EffortLevel | undefined, model: string): EffortLevel | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getErrorStatus(err: unknown): number | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ThrottleInfo, RateLimitGate } from './tracing-fetch-utils.js';
|
|
2
|
+
export type { ThrottleInfo, RateLimitGate };
|
|
3
|
+
export interface BaseTracingFetchOptions {
|
|
4
|
+
baseFetch?: typeof fetch;
|
|
5
|
+
gate?: RateLimitGate;
|
|
6
|
+
onRateLimit?: (headers: Headers) => void;
|
|
7
|
+
onThrottle?: (info: ThrottleInfo) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function makeBaseTracingFetch(opts?: BaseTracingFetchOptions): typeof fetch;
|
|
@@ -11,5 +11,6 @@ export interface InheritedReadRootsArgs {
|
|
|
11
11
|
worktreeMainRoot?: string | undefined;
|
|
12
12
|
afkStateRoot?: string | undefined;
|
|
13
13
|
afkFrameworkRoot?: string | undefined;
|
|
14
|
+
afkSkillsRoot?: string | undefined;
|
|
14
15
|
}
|
|
15
16
|
export declare function computeInheritedReadRoots(args: InheritedReadRootsArgs): string[] | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const VALID_SCOPES: readonly ["interactive", "diagnose", "all"];
|
|
2
|
+
export type Scope = (typeof VALID_SCOPES)[number];
|
|
3
|
+
export declare function parseScope(raw: string): Scope;
|
|
4
|
+
export declare const PRUNABLE_VERDICTS: ReadonlySet<string>;
|
|
5
|
+
export declare const WARNING_VERDICTS: ReadonlySet<string>;
|
|
6
|
+
export declare function formatAge(ageMs: number): string;
|
|
7
|
+
export declare function verdictColor(verdict: string, text: string): string;
|
|
8
|
+
export declare function verdictWouldPrune(verdict: string): string;
|
|
9
|
+
export declare function buildVerdictTallyString(candidates: ReadonlyArray<{
|
|
10
|
+
verdict: string;
|
|
11
|
+
}>): string;
|