@openclaw/ai 2026.8.2 → 2026.9.1

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.
Files changed (60) hide show
  1. package/dist/{anthropic-compaction-replay-CKCDrZJv.mjs → anthropic-compaction-replay-OMJZ0uyo.mjs} +5 -5
  2. package/dist/{anthropic-DTGZ4VMY.mjs → anthropic-hk7F7ptG.mjs} +16 -13
  3. package/dist/{anthropic-payload-policy-BTzmNC14.d.mts → anthropic-payload-policy-DBT1itQ-.d.mts} +2 -2
  4. package/dist/{api-registry-BbUHEKER.d.mts → api-registry-Cs6HGNqY.d.mts} +2 -2
  5. package/dist/{azure-openai-responses-BmqaDXM1.mjs → azure-openai-responses-CN4Fy5zV.mjs} +6 -4
  6. package/dist/{diagnostics-COpOtRwq.mjs → diagnostics-CPeq9F7y.mjs} +5 -1
  7. package/dist/{diagnostics-BaTA9eVl.d.mts → diagnostics-DnPnOui6.d.mts} +5 -1
  8. package/dist/diagnostics-KhXK-QJI.mjs +136 -0
  9. package/dist/diagnostics.d.mts +7 -2
  10. package/dist/diagnostics.mjs +4 -3
  11. package/dist/event-stream-DeDhbCc5.d.mts +1 -0
  12. package/dist/{event-stream-DcvAPSBe.d.mts → event-stream-vK_7r3bj.d.mts} +1 -1
  13. package/dist/event-stream.d.mts +2 -2
  14. package/dist/{google-CqjVZMwo.mjs → google-CC-nrwXg.mjs} +2 -2
  15. package/dist/{google-shared-Bnqni5j3.mjs → google-shared-CjPY0hZM.mjs} +2 -2
  16. package/dist/{google-vertex-D_WREEJi.mjs → google-vertex-DCr0pyzQ.mjs} +2 -2
  17. package/dist/{host-DKFUAmCn.d.mts → host-BztR4tQj.d.mts} +3 -3
  18. package/dist/{index-CefaUGSS.d.mts → index-AfaxKT8w.d.mts} +5 -5
  19. package/dist/index.d.mts +8 -8
  20. package/dist/index.mjs +2 -2
  21. package/dist/internal/anthropic.d.mts +8 -8
  22. package/dist/internal/anthropic.mjs +2 -2
  23. package/dist/internal/openai-responses-payload-policy.d.mts +1 -1
  24. package/dist/internal/openai.d.mts +5 -5
  25. package/dist/internal/openai.mjs +6 -6
  26. package/dist/internal/runtime.d.mts +5 -5
  27. package/dist/internal/runtime.mjs +6 -4
  28. package/dist/internal/shared.d.mts +2 -2
  29. package/dist/internal/shared.mjs +93 -2
  30. package/dist/{mistral-C24jVd6f.mjs → mistral-B7etBd_H.mjs} +5 -6
  31. package/dist/{openai-chatgpt-responses-Czum0oXz.mjs → openai-chatgpt-responses-BAJ4gq3i.mjs} +51 -111
  32. package/dist/{openai-completions-BfFwac6f.mjs → openai-completions-D0QZ0AyB.mjs} +9 -10
  33. package/dist/{openai-completions-compat-SZhi0Lf4.d.mts → openai-completions-compat-4IjSBpr6.d.mts} +5 -5
  34. package/dist/{openai-completions-stream-DGOvau4J.mjs → openai-completions-stream-DZjwK8vp.mjs} +14 -11
  35. package/dist/{openai-responses-BAryVEJM.mjs → openai-responses-BEUlxfDu.mjs} +4 -3
  36. package/dist/{openai-responses-contracts-BthRXano.d.mts → openai-responses-contracts-bPzSN_Ba.d.mts} +3 -3
  37. package/dist/{openai-responses-prompt-observer-internal--R0kZLOZ.mjs → openai-responses-prompt-observer-internal-C7x4IK7r.mjs} +3 -17
  38. package/dist/{openai-responses-shared-CxgdGBvm.mjs → openai-responses-shared-DiAdpNAM.mjs} +82 -89
  39. package/dist/{openai-tool-schema-CSMh5e9O.mjs → openai-tool-schema-BMiHFH36.mjs} +1 -1
  40. package/dist/{provider-error-BI8kIViN.mjs → provider-error-B6EGq6gg.mjs} +1 -0
  41. package/dist/{provider-options-DJd_9euj.d.mts → provider-options-CxFPtvh7.d.mts} +2 -2
  42. package/dist/provider-types.d.mts +7 -7
  43. package/dist/providers.d.mts +1 -1
  44. package/dist/providers.mjs +9 -9
  45. package/dist/{reasoning-tag-text-partitioner-BsUX44Tq.mjs → reasoning-tag-text-partitioner-C-4uedDb.mjs} +63 -57
  46. package/dist/{simple-options-rdOPzr7Z.mjs → simple-options-0PLDyJ-d.mjs} +1 -2
  47. package/dist/{transport-stream-shared-BbG7PThh.d.mts → transport-stream-shared-BrvFTkoO.d.mts} +5 -5
  48. package/dist/{transport-stream-shared-D8nQWCUo.mjs → transport-stream-shared-CytPVLIg.mjs} +17 -4
  49. package/dist/transports.d.mts +11 -11
  50. package/dist/transports.mjs +26 -30
  51. package/dist/types-B5EFUmXs.d.mts +1 -0
  52. package/dist/{types-Beemor2E.d.mts → types-DbrhszyQ.d.mts} +3 -6
  53. package/dist/types.d.mts +7 -7
  54. package/dist/types.mjs +2 -2
  55. package/dist/{validation-CC6s7Smp.d.mts → validation-BOwtcl9X.d.mts} +1 -1
  56. package/dist/validation.d.mts +1 -1
  57. package/package.json +1 -1
  58. package/dist/event-stream-pXT3FI6X.d.mts +0 -1
  59. package/dist/tls-certificate-errors-DXSpluKI.mjs +0 -93
  60. package/dist/types-COdhCX0U.d.mts +0 -1
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
2
- //#region node_modules/mdast-util-to-string/lib/index.js
2
+ //#region node_modules/.pnpm/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.js
3
3
  /**
4
4
  * @typedef {import('mdast').Nodes} Nodes
5
5
  *
@@ -81,7 +81,7 @@ function node(value) {
81
81
  return Boolean(value && typeof value === "object");
82
82
  }
83
83
  //#endregion
84
- //#region node_modules/character-entities/index.js
84
+ //#region node_modules/.pnpm/character-entities@2.0.2/node_modules/character-entities/index.js
85
85
  /**
86
86
  * Map of named character references.
87
87
  *
@@ -2215,7 +2215,7 @@ const characterEntities = {
2215
2215
  zwnj: "‌"
2216
2216
  };
2217
2217
  //#endregion
2218
- //#region node_modules/decode-named-character-reference/index.js
2218
+ //#region node_modules/.pnpm/decode-named-character-reference@1.3.0/node_modules/decode-named-character-reference/index.js
2219
2219
  const own$1 = {}.hasOwnProperty;
2220
2220
  /**
2221
2221
  * Decode a single character reference (without the `&` or `;`).
@@ -2232,7 +2232,7 @@ function decodeNamedCharacterReference(value) {
2232
2232
  return own$1.call(characterEntities, value) ? characterEntities[value] : false;
2233
2233
  }
2234
2234
  //#endregion
2235
- //#region node_modules/micromark-util-chunked/index.js
2235
+ //#region node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.js
2236
2236
  /**
2237
2237
  * Like `Array#splice`, but smarter for giant arrays.
2238
2238
  *
@@ -2302,7 +2302,7 @@ function push(list, items) {
2302
2302
  return items;
2303
2303
  }
2304
2304
  //#endregion
2305
- //#region node_modules/micromark-util-combine-extensions/index.js
2305
+ //#region node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.js
2306
2306
  /**
2307
2307
  * @import {
2308
2308
  * Extension,
@@ -2373,7 +2373,7 @@ function constructs(existing, list) {
2373
2373
  splice(existing, 0, 0, before);
2374
2374
  }
2375
2375
  //#endregion
2376
- //#region node_modules/micromark-util-decode-numeric-character-reference/index.js
2376
+ //#region node_modules/.pnpm/micromark-util-decode-numeric-character-reference@2.0.2/node_modules/micromark-util-decode-numeric-character-reference/index.js
2377
2377
  /**
2378
2378
  * Turn the number (in string form as either hexa- or plain decimal) coming from
2379
2379
  * a numeric character reference into a character.
@@ -2394,7 +2394,7 @@ function decodeNumericCharacterReference(value, base) {
2394
2394
  return String.fromCodePoint(code);
2395
2395
  }
2396
2396
  //#endregion
2397
- //#region node_modules/micromark-util-normalize-identifier/index.js
2397
+ //#region node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.js
2398
2398
  /**
2399
2399
  * Normalize an identifier (as found in references, definitions).
2400
2400
  *
@@ -2418,7 +2418,7 @@ function normalizeIdentifier(value) {
2418
2418
  return value.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
2419
2419
  }
2420
2420
  //#endregion
2421
- //#region node_modules/micromark-util-character/index.js
2421
+ //#region node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.js
2422
2422
  /**
2423
2423
  * @import {Code} from 'micromark-util-types'
2424
2424
  */
