refactor: add retry runtime sdk seam

This commit is contained in:
Peter Steinberger
2026-03-28 05:56:41 +00:00
parent d42c2f6a17
commit c222a44e6f
16 changed files with 185 additions and 155 deletions

View File

@@ -0,0 +1,15 @@
// Public retry helpers for plugins that need retry config or policy runners.
export {
resolveRetryConfig,
retryAsync,
type RetryConfig,
type RetryInfo,
type RetryOptions,
} from "../infra/retry.js";
export {
createRateLimitRetryRunner,
createTelegramRetryRunner,
TELEGRAM_RETRY_DEFAULTS,
type RetryRunner,
} from "../infra/retry-policy.js";