aptx-api-plugin-retry

Installation
SKILL.md

aptx-api-plugin-retry

安装

pnpm add @aptx/api-plugin-retry

API 接口

interface RetryOptions {
  retries: number;  // 重试次数(不含首次请求)
  delayMs?: number | ((attempt: number, error: Error, req: Request, ctx: Context) => number);
  retryOn?: (error: Error, req: Request, ctx: Context) => boolean;
}

function createRetryMiddleware(options: RetryOptions): Middleware;
Related skills

More from haibaraaiaptx/aptx-skill

Installs
26
First Seen
Feb 14, 2026