@@ -2646,7 +2646,7 @@ function regexCheck(regex) {
2646
2646
  }
2647
2647
  }
2648
2648
  //#endregion
2649
- //#region node_modules/micromark-factory-space/index.js
2649
+ //#region node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.js
2650
2650
  /**
2651
2651
  * @import {Effects, State, TokenType} from 'micromark-util-types'
2652
2652
  */
@@ -2705,7 +2705,7 @@ function factorySpace(effects, ok, type, max) {
2705
2705
  }
2706
2706
  }
2707
2707
  //#endregion
2708
- //#region node_modules/micromark/lib/initialize/content.js
2708
+ //#region node_modules/.pnpm/micromark@4.0.2_supports-color@10.2.2/node_modules/micromark/lib/initialize/content.js
2709
2709
  /**
2710
2710
  * @import {
2711
2711
  * InitialConstruct,
@@ -2772,7 +2772,7 @@ function initializeContent(effects) {
2772
2772
  }
2773
2773
  }
2774
2774
  //#endregion
2775
- //#region node_modules/micromark/lib/initialize/document.js
2775
+ //#region node_modules/.pnpm/micromark@4.0.2_supports-color@10.2.2/node_modules/micromark/lib/initialize/document.js
2776
2776
  /**
2777
2777
  * @import {
2778
2778
  * Construct,
@@ -2988,7 +2988,7 @@ function tokenizeContainer(effects, ok, nok) {
2988
2988
  return factorySpace(effects, effects.attempt(this.parser.constructs.document, ok, nok), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
2989
2989
  }
2990
2990
  //#endregion
2991
- //#region node_modules/micromark-util-classify-character/index.js
2991
+ //#region node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.js
2992
2992
  /**
2993
2993
  * @import {Code} from 'micromark-util-types'
2994
2994
  */
@@ -3011,7 +3011,7 @@ function classifyCharacter(code) {
3011
3011
  if (unicodePunctuation(code)) return 2;
3012
3012
  }
