alchemylab-opencode 2.0.1 → 2.0.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.
Files changed (232) hide show
  1. package/NODE_COMPAT.md +8 -1
  2. package/dist/20260127222353_familiar_lady_ursula-YYOFSQD5.js +18 -0
  3. package/dist/20260211171708_add_project_commands-3GKQTPBZ.js +18 -0
  4. package/dist/20260213144116_wakeful_the_professor-ROO7OAVL.js +18 -0
  5. package/dist/20260225215848_workspace-V2OZTNFF.js +18 -0
  6. package/dist/20260227213759_add_session_workspace_id-GVDWAXKM.js +18 -0
  7. package/dist/20260228203230_blue_harpoon-Z5QP2II5.js +18 -0
  8. package/dist/20260303231226_add_workspace_fields-QOVAFN7W.js +18 -0
  9. package/dist/20260309230000_move_org_to_state-RQURSDZD.js +18 -0
  10. package/dist/20260312043431_session_message_cursor-VBISKDXL.js +18 -0
  11. package/dist/20260323234822_events-PILJHLNA.js +18 -0
  12. package/dist/20260410174513_workspace-name-63YCZ5NS.js +18 -0
  13. package/dist/20260413175956_chief_energizer-NMAZYGDO.js +18 -0
  14. package/dist/20260423070820_add_icon_url_override-RAJCVNEP.js +18 -0
  15. package/dist/20260427172553_slow_nightmare-ULYYZLR4.js +18 -0
  16. package/dist/20260428004200_add_session_path-U4WO2TGE.js +18 -0
  17. package/dist/20260501142318_next_venus-6BCYATSC.js +18 -0
  18. package/dist/20260504145000_add_sync_owner-RGVHV6LN.js +18 -0
  19. package/dist/20260507164347_add_workspace_time-GE6UHNPM.js +18 -0
  20. package/dist/{20260510033149_session_usage-UGBVOXZB.js → 20260510033149_session_usage-7XHCFVKY.js} +5 -1
  21. package/dist/20260511000411_data_migration_state-2EGZKFLB.js +18 -0
  22. package/dist/20260511173437_session-metadata-K322YY33.js +18 -0
  23. package/dist/20260601010001_normalize_storage_paths-VZDTY366.js +18 -0
  24. package/dist/{20260225215848_workspace-ZMSOZSPA.js → 20260601202201_amazing_prowler-YT6PLK3L.js} +5 -1
  25. package/dist/{20260228203230_blue_harpoon-IW3Z4TQZ.js → 20260602002951_lowly_union_jack-6VLQTBVB.js} +5 -1
  26. package/dist/20260602182828_add_project_directories-TVSRD25A.js +18 -0
  27. package/dist/20260603001617_session_message_projection_indexes-PHKTF6HK.js +18 -0
  28. package/dist/{20260622170816_reset_v2_session_state-5JPHJTZG.js → 20260603040000_session_message_projection_order-7RTV2POG.js} +5 -1
  29. package/dist/20260603141458_session_input_inbox-RSBWABG7.js +18 -0
  30. package/dist/20260603160727_jittery_ezekiel_stane-DXBLLRVV.js +18 -0
  31. package/dist/20260604172448_event_sourced_session_input-H6Z3JEBD.js +18 -0
  32. package/dist/20260605003541_add_session_context_snapshot-6FDPM2TK.js +18 -0
  33. package/dist/20260605042240_add_context_epoch_agent-C2OF2UKR.js +18 -0
  34. package/dist/20260611035744_credential-YNZ47FSH.js +18 -0
  35. package/dist/20260611192811_lush_chimera-E357VI6P.js +18 -0
  36. package/dist/20260612174303_project_dir_strategy-VUGGK42O.js +18 -0
  37. package/dist/20260622142730_simplify_session_context_epoch-UYGXZ5BX.js +18 -0
  38. package/dist/20260622170816_reset_v2_session_state-EILLPCJQ.js +18 -0
  39. package/dist/20260622202450_simplify_session_input-Y65GDGBO.js +18 -0
  40. package/dist/NodeSdk-AGMQWBHH.js +18 -0
  41. package/dist/anthropic-45OFTLAW.js +18 -0
  42. package/dist/anthropic-ND6UHXWL.js +18 -0
  43. package/dist/app-runtime-ZWWQ4JTM.js +18 -0
  44. package/dist/chunk-2MRHL4B2.js +18 -0
  45. package/dist/chunk-2XWBNI3L.js +1490 -0
  46. package/dist/chunk-4MBUHJHY.js +22 -0
  47. package/dist/chunk-6MAPFAXY.js +190 -0
  48. package/dist/chunk-7XX6TY62.js +259 -0
  49. package/dist/chunk-ANF3QA3Z.js +48 -0
  50. package/dist/chunk-AUB2TEYJ.js +55 -0
  51. package/dist/chunk-AZUMH3TO.js +18 -0
  52. package/dist/chunk-BQ4IEPN3.js +19 -0
  53. package/dist/chunk-CYRZU5QM.js +33 -0
  54. package/dist/chunk-DGJQZN2Q.js +18 -0
  55. package/dist/chunk-DO2UZ6NY.js +18 -0
  56. package/dist/chunk-DZ6G4VSD.js +19 -0
  57. package/dist/chunk-EK6FQQHY.js +20 -0
  58. package/dist/chunk-ELPXQ32J.js +90 -0
  59. package/dist/chunk-F5PY52BY.js +18 -0
  60. package/dist/chunk-FGLPSSRK.js +19 -0
  61. package/dist/chunk-FV7U6PVP.js +18 -0
  62. package/dist/chunk-FYYAOZPU.js +18 -0
  63. package/dist/chunk-GDWO6EXN.js +22 -0
  64. package/dist/chunk-GW3ZRKAI.js +20 -0
  65. package/dist/chunk-IQSFXWDQ.js +18 -0
  66. package/dist/chunk-IYUSBBGY.js +35 -0
  67. package/dist/chunk-JPOFLMNH.js +18 -0
  68. package/dist/{chunk-VURLSDCB.js → chunk-K5LKDIVU.js} +4 -0
  69. package/dist/chunk-KS4WLVK5.js +19 -0
  70. package/dist/chunk-L3CE2Y3L.js +55 -0
  71. package/dist/chunk-LIXP4TPL.js +18 -0
  72. package/dist/chunk-LSC4RT5V.js +36 -0
  73. package/dist/chunk-M5A6NFHQ.js +28 -0
  74. package/dist/chunk-M6E6KNLV.js +30 -0
  75. package/dist/chunk-MLFZXUGQ.js +18 -0
  76. package/dist/chunk-NDI67DRG.js +31 -0
  77. package/dist/chunk-OCWGUTZJ.js +36 -0
  78. package/dist/chunk-OGDRUXMJ.js +18 -0
  79. package/dist/chunk-OGJKLJC7.js +29 -0
  80. package/dist/chunk-P5RLCJUV.js +18 -0
  81. package/dist/chunk-Q3WIUQXB.js +18 -0
  82. package/dist/{20260227213759_add_session_workspace_id-ROENWPKA.js → chunk-QCRIXKIC.js} +5 -1
  83. package/dist/chunk-QD24DLUD.js +18 -0
  84. package/dist/chunk-R2GWBJEP.js +18 -0
  85. package/dist/chunk-RIA6SDOY.js +780 -0
  86. package/dist/chunk-RPAXSOGH.js +18 -0
  87. package/dist/chunk-TK5R7QUN.js +18 -0
  88. package/dist/chunk-TNQWZFIZ.js +28 -0
  89. package/dist/chunk-UCLPBO4I.js +18 -0
  90. package/dist/chunk-V6FDDNGV.js +117 -0
  91. package/dist/chunk-V6HERYFV.js +18 -0
  92. package/dist/chunk-V7XKKJ7X.js +24 -0
  93. package/dist/chunk-VHDYUBBS.js +23 -0
  94. package/dist/chunk-VWLJXTZ5.js +18 -0
  95. package/dist/chunk-VXAPFOIL.js +22 -0
  96. package/dist/chunk-WKZYINC7.js +29 -0
  97. package/dist/chunk-WL33KE3H.js +920 -0
  98. package/dist/chunk-WPMP2ZFE.js +40 -0
  99. package/dist/chunk-WRTNIOI3.js +18 -0
  100. package/dist/chunk-WZ4237YY.js +19 -0
  101. package/dist/chunk-X5F46HR5.js +18 -0
  102. package/dist/chunk-XPS7TQZG.js +22 -0
  103. package/dist/chunk-XSKT4AXR.js +878 -0
  104. package/dist/chunk-YJPP6IQ3.js +23 -0
  105. package/dist/chunk-ZYQWFC55.js +22 -0
  106. package/dist/code-mode-H3HRSD24.js +502 -0
  107. package/dist/copilot-provider-QVMLQZZC.js +18 -0
  108. package/dist/dist-5NQOHNPL.js +18 -0
  109. package/dist/dist-7CT3XCNN.js +32 -0
  110. package/dist/dist-CL46WFZG.js +18 -0
  111. package/dist/dist-HXJTF22W.js +32 -0
  112. package/dist/dist-JFXI53ZF.js +22 -0
  113. package/dist/dist-KBYKWVT5.js +22 -0
  114. package/dist/dist-KGNO5AP7.js +35 -0
  115. package/dist/dist-KTNLTEHB.js +18 -0
  116. package/dist/dist-KZ5R5QM5.js +24 -0
  117. package/dist/{20260605042240_add_context_epoch_agent-W6IQYZXE.js → dist-LOXU6IEM.js} +5 -1
  118. package/dist/dist-NLXUYBW7.js +32 -0
  119. package/dist/dist-O4DF72J2.js +22 -0
  120. package/dist/dist-PH4MEGVR.js +22 -0
  121. package/dist/{20260511000411_data_migration_state-FB4LBFSE.js → dist-QJPOJCLB.js} +5 -1
  122. package/dist/dist-QYH62TCJ.js +22 -0
  123. package/dist/{20260303231226_add_workspace_fields-OUVZMNAG.js → dist-RIC4WKHC.js} +5 -1
  124. package/dist/dist-T776XKTM.js +22 -0
  125. package/dist/dist-TCE5MKZQ.js +23 -0
  126. package/dist/dist-TH2Q44RX.js +50 -0
  127. package/dist/dist-VV5FV5RT.js +101 -0
  128. package/dist/dist-WZJ3LNRG.js +28 -0
  129. package/dist/dist-XAFENVUS.js +22 -0
  130. package/dist/dist-XPFB35TX.js +32 -0
  131. package/dist/dist-es-43ZM44MP.js +18 -0
  132. package/dist/dist-es-CH2YKBKX.js +18 -0
  133. package/dist/{20260428004200_add_session_path-LGW75WYA.js → dist-es-DHCTZZ2E.js} +5 -1
  134. package/dist/dist-es-EVVG3KDV.js +26 -0
  135. package/dist/dist-es-HRCONNGK.js +18 -0
  136. package/dist/dist-es-L2GU465G.js +18 -0
  137. package/dist/dist-es-RGEIM2BP.js +18 -0
  138. package/dist/dist-es-RZ25XEH6.js +18 -0
  139. package/dist/dist-es-SITTNOGV.js +18 -0
  140. package/dist/esm-NN5W7YCL.js +18 -0
  141. package/dist/esm-XWJSHYHG.js +18 -0
  142. package/dist/getMachineId-bsd-L5I5TZ5I.js +18 -0
  143. package/dist/getMachineId-darwin-YB7KG37W.js +19 -0
  144. package/dist/getMachineId-linux-EL47KXX7.js +18 -0
  145. package/dist/getMachineId-unsupported-QOWPEBPN.js +18 -0
  146. package/dist/getMachineId-win-HCRYRDFJ.js +18 -0
  147. package/dist/lib-7VH6D2QJ.js +199 -0
  148. package/dist/loadCognitoIdentity-EWT55EI7.js +18 -0
  149. package/dist/loadSso-AGOUE6RL.js +18 -0
  150. package/dist/{20260213144116_wakeful_the_professor-ZVDD54AK.js → loadSts-RH5L3PIX.js} +5 -1
  151. package/dist/mantle-IJXDXT4M.js +25 -0
  152. package/dist/mime-types-GSWEOYZ5.js +18 -0
  153. package/dist/multipart-parser-KZWMKXA4.js +19 -0
  154. package/dist/{20260211171708_add_project_commands-GDOHPDPF.js → open-7KXTRM37.js} +5 -1
  155. package/dist/openai-ZOJI6I5R.js +18 -0
  156. package/dist/p-map-CYL6ILJW.js +18 -0
  157. package/dist/photon-W56QZY4L.js +18 -0
  158. package/dist/{20260423070820_add_icon_url_override-X5SHFGTI.js → pkce-VT4ITJTB.js} +5 -1
  159. package/dist/{pty.node-Y3N2XKYG.js → pty.node-IWULXXG6.js} +5 -1
  160. package/dist/run.js +5 -1
  161. package/dist/serve.js +143 -1
  162. package/dist/server-XRUYBM7W.js +21 -0
  163. package/dist/session-4BXV4JJH.js +18 -0
  164. package/dist/signin-DKBWDEYP.js +18 -0
  165. package/dist/src-JODD73WX.js +18 -0
  166. package/dist/src-QJHT5SCV.js +18 -0
  167. package/dist/src-SMM4U63G.js +18 -0
  168. package/dist/src-WDYKISPD.js +20 -0
  169. package/dist/sso-oidc-S3P64MCY.js +18 -0
  170. package/dist/sts-RG44NMOQ.js +18 -0
  171. package/dist/token-2V62AM3G.js +18 -0
  172. package/dist/token-util-VXONHEUD.js +18 -0
  173. package/dist/unified-W3ZKZ4HG.js +18 -0
  174. package/dist/worktree-B2LROS2B.js +18 -0
  175. package/package.json +40 -40
  176. package/postinstall.cjs +4 -2
  177. package/dist/20260127222353_familiar_lady_ursula-KV747FJX.js +0 -14
  178. package/dist/20260309230000_move_org_to_state-NOXAPU5V.js +0 -14
  179. package/dist/20260312043431_session_message_cursor-DJ4T3T4R.js +0 -14
  180. package/dist/20260323234822_events-72GIKJ2A.js +0 -14
  181. package/dist/20260410174513_workspace-name-JXSWFBJN.js +0 -14
  182. package/dist/20260413175956_chief_energizer-4HEWZ6U3.js +0 -14
  183. package/dist/20260427172553_slow_nightmare-PS5T2AH2.js +0 -14
  184. package/dist/20260501142318_next_venus-J3TLVXZ6.js +0 -14
  185. package/dist/20260504145000_add_sync_owner-3R52GB4C.js +0 -14
  186. package/dist/20260507164347_add_workspace_time-JHDRCZAR.js +0 -14
  187. package/dist/20260511173437_session-metadata-T2XHGWHS.js +0 -14
  188. package/dist/20260601010001_normalize_storage_paths-5MAY5GT3.js +0 -14
  189. package/dist/20260601202201_amazing_prowler-PET224YG.js +0 -14
  190. package/dist/20260602002951_lowly_union_jack-PG6XDMGL.js +0 -14
  191. package/dist/20260602182828_add_project_directories-ZCH2ACGG.js +0 -14
  192. package/dist/20260603001617_session_message_projection_indexes-XVLJTUF2.js +0 -14
  193. package/dist/20260603040000_session_message_projection_order-XG6RACZQ.js +0 -14
  194. package/dist/20260603141458_session_input_inbox-K2VQ7V6E.js +0 -14
  195. package/dist/20260603160727_jittery_ezekiel_stane-WKJLRDO7.js +0 -14
  196. package/dist/20260604172448_event_sourced_session_input-NTXOECR7.js +0 -14
  197. package/dist/20260605003541_add_session_context_snapshot-DXMQEXMT.js +0 -14
  198. package/dist/20260611035744_credential-XTMSYTJD.js +0 -14
  199. package/dist/20260611192811_lush_chimera-XPLIQMJD.js +0 -14
  200. package/dist/20260612174303_project_dir_strategy-FR2NGQKK.js +0 -14
  201. package/dist/20260622142730_simplify_session_context_epoch-NTQZR3RE.js +0 -14
  202. package/dist/20260622202450_simplify_session_input-2EXF2HMV.js +0 -14
  203. package/dist/app-runtime-HQBOCDV5.js +0 -14
  204. package/dist/chunk-4FEBIOI5.js +0 -865
  205. package/dist/chunk-4K2RXRZL.js +0 -14
  206. package/dist/chunk-4RFMKEKM.js +0 -1455
  207. package/dist/chunk-BM2C7NHL.js +0 -41
  208. package/dist/chunk-MKEMZFJI.js +0 -393
  209. package/dist/chunk-OMDJ6ZZ2.js +0 -684
  210. package/dist/chunk-OWMG4NNF.js +0 -186
  211. package/dist/chunk-QRABYJKL.js +0 -14
  212. package/dist/chunk-RHIWAYN5.js +0 -14
  213. package/dist/chunk-Z5TLIUAI.js +0 -28
  214. package/dist/code-mode-7BQJUARW.js +0 -40
  215. package/dist/copilot-provider-TX4YFKJZ.js +0 -14
  216. package/dist/photon-VQS5F5BI.js +0 -14
  217. package/dist/server-BFUQR7MX.js +0 -17
  218. package/dist/session-6RNXZNG6.js +0 -14
  219. package/dist/worktree-QHQHX3SG.js +0 -14
  220. package/patches/@ai-sdk%2Famazon-bedrock@4.0.166.patch +0 -164
  221. package/patches/@ai-sdk%2Fanthropic@3.0.111.patch +0 -528
  222. package/patches/@ai-sdk%2Fgoogle@3.0.73.patch +0 -69
  223. package/patches/@ai-sdk%2Fgroq@3.0.31.patch +0 -79
  224. package/patches/@ai-sdk%2Fmistral@3.0.51.patch +0 -714
  225. package/patches/@ai-sdk%2Fopenai-compatible@2.0.41.patch +0 -39
  226. package/patches/@ai-sdk%2Fopenai@3.0.88.patch +0 -280
  227. package/patches/@ai-sdk%2Fxai@3.0.139.patch +0 -296
  228. package/patches/@modelcontextprotocol%2Fsdk@1.29.0.patch +0 -647
  229. package/patches/@npmcli%2Fagent@4.0.2.patch +0 -13
  230. package/patches/effect@4.0.0-beta.83.patch +0 -57
  231. package/patches/gcp-metadata@8.1.2.patch +0 -14
  232. package/patches/pacote@21.5.0.patch +0 -18
