@h-ai/reach 1.0.0-beta.2 → 1.0.0-beta.3

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/index.js CHANGED
@@ -240,11 +240,11 @@ var ReachUnknownResolutionSchema = z.object({
240
240
  });
241
241
  var ReachQueueIdSchema = z.string().uuid();
242
242
  var ReachQueueConfigSchema = z.object({
243
- /** 自动领取次数上限(含首次及崩溃恢复,默认 5,范围 1–100)。 */
243
+ /** 每条队列消息最多处理多少次,包含首次发送、失败重试和异常退出后的重新处理;默认 5,范围 1–100。 */
244
244
  maxAttempts: z.number().int().min(1).max(100).default(5),
245
- /** 首次失败后的退避毫秒数(默认 60000,范围 1000–86400000)。 */
245
+ /** 第一次发送失败后,等待多少毫秒再试;默认 60000(1 分钟),范围 1000–86400000。 */
246
246
  retryDelayMs: z.number().int().min(1e3).max(864e5).default(6e4),
247
- /** 指数退避上限毫秒数,不得小于 retryDelayMs(默认 3600000)。 */
247
+ /** 后续失败时等待时间逐次加倍,但不超过此值;默认 3600000(1 小时),不得小于 retryDelayMs。 */
248
248
  maxRetryDelayMs: z.number().int().min(1e3).max(864e5).default(36e5)
249
249
  }).refine((value) => value.maxRetryDelayMs >= value.retryDelayMs, {
250
250
  message: reachM("reach_queueRetryInvalid")