3013
3013
  //#endregion
3014
- //#region node_modules/micromark-util-resolve-all/index.js
3014
+ //#region node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.js
3015
3015
  /**
3016
3016
  * @import {Event, Resolver, TokenizeContext} from 'micromark-util-types'
3017
3017
  */
@@ -3041,7 +3041,7 @@ function resolveAll(constructs, events, context) {
3041
3041
  return events;
3042
3042
  }
3043
3043
  //#endregion
3044
- //#region node_modules/micromark-core-commonmark/lib/attention.js
3044
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/attention.js
3045
3045
  /**
3046
3046
  * @import {
3047
3047
  * Code,
@@ -3261,7 +3261,7 @@ function movePoint(point, offset) {
3261
3261
  point._bufferIndex += offset;
3262
3262
  }
3263
3263
  //#endregion
3264
- //#region node_modules/micromark-core-commonmark/lib/autolink.js
3264
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/autolink.js
3265
3265
  /**
3266
3266
  * @import {
3267
3267
  * Construct,
@@ -3472,7 +3472,7 @@ function tokenizeAutolink(effects, ok, nok) {
3472
3472
  }
3473
3473
  }
3474
3474
  //#endregion
3475
- //#region node_modules/micromark-core-commonmark/lib/blank-line.js
3475
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/blank-line.js
3476
3476
  /**
3477
3477
  * @import {
3478
3478
  * Construct,
@@ -3529,7 +3529,7 @@ function tokenizeBlankLine(effects, ok, nok) {
3529
3529
  }
3530
3530
  }
3531
3531
  //#endregion
3532
- //#region node_modules/micromark-core-commonmark/lib/block-quote.js
3532
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/block-quote.js
3533
3533
  /**
3534
3534
  * @import {
3535
3535
  * Construct,
@@ -3656,7 +3656,7 @@ function exit$1(effects) {
3656
3656
  effects.exit("blockQuote");
3657
3657
  }
3658
3658
  //#endregion
3659
- //#region node_modules/micromark-core-commonmark/lib/character-escape.js
3659
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-escape.js
3660
3660
  /**
3661
3661
  * @import {
3662
3662
  * Construct,
@@ -3716,7 +3716,7 @@ function tokenizeCharacterEscape(effects, ok, nok) {
3716
3716
  }
3717
3717
  }
3718
3718
  //#endregion
3719
- //#region node_modules/micromark-core-commonmark/lib/character-reference.js
3719
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-reference.js
3720
3720
  /**
3721
3721
  * @import {
3722
3722
  * Code,
@@ -3854,7 +3854,7 @@ function tokenizeCharacterReference(effects, ok, nok) {
3854
3854
  }
3855
3855
  }
3856
3856
  //#endregion
3857
- //#region node_modules/micromark-core-commonmark/lib/code-fenced.js
3857
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-fenced.js
3858
3858
  /**
3859
3859
  * @import {
3860
3860
  * Code,
@@ -4269,7 +4269,7 @@ function tokenizeNonLazyContinuation(effects, ok, nok) {
4269
4269
  }
4270
4270
  }
4271
4271
  //#endregion
4272
- //#region node_modules/micromark-core-commonmark/lib/code-indented.js
4272
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-indented.js
4273
4273
  /**
4274
4274
  * @import {
4275
4275
  * Construct,
@@ -4413,7 +4413,7 @@ function tokenizeFurtherStart(effects, ok, nok) {
4413
4413
  }
4414
4414
  }
4415
4415
  //#endregion
4416
- //#region node_modules/micromark-core-commonmark/lib/code-text.js
4416
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-text.js
4417
4417
  /**
4418
4418
  * @import {
4419
4419
  * Construct,
@@ -4598,7 +4598,7 @@ function tokenizeCodeText(effects, ok, nok) {
4598
4598
  }
4599
4599
  }
4600
4600
  //#endregion
4601
- //#region node_modules/micromark-util-subtokenize/lib/splice-buffer.js
4601
+ //#region node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/lib/splice-buffer.js
4602
4602
  /**
4603
4603
  * Some of the internal operations of micromark do lots of editing
4604
4604
  * operations on very large arrays. This runs into problems with two
@@ -4828,7 +4828,7 @@ function chunkedPush(list, right) {
4828
4828
  }
4829
4829
  }
4830
4830
  //#endregion
4831
- //#region node_modules/micromark-util-subtokenize/index.js
4831
+ //#region node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/index.js
4832
4832
  /**
4833
4833
  * @import {Chunk, Event, Token} from 'micromark-util-types'
4834
4834
  */
@@ -4983,7 +4983,7 @@ function subcontent(events, eventIndex) {
4983
4983
  return gaps;
4984
4984
  }
4985
4985
  //#endregion
4986
- //#region node_modules/micromark-core-commonmark/lib/content.js
4986
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/content.js
4987
4987
  /**
4988
4988
  * @import {
4989
4989
  * Construct,
@@ -5116,7 +5116,7 @@ function tokenizeContinuation(effects, ok, nok) {
5116
5116
  }
5117
5117
  }
5118
5118
  //#endregion
5119
- //#region node_modules/micromark-factory-destination/index.js
5119
+ //#region node_modules/.pnpm/micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination/index.js
5120
5120
  /**
5121
5121
  * @import {Effects, State, TokenType} from 'micromark-util-types'
5122
5122
  */
@@ -5300,7 +5300,7 @@ function factoryDestination(effects, ok, nok, type, literalType, literalMarkerTy
5300
5300
  }
5301
5301
  }
5302
5302
  //#endregion
