@molecule/api-ai-deepseek 1.1.1 → 1.2.0

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/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-10-27T11:22:37.877Z
6
+ Generated: 2026-11-05T09:06:10.027Z
7
7
  -->
8
8
 
9
9
  # @molecule/api-ai-deepseek
@@ -80,6 +80,19 @@ interface DeepseekConfig {
80
80
  modelMap?: Record<string, string>
81
81
  /** Called on each rate-limited/overloaded upstream response, before any retry sleep. */
82
82
  onRateLimit?: AiRateLimitCallback
83
+ /**
84
+ * Keep a request whose account has no balance left (HTTP 402) and send it
85
+ * again until the account is topped up, instead of failing it. Defaults to
86
+ * false: a 402 ends the request with "provider credit balance too low".
87
+ *
88
+ * The wait lasts until the CALLER cancels, so it applies only to a call that
89
+ * passes `params.signal`; a call without one still fails at once, because
90
+ * nothing could end its wait. The same serialized request is re-sent, so a
91
+ * long-running caller loses no conversation or tool result. Each wait is
92
+ * reported, before it starts, to `onRateLimit` and to the call's
93
+ * `params.onProviderWait` (status 402), backing off up to 30 s between tries.
94
+ */
95
+ waitForCredit?: boolean
83
96
  /** Called when a stream accepts the request and then produces no content for the whole first-token window. */
84
97
  onStreamStall?: AiStreamStallCallback
85
98
  /**
@@ -30,6 +30,7 @@ declare class DeepseekAIProviderImpl implements AIProvider {
30
30
  private onStreamStall?;
31
31
  private firstTokenTimeoutMs;
32
32
  private streamSilenceTimeoutMs;
33
+ private waitForCredit;
33
34
  constructor(config?: DeepseekConfig);
34
35
  /**
35
36
  * Sends a chat request and yields streamed events (text chunks, tool use, done/error).
@@ -1 +1 @@
1
- {"version":3,"file":"provider.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AAO,CAAC,iBAAiB;IA2BzB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,OAAO,CAAC,cAAc;IA8FtB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAWnB;;;;;OAKG;IACH,OAAO,CAAE,yBAAyB;IA+ElC;;;;;;;OAOG;IACH,OAAO,CAAC,UAAU;IAUlB;;;;;;;;;;;;OAYG;YACY,sBAAsB;IA2GrC;;;;;;;;;;OAUG;IACH,OAAO,CAAE,eAAe;CAwOzB;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,+BAAyB,CAAA;AAExD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,cAAc,GAAG,UAAU,CAElE"}
package/dist/provider.js CHANGED
@@ -30,6 +30,33 @@ import './secrets.js';
30
30
  function budgetToEffort(budgetTokens) {
31
31
  return budgetTokens >= 12_000 ? 'max' : 'high';
32
32
  }
33
+ /**
34
+ * Read the upstream's explanation from a rejected response body: its error
35
+ * `type` (or `code`) and `message`, the message bounded to 500 characters.
36
+ *
37
+ * @param text - The rejected response's body text.
38
+ * @returns The upstream error, or `undefined` when the body carried neither field.
39
+ */
40
+ function parseUpstreamError(text) {
41
+ let error;
42
+ try {
43
+ error = JSON.parse(text)?.error;
44
+ }
45
+ catch (_error) {
46
+ // Not JSON (a proxy's error page, plain text): a short body is the message itself.
47
+ const trimmed = text.trim();
48
+ return trimmed && trimmed.length <= 500 ? { message: trimmed } : undefined;
49
+ }
50
+ const type = typeof error?.type === 'string'
51
+ ? error.type
52
+ : typeof error?.code === 'string'
53
+ ? error.code
54
+ : undefined;
55
+ const message = typeof error?.message === 'string' ? error.message.slice(0, 500) : undefined;
56
+ if (!type && !message)
57
+ return undefined;
58
+ return { ...(type ? { type } : {}), ...(message ? { message } : {}) };
59
+ }
33
60
  /** How long a stream may wait for its first content event. */
34
61
  export const DEFAULT_FIRST_TOKEN_TIMEOUT_MS = 45_000;
35
62
  /** How long a stream that HAS started may go without a single byte. */
@@ -231,6 +258,7 @@ class DeepseekAIProviderImpl {
231
258
  onStreamStall;
232
259
  firstTokenTimeoutMs;
233
260
  streamSilenceTimeoutMs;
261
+ waitForCredit;
234
262
  constructor(config = {}) {
235
263
  this.apiKey = config.apiKey ?? process.env.DEEPSEEK_API_KEY ?? '';
236
264
  this.defaultModel = config.defaultModel ?? 'deepseek-flash';
@@ -243,6 +271,7 @@ class DeepseekAIProviderImpl {
243
271
  this.onStreamStall = config.onStreamStall;
244
272
  this.firstTokenTimeoutMs = resolveFirstTokenTimeoutMs(config.firstTokenTimeoutMs);
245
273
  this.streamSilenceTimeoutMs = resolveStreamSilenceTimeoutMs(config.streamSilenceTimeoutMs);
274
+ this.waitForCredit = config.waitForCredit === true;
246
275
  // Fail fast with an actionable local error rather than a cryptic 401 on the
247
276
  // first request. The default `provider` export constructs lazily on first
248
277
  // use (see index.ts), so this surfaces the moment the provider is actually
@@ -381,18 +410,36 @@ class DeepseekAIProviderImpl {
381
410
  else
382
411
  params.signal?.addEventListener('abort', forwardAbort, { once: true });
383
412
  // The provider's own ceiling bounds each ATTEMPT; the caller's signal, when
384
- // present, still wins over it (both abort this one controller).
385
- const ceiling = setTimeout(() => controller.abort(), DEFAULT_TIMEOUT_MS);
386
- ceiling.unref?.();
413
+ // present, still wins over it (both abort this one controller). It restarts
414
+ // with every dispatch of the request: a retry's backoff sleep is this
415
+ // provider's own deliberate wait, and a credit wait can last until the
416
+ // account is topped up, so neither may spend the ceiling of the dispatch
417
+ // that follows it.
418
+ let ceiling;
419
+ const restartCeiling = () => {
420
+ if (ceiling)
421
+ clearTimeout(ceiling);
422
+ ceiling = setTimeout(() => controller.abort(), DEFAULT_TIMEOUT_MS);
423
+ ceiling.unref?.();
424
+ };
425
+ restartCeiling();
387
426
  try {
388
427
  let response;
389
428
  let requestSentAt = 0;
429
+ // Set when the dispatch's retry loop already read the rejected 429/503
430
+ // body; the `!response.ok` path reuses it instead of a second read.
431
+ let rejectedBody;
390
432
  try {
391
433
  const dispatched = await this.requestWithRateLimitRetries({
392
434
  body,
393
435
  headers,
394
436
  model,
395
437
  controller,
438
+ restartCeiling,
439
+ // A credit wait lasts until the caller cancels, so only a call that
440
+ // CAN be cancelled waits; any other 402 still fails at once.
441
+ waitForCredit: this.waitForCredit && params.signal !== undefined,
442
+ onProviderWait: params.onProviderWait,
396
443
  // The first-token window covers an attempt that never receives
397
444
  // response HEADERS too, not only one that receives them and then
398
445
  // sends no content: a window that started at the headers left the
@@ -403,6 +450,7 @@ class DeepseekAIProviderImpl {
403
450
  });
404
451
  response = dispatched.response;
405
452
  requestSentAt = dispatched.sentAt;
453
+ rejectedBody = dispatched.rejectedBody;
406
454
  }
407
455
  catch (error) {
408
456
  if (!(error instanceof FirstTokenHeaderTimeoutError) || params.signal?.aborted)
@@ -436,7 +484,9 @@ class DeepseekAIProviderImpl {
436
484
  if (traceId)
437
485
  call.meta.traceId = traceId;
438
486
  if (!response.ok) {
439
- const errorBody = await response.text();
487
+ // A 429/503 body was already read by the retry loop inside the
488
+ // dispatch; a body reads only once, so reuse that text.
489
+ const errorBody = rejectedBody ?? (await response.text());
440
490
  let detail = `HTTP ${response.status}`;
441
491
  try {
442
492
  const parsed = JSON.parse(errorBody);
@@ -553,7 +603,8 @@ class DeepseekAIProviderImpl {
553
603
  return;
554
604
  }
555
605
  finally {
556
- clearTimeout(ceiling);
606
+ if (ceiling)
607
+ clearTimeout(ceiling);
557
608
  params.signal?.removeEventListener('abort', forwardAbort);
558
609
  }
559
610
  }
@@ -598,13 +649,25 @@ class DeepseekAIProviderImpl {
598
649
  * @returns The response and the final dispatch send time (deliberate backoff excluded).
599
650
  */
600
651
  async requestWithRateLimitRetries(args) {
601
- const { body, headers, model, controller, firstTokenTimeoutMs } = args;
652
+ const { body, headers, model, controller, firstTokenTimeoutMs, restartCeiling } = args;
602
653
  const signal = controller.signal;
603
654
  // Retry with exponential backoff for rate limits (429) and overloaded (503)
604
655
  const MAX_RETRIES = 3;
605
656
  let response = null;
606
657
  let sentAt = 0;
607
- for (let attempt = 0; attempt <= MAX_RETRIES; attempt++) {
658
+ // The rejected body already read by this loop, when the final attempt ended
659
+ // on a 429/503: a body reads only once, so the caller must reuse this text
660
+ // instead of asking the response for it a second time (which throws).
661
+ let rejectedBody;
662
+ // Credit waits are counted apart from the rate-limit budget: an empty account
663
+ // recovers only when someone tops it up, so its wait is bounded by the
664
+ // caller's signal, never by MAX_RETRIES.
665
+ let creditWaits = 0;
666
+ for (let attempt = 0, dispatches = 0; attempt <= MAX_RETRIES; dispatches++) {
667
+ if (dispatches > 0)
668
+ restartCeiling?.();
669
+ // Reset per attempt: only THIS attempt's rejection has been read.
670
+ rejectedBody = undefined;
608
671
  // Bound THIS dispatch, not the retry loop: a deliberate backoff sleep is
609
672
  // this provider's own wait, so no window is running while it is spent.
610
673
  let headerDeadline = null;
@@ -627,8 +690,28 @@ class DeepseekAIProviderImpl {
627
690
  if (headerDeadline)
628
691
  clearTimeout(headerDeadline);
629
692
  }
630
- if (response.status === 429 || response.status === 503) {
631
- const willRetry = attempt < MAX_RETRIES;
693
+ // An empty account (402) is held only under waitForCredit; otherwise it
694
+ // falls through to the caller's "provider credit balance too low" error.
695
+ const creditWait = response.status === 402 && args.waitForCredit === true;
696
+ if (response.status === 429 || response.status === 503 || creditWait) {
697
+ // Read the body once: an unread body pins its connection, and only the
698
+ // body says what the upstream actually refused the request for.
699
+ try {
700
+ rejectedBody = await response.text();
701
+ }
702
+ catch (error) {
703
+ // Caller cancellation still ends the request; any other read failure
704
+ // only loses the reason, so the body counts as read and the retry
705
+ // policy goes on (the same guard the moonshot bond applies).
706
+ signal.throwIfAborted();
707
+ logger.debug('DeepSeek rejected response body could not be read', { error });
708
+ rejectedBody = '';
709
+ }
710
+ const upstreamError = parseUpstreamError(rejectedBody);
711
+ const willRetry = creditWait || attempt < MAX_RETRIES;
712
+ // The backoff step: this wait's own count, so credit waits and rate
713
+ // limits never lengthen each other's delays.
714
+ const step = creditWait ? creditWaits : attempt;
632
715
  // Retry-After is equally-valid as delta-seconds or an HTTP-date;
633
716
  // parseInt on the date form yields NaN, degrading the backoff to a
634
717
  // ~0ms retry against an already rate-limiting API. Guard it.
@@ -640,29 +723,45 @@ class DeepseekAIProviderImpl {
640
723
  const delayMs = willRetry
641
724
  ? (hasRetryAfter
642
725
  ? Math.min(parsedRetryAfterSeconds * 1000, 60_000)
643
- : Math.min(1000 * 2 ** attempt, 30_000)) + Math.floor(Math.random() * 500)
726
+ : Math.min(1000 * 2 ** step, 30_000)) + Math.floor(Math.random() * 500)
644
727
  : 0;
728
+ const event = {
729
+ provider: this.name,
730
+ model,
731
+ status: response.status,
732
+ attempt: step + 1,
733
+ willRetry,
734
+ retryInMs: delayMs,
735
+ ...(hasRetryAfter ? { retryAfterSeconds: parsedRetryAfterSeconds } : {}),
736
+ ...(upstreamError ? { upstreamError } : {}),
737
+ };
645
738
  try {
646
- this.onRateLimit?.({
647
- provider: this.name,
648
- model,
649
- status: response.status,
650
- attempt: attempt + 1,
651
- willRetry,
652
- retryInMs: delayMs,
653
- ...(hasRetryAfter ? { retryAfterSeconds: parsedRetryAfterSeconds } : {}),
654
- });
739
+ this.onRateLimit?.(event);
655
740
  }
656
741
  catch (error) {
657
742
  // Host-app telemetry; its failure must never break the request.
658
743
  logger.warn('onRateLimit callback threw', { error });
659
744
  }
660
745
  if (willRetry) {
661
- logger.warn('DeepSeek API rate limited, retrying', {
746
+ try {
747
+ args.onProviderWait?.(event);
748
+ }
749
+ catch (error) {
750
+ // The caller's liveness/status hook; its failure must never break the request.
751
+ logger.warn('onProviderWait callback threw', { error });
752
+ }
753
+ logger.warn(creditWait
754
+ ? 'DeepSeek account balance exhausted, waiting for credit'
755
+ : 'DeepSeek API rate limited, retrying', {
662
756
  status: response.status,
663
- attempt: attempt + 1,
757
+ attempt: step + 1,
664
758
  delayMs,
759
+ ...(upstreamError ? { upstreamError } : {}),
665
760
  });
761
+ if (creditWait)
762
+ creditWaits++;
763
+ else
764
+ attempt++;
666
765
  // A host may cancel inside onRateLimit, before a backoff listener exists.
667
766
  signal.throwIfAborted();
668
767
  await new Promise((resolve) => {
@@ -680,7 +779,7 @@ class DeepseekAIProviderImpl {
680
779
  }
681
780
  break;
682
781
  }
683
- return { response: response, sentAt };
782
+ return { response: response, sentAt, ...(rejectedBody !== undefined ? { rejectedBody } : {}) };
684
783
  }
685
784
  /**
686
785
  * Record one stalled attempt: a warn line always, plus the host's
package/dist/types.d.ts CHANGED
@@ -34,6 +34,19 @@ export interface DeepseekConfig {
34
34
  modelMap?: Record<string, string>;
35
35
  /** Called on each rate-limited/overloaded upstream response, before any retry sleep. */
36
36
  onRateLimit?: AiRateLimitCallback;
37
+ /**
38
+ * Keep a request whose account has no balance left (HTTP 402) and send it
39
+ * again until the account is topped up, instead of failing it. Defaults to
40
+ * false: a 402 ends the request with "provider credit balance too low".
41
+ *
42
+ * The wait lasts until the CALLER cancels, so it applies only to a call that
43
+ * passes `params.signal`; a call without one still fails at once, because
44
+ * nothing could end its wait. The same serialized request is re-sent, so a
45
+ * long-running caller loses no conversation or tool result. Each wait is
46
+ * reported, before it starts, to `onRateLimit` and to the call's
47
+ * `params.onProviderWait` (status 402), backing off up to 30 s between tries.
48
+ */
49
+ waitForCredit?: boolean;
37
50
  /** Called when a stream accepts the request and then produces no content for the whole first-token window. */
38
51
  onStreamStall?: AiStreamStallCallback;
39
52
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAElF;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,+EAA+E;IAC/E,OA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AA8G;IAC9G,aAAa,CAAC,EAAE,qBAAqB,CAAA;IACrC;;;;;;;;;;OAUG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;;;;;;;;OASG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAA;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,gBAAgB,EAAE,MAAM,CAAA;IACxB,0FAA0F;IAC1F,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,mFAAmF;IACnF,yBAAyB,CAAC,EAAE,MAAM,CAAA;CACnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-ai-deepseek",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "DeepSeek AI provider for molecule.dev",
5
5
  "homepage": "https://www.molecule.dev/packages/api-ai-deepseek",
6
6
  "type": "module",
@@ -33,7 +33,7 @@
33
33
  "directory": "packages/api/bonds/ai/deepseek"
34
34
  },
35
35
  "devDependencies": {
36
- "@molecule/api-ai": "1.4.0",
36
+ "@molecule/api-ai": "1.6.0",
37
37
  "@molecule/api-bond": "1.0.4",
38
38
  "@types/node": "26.6.5",
39
39
  "typescript": "6.0.3",