agent-afk 5.290.2 → 5.290.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.
- package/dist/agent/providers/anthropic-direct/loop/connection-error.d.ts +5 -1
- package/dist/agent/providers/shared/connection-error.d.ts +1 -0
- package/dist/agent/tools/handlers/_cwd-utils.d.ts +1 -0
- package/dist/cli.mjs +315 -315
- package/dist/index.mjs +130 -130
- package/dist/telegram.mjs +153 -153
- package/package.json +1 -1
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
export { isConnectionPhaseNetworkError, isRetryableConnectionStatus, } from '../../shared/connection-error.js';
|
|
1
|
+
export { isConnectionPhaseNetworkError, isConnectionTimeoutError, isRetryableConnectionStatus, } from '../../shared/connection-error.js';
|
|
2
2
|
export declare const CONNECTION_ERROR_MAX_RETRIES = 2;
|
|
3
3
|
export declare const CONNECTION_ERROR_BASE_DELAY_MS = 1000;
|
|
4
4
|
export declare function connectionErrorCode(err: unknown): string | undefined;
|
|
5
|
+
export declare function connectionRetryMetadata(info: {
|
|
6
|
+
attempt: number;
|
|
7
|
+
error: Error;
|
|
8
|
+
}, maxRetries?: number): Record<string, string | number | boolean>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare const CONNECTION_PHASE_RETRYABLE_STATUSES: ReadonlySet<number>;
|
|
2
2
|
export declare function isRetryableConnectionStatus(err: unknown): boolean;
|
|
3
3
|
export declare function isConnectionPhaseNetworkError(err: unknown): boolean;
|
|
4
|
+
export declare function isConnectionTimeoutError(err: unknown): boolean;
|
|
@@ -8,3 +8,4 @@ export declare function wouldBeRestricted(inputPath: string, context: ToolHandle
|
|
|
8
8
|
roots: string[];
|
|
9
9
|
};
|
|
10
10
|
export declare function extractCandidatePaths(command: string): string[];
|
|
11
|
+
export declare function assertWriteTargetContained(savePath: string, context: ToolHandlerContext | undefined, toolName: string, cwd: string): void;
|