5303
- //#region node_modules/micromark-factory-label/index.js
5303
+ //#region node_modules/.pnpm/micromark-factory-label@2.0.1/node_modules/micromark-factory-label/index.js
5304
5304
  /**
5305
5305
  * @import {
5306
5306
  * Effects,
@@ -5434,7 +5434,7 @@ function factoryLabel(effects, ok, nok, type, markerType, stringType) {
5434
5434
  }
5435
5435
  }
5436
5436
  //#endregion
5437
- //#region node_modules/micromark-factory-title/index.js
5437
+ //#region node_modules/.pnpm/micromark-factory-title@2.0.1/node_modules/micromark-factory-title/index.js
5438
5438
  /**
5439
5439
  * @import {
5440
5440
  * Code,
@@ -5579,7 +5579,7 @@ function factoryTitle(effects, ok, nok, type, markerType, stringType) {
5579
5579
  }
5580
5580
  }
5581
5581
  //#endregion
5582
- //#region node_modules/micromark-factory-whitespace/index.js
5582
+ //#region node_modules/.pnpm/micromark-factory-whitespace@2.0.1/node_modules/micromark-factory-whitespace/index.js
5583
5583
  /**
5584
5584
  * @import {Effects, State} from 'micromark-util-types'
5585
5585
  */
@@ -5619,7 +5619,7 @@ function factoryWhitespace(effects, ok) {
5619
5619
  }
5620
5620
  }
5621
5621
  //#endregion
5622
- //#region node_modules/micromark-core-commonmark/lib/definition.js
5622
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/definition.js
5623
5623
  /**
5624
5624
  * @import {
5625
5625
  * Construct,
@@ -5834,7 +5834,7 @@ function tokenizeTitleBefore(effects, ok, nok) {
5834
5834
  }
5835
5835
  }
5836
5836
  //#endregion
5837
- //#region node_modules/micromark-core-commonmark/lib/hard-break-escape.js
5837
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/hard-break-escape.js
5838
5838
  /**
5839
5839
  * @import {
5840
5840
  * Construct,
@@ -5891,7 +5891,7 @@ function tokenizeHardBreakEscape(effects, ok, nok) {
5891
5891
  }
5892
5892
  }
5893
5893
  //#endregion
5894
- //#region node_modules/micromark-core-commonmark/lib/heading-atx.js
5894
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/heading-atx.js
5895
5895
  /**
5896
5896
  * @import {
5897
5897
  * Construct,
@@ -6076,7 +6076,7 @@ function tokenizeHeadingAtx(effects, ok, nok) {
6076
6076
  }
6077
6077
  }
6078
6078
  //#endregion
6079
- //#region node_modules/micromark-util-html-tag-name/index.js
6079
+ //#region node_modules/.pnpm/micromark-util-html-tag-name@2.0.1/node_modules/micromark-util-html-tag-name/index.js
6080
6080
  /**
6081
6081
  * List of lowercase HTML “block” tag names.
6082
6082
  *
@@ -6175,7 +6175,7 @@ const htmlRawNames = [
6175
6175
  "textarea"
6176
6176
  ];
6177
6177
  //#endregion
6178
- //#region node_modules/micromark-core-commonmark/lib/html-flow.js
6178
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-flow.js
6179
6179
  /**
6180
6180
  * @import {
6181
6181
  * Code,
@@ -6948,7 +6948,7 @@ function tokenizeBlankLineBefore(effects, ok, nok) {
6948
6948
  }
6949
6949
  }
6950
6950
  //#endregion
6951
- //#region node_modules/micromark-core-commonmark/lib/html-text.js
6951
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-text.js
6952
6952
  /**
6953
6953
  * @import {
6954
6954
  * Code,
@@ -7562,7 +7562,7 @@ function tokenizeHtmlText(effects, ok, nok) {
7562
7562
  }
7563
7563
  }
7564
7564
  //#endregion
7565
- //#region node_modules/micromark-core-commonmark/lib/label-end.js
7565
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-end.js
7566
7566
  /**
7567
7567
  * @import {
7568
7568
  * Construct,
@@ -8032,7 +8032,7 @@ function tokenizeReferenceCollapsed(effects, ok, nok) {
8032
8032
  }
8033
8033
  }
8034
8034
  //#endregion
8035
- //#region node_modules/micromark-core-commonmark/lib/label-start-image.js
8035
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-image.js
8036
8036
  /**
8037
8037
  * @import {
8038
8038
  * Construct,
@@ -8125,7 +8125,7 @@ function tokenizeLabelStartImage(effects, ok, nok) {
8125
8125
  }
8126
8126
  }
8127
8127
  //#endregion
8128
- //#region node_modules/micromark-core-commonmark/lib/label-start-link.js
8128
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-link.js
8129
8129
  /**
8130
8130
  * @import {
8131
8131
  * Construct,
@@ -8173,7 +8173,7 @@ function tokenizeLabelStartLink(effects, ok, nok) {
8173
8173
  }
8174
8174
  }
8175
8175
  //#endregion
8176
- //#region node_modules/micromark-core-commonmark/lib/line-ending.js
8176
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/line-ending.js
8177
8177
  /**
8178
8178
  * @import {
8179
8179
  * Construct,
@@ -8203,7 +8203,7 @@ function tokenizeLineEnding(effects, ok) {
8203
8203
  }
8204
8204
  }
8205
8205
  //#endregion
8206
- //#region node_modules/micromark-core-commonmark/lib/thematic-break.js
8206
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/thematic-break.js
8207
8207
  /**
8208
8208
  * @import {
8209
8209
  * Code,
@@ -8298,7 +8298,7 @@ function tokenizeThematicBreak(effects, ok, nok) {
8298
8298
  }
8299
8299
  }
8300
8300
  //#endregion
8301
- //#region node_modules/micromark-core-commonmark/lib/list.js
8301
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/list.js
8302
8302
  /**
8303
8303
  * @import {
8304
8304
  * Code,
@@ -8470,7 +8470,7 @@ function tokenizeListItemPrefixWhitespace(effects, ok, nok) {
8470
8470
  }
8471
8471
  }
8472
8472
  //#endregion
8473
- //#region node_modules/micromark-core-commonmark/lib/setext-underline.js
8473
+ //#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/setext-underline.js
8474
8474
  /**
8475
8475
  * @import {
8476
8476
  * Code,
@@ -8622,7 +8622,7 @@ function tokenizeSetextUnderline(effects, ok, nok) {
8622
8622
  }
8623
8623
  }
8624
8624
  //#endregion
8625
- //#region node_modules/micromark/lib/initialize/flow.js
8625
+ //#region node_modules/.pnpm/micromark@4.0.2_supports-color@10.2.2/node_modules/micromark/lib/initialize/flow.js
8626
8626
  /**
8627
8627
  * @import {
8628
8628
  * InitialConstruct,
@@ -8669,7 +8669,7 @@ function initializeFlow(effects) {
8669
8669
  }
8670
8670
  }
8671
8671
  //#endregion
8672
- //#region node_modules/micromark/lib/initialize/text.js
8672
+ //#region node_modules/.pnpm/micromark@4.0.2_supports-color@10.2.2/node_modules/micromark/lib/initialize/text.js
8673
8673
  /**
8674
8674
  * @import {
8675
8675
  * Code,
@@ -8846,7 +8846,7 @@ function resolveAllLineSuffixes(events, context) {
8846
8846
  return events;
8847
8847
  }
8848
8848
  //#endregion
8849
- //#region node_modules/micromark/lib/constructs.js
8849
+ //#region node_modules/.pnpm/micromark@4.0.2_supports-color@10.2.2/node_modules/micromark/lib/constructs.js
8850
8850
  /**
8851
8851
  * @import {Extension} from 'micromark-util-types'
8852
8852
  */