@@ -1,528 +0,0 @@
1
- diff --git a/dist/index.d.mts b/dist/index.d.mts
2
- index a66d061f466c89a57efec33f37b7daabaaba2892..15f1b2aca0c0b43e5e1f8baddd2669c074912d18 100644
3
- --- a/dist/index.d.mts
4
- +++ b/dist/index.d.mts
5
- @@ -211,9 +211,21 @@ declare const anthropicLanguageModelOptions: z.ZodObject<{
6
- omitted: "omitted";
7
- summarized: "summarized";
8
- }>>;
9
- + blockBinding: z.ZodOptional<z.ZodObject<{
10
- + prefixMismatchBehavior: z.ZodEnum<{
11
- + error: "error";
12
- + drop_block: "drop_block";
13
- + }>;
14
- + }, z.core.$strip>>;
15
- }, z.core.$strip>, z.ZodObject<{
16
- type: z.ZodLiteral<"enabled">;
17
- budgetTokens: z.ZodOptional<z.ZodNumber>;
18
- + blockBinding: z.ZodOptional<z.ZodObject<{
19
- + prefixMismatchBehavior: z.ZodEnum<{
20
- + error: "error";
21
- + drop_block: "drop_block";
22
- + }>;
23
- + }, z.core.$strip>>;
24
- }, z.core.$strip>, z.ZodObject<{
25
- type: z.ZodLiteral<"disabled">;
26
- }, z.core.$strip>]>>;
27
- diff --git a/dist/index.d.ts b/dist/index.d.ts
28
- index a66d061f466c89a57efec33f37b7daabaaba2892..15f1b2aca0c0b43e5e1f8baddd2669c074912d18 100644
29
- --- a/dist/index.d.ts
30
- +++ b/dist/index.d.ts
31
- @@ -211,9 +211,21 @@ declare const anthropicLanguageModelOptions: z.ZodObject<{
32
- omitted: "omitted";
33
- summarized: "summarized";
34
- }>>;
35
- + blockBinding: z.ZodOptional<z.ZodObject<{
36
- + prefixMismatchBehavior: z.ZodEnum<{
37
- + error: "error";
38
- + drop_block: "drop_block";
39
- + }>;
40
- + }, z.core.$strip>>;
41
- }, z.core.$strip>, z.ZodObject<{
42
- type: z.ZodLiteral<"enabled">;
43
- budgetTokens: z.ZodOptional<z.ZodNumber>;
44
- + blockBinding: z.ZodOptional<z.ZodObject<{
45
- + prefixMismatchBehavior: z.ZodEnum<{
46
- + error: "error";
47
- + drop_block: "drop_block";
48
- + }>;
49
- + }, z.core.$strip>>;
50
- }, z.core.$strip>, z.ZodObject<{
51
- type: z.ZodLiteral<"disabled">;
52
- }, z.core.$strip>]>>;
53
- diff --git a/dist/index.js b/dist/index.js
54
- index 88c1aa865339baa320cf80ec543bed865825bc61..5006e82b0edd9676d1650cc94ecb573a2810acce 100644
55
- --- a/dist/index.js
56
- +++ b/dist/index.js
57
- @@ -85,6 +85,13 @@ var anthropicMessagesResponseSchema = (0, import_provider_utils2.lazySchema)(
58
- type: import_v42.z.literal("message"),
59
- id: import_v42.z.string().nullish(),
60
- model: import_v42.z.string().nullish(),
61
- + input_transformations: import_v42.z.array(
62
- + import_v42.z.looseObject({
63
- + type: import_v42.z.string(),
64
- + path: import_v42.z.string().nullish(),
65
- + reason: import_v42.z.string().nullish()
66
- + })
67
- + ).nullish(),
68
- content: import_v42.z.array(
69
- import_v42.z.discriminatedUnion("type", [
70
- import_v42.z.object({
71
- @@ -424,6 +431,13 @@ var anthropicMessagesChunkSchema = (0, import_provider_utils2.lazySchema)(
72
- id: import_v42.z.string().nullish(),
73
- model: import_v42.z.string().nullish(),
74
- role: import_v42.z.string().nullish(),
75
- + input_transformations: import_v42.z.array(
76
- + import_v42.z.looseObject({
77
- + type: import_v42.z.string(),
78
- + path: import_v42.z.string().nullish(),
79
- + reason: import_v42.z.string().nullish()
80
- + })
81
- + ).nullish(),
82
- usage: import_v42.z.looseObject({
83
- input_tokens: import_v42.z.number(),
84
- cache_creation_input_tokens: import_v42.z.number().nullish(),
85
- @@ -923,12 +937,18 @@ var anthropicLanguageModelOptions = import_v43.z.object({
86
- * - `"omitted"`: Thinking blocks are present but text is empty (default for Opus 4.7+).
87
- * - `"summarized"`: Thinking content is returned. Required to see reasoning output.
88
- */
89
- - display: import_v43.z.enum(["omitted", "summarized"]).optional()
90
- + display: import_v43.z.enum(["omitted", "summarized"]).optional(),
91
- + blockBinding: import_v43.z.object({
92
- + prefixMismatchBehavior: import_v43.z.enum(["error", "drop_block"])
93
- + }).optional()
94
- }),
95
- import_v43.z.object({
96
- /** for models before Opus 4.6, except Sonnet 4.6 still supports it */
97
- type: import_v43.z.literal("enabled"),
98
- - budgetTokens: import_v43.z.number().optional()
99
- + budgetTokens: import_v43.z.number().optional(),
100
- + blockBinding: import_v43.z.object({
101
- + prefixMismatchBehavior: import_v43.z.enum(["error", "drop_block"])
102
- + }).optional()
103
- }),
104
- import_v43.z.object({
105
- type: import_v43.z.literal("disabled")
106
- @@ -3568,6 +3588,7 @@ var AnthropicMessagesLanguageModel = class {
107
- const sendThinking = isThinking || thinkingType === "disabled";
108
- let thinkingBudget = thinkingType === "enabled" ? (_g = anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : _g.budgetTokens : void 0;
109
- const thinkingDisplay = thinkingType === "adaptive" ? (_h = anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : _h.display : void 0;
110
- + const thinkingBlockBinding = isThinking ? (anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : anthropicOptions.thinking.blockBinding : void 0;
111
- const maxTokens = maxOutputTokens != null ? maxOutputTokens : maxOutputTokensForModel;
112
- const baseArgs = {
113
- // model id:
114
- @@ -3583,7 +3604,12 @@ var AnthropicMessagesLanguageModel = class {
115
- thinking: {
116
- type: thinkingType,
117
- ...thinkingBudget != null && { budget_tokens: thinkingBudget },
118
- - ...thinkingDisplay != null && { display: thinkingDisplay }
119
- + ...thinkingDisplay != null && { display: thinkingDisplay },
120
- + ...thinkingBlockBinding != null && {
121
- + block_binding: {
122
- + prefix_mismatch_behavior: thinkingBlockBinding.prefixMismatchBehavior
123
- + }
124
- + }
125
- }
126
- },
127
- ...((anthropicOptions == null ? void 0 : anthropicOptions.effort) || (anthropicOptions == null ? void 0 : anthropicOptions.taskBudget) || useStructuredOutput && (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null) && {
128
- @@ -3798,6 +3824,9 @@ var AnthropicMessagesLanguageModel = class {
129
- } else if ((anthropicOptions == null ? void 0 : anthropicOptions.fallbacks) && anthropicOptions.fallbacks.length > 0) {
130
- betas.add("server-side-fallback-2026-06-01");
131
- }
132
- + if (thinkingBlockBinding != null) {
133
- + betas.add("thinking-binding-controls-2026-08-01");
134
- + }
135
- const defaultEagerInputStreaming = stream && ((_j = anthropicOptions == null ? void 0 : anthropicOptions.toolStreaming) != null ? _j : true);
136
- const {
137
- tools: anthropicTools2,
138
- @@ -4364,6 +4393,7 @@ var AnthropicMessagesLanguageModel = class {
139
- cacheCreationInputTokens: (_a2 = response.usage.cache_creation_input_tokens) != null ? _a2 : null,
140
- stopSequence: (_b2 = response.stop_sequence) != null ? _b2 : null,
141
- ...stopDetails != null ? { stopDetails } : {},
142
- + ...response.input_transformations != null ? { inputTransformations: response.input_transformations } : {},
143
- iterations: response.usage.iterations ? response.usage.iterations.map(
144
- (iter) => ({
145
- type: iter.type,
146
- @@ -4453,6 +4483,7 @@ var AnthropicMessagesLanguageModel = class {
147
- let cacheCreationInputTokens = null;
148
- let stopSequence = null;
149
- let stopDetails = void 0;
150
- + let inputTransformations = void 0;
151
- let container = null;
152
- let isJsonResponseFromTool = false;
153
- let isMessageOpen = false;
154
- @@ -5111,6 +5142,9 @@ var AnthropicMessagesLanguageModel = class {
155
- isMessageOpen = true;
156
- activeMessageId = value.message.id;
157
- usage.input_tokens = value.message.usage.input_tokens;
158
- + if (value.message.input_transformations != null) {
159
- + inputTransformations = value.message.input_transformations;
160
- + }
161
- usage.cache_read_input_tokens = (_e = value.message.usage.cache_read_input_tokens) != null ? _e : 0;
162
- usage.cache_creation_input_tokens = (_f = value.message.usage.cache_creation_input_tokens) != null ? _f : 0;
163
- rawUsage = {
164
- @@ -5231,6 +5265,7 @@ var AnthropicMessagesLanguageModel = class {
165
- cacheCreationInputTokens,
166
- stopSequence,
167
- ...stopDetails != null ? { stopDetails } : {},
168
- + ...inputTransformations != null ? { inputTransformations } : {},
169
- iterations: usage.iterations ? usage.iterations.map(
170
- (iter) => ({
171
- type: iter.type,
172
- diff --git a/dist/index.mjs b/dist/index.mjs
173
- index 593b030c7f2adbe0cd38556b7a74f5ede6a5435e..1fa36ccb119715df3cd00976e479c679c66d2261 100644
174
- --- a/dist/index.mjs
175
- +++ b/dist/index.mjs
176
- @@ -85,6 +85,13 @@ var anthropicMessagesResponseSchema = lazySchema2(
177
- type: z2.literal("message"),
178
- id: z2.string().nullish(),
179
- model: z2.string().nullish(),
180
- + input_transformations: z2.array(
181
- + z2.looseObject({
182
- + type: z2.string(),
183
- + path: z2.string().nullish(),
184
- + reason: z2.string().nullish()
185
- + })
186
- + ).nullish(),
187
- content: z2.array(
188
- z2.discriminatedUnion("type", [
189
- z2.object({
190
- @@ -424,6 +431,13 @@ var anthropicMessagesChunkSchema = lazySchema2(
191
- id: z2.string().nullish(),
192
- model: z2.string().nullish(),
193
- role: z2.string().nullish(),
194
- + input_transformations: z2.array(
195
- + z2.looseObject({
196
- + type: z2.string(),
197
- + path: z2.string().nullish(),
198
- + reason: z2.string().nullish()
199
- + })
200
- + ).nullish(),
201
- usage: z2.looseObject({
202
- input_tokens: z2.number(),
203
- cache_creation_input_tokens: z2.number().nullish(),
204
- @@ -923,12 +937,18 @@ var anthropicLanguageModelOptions = z3.object({
205
- * - `"omitted"`: Thinking blocks are present but text is empty (default for Opus 4.7+).
206
- * - `"summarized"`: Thinking content is returned. Required to see reasoning output.
207
- */
208
- - display: z3.enum(["omitted", "summarized"]).optional()
209
- + display: z3.enum(["omitted", "summarized"]).optional(),
210
- + blockBinding: z3.object({
211
- + prefixMismatchBehavior: z3.enum(["error", "drop_block"])
212
- + }).optional()
213
- }),
214
- z3.object({
215
- /** for models before Opus 4.6, except Sonnet 4.6 still supports it */
216
- type: z3.literal("enabled"),
217
- - budgetTokens: z3.number().optional()
218
- + budgetTokens: z3.number().optional(),
219
- + blockBinding: z3.object({
220
- + prefixMismatchBehavior: z3.enum(["error", "drop_block"])
221
- + }).optional()
222
- }),
223
- z3.object({
224
- type: z3.literal("disabled")
225
- @@ -3620,6 +3640,7 @@ var AnthropicMessagesLanguageModel = class {
226
- const sendThinking = isThinking || thinkingType === "disabled";
227
- let thinkingBudget = thinkingType === "enabled" ? (_g = anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : _g.budgetTokens : void 0;
228
- const thinkingDisplay = thinkingType === "adaptive" ? (_h = anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : _h.display : void 0;
229
- + const thinkingBlockBinding = isThinking ? (anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : anthropicOptions.thinking.blockBinding : void 0;
230
- const maxTokens = maxOutputTokens != null ? maxOutputTokens : maxOutputTokensForModel;
231
- const baseArgs = {
232
- // model id:
233
- @@ -3635,7 +3656,12 @@ var AnthropicMessagesLanguageModel = class {
234
- thinking: {
235
- type: thinkingType,
236
- ...thinkingBudget != null && { budget_tokens: thinkingBudget },
237
- - ...thinkingDisplay != null && { display: thinkingDisplay }
238
- + ...thinkingDisplay != null && { display: thinkingDisplay },
239
- + ...thinkingBlockBinding != null && {
240
- + block_binding: {
241
- + prefix_mismatch_behavior: thinkingBlockBinding.prefixMismatchBehavior
242
- + }
243
- + }
244
- }
245
- },
246
- ...((anthropicOptions == null ? void 0 : anthropicOptions.effort) || (anthropicOptions == null ? void 0 : anthropicOptions.taskBudget) || useStructuredOutput && (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null) && {
247
- @@ -3850,6 +3876,9 @@ var AnthropicMessagesLanguageModel = class {
248
- } else if ((anthropicOptions == null ? void 0 : anthropicOptions.fallbacks) && anthropicOptions.fallbacks.length > 0) {
249
- betas.add("server-side-fallback-2026-06-01");
250
- }
251
- + if (thinkingBlockBinding != null) {
252
- + betas.add("thinking-binding-controls-2026-08-01");
253
- + }
254
- const defaultEagerInputStreaming = stream && ((_j = anthropicOptions == null ? void 0 : anthropicOptions.toolStreaming) != null ? _j : true);
255
- const {
256
- tools: anthropicTools2,
257
- @@ -4416,6 +4445,7 @@ var AnthropicMessagesLanguageModel = class {
258
- cacheCreationInputTokens: (_a2 = response.usage.cache_creation_input_tokens) != null ? _a2 : null,
259
- stopSequence: (_b2 = response.stop_sequence) != null ? _b2 : null,
260
- ...stopDetails != null ? { stopDetails } : {},
261
- + ...response.input_transformations != null ? { inputTransformations: response.input_transformations } : {},
262
- iterations: response.usage.iterations ? response.usage.iterations.map(
263
- (iter) => ({
264
- type: iter.type,
265
- @@ -4505,6 +4535,7 @@ var AnthropicMessagesLanguageModel = class {
266
- let cacheCreationInputTokens = null;
267
- let stopSequence = null;
268
- let stopDetails = void 0;
269
- + let inputTransformations = void 0;
270
- let container = null;
271
- let isJsonResponseFromTool = false;
272
- let isMessageOpen = false;
273
- @@ -5163,6 +5194,9 @@ var AnthropicMessagesLanguageModel = class {
274
- isMessageOpen = true;
275
- activeMessageId = value.message.id;
276
- usage.input_tokens = value.message.usage.input_tokens;
277
- + if (value.message.input_transformations != null) {
278
- + inputTransformations = value.message.input_transformations;
279
- + }
280
- usage.cache_read_input_tokens = (_e = value.message.usage.cache_read_input_tokens) != null ? _e : 0;
281
- usage.cache_creation_input_tokens = (_f = value.message.usage.cache_creation_input_tokens) != null ? _f : 0;
282
- rawUsage = {
283
- @@ -5283,6 +5317,7 @@ var AnthropicMessagesLanguageModel = class {
284
- cacheCreationInputTokens,
285
- stopSequence,
286
- ...stopDetails != null ? { stopDetails } : {},
287
- + ...inputTransformations != null ? { inputTransformations } : {},
288
- iterations: usage.iterations ? usage.iterations.map(
289
- (iter) => ({
290
- type: iter.type,
291
- diff --git a/dist/internal/index.js b/dist/internal/index.js
292
- index 701ca5a333d83d384f682667b9976b7f72b0de37..ce53d0c9fe5c00a092b0347b45d61d8ce9c3a79a 100644
293
- --- a/dist/internal/index.js
294
- +++ b/dist/internal/index.js
295
- @@ -79,6 +79,13 @@ var anthropicMessagesResponseSchema = (0, import_provider_utils2.lazySchema)(
296
- type: import_v42.z.literal("message"),
297
- id: import_v42.z.string().nullish(),
298
- model: import_v42.z.string().nullish(),
299
- + input_transformations: import_v42.z.array(
300
- + import_v42.z.looseObject({
301
- + type: import_v42.z.string(),
302
- + path: import_v42.z.string().nullish(),
303
- + reason: import_v42.z.string().nullish()
304
- + })
305
- + ).nullish(),
306
- content: import_v42.z.array(
307
- import_v42.z.discriminatedUnion("type", [
308
- import_v42.z.object({
309
- @@ -418,6 +425,13 @@ var anthropicMessagesChunkSchema = (0, import_provider_utils2.lazySchema)(
310
- id: import_v42.z.string().nullish(),
311
- model: import_v42.z.string().nullish(),
312
- role: import_v42.z.string().nullish(),
313
- + input_transformations: import_v42.z.array(
314
- + import_v42.z.looseObject({
315
- + type: import_v42.z.string(),
316
- + path: import_v42.z.string().nullish(),
317
- + reason: import_v42.z.string().nullish()
318
- + })
319
- + ).nullish(),
320
- usage: import_v42.z.looseObject({
321
- input_tokens: import_v42.z.number(),
322
- cache_creation_input_tokens: import_v42.z.number().nullish(),
323
- @@ -917,12 +931,18 @@ var anthropicLanguageModelOptions = import_v43.z.object({
324
- * - `"omitted"`: Thinking blocks are present but text is empty (default for Opus 4.7+).
325
- * - `"summarized"`: Thinking content is returned. Required to see reasoning output.
326
- */
327
- - display: import_v43.z.enum(["omitted", "summarized"]).optional()
328
- + display: import_v43.z.enum(["omitted", "summarized"]).optional(),
329
- + blockBinding: import_v43.z.object({
330
- + prefixMismatchBehavior: import_v43.z.enum(["error", "drop_block"])
331
- + }).optional()
332
- }),
333
- import_v43.z.object({
334
- /** for models before Opus 4.6, except Sonnet 4.6 still supports it */
335
- type: import_v43.z.literal("enabled"),
336
- - budgetTokens: import_v43.z.number().optional()
337
- + budgetTokens: import_v43.z.number().optional(),
338
- + blockBinding: import_v43.z.object({
339
- + prefixMismatchBehavior: import_v43.z.enum(["error", "drop_block"])
340
- + }).optional()
341
- }),
342
- import_v43.z.object({
343
- type: import_v43.z.literal("disabled")
344
- @@ -3562,6 +3582,7 @@ var AnthropicMessagesLanguageModel = class {
345
- const sendThinking = isThinking || thinkingType === "disabled";
346
- let thinkingBudget = thinkingType === "enabled" ? (_g = anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : _g.budgetTokens : void 0;
347
- const thinkingDisplay = thinkingType === "adaptive" ? (_h = anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : _h.display : void 0;
348
- + const thinkingBlockBinding = isThinking ? (anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : anthropicOptions.thinking.blockBinding : void 0;
349
- const maxTokens = maxOutputTokens != null ? maxOutputTokens : maxOutputTokensForModel;
350
- const baseArgs = {
351
- // model id:
352
- @@ -3577,7 +3598,12 @@ var AnthropicMessagesLanguageModel = class {
353
- thinking: {
354
- type: thinkingType,
355
- ...thinkingBudget != null && { budget_tokens: thinkingBudget },
356
- - ...thinkingDisplay != null && { display: thinkingDisplay }
357
- + ...thinkingDisplay != null && { display: thinkingDisplay },
358
- + ...thinkingBlockBinding != null && {
359
- + block_binding: {
360
- + prefix_mismatch_behavior: thinkingBlockBinding.prefixMismatchBehavior
361
- + }
362
- + }
363
- }
364
- },
365
- ...((anthropicOptions == null ? void 0 : anthropicOptions.effort) || (anthropicOptions == null ? void 0 : anthropicOptions.taskBudget) || useStructuredOutput && (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null) && {
366
- @@ -3792,6 +3818,9 @@ var AnthropicMessagesLanguageModel = class {
367
- } else if ((anthropicOptions == null ? void 0 : anthropicOptions.fallbacks) && anthropicOptions.fallbacks.length > 0) {
368
- betas.add("server-side-fallback-2026-06-01");
369
- }
370
- + if (thinkingBlockBinding != null) {
371
- + betas.add("thinking-binding-controls-2026-08-01");
372
- + }
373
- const defaultEagerInputStreaming = stream && ((_j = anthropicOptions == null ? void 0 : anthropicOptions.toolStreaming) != null ? _j : true);
374
- const {
375
- tools: anthropicTools2,
376
- @@ -4358,6 +4387,7 @@ var AnthropicMessagesLanguageModel = class {
377
- cacheCreationInputTokens: (_a2 = response.usage.cache_creation_input_tokens) != null ? _a2 : null,
378
- stopSequence: (_b2 = response.stop_sequence) != null ? _b2 : null,
379
- ...stopDetails != null ? { stopDetails } : {},
380
- + ...response.input_transformations != null ? { inputTransformations: response.input_transformations } : {},
381
- iterations: response.usage.iterations ? response.usage.iterations.map(
382
- (iter) => ({
383
- type: iter.type,
384
- @@ -4447,6 +4477,7 @@ var AnthropicMessagesLanguageModel = class {
385
- let cacheCreationInputTokens = null;
386
- let stopSequence = null;
387
- let stopDetails = void 0;
388
- + let inputTransformations = void 0;
389
- let container = null;
390
- let isJsonResponseFromTool = false;
391
- let isMessageOpen = false;
392
- @@ -5105,6 +5136,9 @@ var AnthropicMessagesLanguageModel = class {
393
- isMessageOpen = true;
394
- activeMessageId = value.message.id;
395
- usage.input_tokens = value.message.usage.input_tokens;
396
- + if (value.message.input_transformations != null) {
397
- + inputTransformations = value.message.input_transformations;
398
- + }
399
- usage.cache_read_input_tokens = (_e = value.message.usage.cache_read_input_tokens) != null ? _e : 0;
400
- usage.cache_creation_input_tokens = (_f = value.message.usage.cache_creation_input_tokens) != null ? _f : 0;
401
- rawUsage = {
402
- @@ -5225,6 +5259,7 @@ var AnthropicMessagesLanguageModel = class {
403
- cacheCreationInputTokens,
404
- stopSequence,
405
- ...stopDetails != null ? { stopDetails } : {},
406
- + ...inputTransformations != null ? { inputTransformations } : {},
407
- iterations: usage.iterations ? usage.iterations.map(
408
- (iter) => ({
409
- type: iter.type,
410
- diff --git a/dist/internal/index.mjs b/dist/internal/index.mjs
411
- index c11f29fa42a9ce6a5681d43c609020f1f4a616da..df7f7a01992a56826eb809e6cdfb1e50a87a1b90 100644
412
- --- a/dist/internal/index.mjs
413
- +++ b/dist/internal/index.mjs
414
- @@ -69,6 +69,13 @@ var anthropicMessagesResponseSchema = lazySchema2(
415
- type: z2.literal("message"),
416
- id: z2.string().nullish(),
417
- model: z2.string().nullish(),
418
- + input_transformations: z2.array(
419
- + z2.looseObject({
420
- + type: z2.string(),
421
- + path: z2.string().nullish(),
422
- + reason: z2.string().nullish()
423
- + })
424
- + ).nullish(),
425
- content: z2.array(
426
- z2.discriminatedUnion("type", [
427
- z2.object({
428
- @@ -408,6 +415,13 @@ var anthropicMessagesChunkSchema = lazySchema2(
429
- id: z2.string().nullish(),
430
- model: z2.string().nullish(),
431
- role: z2.string().nullish(),
432
- + input_transformations: z2.array(
433
- + z2.looseObject({
434
- + type: z2.string(),
435
- + path: z2.string().nullish(),
436
- + reason: z2.string().nullish()
437
- + })
438
- + ).nullish(),
439
- usage: z2.looseObject({
440
- input_tokens: z2.number(),
441
- cache_creation_input_tokens: z2.number().nullish(),
442
- @@ -907,12 +921,18 @@ var anthropicLanguageModelOptions = z3.object({
443
- * - `"omitted"`: Thinking blocks are present but text is empty (default for Opus 4.7+).
444
- * - `"summarized"`: Thinking content is returned. Required to see reasoning output.
445
- */
446
- - display: z3.enum(["omitted", "summarized"]).optional()
447
- + display: z3.enum(["omitted", "summarized"]).optional(),
448
- + blockBinding: z3.object({
449
- + prefixMismatchBehavior: z3.enum(["error", "drop_block"])
450
- + }).optional()
451
- }),
452
- z3.object({
453
- /** for models before Opus 4.6, except Sonnet 4.6 still supports it */
454
- type: z3.literal("enabled"),
455
- - budgetTokens: z3.number().optional()
456
- + budgetTokens: z3.number().optional(),
457
- + blockBinding: z3.object({
458
- + prefixMismatchBehavior: z3.enum(["error", "drop_block"])
459
- + }).optional()
460
- }),
461
- z3.object({
462
- type: z3.literal("disabled")
463
- @@ -3604,6 +3624,7 @@ var AnthropicMessagesLanguageModel = class {
464
- const sendThinking = isThinking || thinkingType === "disabled";
465
- let thinkingBudget = thinkingType === "enabled" ? (_g = anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : _g.budgetTokens : void 0;
466
- const thinkingDisplay = thinkingType === "adaptive" ? (_h = anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : _h.display : void 0;
467
- + const thinkingBlockBinding = isThinking ? (anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : anthropicOptions.thinking.blockBinding : void 0;
468
- const maxTokens = maxOutputTokens != null ? maxOutputTokens : maxOutputTokensForModel;
469
- const baseArgs = {
470
- // model id:
471
- @@ -3619,7 +3640,12 @@ var AnthropicMessagesLanguageModel = class {
472
- thinking: {
473
- type: thinkingType,
474
- ...thinkingBudget != null && { budget_tokens: thinkingBudget },
475
- - ...thinkingDisplay != null && { display: thinkingDisplay }
476
- + ...thinkingDisplay != null && { display: thinkingDisplay },
477
- + ...thinkingBlockBinding != null && {
478
- + block_binding: {
479
- + prefix_mismatch_behavior: thinkingBlockBinding.prefixMismatchBehavior
480
- + }
481
- + }
482
- }
483
- },
484
- ...((anthropicOptions == null ? void 0 : anthropicOptions.effort) || (anthropicOptions == null ? void 0 : anthropicOptions.taskBudget) || useStructuredOutput && (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null) && {
485
- @@ -3834,6 +3860,9 @@ var AnthropicMessagesLanguageModel = class {
486
- } else if ((anthropicOptions == null ? void 0 : anthropicOptions.fallbacks) && anthropicOptions.fallbacks.length > 0) {
487
- betas.add("server-side-fallback-2026-06-01");
488
- }
489
- + if (thinkingBlockBinding != null) {
490
- + betas.add("thinking-binding-controls-2026-08-01");
491
- + }
492
- const defaultEagerInputStreaming = stream && ((_j = anthropicOptions == null ? void 0 : anthropicOptions.toolStreaming) != null ? _j : true);
493
- const {
494
- tools: anthropicTools2,
495
- @@ -4400,6 +4429,7 @@ var AnthropicMessagesLanguageModel = class {
496
- cacheCreationInputTokens: (_a2 = response.usage.cache_creation_input_tokens) != null ? _a2 : null,
497
- stopSequence: (_b2 = response.stop_sequence) != null ? _b2 : null,
498
- ...stopDetails != null ? { stopDetails } : {},
499
- + ...response.input_transformations != null ? { inputTransformations: response.input_transformations } : {},
500
- iterations: response.usage.iterations ? response.usage.iterations.map(
501
- (iter) => ({
502
- type: iter.type,
503
- @@ -4489,6 +4519,7 @@ var AnthropicMessagesLanguageModel = class {
504
- let cacheCreationInputTokens = null;
505
- let stopSequence = null;
506
- let stopDetails = void 0;
507
- + let inputTransformations = void 0;
508
- let container = null;
509
- let isJsonResponseFromTool = false;
510
- let isMessageOpen = false;
511
- @@ -5147,6 +5178,9 @@ var AnthropicMessagesLanguageModel = class {
512
- isMessageOpen = true;
513
- activeMessageId = value.message.id;
514
- usage.input_tokens = value.message.usage.input_tokens;
515
- + if (value.message.input_transformations != null) {
516
- + inputTransformations = value.message.input_transformations;
517
- + }
518
- usage.cache_read_input_tokens = (_e = value.message.usage.cache_read_input_tokens) != null ? _e : 0;
519
- usage.cache_creation_input_tokens = (_f = value.message.usage.cache_creation_input_tokens) != null ? _f : 0;
520
- rawUsage = {
521
- @@ -5267,6 +5301,7 @@ var AnthropicMessagesLanguageModel = class {
522
- cacheCreationInputTokens,
523
- stopSequence,
524
- ...stopDetails != null ? { stopDetails } : {},
525
- + ...inputTransformations != null ? { inputTransformations } : {},
526
- iterations: usage.iterations ? usage.iterations.map(
527
- (iter) => ({
528
- type: iter.type,
@@ -1,69 +0,0 @@
1
- diff --git a/dist/index.js b/dist/index.js
2
- index 546bf5509004510b023212d70b4c0875a24eb302..f211dcb23e01a393f7d5c6221bfb0ef52276520a 100644
3
- --- a/dist/index.js
4
- +++ b/dist/index.js
5
- @@ -636,6 +636,9 @@ function convertToGoogleGenerativeAIMessages(prompt, options) {
6
- }
7
- }).filter((part) => part !== void 0)
8
- });
9
- + if (contents[contents.length - 1].parts.length === 0) {
10
- + contents.pop();
11
- + }
12
- break;
13
- }
14
- case "tool": {
15
- diff --git a/dist/index.mjs b/dist/index.mjs
16
- index 5c8c20cbbcd4d398523602dd80ae8c3fa10a84ea..f89dc53b3b9cd83653a66b0900ff0bc34d3d6c9f 100644
17
- --- a/dist/index.mjs
18
- +++ b/dist/index.mjs
19
- @@ -642,6 +642,9 @@ function convertToGoogleGenerativeAIMessages(prompt, options) {
20
- }
21
- }).filter((part) => part !== void 0)
22
- });
23
- + if (contents[contents.length - 1].parts.length === 0) {
24
- + contents.pop();
25
- + }
26
- break;
27
- }
28
- case "tool": {
29
- diff --git a/dist/internal/index.js b/dist/internal/index.js
30
- index 947af6f4282f1bb9b46a76fdf199d7155600b550..22c2faa4122069d868a3232bbb708fdc808bf6e8 100644
31
- --- a/dist/internal/index.js
32
- +++ b/dist/internal/index.js
33
- @@ -419,6 +419,9 @@ function convertToGoogleGenerativeAIMessages(prompt, options) {
34
- }
35
- }).filter((part) => part !== void 0)
36
- });
37
- + if (contents[contents.length - 1].parts.length === 0) {
38
- + contents.pop();
39
- + }
40
- break;
41
- }
42
- case "tool": {
43
- diff --git a/dist/internal/index.mjs b/dist/internal/index.mjs
44
- index 28853288c1ff8f589448e7ddcddfd8ed36c4d995..4ef91ed90008d2cf7a5f24bb1927a9884e352393 100644
45
- --- a/dist/internal/index.mjs
46
- +++ b/dist/internal/index.mjs
47
- @@ -402,6 +402,9 @@ function convertToGoogleGenerativeAIMessages(prompt, options) {
48
- }
49
- }).filter((part) => part !== void 0)
50
- });
51
- + if (contents[contents.length - 1].parts.length === 0) {
52
- + contents.pop();
53
- + }
54
- break;
55
- }
56
- case "tool": {
57
- diff --git a/src/convert-to-google-generative-ai-messages.ts b/src/convert-to-google-generative-ai-messages.ts
58
- index 4bf83e3768d4ccc8ff96e7d683abb4ccf60387ea..f257d2af8f178b7ac36771296eaa6c60c92e04ab 100644
59
- --- a/src/convert-to-google-generative-ai-messages.ts
60
- +++ b/src/convert-to-google-generative-ai-messages.ts
61
- @@ -350,3 +350,8 @@ export function convertToGoogleGenerativeAIMessages(
62
- })
63
- .filter(part => part !== undefined),
64
- });
65
- + // Empty text and reasoning parts, including signature-bearing ones, are
66
- + // filtered above. Do not emit a model entry that Gemini rejects.
67
- + if (contents[contents.length - 1].parts.length === 0) {
68
- + contents.pop();
69
- + }
@@ -1,79 +0,0 @@
1
- diff --git a/dist/index.d.mts b/dist/index.d.mts
2
- index 8b23996dcce6c1ad5b17ef59f92196fb97312d79..80be2e52a347042b89da8e502834afd92120877a 100644
3
- --- a/dist/index.d.mts
4
- +++ b/dist/index.d.mts
5
- @@ -10,13 +10,7 @@ declare const groqLanguageModelOptions: z.ZodObject<{
6
- raw: "raw";
7
- hidden: "hidden";
8
- }>>;
9
- - reasoningEffort: z.ZodOptional<z.ZodEnum<{
10
- - none: "none";
11
- - default: "default";
12
- - low: "low";
13
- - medium: "medium";
14
- - high: "high";
15
- - }>>;
16
- + reasoningEffort: z.ZodOptional<z.ZodString>;
17
- parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
18
- user: z.ZodOptional<z.ZodString>;
19
- structuredOutputs: z.ZodOptional<z.ZodBoolean>;
20
- diff --git a/dist/index.d.ts b/dist/index.d.ts
21
- index 8b23996dcce6c1ad5b17ef59f92196fb97312d79..80be2e52a347042b89da8e502834afd92120877a 100644
22
- --- a/dist/index.d.ts
23
- +++ b/dist/index.d.ts
24
- @@ -10,13 +10,7 @@ declare const groqLanguageModelOptions: z.ZodObject<{
25
- raw: "raw";
26
- hidden: "hidden";
27
- }>>;
28
- - reasoningEffort: z.ZodOptional<z.ZodEnum<{
29
- - none: "none";
30
- - default: "default";
31
- - low: "low";
32
- - medium: "medium";
33
- - high: "high";
34
- - }>>;
35
- + reasoningEffort: z.ZodOptional<z.ZodString>;
36
- parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
37
- user: z.ZodOptional<z.ZodString>;
38
- structuredOutputs: z.ZodOptional<z.ZodBoolean>;
39
- diff --git a/dist/index.js b/dist/index.js
40
- index 45a104f2e0775761858eac2a82ced64bceba1f5e..f60ac36f4a064d527e8f8881b1d6c58ff69286a3 100644
41
- --- a/dist/index.js
42
- +++ b/dist/index.js
43
- @@ -214,7 +214,7 @@ var groqLanguageModelOptions = import_v4.z.object({
44
- * Specifies the reasoning effort level for model inference.
45
- * @see https://console.groq.com/docs/reasoning#reasoning-effort
46
- */
47
- - reasoningEffort: import_v4.z.enum(["none", "default", "low", "medium", "high"]).optional(),
48
- + reasoningEffort: import_v4.z.string().optional(),
49
- /**
50
- * Whether to enable parallel function calling during tool use. Default to true.
51
- */
52
- diff --git a/dist/index.mjs b/dist/index.mjs
53
- index c644c32235d8fa88c51c0fc6958feb1da4877c96..2c2f81869673eb4633e843d93ff5376abf1e67d0 100644
54
- --- a/dist/index.mjs
55
- +++ b/dist/index.mjs
56
- @@ -203,7 +203,7 @@ var groqLanguageModelOptions = z.object({
57
- * Specifies the reasoning effort level for model inference.
58
- * @see https://console.groq.com/docs/reasoning#reasoning-effort
59
- */
60
- - reasoningEffort: z.enum(["none", "default", "low", "medium", "high"]).optional(),
61
- + reasoningEffort: z.string().optional(),
62
- /**
63
- * Whether to enable parallel function calling during tool use. Default to true.
64
- */
65
- diff --git a/src/groq-chat-options.ts b/src/groq-chat-options.ts
66
- index 3812cdf53308709f166f05c58c5d46a5d8189c8b..af520c5459bd752b3cce03c3b4afbeed31157d90 100644
67
- --- a/src/groq-chat-options.ts
68
- +++ b/src/groq-chat-options.ts
69
- @@ -33,9 +33,7 @@ export const groqLanguageModelOptions = z.object({
70
- * Specifies the reasoning effort level for model inference.
71
- * @see https://console.groq.com/docs/reasoning#reasoning-effort
72
- */
73
- - reasoningEffort: z
74
- - .enum(['none', 'default', 'low', 'medium', 'high'])
75
- - .optional(),
76
- + reasoningEffort: z.string().optional(),
77
-
78
- /**
79
- * Whether to enable parallel function calling during tool use. Default to true.