@@ -8924,7 +8924,7 @@ const attentionMarkers = { null: [42, 95] };
8924
8924
  /** @satisfies {Extension['disable']} */
8925
8925
  const disable = { null: [] };
8926
8926
  //#endregion
8927
- //#region node_modules/micromark/lib/create-tokenizer.js
8927
+ //#region node_modules/.pnpm/micromark@4.0.2_supports-color@10.2.2/node_modules/micromark/lib/create-tokenizer.js
8928
8928
  /**
8929
8929
  * @import {
8930
8930
  * Chunk,
@@ -9393,7 +9393,7 @@ function serializeChunks(chunks, expandTabs) {
9393
9393
  return result.join("");
9394
9394
  }
9395
9395
  //#endregion
9396
- //#region node_modules/micromark/lib/parse.js
9396
+ //#region node_modules/.pnpm/micromark@4.0.2_supports-color@10.2.2/node_modules/micromark/lib/parse.js
9397
9397
  /**
9398
9398
  * @import {
9399
9399
  * Create,
@@ -9437,7 +9437,7 @@ function parse(options) {
9437
9437
  }
9438
9438
  }
9439
9439
  //#endregion
9440
- //#region node_modules/micromark/lib/postprocess.js
9440
+ //#region node_modules/.pnpm/micromark@4.0.2_supports-color@10.2.2/node_modules/micromark/lib/postprocess.js
9441
9441
  /**
9442
9442
  * @import {Event} from 'micromark-util-types'
9443
9443
  */
@@ -9452,7 +9452,7 @@ function postprocess(events) {
9452
9452
  return events;
9453
9453
  }
9454
9454
  //#endregion
9455
- //#region node_modules/micromark/lib/preprocess.js
9455
+ //#region node_modules/.pnpm/micromark@4.0.2_supports-color@10.2.2/node_modules/micromark/lib/preprocess.js
9456
9456
  /**
9457
9457
  * @import {Chunk, Code, Encoding, Value} from 'micromark-util-types'
9458
9458
  */
@@ -9553,7 +9553,7 @@ function preprocess() {
9553
9553
  }
9554
9554
  }
9555
9555
  //#endregion
9556
- //#region node_modules/micromark-util-decode-string/index.js
9556
+ //#region node_modules/.pnpm/micromark-util-decode-string@2.0.1/node_modules/micromark-util-decode-string/index.js
9557
9557
  const characterEscapeOrReference = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
9558
9558
  /**
9559
9559
  * Decode markdown strings (which occur in places such as fenced code info
@@ -9590,7 +9590,7 @@ function decode($0, $1, $2) {
9590
9590
  return decodeNamedCharacterReference($2) || $0;
9591
9591
  }
9592
9592
  //#endregion
9593
- //#region node_modules/unist-util-stringify-position/lib/index.js
9593
+ //#region node_modules/.pnpm/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position/lib/index.js
9594
9594
  /**
9595
9595
  * @typedef {import('unist').Node} Node
9596
9596
  * @typedef {import('unist').Point} Point
@@ -9654,7 +9654,7 @@ function index(value) {
9654
9654
  return value && typeof value === "number" ? value : 1;
9655
9655
  }
9656
9656
  //#endregion
9657
- //#region node_modules/mdast-util-from-markdown/lib/index.js
9657
+ //#region node_modules/.pnpm/mdast-util-from-markdown@2.0.3_supports-color@10.2.2/node_modules/mdast-util-from-markdown/lib/index.js
9658
9658
  /**
9659
9659
  * @import {
9660
9660
  * Break,
@@ -10624,7 +10624,7 @@ function defaultOnError(left, right) {
10624
10624
  }) + ") is still open");
10625
10625
  }
10626
10626
  //#endregion
10627
- //#region node_modules/mdast-util-gfm-table/lib/index.js
10627
+ //#region node_modules/.pnpm/mdast-util-gfm-table@2.0.0_supports-color@10.2.2/node_modules/mdast-util-gfm-table/lib/index.js
10628
10628
  /**
10629
10629
  * @typedef {import('mdast').InlineCode} InlineCode
10630
10630
  * @typedef {import('mdast').Table} Table
@@ -10749,7 +10749,7 @@ function replace($0, $1) {
10749
10749
  return $1 === "|" ? $1 : $0;
10750
10750
  }
10751
10751
  //#endregion
10752
- //#region node_modules/micromark-extension-gfm-table/lib/edit-map.js
10752
+ //#region node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/edit-map.js
10753
10753
  /**
10754
10754
  * @import {Event} from 'micromark-util-types'
10755
10755
  */
@@ -10841,7 +10841,7 @@ function addImplementation(editMap, at, remove, add) {
10841
10841
  ]);
10842
10842
  }
10843
10843
  //#endregion
10844
- //#region node_modules/micromark-extension-gfm-table/lib/infer.js
10844
+ //#region node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/infer.js
10845
10845
  /**
10846
10846
  * @import {Event} from 'micromark-util-types'
10847
10847
  */
@@ -10879,7 +10879,7 @@ function gfmTableAlign(events, index) {
10879
10879
  return align;
10880
10880
  }
10881
10881
  //#endregion
10882
- //#region node_modules/micromark-extension-gfm-table/lib/syntax.js
10882
+ //#region node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/syntax.js
10883
10883
  /**
10884
10884
  * @import {Event, Extension, Point, Resolver, State, Token, TokenizeContext, Tokenizer} from 'micromark-util-types'
10885
10885
  */
@@ -11689,6 +11689,7 @@ function findNextLineEnding(text, start) {
11689
11689
  }
11690
11690
  function parseMarkdownOwnership(text) {
11691
11691
  if (!text) return {
11692
+ blockCodeSpans: [],
11692
11693
  codeSpans: [],
11693
11694
  retainStart: 0
11694
11695
  };
@@ -11697,6 +11698,7 @@ function parseMarkdownOwnership(text) {
11697
11698
  mdastExtensions: [gfmTableFromMarkdown()]
11698
11699
  });
11699
11700
  const spans = [];
11701
+ const blockSpans = [];
11700
11702
  const pending = [tree];
11701
11703
  while (pending.length > 0) {
11702
11704
  const node = pending.pop();
@@ -11704,7 +11706,10 @@ function parseMarkdownOwnership(text) {
11704
11706
  if (node.type === "code" || node.type === "inlineCode") {
11705
11707
  const start = node.position?.start?.offset;
11706
11708
  const end = node.position?.end?.offset;
11707
- if (start !== void 0 && end !== void 0) spans.push([start, end]);
11709
+ if (start !== void 0 && end !== void 0) {
11710
+ spans.push([start, end]);
11711
+ if (node.type === "code") blockSpans.push([start, end]);
11712
+ }
11708
11713
  }
11709
11714
  const children = node.children ?? [];
11710
11715
  for (let index = children.length - 1; index >= 0; index -= 1) {
@@ -11714,6 +11719,7 @@ function parseMarkdownOwnership(text) {
11714
11719
  }
11715
11720
  const rootChildren = tree.children ?? [];
11716
11721
  return {
11722
+ blockCodeSpans: blockSpans.toSorted((left, right) => left[0] - right[0]),
11717
11723
  codeSpans: spans.toSorted((left, right) => left[0] - right[0]),
11718
11724
  retainStart: rootChildren.at(-1)?.position?.start?.offset ?? text.length
11719
11725
  };
@@ -1,6 +1,6 @@
1
1
  import { c as normalizeLowercaseStringOrEmpty } from "./utf16-slice-qz3nsy87.mjs";
2
2
  import { t as sanitizeSurrogates } from "./sanitize-unicode-S6binQG-.mjs";
3
- import { r as copyProviderAcceptanceObserver } from "./transport-stream-shared-D8nQWCUo.mjs";
3
+ import { r as copyProviderAcceptanceObserver } from "./transport-stream-shared-CytPVLIg.mjs";
4
4
  //#region packages/ai/src/utils/prompt-cache-stability.ts
5
5
  /**
6
6
  * Prompt-cache normalization helpers. They keep generated prompt sections
@@ -120,7 +120,6 @@ function buildBaseOptions(model, options, apiKey) {
120
120
  timeoutMs: options?.timeoutMs,
121
121
  firstEventTimeoutMs: firstEventOptions?.firstEventTimeoutMs,
122
122
  onFirstEventTimeout: firstEventOptions?.onFirstEventTimeout,
123
- maxRetries: options?.maxRetries,
124
123
  maxRetryDelayMs: options?.maxRetryDelayMs,
125
124
  metadata: options?.metadata
126
125
  };
@@ -1,7 +1,7 @@
1
- import "./index-CefaUGSS.mjs";
2
- import { B as ProviderResponse, D as Model, J as StreamOptions, a as AssistantMessage, at as Usage } from "./types-Beemor2E.mjs";
3
- import { r as createAssistantMessageEventStream, t as AssistantMessageEventStream } from "./event-stream-DcvAPSBe.mjs";
4
- import "./event-stream-pXT3FI6X.mjs";
1
+ import "./index-AfaxKT8w.mjs";
2
+ import { B as ProviderResponse, D as Model, J as StreamOptions, a as AssistantMessage, at as Usage } from "./types-DbrhszyQ.mjs";
3
+ import { r as createAssistantMessageEventStream, t as AssistantMessageEventStream } from "./event-stream-vK_7r3bj.mjs";
4
+ import "./event-stream-DeDhbCc5.mjs";
5
5
  import { t as ProviderErrorProjection } from "./provider-error-CzNw4BWX.mjs";
6
6
  //#region packages/ai/src/utils/stream-first-event-timeout.d.ts
7
7
  type StreamStage = "responses" | "completions";
@@ -125,7 +125,7 @@ declare function finalizeTransportStream(params: {
125
125
  output: AssistantMessage;
126
126
  signal?: AbortSignal;
127
127
  }): void;
128
- /** @deprecated Use projectProviderError. v2026.7.2-beta.5 compatibility; remove after 2026.10. */
128
+ /** Assign terminal fields and record silent transport failures before partial-call cleanup. */
129
129
  declare function assignTransportErrorDetails(output: AssistantMessage, error: unknown, signal?: AbortSignal): ProviderErrorProjection;
130
130
  declare function failTransportStream(params: {
131
131
  stream: WritableTransportStream;
@@ -1,7 +1,9 @@
1
+ import { n as createAssistantMessageDiagnostic, t as appendAssistantMessageDiagnostic } from "./diagnostics-CPeq9F7y.mjs";
1
2
  import { r as createAssistantMessageEventStream } from "./event-stream-uSMZJ3FA.mjs";
2
3
  import { a as asOptionalRecord, n as asNonArrayRecord, r as asNullableRecord } from "./utf16-slice-qz3nsy87.mjs";
3
4
  import { t as sanitizeSurrogates } from "./sanitize-unicode-S6binQG-.mjs";
4
- import { n as projectProviderError } from "./provider-error-BI8kIViN.mjs";
5
+ import { n as projectProviderError, r as projectDiagnosticValue } from "./provider-error-B6EGq6gg.mjs";
6
+ import { n as isTransientNetworkError } from "./diagnostics-KhXK-QJI.mjs";
5
7
  //#region packages/ai/src/utils/headers.ts
6
8
  /** Converts a Headers object to a plain record for provider request handling. */
7
9
  function headersToRecord(headers) {
@@ -134,7 +136,14 @@ function finalizeTerminalToolCallArguments(calls, readArguments, errorMessage) {
134
136
  }
135
137
  function mergeTransportHeaders(...headerSources) {
136
138
  const merged = {};
137
- for (const headers of headerSources) if (headers) Object.assign(merged, headers);
139
+ const namesByLowercase = /* @__PURE__ */ new Map();
140
+ for (const headers of headerSources) for (const [name, value] of Object.entries(headers ?? {})) {
141
+ const lowercaseName = name.toLowerCase();
142
+ const previousName = namesByLowercase.get(lowercaseName);
143
+ if (previousName && previousName !== name) delete merged[previousName];
144
+ merged[name] = value;
145
+ namesByLowercase.set(lowercaseName, name);
146
+ }
138
147
  return Object.keys(merged).length > 0 ? merged : void 0;
139
148
  }
140
149
  function mergeTransportMetadata(payload, metadata) {
@@ -321,16 +330,20 @@ function finalizeTransportStream(params) {
321
330
  });
322
331
  stream.end();
323
332
  }
324
- /** @deprecated Use projectProviderError. v2026.7.2-beta.5 compatibility; remove after 2026.10. */
333
+ /** Assign terminal fields and record silent transport failures before partial-call cleanup. */
325
334
  function assignTransportErrorDetails(output, error, signal) {
326
335
  const projection = projectProviderError(error, signal);
327
336
  Object.assign(output, projection);
337
+ if (projection.stopReason === "error" && output.content.length === 0 && isTransientNetworkError(projectDiagnosticValue(error)) && !output.diagnostics?.some((diagnostic) => diagnostic.type === "provider_transport_failure")) appendAssistantMessageDiagnostic(output, createAssistantMessageDiagnostic("provider_transport_failure", projection.errorMessage, {
338
+ eventsEmitted: false,
339
+ phase: "before_message_stream_start"
340
+ }));
328
341
  return projection;
329
342
  }
330
343
  function failTransportStream(params) {
331
344
  const { stream, output, signal, error, cleanup } = params;
332
- cleanup?.();
333
345
  const projection = assignTransportErrorDetails(output, error, signal);
346
+ cleanup?.();
334
347
  stream.push({
335
348
  type: "error",
336
349
  reason: projection.stopReason,
@@ -1,13 +1,13 @@
1
- import "./index-CefaUGSS.mjs";
2
- import { D as Model, K as StreamFn, Q as ThinkingContent, Y as TextContent, a as AssistantMessage, at as Usage, d as Context, j as OpenAICompletionsCompat, n as Api, nt as ToolCall, o as AssistantMessageEvent, z as ProviderReplayState } from "./types-Beemor2E.mjs";
3
- import { n as ApiRegistry } from "./api-registry-BbUHEKER.mjs";
4
- import { a as CodeModeToolSurfaceObservation, d as OpenAIToolProjection, i as BaseOpenAIStreamOptions, o as OpenAICompletionsOptions, s as OpenAIResponsesCompactionRejection } from "./provider-options-DJd_9euj.mjs";
5
- import "./types-COdhCX0U.mjs";
6
- import { a as resolveAnthropicPayloadPolicy, i as resolveAnthropicEphemeralCacheControl, n as applyAnthropicEphemeralCacheControlMarkers, o as resolveAnthropicServerCompactionPlan, r as applyAnthropicPayloadPolicyToParams, t as applyAnthropicCacheControlToMessages } from "./anthropic-payload-policy-BTzmNC14.mjs";
7
- import { a as ReplayableResponseCompactionItem, c as OpenAIResponsesCompactionOutput, i as OpenAIResponsesRequestParams, n as OpenAIResponsesOptions, o as ResponsesPromptObservation, r as OpenAIResponsesReasoningReplayMetadata } from "./openai-responses-contracts-BthRXano.mjs";
1
+ import "./index-AfaxKT8w.mjs";
2
+ import { D as Model, K as StreamFn, Q as ThinkingContent, Y as TextContent, a as AssistantMessage, at as Usage, d as Context, j as OpenAICompletionsCompat, n as Api, nt as ToolCall, o as AssistantMessageEvent, z as ProviderReplayState } from "./types-DbrhszyQ.mjs";
3
+ import { n as ApiRegistry } from "./api-registry-Cs6HGNqY.mjs";
4
+ import { a as CodeModeToolSurfaceObservation, d as OpenAIToolProjection, i as BaseOpenAIStreamOptions, o as OpenAICompletionsOptions, s as OpenAIResponsesCompactionRejection } from "./provider-options-CxFPtvh7.mjs";
5
+ import "./types-B5EFUmXs.mjs";
6
+ import { a as resolveAnthropicPayloadPolicy, i as resolveAnthropicEphemeralCacheControl, n as applyAnthropicEphemeralCacheControlMarkers, o as resolveAnthropicServerCompactionPlan, r as applyAnthropicPayloadPolicyToParams, t as applyAnthropicCacheControlToMessages } from "./anthropic-payload-policy-DBT1itQ-.mjs";
7
+ import { a as ReplayableResponseCompactionItem, c as OpenAIResponsesCompactionOutput, i as OpenAIResponsesRequestParams, n as OpenAIResponsesOptions, o as ResponsesPromptObservation, r as OpenAIResponsesReasoningReplayMetadata } from "./openai-responses-contracts-bPzSN_Ba.mjs";
8
8
  import { i as resolveOpenAIResponsesServerCompactionPlan, n as resolveOpenAIResponsesCompactEndpointPlan, r as resolveOpenAIResponsesPayloadPolicy, t as applyOpenAIResponsesPayloadPolicy } from "./openai-responses-payload-policy-rLRPsSmB.mjs";
9
- import { n as detectOpenAICompletionsCompat, r as resolveOpenAICompletionsCompat, t as ResolvedOpenAICompletionsCompat } from "./openai-completions-compat-SZhi0Lf4.mjs";
10
- import { C as FirstStreamEventInternalOptions, _ as sanitizeNonEmptyTransportPayloadText, a as copyProviderAcceptanceObserver, b as withProviderAcceptanceObserver, c as failTransportStream, d as mergeTransportHeaders, f as mergeTransportMetadata, g as parseTerminalToolCallArguments, h as notifyProviderStreamOpened, i as coerceTransportToolCallArguments, l as finalizeTerminalToolCallArguments, m as notifyProviderHttpResponse, n as WritableTransportStream, o as createEmptyTransportUsage, p as notifyProviderHttpMetadata, r as assignTransportErrorDetails, s as createWritableTransportEventStream, t as ProviderAcceptance, u as finalizeTransportStream, v as sanitizeTransportPayloadText, x as withProviderResponseHook, y as transportAbortError } from "./transport-stream-shared-BbG7PThh.mjs";
9
+ import { n as detectOpenAICompletionsCompat, r as resolveOpenAICompletionsCompat, t as ResolvedOpenAICompletionsCompat } from "./openai-completions-compat-4IjSBpr6.mjs";
10
+ import { C as FirstStreamEventInternalOptions, _ as sanitizeNonEmptyTransportPayloadText, a as copyProviderAcceptanceObserver, b as withProviderAcceptanceObserver, c as failTransportStream, d as mergeTransportHeaders, f as mergeTransportMetadata, g as parseTerminalToolCallArguments, h as notifyProviderStreamOpened, i as coerceTransportToolCallArguments, l as finalizeTerminalToolCallArguments, m as notifyProviderHttpResponse, n as WritableTransportStream, o as createEmptyTransportUsage, p as notifyProviderHttpMetadata, r as assignTransportErrorDetails, s as createWritableTransportEventStream, t as ProviderAcceptance, u as finalizeTransportStream, v as sanitizeTransportPayloadText, x as withProviderResponseHook, y as transportAbortError } from "./transport-stream-shared-BrvFTkoO.mjs";
11
11
  import { r as sortPromptCacheToolsByName } from "./prompt-cache-stability-Cwcjv_fx.mjs";
12
12
  import OpenAI from "openai";
13
13
  import { ResponseCreateParamsStreaming, ResponseInput, ResponseInputItem as ResponseInputItem$1 } from "openai/resources/responses/responses.js";
@@ -310,15 +310,15 @@ export declare function usesNativeOpenAICodexResponsesBackend(model: Model): boo
310
310
  export declare function buildOpenAIClientHeaders(model: Model, context: Context, optionHeaders?: Record<string, string>, turnHeaders?: Record<string, string>, sessionId?: string): Record<string, string>;
311
311
  export declare function buildOpenAISdkClientOptions(model: Model): {
312
312
  timeout?: number;
313
+ maxRetries: 0;
313
314
  };
314
315
  export declare function buildOpenAISdkRequestOptions(model: Model, signal?: AbortSignal, options?: {
315
316
  stream?: boolean;
316
317
  timeoutMs?: number;
317
- maxRetries?: number;
318
318
  }): {
319
319
  signal?: AbortSignal;
320
320
  timeout?: number;
321
- maxRetries?: number;
321
+ maxRetries: 0;
322
322
  headers?: Record<string, string>;
323
323
  } | undefined;
324
324
  export declare function getCompat(model: OpenAIModeModel): {