nolo-cli 0.259.0-alpha.1 → 0.260.0-alpha.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 (316) hide show
  1. package/README.md +1 -1
  2. package/{_executeModel-MTM4BJK3.js → _executeModel-EO6JFCOF.js} +97 -83
  3. package/accountResolver-NGICIMEE.js +1 -1
  4. package/{action-C6IQAKN4.js → action-WIA56QT4.js} +12 -10
  5. package/{addContentAction-53364YDW.js → addContentAction-OCMWZLYG.js} +14 -13
  6. package/{addDialogAgentAction-U5DD5EN5.js → addDialogAgentAction-ER2NZ7BC.js} +20 -24
  7. package/{agentDeleteCommand-53NN3VSK.js → agentDeleteCommand-KSXSNPAU.js} +184 -146
  8. package/{agentEmailCommands-KOGGIT6I.js → agentEmailCommands-NXRWS7NS.js} +142 -126
  9. package/{agentGrantCommands-L6O2HVJI.js → agentGrantCommands-D2S7LCTU.js} +8 -5
  10. package/{agentListCommands-62UYUQDI.js → agentListCommands-PFXGZZ3Y.js} +87 -68
  11. package/{agentMachineCommands-W6TNJXEA.js → agentMachineCommands-2Q55CSL4.js} +68 -59
  12. package/{agentProviderCommands-QLTABYR7.js → agentProviderCommands-EUNS7Y2Z.js} +10 -7
  13. package/{agentPullCommand-2EYJ5ENC.js → agentPullCommand-S2VMPSWL.js} +9 -6
  14. package/agentRecordCommands-FUFI526H.js +210 -0
  15. package/agentRun-ZNMUPDHF.js +250 -0
  16. package/agentRunCommand-ISVQ2UYC.js +248 -0
  17. package/{agentRunControl-LXMADX3N.js → agentRunControl-NEK44LDM.js} +19 -12
  18. package/{agentRuntimeLocal-YGNJMQW3.js → agentRuntimeLocal-SST4EPLT.js} +62 -49
  19. package/{agentSlice-3HHYUQLM.js → agentSlice-4ZJJJN4M.js} +15 -18
  20. package/appConfigCommands-MPHS6FHD.js +417 -0
  21. package/{appDeleteCommands-5COJ6CSG.js → appDeleteCommands-W26WGENW.js} +68 -58
  22. package/{appDeployCommands-3JPAT3XO.js → appDeployCommands-ER7IOF5E.js} +74 -59
  23. package/{appDeployStatusCommands-RHZKF3G4.js → appDeployStatusCommands-VKLL3A77.js} +68 -58
  24. package/{appGetCommands-73DXOAQW.js → appGetCommands-P6GXJNUD.js} +74 -58
  25. package/{appListCommands-HD5LOQ3G.js → appListCommands-ACA2IZZM.js} +74 -58
  26. package/appMigrateCommands-OGF4E2W6.js +230 -0
  27. package/appSourceCommands-GAHVBRUM.js +279 -0
  28. package/{authCommand-V6EOMZX6.js → authCommand-PXE7NZTQ.js} +26 -40
  29. package/{authCommands-T5FODCEG.js → authCommands-AZPYXTUB.js} +20 -17
  30. package/{builtinSkillRegistry-EDHD2UHU.js → builtinSkillRegistry-6XUWMAV5.js} +8 -6
  31. package/{chromeOpsCommands-3SSTDFRF.js → chromeOpsCommands-7UKKUOBU.js} +68 -18
  32. package/{chunk-KLMBM6P6.js → chunk-2CKFROQS.js} +2454 -1115
  33. package/{chunk-MJBLXJMP.js → chunk-2I4R6ZRV.js} +12 -9
  34. package/{chunk-FXEPZKNJ.js → chunk-2MIZHEND.js} +506 -64
  35. package/{chunk-TLE77UJ5.js → chunk-2OROOEOQ.js} +0 -1
  36. package/{chunk-6RSNVJGO.js → chunk-2ZBPWX7N.js} +4 -4
  37. package/chunk-35JIFLIG.js +30 -0
  38. package/{chunk-ZYPXOQS2.js → chunk-3EPED3UO.js} +1 -1
  39. package/{chunk-DNNPARJK.js → chunk-3QMN3T6L.js} +50 -37
  40. package/{chunk-DMPZMYH4.js → chunk-3R4AYHJR.js} +13 -1
  41. package/{chunk-HPDLPEUG.js → chunk-42JZNSAY.js} +267 -234
  42. package/{chunk-223KZUJ6.js → chunk-4HZCBA4Q.js} +18 -15
  43. package/{chunk-C5A54QS7.js → chunk-4INJGWE3.js} +18 -5
  44. package/chunk-4IVMDQBA.js +261 -0
  45. package/chunk-4Y6CZ2N4.js +82 -0
  46. package/{chunk-OKAXQFON.js → chunk-52BNL6GP.js} +4 -4
  47. package/{chunk-KZ4A7EIV.js → chunk-56OAS5RZ.js} +1 -1
  48. package/{chunk-QGFLVQ6E.js → chunk-6KUTNAPU.js} +4 -14
  49. package/{chunk-MNFUKRRU.js → chunk-6XAAKRJB.js} +7 -7
  50. package/{chunk-P27E22MA.js → chunk-6Z6DGDPI.js} +1 -1
  51. package/chunk-72VWN4VK.js +51 -0
  52. package/{chunk-L4XST72F.js → chunk-75FZ2Z7C.js} +16027 -17392
  53. package/{chunk-ADYWV732.js → chunk-76B6YUQS.js} +264 -177
  54. package/{chunk-MXA54TQM.js → chunk-76K4GTY5.js} +1 -1
  55. package/{chunk-VNHZJEQN.js → chunk-7HUCUD2I.js} +3 -3
  56. package/chunk-7LR2IFUH.js +100 -0
  57. package/{chunk-S73EPYNC.js → chunk-7LS5ATRP.js} +20 -6
  58. package/{chunk-Y2TCTNUD.js → chunk-7QO6YSA4.js} +4 -4
  59. package/{chunk-DBJODIZ6.js → chunk-7RYH7YIY.js} +19 -27
  60. package/{chunk-KHYSFS3W.js → chunk-A454UXB6.js} +148 -73
  61. package/chunk-AMNZPQCY.js +635 -0
  62. package/chunk-AMTF6FJD.js +356 -0
  63. package/{chunk-4MXYCQBS.js → chunk-AQNWWJLH.js} +2 -56
  64. package/{chunk-WSLL7VV4.js → chunk-B4NA5UJR.js} +9 -9
  65. package/{chunk-LHCGKAFO.js → chunk-BKP325XS.js} +184 -112
  66. package/{chunk-PENRYZ4D.js → chunk-BPB3T5EU.js} +4 -7
  67. package/{chunk-46FETNLF.js → chunk-BTIFQBYW.js} +7 -6
  68. package/{chunk-2JHGUL5K.js → chunk-BVYHE6QD.js} +2 -2
  69. package/{chunk-KXOPLLFP.js → chunk-CA7LGAHV.js} +69 -9
  70. package/{chunk-2FZVXOFX.js → chunk-CEIWXKHP.js} +112 -200
  71. package/{chunk-AIFQKNPP.js → chunk-CL33RFD7.js} +1 -1
  72. package/{chunk-MPGR4ZNR.js → chunk-CRGPRAJ4.js} +46 -42
  73. package/{chunk-P4R5KXU7.js → chunk-CW6LRDSF.js} +5 -5
  74. package/{chunk-R3TUHCSJ.js → chunk-CZHIOBBK.js} +8 -3
  75. package/chunk-D3ONA3FP.js +762 -0
  76. package/chunk-D3SAQ6T7.js +1697 -0
  77. package/{chunk-PIVTQRX6.js → chunk-DDKA6V6X.js} +111 -12
  78. package/{chunk-KQHEGELM.js → chunk-DEAII55O.js} +16 -6
  79. package/{chunk-J55F3IEZ.js → chunk-DKJQEFNG.js} +1 -1
  80. package/chunk-DLXL4NSL.js +1179 -0
  81. package/{chunk-EJQE5HB7.js → chunk-DSBRIUX5.js} +4 -2
  82. package/{chunk-XRGBJHZX.js → chunk-E36V7MPY.js} +9 -5
  83. package/{chunk-4YPH5KRA.js → chunk-EDKMRDET.js} +1 -1
  84. package/chunk-EJHLDJWZ.js +58 -0
  85. package/{chunk-6B2OBX5B.js → chunk-EMFZXJTN.js} +15 -47
  86. package/chunk-ER6NTALN.js +34 -0
  87. package/chunk-EUHMI5KG.js +101 -0
  88. package/{chunk-YQLAFJRQ.js → chunk-FBNVJ2TO.js} +1 -1
  89. package/{chunk-Q2EERN52.js → chunk-FF5ZRKW7.js} +12 -7
  90. package/{chunk-YFEK7ACQ.js → chunk-FGD4NMTP.js} +4 -4
  91. package/{chunk-6XIE5ZGI.js → chunk-FGFJUFPS.js} +5 -6
  92. package/chunk-FI4DPLR7.js +902 -0
  93. package/chunk-FKVLQNGJ.js +25 -0
  94. package/{chunk-JCQ3WCQ3.js → chunk-FOC4TORM.js} +69 -3
  95. package/{chunk-JPXACKSW.js → chunk-G22P2J7O.js} +30 -81
  96. package/{chunk-7WHCIA5V.js → chunk-G5IAIGGD.js} +3 -8
  97. package/{chunk-5BIDJVNX.js → chunk-G5JGA5YM.js} +180 -31
  98. package/{chunk-57V4PADY.js → chunk-GMBWWBSJ.js} +781 -449
  99. package/{chunk-WS36XPJD.js → chunk-GYFKKTDI.js} +82 -6
  100. package/{chunk-KT7S7ANZ.js → chunk-GZ4I5EMM.js} +9 -9
  101. package/{chunk-324FWHUA.js → chunk-HHXF57CL.js} +12 -3
  102. package/chunk-HJTI7RZV.js +94 -0
  103. package/{chunk-QXTEEEIN.js → chunk-HPIY372N.js} +7 -7
  104. package/{chunk-Q2MPKE4B.js → chunk-HVRG27HI.js} +76 -26
  105. package/{chunk-HDKMVYNJ.js → chunk-I3NWAILT.js} +6 -4
  106. package/{chunk-JZO7KUF3.js → chunk-IM7HCFB4.js} +313 -275
  107. package/{chunk-UWWOWTW2.js → chunk-INN2PBW7.js} +1 -1
  108. package/chunk-IV6VUVLJ.js +88 -0
  109. package/chunk-J42X32PV.js +472 -0
  110. package/{chunk-UA3QTA2S.js → chunk-JHQNWV2C.js} +4441 -2569
  111. package/{chunk-R7XWZDOH.js → chunk-JUMQJSQF.js} +1423 -282
  112. package/{chunk-BIDSIRTS.js → chunk-JUNYPVL6.js} +10 -16
  113. package/chunk-JVEKCQAP.js +222 -0
  114. package/{chunk-KVMLM5VD.js → chunk-KAHYBAEN.js} +211 -472
  115. package/chunk-KDDXC2IH.js +148 -0
  116. package/chunk-KGKTN2NX.js +25 -0
  117. package/chunk-KGWE224L.js +246 -0
  118. package/chunk-L3UFGEDU.js +17157 -0
  119. package/{chunk-CBIGMWMI.js → chunk-LHJB4BXJ.js} +1 -1
  120. package/{chunk-7OVOZRZF.js → chunk-LIH7WSX5.js} +23 -379
  121. package/chunk-LJOPY4TL.js +443 -0
  122. package/{chunk-TRRXYFTR.js → chunk-LOFRSJX2.js} +1 -0
  123. package/{chunk-SQL7YNED.js → chunk-LPXBBC32.js} +71 -5
  124. package/chunk-LXP53WGF.js +168 -0
  125. package/chunk-MDAYRIP7.js +1889 -0
  126. package/chunk-MRACVEPZ.js +7 -0
  127. package/chunk-NHLLXINQ.js +8 -0
  128. package/{chunk-FP37ELBT.js → chunk-NTBTVKKB.js} +17 -25
  129. package/{chunk-LVZVSLKO.js → chunk-O7ZY6SUK.js} +5 -22
  130. package/{chunk-2C5VN7NH.js → chunk-P4XAHM4B.js} +1 -1
  131. package/chunk-PL5RKESU.js +40 -0
  132. package/{chunk-MHKPUGPD.js → chunk-PQ3QZMJK.js} +20 -4
  133. package/chunk-Q5FJJ6XI.js +103 -0
  134. package/{createAgentAutomationAction-GRZ6XY7Q.js → chunk-QKM55LP2.js} +3 -160
  135. package/{chunk-6YX2RAQN.js → chunk-QZCLCAYC.js} +89 -164
  136. package/{chunk-FE7G6DSP.js → chunk-R72QWIFO.js} +14 -4
  137. package/{chunk-JLZJL3WC.js → chunk-RDZ5OIAT.js} +370 -39
  138. package/{chunk-5RGU3J7P.js → chunk-REAE2SZK.js} +0 -1
  139. package/chunk-RF576RYE.js +117 -0
  140. package/chunk-RI7SXDJW.js +1317 -0
  141. package/{chunk-FEIVARWR.js → chunk-RIOAPUGV.js} +238 -25
  142. package/{chunk-2CT2J3O6.js → chunk-RL6H2A2Z.js} +2493 -4055
  143. package/{chunk-BZLGPM5B.js → chunk-RNLKWUVY.js} +7 -12
  144. package/{chunk-J7JRCOIW.js → chunk-RWXHGPWJ.js} +1 -1
  145. package/chunk-S7BF2OGX.js +432 -0
  146. package/{chunk-6VEO7Z3Y.js → chunk-SD4MBKZ7.js} +6 -6
  147. package/{chunk-KWNVPY6M.js → chunk-SGEBRBF3.js} +7 -4
  148. package/{chunk-6SOWMEAY.js → chunk-SR57FDTX.js} +2 -258
  149. package/{chunk-CEKRIR22.js → chunk-SU4NCTW4.js} +1 -1
  150. package/{chunk-Y2GWUBNS.js → chunk-SX6PDLBZ.js} +279 -149
  151. package/{chunk-XNNBXUEM.js → chunk-T4WU747C.js} +5 -5
  152. package/{chunk-53W5BXLN.js → chunk-TCOHWKDM.js} +54 -55
  153. package/{chunk-QIGQFON2.js → chunk-TXMFSGRY.js} +1 -1
  154. package/{chunk-UUCYUN6Y.js → chunk-UB7NV7NN.js} +1 -1
  155. package/{chunk-NCFKHYDM.js → chunk-UOLGGEEC.js} +774 -119
  156. package/{chunk-4EACJPZI.js → chunk-USFG4EWQ.js} +51 -42
  157. package/{chunk-LLUBUHNT.js → chunk-UYZOBSSO.js} +5 -9
  158. package/{chunk-XPETQ4MR.js → chunk-VDC3BW24.js} +24 -10
  159. package/chunk-VH356OQ3.js +425 -0
  160. package/{chunk-U6QNVOR5.js → chunk-VKM7DOYB.js} +130 -6
  161. package/{chunk-CJOOF4L5.js → chunk-VPAO5WQX.js} +17 -14
  162. package/{chunk-OYUMJMC5.js → chunk-W2RQYNPI.js} +5 -0
  163. package/{chunk-6BMTKYAO.js → chunk-W2Z5E2R7.js} +126 -698
  164. package/{chunk-4ZCTKB27.js → chunk-W5GKF5ZW.js} +1 -0
  165. package/{chunk-NUHQO3RB.js → chunk-WIVVNJUS.js} +1 -1
  166. package/chunk-WLJNHFEB.js +1710 -0
  167. package/chunk-WMBJDXMY.js +408 -0
  168. package/chunk-WSQLCWLQ.js +201 -0
  169. package/{chunk-YN23INFZ.js → chunk-WXD6Y7DW.js} +23 -2
  170. package/{chunk-OOVOAG4Q.js → chunk-WY6DMHMG.js} +1 -1
  171. package/{chunk-6K32PBRY.js → chunk-XJW6SLBZ.js} +3 -3
  172. package/{chunk-7BIJFGKS.js → chunk-XQFDCRG3.js} +105 -51
  173. package/chunk-XT6C2QZW.js +46 -0
  174. package/{chunk-5YS6QHGT.js → chunk-Y7THFNVJ.js} +9 -9
  175. package/{chunk-ZEZC7IIM.js → chunk-YFSM2366.js} +35 -35
  176. package/{chunk-RD3QLZQV.js → chunk-YM5XULB2.js} +324 -2
  177. package/{chunk-FZENZCIA.js → chunk-YNP3ITPU.js} +19 -12
  178. package/{chunk-U35UUM5K.js → chunk-YOUSQIIK.js} +1 -1
  179. package/{chunk-RIWKZT7E.js → chunk-YRPIUIEQ.js} +11 -9
  180. package/{chunk-IYLUK67R.js → chunk-YU235GGN.js} +25 -8
  181. package/chunk-YWEZSBLL.js +790 -0
  182. package/chunk-Z3KTXWWB.js +76 -0
  183. package/{chunk-YLAHYLDQ.js → chunk-ZC3CMUKU.js} +2 -89
  184. package/chunk-ZD7OULYZ.js +368 -0
  185. package/{chunk-5P3PPQVP.js → chunk-ZQAADXSF.js} +1 -1
  186. package/{chunk-HQUGB2HM.js → chunk-ZTCMXPIS.js} +62 -50
  187. package/{cliAgentConfigHelpers-BXHQ3PXP.js → cliAgentConfigHelpers-KMXS7JP5.js} +20 -14
  188. package/{cliAuthorityBrokerClient-TFNXJLXL.js → cliAuthorityBrokerClient-3SKOA7OZ.js} +3 -1
  189. package/cliAuthorityBrokerProcess-DCCUT4YQ.js +34 -0
  190. package/{cliEnvHelpers-CNMP3RDX.js → cliEnvHelpers-YDGDHIEE.js} +5 -2
  191. package/{cliExecutor-K6FDZTQ2.js → cliExecutor-Z62UBJ5S.js} +12 -6
  192. package/cliLocalAgentRecordReader-X2YHEBWI.js +113 -0
  193. package/cloudAutomationCommands-C6Q3BFRB.js +310 -0
  194. package/{commandRegistry-IFYQLPGM.js → commandRegistry-TYYYTW5E.js} +260 -121
  195. package/{contentThunks-QCFCD2X3.js → contentThunks-E6BJ5YSX.js} +45 -43
  196. package/{cooldownCommands-WDOI5VD7.js → cooldownCommands-FPAFS7XG.js} +1 -1
  197. package/createAgentAutomationAction-L3NLCIIW.js +172 -0
  198. package/{createDialogAction-ZAJERW62.js → createDialogAction-QSWKRPWQ.js} +46 -42
  199. package/{createPageAction-QCVBMP4C.js → createPageAction-ZVVUT4CZ.js} +49 -45
  200. package/{db-VR74ADGC.js → db-KTQ3LL2Q.js} +3 -3
  201. package/{dbSlice-RWPSVHBC.js → dbSlice-SEVKNA7A.js} +21 -16
  202. package/deleteDbKey-43MTK2DI.js +86 -0
  203. package/{dialogCommands-4IEQUALS.js → dialogCommands-UVMTIFSA.js} +80 -66
  204. package/{dialogMessageRecord-OAV77LT7.js → dialogMessageRecord-2HJTEXQX.js} +1 -1
  205. package/{dialogNotifyCommand-IASQGEMW.js → dialogNotifyCommand-LMWF7EQI.js} +22 -14
  206. package/dialogPortabilityCommands-PAMLEBST.js +3036 -0
  207. package/{dialogSlice-XFYID6KE.js → dialogSlice-VHPXENDZ.js} +43 -42
  208. package/{dialogTraceCommand-Y67NRFCV.js → dialogTraceCommand-SO2WKAXW.js} +83 -69
  209. package/{dialogUsageCommand-WJ3U6KZU.js → dialogUsageCommand-EUO6JXTD.js} +6 -3
  210. package/{docCreateCommands-QLRIWRQE.js → docCreateCommands-H4RLIUNX.js} +68 -59
  211. package/{docDeleteCommands-XPRYA532.js → docDeleteCommands-OVAKCBMT.js} +68 -59
  212. package/{docReadCommands-EXQI7ETH.js → docReadCommands-KFISIUVA.js} +67 -58
  213. package/{docStore-MWFUKZL2.js → docStore-X7BEA735.js} +16 -17
  214. package/{docUpdateCommands-EFBFQV77.js → docUpdateCommands-VOEER36L.js} +68 -59
  215. package/{ebookDownloaderAgentCommand-DYSKF5ZY.js → ebookDownloaderAgentCommand-2DHPGEOQ.js} +14 -17
  216. package/{fetchMessages-TQEUZD7H.js → fetchMessages-RGPIYEPZ.js} +2 -2
  217. package/{getPricing-5BLZRPTM.js → getPricing-BK6CUBAE.js} +8 -4
  218. package/{handleSendMessageAction-GG3TR62X.js → handleSendMessageAction-GQ2KKOET.js} +265 -119
  219. package/{hostCredentialCreate-26S6DDJ5.js → hostCredentialCreate-PJAIKZQP.js} +138 -122
  220. package/index.js +35 -21
  221. package/{keys-RWF7UCB4.js → keys-FXEGMKSG.js} +2 -2
  222. package/localAutomationCommands-UU66LOWB.js +198 -0
  223. package/localAutomationRuntime-SW4R42SZ.js +60 -0
  224. package/{localDialogRead-BJJT3TF5.js → localDialogRead-W2EVXISA.js} +2 -2
  225. package/{localRuntimeAdapter-VREWZWPC.js → localRuntimeAdapter-WRBLXFUZ.js} +136 -119
  226. package/localRuntimeAuthority-3YDFZD3L.js +44 -0
  227. package/{localRuntimeDb-ZJFGNHML.js → localRuntimeDb-CJWJK47G.js} +1 -1
  228. package/{machineCommands-CL5XK5UC.js → machineCommands-JFYED66N.js} +251 -357
  229. package/{machineInfo-LWHTEBHJ.js → machineInfo-BJIU3WQ5.js} +4 -2
  230. package/machineWsRunDispatch-CZUV2FXE.js +227 -0
  231. package/{mcpLocalAuthorizeCommand-RBXJDE6J.js → mcpLocalAuthorizeCommand-HLU72QME.js} +40 -22
  232. package/mcpLocalManageCommands-OHHU6F5C.js +212 -0
  233. package/{memberThunks-43B7UYC5.js → memberThunks-FJW4GPM5.js} +102 -22
  234. package/{memoryCommands-BC6REPQB.js → memoryCommands-2RLHDMU2.js} +25 -34
  235. package/{models-ZX2BYIMB.js → models-TOXYINNM.js} +3 -2
  236. package/{offlineMarxistsAgentCommand-XVXUE6G5.js → offlineMarxistsAgentCommand-WZBJBCPZ.js} +16 -22
  237. package/package.json +3 -3
  238. package/parityCommands-7EWR34P3.js +613 -0
  239. package/{projectArchive-OC63TWTD.js → projectArchive-JIVRMXVV.js} +49 -45
  240. package/{providerPresetApply-NTJUINI6.js → providerPresetApply-IRJ56XIZ.js} +12 -16
  241. package/{providerRegistry-W45SLUV6.js → providerRegistry-26PAUYH2.js} +3 -13
  242. package/{read-KG6INYUT.js → read-6YR57D6V.js} +11 -10
  243. package/{readDocTool-N3GA52JR.js → readDocTool-NKOGL2MW.js} +5 -1
  244. package/{readlineWorkspace-2NO6D6IZ.js → readlineWorkspace-V26AN2FL.js} +926 -572
  245. package/{rememberExplicit-CPAPONSI.js → rememberExplicit-7KX4HXQC.js} +4 -4
  246. package/remove-BF33RCTH.js +32 -0
  247. package/{removeDialogAgentAction-EEVSOQOJ.js → removeDialogAgentAction-GWHBWF4W.js} +22 -26
  248. package/{runAgentClientLoop-U7V32UTD.js → runAgentClientLoop-EKD2EEEA.js} +117 -82
  249. package/{runtimeDoctorCommands-V3M3JTUV.js → runtimeDoctorCommands-IALUR5BZ.js} +23 -16
  250. package/{secretCommands-KVVZS7A6.js → secretCommands-CSTQYB6T.js} +2 -2
  251. package/{setDialogExtraReferencesAction-DNO5POHA.js → setDialogExtraReferencesAction-RL6FGO7T.js} +16 -17
  252. package/{setPrimaryDialogAgentAction-QABBEO4C.js → setPrimaryDialogAgentAction-XJASBB3K.js} +23 -27
  253. package/{settingThunks-DVKG4X4S.js → settingThunks-ZT7ZYXXL.js} +170 -497
  254. package/{skillDiscovery-5GEGWJ6N.js → skillDiscovery-IUEZZG2B.js} +3 -3
  255. package/{spaceCommands-7QKXKBDQ.js → spaceCommands-65WQHVOI.js} +68 -57
  256. package/spacePruneCommand-PTMRUWYJ.js +233 -0
  257. package/{store-Z53ICFL3.js → store-WSAVTR32.js} +3 -1
  258. package/{streamAgentChatTurn-UAGFOXNJ.js → streamAgentChatTurn-B5NICHZW.js} +225 -137
  259. package/{switchDialogAgentAction-KYWJSGOO.js → switchDialogAgentAction-X6DFOIAX.js} +19 -23
  260. package/{tableCommands-EFA754RE.js → tableCommands-6E77VD73.js} +28 -49
  261. package/{toolApiClient-N5PYW2R3.js → toolApiClient-GTTWEV6P.js} +15 -4
  262. package/{tools-2Q2LBDUC.js → tools-UMCPIQX6.js} +73 -63
  263. package/{tuiRestart-4QDWLHYZ.js → tuiRestart-O7UDLNQU.js} +20 -13
  264. package/tuiSummaryLlmCaller-7APIUIIV.js +52 -0
  265. package/{updateCommands-GJGRS6JK.js → updateCommands-DXDIAQFS.js} +12 -7
  266. package/{updateDialogTitleAction-GGNTTI5L.js → updateDialogTitleAction-HZLKWVKM.js} +57 -58
  267. package/{usageCommand-WI6SQOPB.js → usageCommand-WYLNBDHB.js} +6 -8
  268. package/{usageRebuildCommand-WQRLLZAT.js → usageRebuildCommand-AEUPY2PE.js} +11 -15
  269. package/{windowsSelfUpdate-C7LGVWYX.js → windowsSelfUpdate-SXSVXK4X.js} +2 -2
  270. package/workContext-ZAW6VXT7.js +18 -0
  271. package/workContextQueryProjection-CACY5VFE.js +23 -0
  272. package/{workloadLifecycle-DYX5ZMAT.js → workloadLifecycle-P2SJVV3S.js} +1 -1
  273. package/agentFavoriteCommands-7LOP3HUD.js +0 -186
  274. package/agentRecordCommands-TPE7NSZ6.js +0 -194
  275. package/agentRunCommand-DMVGBPLI.js +0 -232
  276. package/chunk-2MBTWINN.js +0 -89
  277. package/chunk-523DITKR.js +0 -32
  278. package/chunk-BUDVRYES.js +0 -2213
  279. package/chunk-BZMDWGQQ.js +0 -47
  280. package/chunk-GAHJLSDO.js +0 -107
  281. package/chunk-GYX6XTAI.js +0 -84
  282. package/chunk-HNUWUO75.js +0 -93
  283. package/chunk-HSBHS6KT.js +0 -33401
  284. package/chunk-KG27JIG4.js +0 -136
  285. package/chunk-OB4FBZXJ.js +0 -364
  286. package/chunk-OKH74FML.js +0 -3746
  287. package/chunk-OLZBQWZU.js +0 -6
  288. package/chunk-OOV5JN25.js +0 -1317
  289. package/chunk-OQFOE4SJ.js +0 -405
  290. package/chunk-PXYBUFDB.js +0 -53
  291. package/chunk-R3FZHW4Q.js +0 -103
  292. package/chunk-R3MV2GII.js +0 -106
  293. package/chunk-SCAC3NM5.js +0 -11751
  294. package/chunk-SR4FE5VD.js +0 -9
  295. package/chunk-SYTHYBMI.js +0 -3558
  296. package/chunk-UKZX3NHN.js +0 -48
  297. package/chunk-UVLYNWIE.js +0 -74
  298. package/chunk-VQX5JJNI.js +0 -861
  299. package/chunk-X4O7FJF5.js +0 -160
  300. package/chunk-YJPK35HB.js +0 -175
  301. package/chunk-YNIYE47Z.js +0 -105
  302. package/chunk-Z4PCXPUE.js +0 -127
  303. package/chunk-ZR5IVL4N.js +0 -862
  304. package/chunk-ZTHAJU3O.js +0 -2537
  305. package/cliAuthorityBrokerProcess-5ZFBTHLB.js +0 -22
  306. package/cliLocalAgentRecordReader-34UKRBLY.js +0 -104
  307. package/deleteFile-ECU6FU5C.js +0 -55
  308. package/localRuntimeAuthority-UF2DAQ3F.js +0 -28
  309. package/machineWsRunDispatch-TBVOYOAH.js +0 -209
  310. package/markdownToSlate-PXYAIBVL.js +0 -8
  311. package/tuiSummaryLlmCaller-HROLGN4F.js +0 -45
  312. package/webapi-QVV65DQF.js +0 -2487
  313. package/workContext-Y3ADAPZU.js +0 -14
  314. package/{chunk-USGHJSGO.js → chunk-GX2MFKF3.js} +3 -3
  315. package/{chunk-PHREU2KZ.js → chunk-WX266G2C.js} +0 -0
  316. package/{chunk-DXWGFL2Z.js → chunk-YY7IGJMN.js} +3 -3
package/chunk-OKH74FML.js DELETED
@@ -1,3746 +0,0 @@
1
- import {
2
- GEMINI_NEON_SERVICE_TIER_MULTIPLIERS,
3
- GEMINI_NEON_STANDARD_PRICE_USD,
4
- GMI_CHAT_COMPLETIONS_URL,
5
- PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
6
- PLATFORM_HOSTED_KIMI_PROVIDER,
7
- cloudflareModels,
8
- getCloudflareWorkersAiChatCompletionsUrl,
9
- gmiModels,
10
- openrouterModels,
11
- platformHostedModels,
12
- resolvePlatformEffectiveModel,
13
- toCnyCredits,
14
- zaiModels
15
- } from "./chunk-JPXACKSW.js";
16
-
17
- // packages/integrations/qwen/models.ts
18
- var qwenModels = [
19
- // ── Qwen3 旗舰 ──
20
- {
21
- name: "qwen3.8-max",
22
- displayName: "Qwen3.8 Max",
23
- hasVision: true,
24
- contextWindow: 1e6,
25
- maxOutputTokens: 131072,
26
- jsonOutput: true,
27
- fnCall: true,
28
- supportsTool: true,
29
- supportsReasoningEffort: true,
30
- // 官方价:输入 ¥12/M、输出 ¥36/M;缓存命中 ¥1.5/M、显式缓存创建 ¥15/M、显式缓存命中 ¥1/M。
31
- price: { input: toCnyCredits(12), output: toCnyCredits(36) },
32
- provider: "qwen",
33
- description: "2.4\u4E07\u4EBF\u53C2\u6570 MoE \u65D7\u8230\uFF0C1M \u4E0A\u4E0B\u6587\uFF08\u8F93\u5165 991K / \u8F93\u51FA 131K / \u601D\u7EF4\u94FE 262K\uFF09\uFF0C\u539F\u751F\u89C6\u89C9\u7406\u89E3\u8D2F\u7A7F\u89C4\u5212-\u6267\u884C-\u9A8C\u8BC1\uFF0C\u81EA\u4E3B\u7F16\u7A0B\u53EF\u4EA4\u4ED8\u5B8C\u6574\u9879\u76EE\u3002"
34
- },
35
- {
36
- name: "qwen3-max",
37
- displayName: "Qwen3 Max",
38
- hasVision: true,
39
- contextWindow: 262144,
40
- maxOutputTokens: 32768,
41
- jsonOutput: true,
42
- fnCall: true,
43
- supportsTool: true,
44
- supportsReasoningEffort: true,
45
- price: { input: toCnyCredits(6), output: toCnyCredits(24) },
46
- provider: "qwen",
47
- description: "\u5343\u95EE3 \u65D7\u8230\u6A21\u578B\uFF0C\u652F\u6301\u601D\u8003\u6A21\u5F0F\u3001\u51FD\u6570\u8C03\u7528\u3001\u7ED3\u6784\u5316\u8F93\u51FA\u3002"
48
- },
49
- {
50
- name: "qwen3-max-preview",
51
- displayName: "Qwen3 Max Preview",
52
- hasVision: true,
53
- contextWindow: 81920,
54
- maxOutputTokens: 32768,
55
- jsonOutput: true,
56
- fnCall: true,
57
- supportsTool: true,
58
- supportsReasoningEffort: true,
59
- price: { input: toCnyCredits(6), output: toCnyCredits(24) },
60
- provider: "qwen"
61
- },
62
- {
63
- name: "qwen3-235b-a22b-instruct-2507",
64
- displayName: "Qwen3 235B A22B Instruct",
65
- hasVision: true,
66
- contextWindow: 262144,
67
- maxOutputTokens: 32768,
68
- jsonOutput: true,
69
- fnCall: true,
70
- supportsTool: true,
71
- supportsReasoningEffort: true,
72
- price: { input: toCnyCredits(4), output: toCnyCredits(12) },
73
- provider: "qwen"
74
- },
75
- {
76
- name: "qwen3-next-80b-a3b-instruct",
77
- displayName: "Qwen3 Next 80B A3B Instruct",
78
- hasVision: true,
79
- contextWindow: 81920,
80
- maxOutputTokens: 32768,
81
- jsonOutput: true,
82
- fnCall: true,
83
- supportsTool: true,
84
- supportsReasoningEffort: true,
85
- price: { input: toCnyCredits(2), output: toCnyCredits(6) },
86
- provider: "qwen"
87
- },
88
- // ── Qwen3-Coder 编程系列 ──
89
- {
90
- name: "qwen3-coder-plus",
91
- displayName: "Qwen3 Coder Plus",
92
- hasVision: false,
93
- contextWindow: 1048576,
94
- maxOutputTokens: 65536,
95
- jsonOutput: true,
96
- fnCall: true,
97
- supportsTool: true,
98
- supportsReasoningEffort: true,
99
- price: { input: toCnyCredits(3), output: toCnyCredits(9) },
100
- provider: "qwen",
101
- description: "\u5343\u95EE3 \u7F16\u7A0B\u65D7\u8230\uFF0C1M \u957F\u4E0A\u4E0B\u6587\uFF0C\u9002\u5408\u4EE3\u7801\u751F\u6210\u4E0E Agent \u7F16\u7A0B\u3002"
102
- },
103
- {
104
- name: "qwen3-coder-flash",
105
- displayName: "Qwen3 Coder Flash",
106
- hasVision: false,
107
- contextWindow: 1048576,
108
- maxOutputTokens: 65536,
109
- jsonOutput: true,
110
- fnCall: true,
111
- supportsTool: true,
112
- supportsReasoningEffort: true,
113
- price: { input: toCnyCredits(1), output: toCnyCredits(3) },
114
- provider: "qwen"
115
- },
116
- {
117
- name: "qwen3-coder-480b-a35b-instruct",
118
- displayName: "Qwen3 Coder 480B A35B Instruct",
119
- hasVision: false,
120
- contextWindow: 1048576,
121
- maxOutputTokens: 65536,
122
- jsonOutput: true,
123
- fnCall: true,
124
- supportsTool: true,
125
- supportsReasoningEffort: true,
126
- price: { input: toCnyCredits(5), output: toCnyCredits(15) },
127
- provider: "qwen"
128
- },
129
- // ── 长上下文 ──
130
- {
131
- name: "qwen-long",
132
- displayName: "Qwen Long",
133
- hasVision: false,
134
- contextWindow: 10485760,
135
- maxOutputTokens: 8192,
136
- jsonOutput: true,
137
- fnCall: false,
138
- supportsTool: false,
139
- price: { input: toCnyCredits(0.5), output: toCnyCredits(2) },
140
- provider: "qwen",
141
- description: "10M \u8D85\u957F\u4E0A\u4E0B\u6587\uFF0C\u9002\u5408\u957F\u6587\u6863\u5904\u7406\u3002"
142
- },
143
- // ── 旧版主力(仍常用) ──
144
- {
145
- name: "qwen-plus",
146
- displayName: "Qwen Plus",
147
- hasVision: true,
148
- contextWindow: 1048576,
149
- maxOutputTokens: 32768,
150
- jsonOutput: true,
151
- fnCall: true,
152
- supportsTool: true,
153
- supportsReasoningEffort: true,
154
- price: { input: toCnyCredits(0.8), output: toCnyCredits(2) },
155
- provider: "qwen"
156
- },
157
- {
158
- name: "qwen-turbo",
159
- displayName: "Qwen Turbo",
160
- hasVision: false,
161
- contextWindow: 131072,
162
- maxOutputTokens: 8192,
163
- jsonOutput: true,
164
- fnCall: true,
165
- supportsTool: true,
166
- price: { input: toCnyCredits(0.3), output: toCnyCredits(0.6) },
167
- provider: "qwen"
168
- },
169
- {
170
- name: "qwen-flash",
171
- displayName: "Qwen Flash",
172
- hasVision: false,
173
- contextWindow: 131072,
174
- maxOutputTokens: 8192,
175
- jsonOutput: true,
176
- fnCall: true,
177
- supportsTool: true,
178
- price: { input: toCnyCredits(0.1), output: toCnyCredits(0.3) },
179
- provider: "qwen"
180
- },
181
- // ── 推理(QwQ) ──
182
- {
183
- name: "qwq-plus",
184
- displayName: "QwQ Plus",
185
- hasVision: false,
186
- contextWindow: 131072,
187
- maxOutputTokens: 32768,
188
- jsonOutput: true,
189
- fnCall: true,
190
- supportsTool: true,
191
- supportsReasoningEffort: true,
192
- price: { input: toCnyCredits(2), output: toCnyCredits(8) },
193
- provider: "qwen",
194
- description: "\u6DF1\u5EA6\u601D\u8003\u63A8\u7406\u6A21\u578B\u3002"
195
- }
196
- ];
197
- var qwenTokenPlanModels = [
198
- // ── 千问 ──
199
- {
200
- name: "qwen3.8-max",
201
- displayName: "Qwen3.8 Max",
202
- hasVision: true,
203
- contextWindow: 1e6,
204
- maxOutputTokens: 131072,
205
- jsonOutput: true,
206
- fnCall: true,
207
- supportsTool: true,
208
- supportsReasoningEffort: true,
209
- price: { input: 0, output: 0 },
210
- provider: "qwen",
211
- description: "2.4\u4E07\u4EBF\u53C2\u6570 MoE \u65D7\u8230\uFF0C\u63A8\u7406\u3001\u89C6\u89C9\u7406\u89E3\u3001\u6587\u672C\u751F\u6210\uFF1B1M \u4E0A\u4E0B\u6587\u3001131K \u8F93\u51FA\u3001262K \u601D\u7EF4\u94FE\u3002"
212
- },
213
- {
214
- name: "qwen3.7-max",
215
- displayName: "Qwen3.7 Max",
216
- hasVision: false,
217
- contextWindow: 262144,
218
- maxOutputTokens: 32768,
219
- jsonOutput: true,
220
- fnCall: true,
221
- supportsTool: true,
222
- supportsReasoningEffort: true,
223
- price: { input: 0, output: 0 },
224
- provider: "qwen",
225
- description: "\u63A8\u7406\u6A21\u578B\u3001\u6587\u672C\u751F\u6210\u3002"
226
- },
227
- {
228
- name: "qwen3.7-plus",
229
- displayName: "Qwen3.7 Plus",
230
- hasVision: true,
231
- contextWindow: 262144,
232
- maxOutputTokens: 32768,
233
- jsonOutput: true,
234
- fnCall: true,
235
- supportsTool: true,
236
- supportsReasoningEffort: true,
237
- price: { input: 0, output: 0 },
238
- provider: "qwen",
239
- description: "\u63A8\u7406\u6A21\u578B\u3001\u89C6\u89C9\u7406\u89E3\u3001\u6587\u672C\u751F\u6210\u3002"
240
- },
241
- {
242
- name: "qwen3.6-flash",
243
- displayName: "Qwen3.6 Flash",
244
- hasVision: true,
245
- contextWindow: 262144,
246
- maxOutputTokens: 32768,
247
- jsonOutput: true,
248
- fnCall: true,
249
- supportsTool: true,
250
- supportsReasoningEffort: true,
251
- price: { input: 0, output: 0 },
252
- provider: "qwen",
253
- description: "\u63A8\u7406\u6A21\u578B\u3001\u89C6\u89C9\u7406\u89E3\u3001\u6587\u672C\u751F\u6210\uFF08\u8F7B\u91CF\u5FEB\u901F\uFF09\u3002"
254
- },
255
- // ── 智谱 AI ──
256
- {
257
- name: "glm-5.2",
258
- displayName: "GLM 5.2",
259
- hasVision: false,
260
- contextWindow: 1e6,
261
- maxOutputTokens: 16384,
262
- jsonOutput: true,
263
- fnCall: true,
264
- supportsTool: true,
265
- supportsReasoningEffort: true,
266
- price: { input: 0, output: 0 },
267
- provider: "qwen",
268
- description: "\u667A\u8C31 AI \u63A8\u7406\u6A21\u578B\u3001\u6587\u672C\u751F\u6210\u3002"
269
- },
270
- // ── DeepSeek ──
271
- {
272
- name: "deepseek-v4-pro",
273
- displayName: "DeepSeek V4 Pro",
274
- hasVision: false,
275
- contextWindow: 1e6,
276
- maxOutputTokens: 384e3,
277
- jsonOutput: true,
278
- fnCall: true,
279
- supportsTool: true,
280
- supportsReasoningEffort: true,
281
- price: { input: 0, output: 0 },
282
- provider: "qwen",
283
- description: "DeepSeek \u63A8\u7406\u6A21\u578B\u3001\u6587\u672C\u751F\u6210\u3002"
284
- },
285
- // ── 万相(图片生成)──
286
- {
287
- name: "wan2.7-image",
288
- displayName: "Wan2.7 Image",
289
- hasVision: false,
290
- hasImageOutput: true,
291
- contextWindow: 0,
292
- maxOutputTokens: 0,
293
- price: { input: 0, output: 0 },
294
- provider: "qwen",
295
- description: "\u4E07\u76F8\u56FE\u7247\u751F\u6210\u3002"
296
- },
297
- {
298
- name: "wan2.7-image-pro",
299
- displayName: "Wan2.7 Image Pro",
300
- hasVision: false,
301
- hasImageOutput: true,
302
- contextWindow: 0,
303
- maxOutputTokens: 0,
304
- price: { input: 0, output: 0 },
305
- provider: "qwen",
306
- description: "\u4E07\u76F8\u56FE\u7247\u751F\u6210\uFF08Pro\uFF09\u3002"
307
- }
308
- ];
309
-
310
- // packages/integrations/moonshot/models.ts
311
- var moonshotModels = [
312
- // ── 旗舰 ──
313
- {
314
- name: "kimi-k3",
315
- displayName: "Kimi K3",
316
- hasVision: true,
317
- contextWindow: 1e6,
318
- maxOutputTokens: 262144,
319
- jsonOutput: true,
320
- fnCall: true,
321
- supportsTool: true,
322
- supportsReasoningEffort: true,
323
- price: { input: 24, output: 120 },
324
- provider: "moonshot",
325
- description: "Moonshot \u65D7\u8230\u6A21\u578B\uFF0C\u539F\u751F\u591A\u6A21\u6001\uFF0C1M \u4E0A\u4E0B\u6587\uFF0C\u957F\u7A0B\u7F16\u7A0B\u4E0E\u6DF1\u5EA6\u63A8\u7406\u3002"
326
- },
327
- // ── 通用 ──
328
- {
329
- name: "kimi-k2.6",
330
- displayName: "Kimi K2.6",
331
- hasVision: true,
332
- contextWindow: 262144,
333
- maxOutputTokens: 262144,
334
- jsonOutput: true,
335
- fnCall: true,
336
- supportsTool: true,
337
- supportsReasoningEffort: true,
338
- price: { input: 4.8, output: 19.2 },
339
- provider: "moonshot",
340
- description: "Moonshot \u9AD8\u6027\u80FD\u901A\u7528\u6A21\u578B\u3002"
341
- }
342
- ];
343
- var kimiCodeModels = [
344
- // ── 旗舰编程 ──
345
- {
346
- name: "k3",
347
- displayName: "Kimi K3",
348
- hasVision: true,
349
- contextWindow: 1e6,
350
- maxOutputTokens: 262144,
351
- jsonOutput: true,
352
- fnCall: true,
353
- supportsTool: true,
354
- supportsReasoningEffort: true,
355
- price: { input: 0, output: 0 },
356
- provider: "moonshot",
357
- description: "Kimi \u6700\u5F3A\u65D7\u8230\u7F16\u7A0B\u6A21\u578B\uFF0C2.8T \u53C2\u6570\uFF0C1M \u4E0A\u4E0B\u6587\uFF0Clow/high/max \u4E09\u6863\u601D\u8003\u6DF1\u5EA6\uFF0C\u64C5\u957F\u590D\u6742\u5DE5\u7A0B\u4E0E\u957F\u7A0B\u63A8\u7406\u3002Moderato \u53CA\u4EE5\u4E0A\u53EF\u7528\u3002"
358
- },
359
- // ── 旗舰编程(256K 上下文版)──
360
- {
361
- name: "k3-256k",
362
- displayName: "Kimi K3 256K",
363
- hasVision: true,
364
- contextWindow: 262144,
365
- maxOutputTokens: 262144,
366
- jsonOutput: true,
367
- fnCall: true,
368
- supportsTool: true,
369
- supportsReasoningEffort: true,
370
- price: { input: 0, output: 0 },
371
- provider: "moonshot",
372
- description: "K3 \u7684 256K \u4E0A\u4E0B\u6587\u7248\uFF0C\u6D88\u8017\u7EA6\u4E3A k3 \u7684\u4E00\u534A\uFF0C\u9002\u5408\u65E5\u5E38\u95EE\u7B54\u4E0E\u4EE3\u7801\u8865\u5168\u3002\u4E0D\u652F\u6301\u89C6\u9891\u8F93\u5165\u3002Moderato \u53CA\u4EE5\u4E0A\u53EF\u7528\u3002"
373
- },
374
- // ── 成熟编程 ──
375
- {
376
- name: "kimi-for-coding",
377
- displayName: "Kimi K2.7 Code",
378
- hasVision: true,
379
- contextWindow: 262144,
380
- maxOutputTokens: 262144,
381
- jsonOutput: true,
382
- fnCall: true,
383
- supportsTool: true,
384
- supportsReasoningEffort: true,
385
- price: { input: 0, output: 0 },
386
- provider: "moonshot",
387
- description: "\u6210\u719F\u7A33\u5B9A\u7684 Coding \u6A21\u578B\uFF0CThinking \u5F00\u542F\u4E0B\u53EF\u9760\u9075\u5FAA\u6307\u4EE4\uFF0C\u7F16\u7A0B\u4EFB\u52A1\u6210\u529F\u7387\u9AD8\u3002\u6240\u6709\u4F1A\u5458\u53EF\u7528\u3002"
388
- },
389
- // ── 高速编程 ──
390
- {
391
- name: "kimi-for-coding-highspeed",
392
- displayName: "Kimi K2.7 Code \u9AD8\u901F\u7248",
393
- hasVision: true,
394
- contextWindow: 262144,
395
- maxOutputTokens: 262144,
396
- jsonOutput: true,
397
- fnCall: true,
398
- supportsTool: true,
399
- supportsReasoningEffort: true,
400
- price: { input: 0, output: 0 },
401
- provider: "moonshot",
402
- description: "K2.7 Code \u9AD8\u901F\u7248\uFF0C\u7F16\u7801\u80FD\u529B\u4E00\u81F4\uFF0C\u8F93\u51FA\u901F\u5EA6\u7EA6 6 \u500D\u3001\u6D88\u8017\u7EA6 3 \u500D\u3002Allegretto \u53CA\u4EE5\u4E0A\u53EF\u7528\u3002"
403
- }
404
- ];
405
-
406
- // packages/integrations/stepfun/models.ts
407
- var stepfunModels = [
408
- // ── 旗舰多模态推理 ──
409
- {
410
- name: "step-3.7-flash",
411
- displayName: "Step 3.7 Flash",
412
- hasVision: true,
413
- contextWindow: 262144,
414
- maxOutputTokens: 65536,
415
- jsonOutput: true,
416
- fnCall: true,
417
- supportsTool: true,
418
- supportsReasoningEffort: true,
419
- // 官方价:输入 ¥1.35/M、缓存命中 ¥0.27/M、输出 ¥8.1/M
420
- price: {
421
- input: toCnyCredits(1.35),
422
- output: toCnyCredits(8.1),
423
- inputCacheHit: toCnyCredits(0.27)
424
- },
425
- provider: "stepfun",
426
- description: "\u9636\u8DC3\u661F\u8FB0\u65D7\u8230\u591A\u6A21\u6001\u63A8\u7406\u6A21\u578B\uFF0C256K \u4E0A\u4E0B\u6587\uFF0C\u539F\u751F\u56FE\u50CF+\u89C6\u9891\u7406\u89E3\uFF08\u65E0\u9700\u5916\u6302\u89C6\u89C9\u6A21\u578B\uFF09\uFF0C\u4E09\u6863 reasoning_effort\uFF08low/medium/high\uFF09\uFF0C\u5DE5\u5177\u8C03\u7528\uFF0C\u9488\u5BF9 Agent \u4E0E Coding \u6DF1\u5EA6\u4F18\u5316\uFF1B\u6743\u91CD\u5F00\u6E90\uFF08Apache 2.0\uFF09\u3002"
427
- },
428
- {
429
- name: "step-5-preview",
430
- displayName: "Step 5 Preview",
431
- hasVision: true,
432
- // 官方规格:1M context window / 64k max output(600B 总参 / 27B 激活 MoE)
433
- contextWindow: 1e6,
434
- maxOutputTokens: 65536,
435
- jsonOutput: true,
436
- fnCall: true,
437
- supportsTool: true,
438
- supportsReasoningEffort: true,
439
- // 官方价:输入 ¥7/M、缓存命中 ¥0.35/M、输出 ¥20/M
440
- price: {
441
- input: toCnyCredits(7),
442
- output: toCnyCredits(20),
443
- inputCacheHit: toCnyCredits(0.35)
444
- },
445
- provider: "stepfun",
446
- description: "\u9636\u8DC3\u661F\u8FB0\u65B0\u4E00\u4EE3\u65D7\u8230\u591A\u6A21\u6001\u63A8\u7406\u6A21\u578B\uFF082026-09 \u53D1\u5E03\uFF09\uFF0C1M \u4E0A\u4E0B\u6587\uFF0C\u6587\u672C+\u56FE\u50CF+\u89C6\u9891\u8F93\u5165\uFF0C64k \u6700\u5927\u8F93\u51FA\uFF0C\u4E09\u6863 reasoning_effort\uFF0C\u652F\u6301\u590D\u6742\u903B\u8F91\u5206\u89E3\u4E0E\u957F\u7A0B\u89C4\u5212\uFF1BArtificial Analysis \u667A\u80FD\u6307\u6570 44\uFF0C\u4E3A StepFun \u7CFB\u6700\u9AD8\u3002"
447
- },
448
- // ── 旗舰语言推理 ──
449
- {
450
- name: "step-3.5-flash",
451
- displayName: "Step 3.5 Flash",
452
- hasVision: false,
453
- contextWindow: 262144,
454
- maxOutputTokens: 65536,
455
- jsonOutput: true,
456
- fnCall: true,
457
- supportsTool: true,
458
- supportsReasoningEffort: true,
459
- // 官方价:输入 ¥0.7/M、缓存命中 ¥0.14/M、输出 ¥2.1/M
460
- price: {
461
- input: toCnyCredits(0.7),
462
- output: toCnyCredits(2.1),
463
- inputCacheHit: toCnyCredits(0.14)
464
- },
465
- provider: "stepfun",
466
- description: "\u9636\u8DC3\u661F\u8FB0\u65D7\u8230\u8BED\u8A00\u63A8\u7406\u6A21\u578B\uFF0C196B \u603B\u53C2\u6570 / 11B \u6FC0\u6D3B\u53C2\u6570 MoE\uFF0C\u9AD8\u901F\u63A8\u7406\u4E0E\u5DE5\u5177\u8C03\u7528\uFF1B\u6743\u91CD\u5F00\u6E90\u3002"
467
- },
468
- {
469
- name: "step-3.5-flash-2603",
470
- displayName: "Step 3.5 Flash (Agent\u4F18\u5316\u7248)",
471
- hasVision: false,
472
- contextWindow: 262144,
473
- maxOutputTokens: 65536,
474
- jsonOutput: true,
475
- fnCall: true,
476
- supportsTool: true,
477
- supportsReasoningEffort: true,
478
- // 官方价:输入 ¥0.7/M、缓存命中 ¥0.14/M、输出 ¥2.1/M
479
- price: {
480
- input: toCnyCredits(0.7),
481
- output: toCnyCredits(2.1),
482
- inputCacheHit: toCnyCredits(0.14)
483
- },
484
- provider: "stepfun",
485
- description: "\u9488\u5BF9\u9AD8\u9891 Agent \u573A\u666F\u4F18\u5316\uFF0CToken \u6548\u7387\u4E0E\u63A8\u7406\u901F\u5EA6\u66F4\u4F73\uFF0C\u652F\u6301 low/high reasoning_effort\u3002\u6CE8\u610F\uFF1AArtificial Analysis \u5DF2\u6807\u8BB0\u4E3A deprecated\uFF0C\u5B98\u65B9\u63A8\u8350\u8FC1\u79FB\u5230 step-3.7-flash\u3002"
486
- },
487
- // ── 经典视觉模型 ──
488
- {
489
- name: "step-1o-turbo-vision",
490
- displayName: "Step 1o Turbo Vision",
491
- hasVision: true,
492
- contextWindow: 65536,
493
- maxOutputTokens: 8192,
494
- jsonOutput: true,
495
- fnCall: true,
496
- supportsTool: true,
497
- // 官方价:输入 ¥2.5/M、缓存命中 ¥0.5/M、输出 ¥8/M
498
- price: {
499
- input: toCnyCredits(2.5),
500
- output: toCnyCredits(8),
501
- inputCacheHit: toCnyCredits(0.5)
502
- },
503
- provider: "stepfun",
504
- description: "\u9AD8\u54CD\u5E94\u901F\u5EA6\u89C6\u89C9\u6A21\u578B\uFF0C\u652F\u6301\u56FE\u7247\u4E0E\u6587\u6863\u7406\u89E3\uFF1B\u5B98\u65B9\u9000\u5F79\u516C\u544A\u4E2D\u591A\u6570\u65E7\u6A21\u578B\u7684\u6307\u5B9A\u66FF\u6362\u76EE\u6807\u3002"
505
- }
506
- ];
507
- var stepfunStepPlanModels = [
508
- {
509
- name: "step-5-preview",
510
- displayName: "Step 5 Preview",
511
- hasVision: true,
512
- // Step Plan 订阅端同样开放 1M context(见 Step Plan / Claude Code 接入文档)
513
- contextWindow: 1e6,
514
- maxOutputTokens: 65536,
515
- jsonOutput: true,
516
- fnCall: true,
517
- supportsTool: true,
518
- supportsReasoningEffort: true,
519
- price: { input: 0, output: 0 },
520
- provider: "stepfun",
521
- description: "\u9636\u8DC3\u661F\u8FB0\u65B0\u4E00\u4EE3\u65D7\u8230\u591A\u6A21\u6001\u63A8\u7406\u6A21\u578B\uFF0C1M \u4E0A\u4E0B\u6587\uFF0C\u6587\u672C+\u56FE\u50CF+\u89C6\u9891\u8F93\u5165\uFF0C\u64C5\u957F\u590D\u6742\u4EFB\u52A1\u5206\u89E3\u4E0E\u591A\u6B65\u8BA1\u5212\u3002"
522
- },
523
- {
524
- name: "step-3.7-flash",
525
- displayName: "Step 3.7 Flash",
526
- hasVision: true,
527
- contextWindow: 262144,
528
- maxOutputTokens: 65536,
529
- jsonOutput: true,
530
- fnCall: true,
531
- supportsTool: true,
532
- supportsReasoningEffort: true,
533
- price: { input: 0, output: 0 },
534
- provider: "stepfun",
535
- description: "\u9636\u8DC3\u661F\u8FB0\u65D7\u8230\u591A\u6A21\u6001\u63A8\u7406\u6A21\u578B\uFF0C256K \u4E0A\u4E0B\u6587\uFF0C\u539F\u751F\u56FE\u50CF+\u89C6\u9891\u7406\u89E3\uFF0C\u9AD8\u901F\u63A8\u7406 + \u5DE5\u5177\u8C03\u7528\uFF0CAgent \u6DF1\u5EA6\u9002\u914D\u3002"
536
- },
537
- {
538
- name: "step-3.5-flash",
539
- displayName: "Step 3.5 Flash",
540
- hasVision: false,
541
- contextWindow: 262144,
542
- maxOutputTokens: 65536,
543
- jsonOutput: true,
544
- fnCall: true,
545
- supportsTool: true,
546
- supportsReasoningEffort: true,
547
- price: { input: 0, output: 0 },
548
- provider: "stepfun",
549
- description: "\u9636\u8DC3\u661F\u8FB0\u65D7\u8230\u8BED\u8A00\u63A8\u7406\u6A21\u578B\uFF0C196B MoE \u67B6\u6784\uFF0C\u9AD8\u901F\u63A8\u7406\u4E0E\u5DE5\u5177\u8C03\u7528\u3002"
550
- },
551
- {
552
- name: "step-3.5-flash-2603",
553
- displayName: "Step 3.5 Flash (Agent\u4F18\u5316\u7248)",
554
- hasVision: false,
555
- contextWindow: 262144,
556
- maxOutputTokens: 65536,
557
- jsonOutput: true,
558
- fnCall: true,
559
- supportsTool: true,
560
- supportsReasoningEffort: true,
561
- price: { input: 0, output: 0 },
562
- provider: "stepfun",
563
- description: "\u9488\u5BF9\u9AD8\u9891 Agent \u573A\u666F\u4F18\u5316\uFF0C\u66F4\u4F73 Token \u6548\u7387\u4E0E\u63A8\u7406\u901F\u5EA6\uFF0C\u652F\u6301 low/high \u63A8\u7406\u5F3A\u5EA6\uFF1B\u5B98\u65B9\u63A8\u8350\u8FC1\u79FB\u5230 step-3.7-flash\u3002"
564
- },
565
- {
566
- name: "step-router-v1",
567
- displayName: "Step Router V1",
568
- hasVision: false,
569
- contextWindow: 262144,
570
- maxOutputTokens: 65536,
571
- jsonOutput: true,
572
- fnCall: true,
573
- supportsTool: true,
574
- supportsReasoningEffort: true,
575
- price: { input: 0, output: 0 },
576
- provider: "stepfun",
577
- description: "\u667A\u80FD\u8DEF\u7531\u6A21\u578B\uFF0C\u6309\u4EFB\u52A1\u590D\u6742\u5EA6\u81EA\u52A8\u5728 Step \u7CFB\u5217\u6A21\u578B\u95F4\u8C03\u5EA6\uFF0C\u8BA2\u9605\u53EF\u7528\u3002"
578
- }
579
- ];
580
-
581
- // packages/integrations/minimax/models.ts
582
- var minimaxModels = [
583
- {
584
- name: "MiniMax-M3.1-Flash",
585
- displayName: "MiniMax M3.1 Flash",
586
- hasVision: true,
587
- contextWindow: 1e6,
588
- maxOutputTokens: 8192,
589
- jsonOutput: true,
590
- fnCall: true,
591
- supportsTool: true,
592
- price: {
593
- input: toCnyCredits(1),
594
- output: toCnyCredits(4),
595
- inputCacheHit: toCnyCredits(0.1)
596
- },
597
- provider: "minimax",
598
- description: "MiniMax \u65B0\u4E00\u4EE3 Flash \u65D7\u8230\u6A21\u578B\uFF0C1M \u4E0A\u4E0B\u6587\uFF0C\u539F\u751F\u591A\u6A21\u6001\u89C6\u89C9\u7406\u89E3\uFF0C\u9488\u5BF9 Agent\u3001\u4EE3\u7801\u4E0E\u5DE5\u5177\u8C03\u7528\u6DF1\u5EA6\u4F18\u5316\u3002"
599
- },
600
- {
601
- name: "MiniMax-M3",
602
- displayName: "MiniMax M3",
603
- hasVision: true,
604
- contextWindow: 1e6,
605
- maxOutputTokens: 8192,
606
- jsonOutput: true,
607
- fnCall: true,
608
- supportsTool: true,
609
- price: {
610
- input: toCnyCredits(2.1),
611
- output: toCnyCredits(8.4),
612
- inputCacheHit: toCnyCredits(0.42)
613
- },
614
- provider: "minimax",
615
- description: "MiniMax M3 \u65D7\u8230\u591A\u6A21\u6001\u63A8\u7406\u6A21\u578B\uFF0C1M \u4E0A\u4E0B\u6587\uFF0C\u652F\u6301\u6587\u672C\u4E0E\u89C6\u89C9\u7406\u89E3\u3001\u5DE5\u5177\u8C03\u7528\u3002"
616
- }
617
- ];
618
-
619
- // packages/integrations/commandcode/models.ts
620
- var commandCodeModels = [
621
- // ── DeepSeek ──
622
- {
623
- name: "deepseek/deepseek-v4-flash",
624
- displayName: "DeepSeek V4 Flash",
625
- hasVision: false,
626
- price: { input: 0, output: 0 },
627
- provider: "commandcode",
628
- description: "CommandCode \u5B98\u65B9\u9ED8\u8BA4\u6A21\u578B\uFF0C\u5FEB\u901F\u6DF7\u5408\u6CE8\u610F\u529B\u63A8\u7406\u3002"
629
- },
630
- {
631
- name: "deepseek/deepseek-v4-pro",
632
- displayName: "DeepSeek V4 Pro",
633
- hasVision: false,
634
- price: { input: 0, output: 0 },
635
- provider: "commandcode",
636
- description: "\u6DF7\u5408\u6CE8\u610F\u529B\u957F\u4E0A\u4E0B\u6587\u63A8\u7406\u65D7\u8230\u3002"
637
- },
638
- {
639
- name: "deepseek/deepseek-v4.1-flash",
640
- displayName: "DeepSeek V4.1 Flash",
641
- hasVision: true,
642
- price: { input: 0, output: 0 },
643
- provider: "commandcode",
644
- description: "V4.1 \u6DF7\u5408\u6CE8\u610F\u529B\u63A8\u7406\uFF0C\u5E26\u89C6\u89C9\u3002"
645
- },
646
- // ── Moonshot ──
647
- {
648
- name: "moonshotai/Kimi-K3",
649
- displayName: "Kimi K3",
650
- hasVision: true,
651
- price: { input: 0, output: 0 },
652
- provider: "commandcode",
653
- description: "Kimi K3\uFF0C\u6708\u4E4B\u6697\u9762\u65D7\u8230\u3002"
654
- },
655
- {
656
- name: "moonshotai/Kimi-K2.7-Code",
657
- displayName: "Kimi K2.7 Code",
658
- hasVision: true,
659
- price: { input: 0, output: 0 },
660
- provider: "commandcode",
661
- description: "Kimi K2.7 Code\uFF0C\u7F16\u7A0B\u7279\u5316\u3002"
662
- },
663
- // ── Qwen ──
664
- {
665
- name: "Qwen/Qwen3.8-Max",
666
- displayName: "Qwen 3.8 Max",
667
- hasVision: true,
668
- price: { input: 0, output: 0 },
669
- provider: "commandcode",
670
- description: "\u81EA\u4E3B\u957F\u7A0B\u7F16\u7A0B\u4E0E\u4E13\u4E1A\u5DE5\u4F5C\u3002"
671
- },
672
- // ── Z AI ──
673
- {
674
- name: "zai-org/GLM-5.3",
675
- displayName: "GLM 5.3",
676
- hasVision: false,
677
- price: { input: 0, output: 0 },
678
- provider: "commandcode",
679
- description: "\u524D\u6CBF\u7F16\u7A0B\u6A21\u578B\uFF0C1M \u4E0A\u4E0B\u6587\u3002"
680
- },
681
- {
682
- name: "z-ai/glm-5.3-flash",
683
- displayName: "GLM 5.3 Flash",
684
- hasVision: true,
685
- price: { input: 0, output: 0 },
686
- provider: "commandcode",
687
- description: "\u5FEB\u901F\u5B9E\u60E0\u7684 GLM \u7F16\u7A0B\u6A21\u578B\uFF0C1M \u4E0A\u4E0B\u6587\u3002"
688
- },
689
- // ── Xiaomi ──
690
- {
691
- name: "xiaomi/mimo-v2.5-pro",
692
- displayName: "MiMo V2.5 Pro",
693
- hasVision: false,
694
- price: { input: 0, output: 0 },
695
- provider: "commandcode",
696
- description: "\u9AD8\u80FD\u529B\u957F\u4E0A\u4E0B\u6587 agentic \u7F16\u7A0B\u3002"
697
- },
698
- {
699
- name: "xiaomi/mimo-v2.6-pro",
700
- displayName: "MiMo V2.6 Pro",
701
- contextWindow: 1048576,
702
- hasVision: true,
703
- price: { input: 0, output: 0 },
704
- provider: "commandcode",
705
- description: "\u65D7\u8230\u591A\u6A21\u6001\uFF08\u6587\u672C/\u56FE/\u97F3/\u89C6\u9891\u8F93\u5165\uFF09\uFF0C1M \u4E0A\u4E0B\u6587\u3002"
706
- },
707
- // ── MiniMax ──
708
- {
709
- name: "MiniMaxAI/MiniMax-M3",
710
- displayName: "MiniMax M3",
711
- hasVision: true,
712
- price: { input: 0, output: 0 },
713
- provider: "commandcode",
714
- description: "MiniMax M3 \u63A8\u7406\u6A21\u578B\u3002"
715
- },
716
- // ── xAI ──
717
- {
718
- name: "xai/grok-4.6",
719
- displayName: "Grok 4.6",
720
- hasVision: true,
721
- price: { input: 0, output: 0 },
722
- provider: "commandcode",
723
- description: "\u7F16\u7A0B\u3001\u77E5\u8BC6\u4E0E STEM \u524D\u6CBF\u8868\u73B0\u3002"
724
- },
725
- {
726
- name: "xai/grok-4.5",
727
- displayName: "Grok 4.5",
728
- hasVision: true,
729
- price: { input: 0, output: 0 },
730
- provider: "commandcode",
731
- description: "\u7F16\u7A0B\u4E0E agentic \u4EFB\u52A1\u667A\u80FD\u4E4B\u9009\u3002"
732
- },
733
- // ── Anthropic ──
734
- {
735
- name: "claude-sonnet-5",
736
- displayName: "Claude Sonnet 5",
737
- hasVision: true,
738
- price: { input: 0, output: 0 },
739
- provider: "commandcode",
740
- description: "\u901F\u5EA6\u4E0E\u667A\u80FD\u7684\u6700\u4F73\u5E73\u8861\uFF08\u5B98\u65B9\u63A8\u8350\uFF09\u3002"
741
- },
742
- {
743
- name: "claude-opus-5",
744
- displayName: "Claude Opus 5",
745
- hasVision: true,
746
- price: { input: 0, output: 0 },
747
- provider: "commandcode",
748
- description: "\u6700\u667A\u80FD\u7684 Opus\uFF0Cagent \u4E0E\u7F16\u7A0B\u3002"
749
- },
750
- // ── OpenAI ──
751
- {
752
- name: "gpt-5.6-sol",
753
- displayName: "GPT-5.6 Sol",
754
- hasVision: true,
755
- price: { input: 0, output: 0 },
756
- provider: "commandcode",
757
- description: "OpenAI GPT-5.6 Sol\u3002"
758
- },
759
- {
760
- name: "gpt-6-astra",
761
- displayName: "GPT-6 Astra",
762
- hasVision: true,
763
- price: { input: 0, output: 0 },
764
- provider: "commandcode",
765
- description: "OpenAI GPT-6 Astra \u65D7\u8230\u3002"
766
- },
767
- // ── Google ──
768
- {
769
- name: "google/gemini-3.8-flash",
770
- displayName: "Gemini 3.8 Flash",
771
- hasVision: true,
772
- price: { input: 0, output: 0 },
773
- provider: "commandcode",
774
- description: "Gemini 3.8 Flash\uFF0C\u591A\u6A21\u6001\u3002"
775
- },
776
- // ── 官方目录补充(2026-10-16 核对 https://commandcode.ai/docs/reference/cli/models;
777
- // 仅同步官方列出的 id 与官方 Capabilities;窗口/最大输出官方未公布故不猜) ──
778
- {
779
- name: "Qwen/Qwen3.6-Max-Preview",
780
- displayName: "Qwen 3.6 Max Preview",
781
- hasVision: false,
782
- price: { input: 0, output: 0 },
783
- provider: "commandcode",
784
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Reasoning\uFF09\u3002"
785
- },
786
- {
787
- name: "Qwen/Qwen3.6-Plus",
788
- displayName: "Qwen 3.6 Plus",
789
- hasVision: true,
790
- price: { input: 0, output: 0 },
791
- provider: "commandcode",
792
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
793
- },
794
- {
795
- name: "Qwen/Qwen3.7-Flash",
796
- displayName: "Qwen 3.7 Flash",
797
- hasVision: true,
798
- price: { input: 0, output: 0 },
799
- provider: "commandcode",
800
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
801
- },
802
- {
803
- name: "Qwen/Qwen3.7-Max",
804
- displayName: "Qwen 3.7 Max",
805
- hasVision: false,
806
- price: { input: 0, output: 0 },
807
- provider: "commandcode",
808
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Reasoning\uFF09\u3002"
809
- },
810
- {
811
- name: "Qwen/Qwen3.7-Plus",
812
- displayName: "Qwen 3.7 Plus",
813
- hasVision: true,
814
- price: { input: 0, output: 0 },
815
- provider: "commandcode",
816
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
817
- },
818
- {
819
- name: "Qwen/Qwen3.8-27B",
820
- displayName: "Qwen 3.8 27B",
821
- hasVision: true,
822
- price: { input: 0, output: 0 },
823
- provider: "commandcode",
824
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
825
- },
826
- {
827
- name: "Qwen/Qwen3.8-Flash",
828
- displayName: "Qwen 3.8 Flash",
829
- hasVision: true,
830
- price: { input: 0, output: 0 },
831
- provider: "commandcode",
832
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
833
- },
834
- {
835
- name: "Qwen/Qwen3.8-Max-0902",
836
- displayName: "Qwen 3.8 Max 0902",
837
- hasVision: true,
838
- price: { input: 0, output: 0 },
839
- provider: "commandcode",
840
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
841
- },
842
- {
843
- name: "Qwen/Qwen3.8-Max-Prime",
844
- displayName: "Qwen 3.8 Max Prime",
845
- hasVision: true,
846
- price: { input: 0, output: 0 },
847
- provider: "commandcode",
848
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
849
- },
850
- {
851
- name: "Qwen/Qwen3.8-Omni-Flash",
852
- displayName: "Qwen 3.8 Omni Flash",
853
- hasVision: true,
854
- price: { input: 0, output: 0 },
855
- provider: "commandcode",
856
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
857
- },
858
- {
859
- name: "claude-fable-5",
860
- displayName: "Claude Fable 5",
861
- hasVision: true,
862
- price: { input: 0, output: 0 },
863
- provider: "commandcode",
864
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
865
- },
866
- {
867
- name: "claude-fable-5-1",
868
- displayName: "Claude Fable 5.1",
869
- hasVision: true,
870
- price: { input: 0, output: 0 },
871
- provider: "commandcode",
872
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
873
- },
874
- {
875
- name: "claude-haiku-4-5",
876
- displayName: "Claude Haiku 4.5",
877
- hasVision: true,
878
- price: { input: 0, output: 0 },
879
- provider: "commandcode",
880
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision\uFF09\u3002"
881
- },
882
- {
883
- name: "claude-haiku-5-5",
884
- displayName: "Claude Haiku 5.5",
885
- hasVision: true,
886
- price: { input: 0, output: 0 },
887
- provider: "commandcode",
888
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
889
- },
890
- {
891
- name: "claude-opus-4-7",
892
- displayName: "Claude Opus 4.7",
893
- hasVision: true,
894
- price: { input: 0, output: 0 },
895
- provider: "commandcode",
896
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
897
- },
898
- {
899
- name: "claude-opus-4-8",
900
- displayName: "Claude Opus 4.8",
901
- hasVision: true,
902
- price: { input: 0, output: 0 },
903
- provider: "commandcode",
904
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
905
- },
906
- {
907
- name: "claude-opus-5-5",
908
- displayName: "Claude Opus 5.5",
909
- hasVision: true,
910
- price: { input: 0, output: 0 },
911
- provider: "commandcode",
912
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
913
- },
914
- {
915
- name: "claude-sonnet-4-6",
916
- displayName: "Claude Sonnet 4.6",
917
- hasVision: true,
918
- price: { input: 0, output: 0 },
919
- provider: "commandcode",
920
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision\uFF09\u3002"
921
- },
922
- {
923
- name: "claude-sonnet-5-5",
924
- displayName: "Claude Sonnet 5.5",
925
- hasVision: true,
926
- price: { input: 0, output: 0 },
927
- provider: "commandcode",
928
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
929
- },
930
- {
931
- name: "deepseek/deepseek-v4-flash-fast",
932
- displayName: "DeepSeek V4 Flash Fast",
933
- hasVision: false,
934
- price: { input: 0, output: 0 },
935
- provider: "commandcode",
936
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Reasoning\uFF09\u3002"
937
- },
938
- {
939
- name: "deepseek/deepseek-v4-flash-vision-exp",
940
- displayName: "DeepSeek V4 Flash Vision (exp)",
941
- hasVision: true,
942
- price: { input: 0, output: 0 },
943
- provider: "commandcode",
944
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
945
- },
946
- {
947
- name: "deepseek/deepseek-v4.1-flash-fast",
948
- displayName: "DeepSeek V4.1 Flash Fast",
949
- hasVision: true,
950
- price: { input: 0, output: 0 },
951
- provider: "commandcode",
952
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
953
- },
954
- {
955
- name: "google/gemini-3.1-flash-lite",
956
- displayName: "Gemini 3.1 Flash Lite",
957
- hasVision: true,
958
- price: { input: 0, output: 0 },
959
- provider: "commandcode",
960
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
961
- },
962
- {
963
- name: "google/gemini-3.5-flash",
964
- displayName: "Gemini 3.5 Flash",
965
- hasVision: true,
966
- price: { input: 0, output: 0 },
967
- provider: "commandcode",
968
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
969
- },
970
- {
971
- name: "google/gemini-3.5-flash-lite",
972
- displayName: "Gemini 3.5 Flash Lite",
973
- hasVision: true,
974
- price: { input: 0, output: 0 },
975
- provider: "commandcode",
976
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
977
- },
978
- {
979
- name: "google/gemini-3.6-flash",
980
- displayName: "Gemini 3.6 Flash",
981
- hasVision: true,
982
- price: { input: 0, output: 0 },
983
- provider: "commandcode",
984
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
985
- },
986
- {
987
- name: "google/gemini-3.7-flash",
988
- displayName: "Gemini 3.7 Flash",
989
- hasVision: true,
990
- price: { input: 0, output: 0 },
991
- provider: "commandcode",
992
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
993
- },
994
- {
995
- name: "google/gemini-4-argon",
996
- displayName: "Gemini 4 Argon",
997
- hasVision: true,
998
- price: { input: 0, output: 0 },
999
- provider: "commandcode",
1000
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1001
- },
1002
- {
1003
- name: "inclusionai/ling-3.1-flash",
1004
- displayName: "Ling 3.1 Flash",
1005
- hasVision: false,
1006
- price: { input: 0, output: 0 },
1007
- provider: "commandcode",
1008
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Reasoning\uFF09\u3002"
1009
- },
1010
- {
1011
- name: "meituan/LongCat-2.0",
1012
- displayName: "LongCat 2.0",
1013
- hasVision: false,
1014
- price: { input: 0, output: 0 },
1015
- provider: "commandcode",
1016
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Reasoning\uFF09\u3002"
1017
- },
1018
- {
1019
- name: "meta/muse-spark-1.1",
1020
- displayName: "Muse Spark 1.1",
1021
- hasVision: true,
1022
- price: { input: 0, output: 0 },
1023
- provider: "commandcode",
1024
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1025
- },
1026
- {
1027
- name: "meta/muse-spark-1.2",
1028
- displayName: "Muse Spark 1.2",
1029
- hasVision: true,
1030
- price: { input: 0, output: 0 },
1031
- provider: "commandcode",
1032
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1033
- },
1034
- {
1035
- name: "meta/muse-spark-1.2-contributor",
1036
- displayName: "Muse Spark 1.2 Contributor",
1037
- hasVision: true,
1038
- price: { input: 0, output: 0 },
1039
- provider: "commandcode",
1040
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1041
- },
1042
- {
1043
- name: "meta/muse-spark-1.3",
1044
- displayName: "Muse Spark 1.3",
1045
- hasVision: true,
1046
- price: { input: 0, output: 0 },
1047
- provider: "commandcode",
1048
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1049
- },
1050
- {
1051
- name: "meta/muse-spark-1.3-contributor",
1052
- displayName: "Muse Spark 1.3 Contributor",
1053
- hasVision: true,
1054
- price: { input: 0, output: 0 },
1055
- provider: "commandcode",
1056
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1057
- },
1058
- {
1059
- name: "meta/muse-spark-open",
1060
- displayName: "Muse Spark Open",
1061
- hasVision: true,
1062
- price: { input: 0, output: 0 },
1063
- provider: "commandcode",
1064
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1065
- },
1066
- {
1067
- name: "meta/muse-wonder-1.0",
1068
- displayName: "Muse Wonder",
1069
- hasVision: true,
1070
- price: { input: 0, output: 0 },
1071
- provider: "commandcode",
1072
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1073
- },
1074
- {
1075
- name: "MiniMaxAI/MiniMax-M2.5",
1076
- displayName: "MiniMax M2.5",
1077
- hasVision: false,
1078
- price: { input: 0, output: 0 },
1079
- provider: "commandcode",
1080
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input\uFF09\u3002"
1081
- },
1082
- {
1083
- name: "MiniMaxAI/MiniMax-M2.7",
1084
- displayName: "MiniMax M2.7",
1085
- hasVision: false,
1086
- price: { input: 0, output: 0 },
1087
- provider: "commandcode",
1088
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input\uFF09\u3002"
1089
- },
1090
- {
1091
- name: "mistral/mistral-large-4",
1092
- displayName: "Mistral Large 4",
1093
- hasVision: true,
1094
- price: { input: 0, output: 0 },
1095
- provider: "commandcode",
1096
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1097
- },
1098
- {
1099
- name: "moonshotai/Kimi-K2.5",
1100
- displayName: "Kimi K2.5",
1101
- hasVision: true,
1102
- price: { input: 0, output: 0 },
1103
- provider: "commandcode",
1104
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision\uFF09\u3002"
1105
- },
1106
- {
1107
- name: "moonshotai/Kimi-K2.6",
1108
- displayName: "Kimi K2.6",
1109
- hasVision: true,
1110
- price: { input: 0, output: 0 },
1111
- provider: "commandcode",
1112
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision\uFF09\u3002"
1113
- },
1114
- {
1115
- name: "moonshotai/Kimi-K2.7-Code-Highspeed",
1116
- displayName: "Kimi K2.7 Code HighSpeed",
1117
- hasVision: true,
1118
- price: { input: 0, output: 0 },
1119
- provider: "commandcode",
1120
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1121
- },
1122
- {
1123
- name: "nvidia/nemotron-3-ultra-550b-a55b",
1124
- displayName: "Nemotron 3 Ultra",
1125
- hasVision: false,
1126
- price: { input: 0, output: 0 },
1127
- provider: "commandcode",
1128
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Reasoning\uFF09\u3002"
1129
- },
1130
- {
1131
- name: "nvidia/nemotron-3.5-super-vl",
1132
- displayName: "Nemotron 3.5 Super VL",
1133
- hasVision: true,
1134
- price: { input: 0, output: 0 },
1135
- provider: "commandcode",
1136
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1137
- },
1138
- {
1139
- name: "gpt-5.3-codex",
1140
- displayName: "GPT-5.3 Codex",
1141
- hasVision: true,
1142
- price: { input: 0, output: 0 },
1143
- provider: "commandcode",
1144
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1145
- },
1146
- {
1147
- name: "gpt-5.4",
1148
- displayName: "GPT-5.4",
1149
- hasVision: true,
1150
- price: { input: 0, output: 0 },
1151
- provider: "commandcode",
1152
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1153
- },
1154
- {
1155
- name: "gpt-5.4-mini",
1156
- displayName: "GPT-5.4 Mini",
1157
- hasVision: true,
1158
- price: { input: 0, output: 0 },
1159
- provider: "commandcode",
1160
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1161
- },
1162
- {
1163
- name: "gpt-5.5",
1164
- displayName: "GPT-5.5",
1165
- hasVision: true,
1166
- price: { input: 0, output: 0 },
1167
- provider: "commandcode",
1168
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1169
- },
1170
- {
1171
- name: "gpt-5.6-luna",
1172
- displayName: "GPT-5.6 Luna",
1173
- hasVision: true,
1174
- price: { input: 0, output: 0 },
1175
- provider: "commandcode",
1176
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1177
- },
1178
- {
1179
- name: "gpt-5.6-terra",
1180
- displayName: "GPT-5.6 Terra",
1181
- hasVision: true,
1182
- price: { input: 0, output: 0 },
1183
- provider: "commandcode",
1184
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1185
- },
1186
- {
1187
- name: "gpt-6-luna",
1188
- displayName: "GPT-6 Luna",
1189
- hasVision: true,
1190
- price: { input: 0, output: 0 },
1191
- provider: "commandcode",
1192
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1193
- },
1194
- {
1195
- name: "gpt-6-sol",
1196
- displayName: "GPT-6 Sol",
1197
- hasVision: true,
1198
- price: { input: 0, output: 0 },
1199
- provider: "commandcode",
1200
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1201
- },
1202
- {
1203
- name: "gpt-6.1-sol",
1204
- displayName: "GPT-6.1 Sol",
1205
- hasVision: true,
1206
- price: { input: 0, output: 0 },
1207
- provider: "commandcode",
1208
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1209
- },
1210
- {
1211
- name: "poolside/laguna-s-2.1-free",
1212
- displayName: "Laguna S 2.1",
1213
- hasVision: false,
1214
- price: { input: 0, output: 0 },
1215
- provider: "commandcode",
1216
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Reasoning\uFF09\u3002"
1217
- },
1218
- {
1219
- name: "sakana/fugu-ultra",
1220
- displayName: "Fugu Ultra",
1221
- hasVision: true,
1222
- price: { input: 0, output: 0 },
1223
- provider: "commandcode",
1224
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1225
- },
1226
- {
1227
- name: "stealth/cat-jam:free",
1228
- displayName: "Cat Jam",
1229
- hasVision: false,
1230
- price: { input: 0, output: 0 },
1231
- provider: "commandcode",
1232
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Reasoning\uFF09\u3002"
1233
- },
1234
- {
1235
- name: "stealth/glyph-cluster:free",
1236
- displayName: "Glyph Cluster",
1237
- hasVision: false,
1238
- price: { input: 0, output: 0 },
1239
- provider: "commandcode",
1240
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Reasoning\uFF09\u3002"
1241
- },
1242
- {
1243
- name: "stepfun/Step-3.5-Flash",
1244
- displayName: "Step 3.5 Flash",
1245
- hasVision: false,
1246
- price: { input: 0, output: 0 },
1247
- provider: "commandcode",
1248
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Reasoning\uFF09\u3002"
1249
- },
1250
- {
1251
- name: "stepfun/Step-3.7-Flash",
1252
- displayName: "Step 3.7 Flash",
1253
- hasVision: true,
1254
- price: { input: 0, output: 0 },
1255
- provider: "commandcode",
1256
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1257
- },
1258
- {
1259
- name: "stepfun/Step-5-Preview",
1260
- displayName: "Step 5 Preview",
1261
- hasVision: true,
1262
- price: { input: 0, output: 0 },
1263
- provider: "commandcode",
1264
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1265
- },
1266
- {
1267
- name: "tencent/hy3-paid",
1268
- displayName: "Tencent Hy3",
1269
- hasVision: false,
1270
- price: { input: 0, output: 0 },
1271
- provider: "commandcode",
1272
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Reasoning\uFF09\u3002"
1273
- },
1274
- {
1275
- name: "tencent/hy4-preview",
1276
- displayName: "Tencent Hy4 Preview",
1277
- hasVision: false,
1278
- price: { input: 0, output: 0 },
1279
- provider: "commandcode",
1280
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Reasoning\uFF09\u3002"
1281
- },
1282
- {
1283
- name: "thinkingmachines/inkling",
1284
- displayName: "Inkling",
1285
- hasVision: true,
1286
- price: { input: 0, output: 0 },
1287
- provider: "commandcode",
1288
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1289
- },
1290
- {
1291
- name: "thinkingmachines/inkling-small",
1292
- displayName: "Inkling Small",
1293
- hasVision: true,
1294
- price: { input: 0, output: 0 },
1295
- provider: "commandcode",
1296
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1297
- },
1298
- {
1299
- name: "xai/grok-4.7",
1300
- displayName: "Grok 4.7",
1301
- hasVision: true,
1302
- price: { input: 0, output: 0 },
1303
- provider: "commandcode",
1304
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1305
- },
1306
- {
1307
- name: "xiaomi/mimo-v2.5",
1308
- displayName: "MiMo V2.5",
1309
- hasVision: true,
1310
- price: { input: 0, output: 0 },
1311
- provider: "commandcode",
1312
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision\uFF09\u3002"
1313
- },
1314
- {
1315
- name: "xiaomi/mimo-v2.6-flash",
1316
- displayName: "MiMo V2.6 Flash",
1317
- hasVision: true,
1318
- price: { input: 0, output: 0 },
1319
- provider: "commandcode",
1320
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision\uFF09\u3002"
1321
- },
1322
- {
1323
- name: "xiaomi/mimo-v2.6-pro-ultraspeed",
1324
- displayName: "MiMo V2.6 Pro UltraSpeed",
1325
- hasVision: true,
1326
- price: { input: 0, output: 0 },
1327
- provider: "commandcode",
1328
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision\uFF09\u3002"
1329
- },
1330
- {
1331
- name: "zai-org/GLM-5",
1332
- displayName: "GLM-5",
1333
- hasVision: false,
1334
- price: { input: 0, output: 0 },
1335
- provider: "commandcode",
1336
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input\uFF09\u3002"
1337
- },
1338
- {
1339
- name: "zai-org/GLM-5.1",
1340
- displayName: "GLM-5.1",
1341
- hasVision: false,
1342
- price: { input: 0, output: 0 },
1343
- provider: "commandcode",
1344
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input\uFF09\u3002"
1345
- },
1346
- {
1347
- name: "zai-org/GLM-5.2",
1348
- displayName: "GLM-5.2",
1349
- hasVision: false,
1350
- price: { input: 0, output: 0 },
1351
- provider: "commandcode",
1352
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Reasoning\uFF09\u3002"
1353
- },
1354
- {
1355
- name: "zai-org/GLM-5.2-Fast",
1356
- displayName: "GLM-5.2 Fast",
1357
- hasVision: false,
1358
- price: { input: 0, output: 0 },
1359
- provider: "commandcode",
1360
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input\uFF09\u3002"
1361
- },
1362
- {
1363
- name: "z-ai/glm-5.3-flashx",
1364
- displayName: "GLM-5.3 FlashX",
1365
- hasVision: true,
1366
- price: { input: 0, output: 0 },
1367
- provider: "commandcode",
1368
- description: "\u5B98\u65B9\u76EE\u5F55\u6A21\u578B\uFF08Capabilities: Text input, Vision, Reasoning\uFF09\u3002"
1369
- }
1370
- ];
1371
-
1372
- // packages/integrations/opencode/models.ts
1373
- var opencodeGoModels = [
1374
- {
1375
- name: "deepseek-v4.1-flash",
1376
- displayName: "DeepSeek V4.1 Flash",
1377
- hasVision: true,
1378
- contextWindow: 1e6,
1379
- maxOutputTokens: 384e3,
1380
- jsonOutput: true,
1381
- fnCall: true,
1382
- supportsTool: true,
1383
- price: { input: 0, output: 0 },
1384
- provider: "opencode-go",
1385
- description: "DeepSeek V4.1 Flash\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1386
- },
1387
- {
1388
- name: "deepseek-v4-pro",
1389
- displayName: "DeepSeek V4 Pro (New)",
1390
- hasVision: false,
1391
- contextWindow: 1e6,
1392
- maxOutputTokens: 384e3,
1393
- jsonOutput: true,
1394
- fnCall: true,
1395
- supportsTool: true,
1396
- price: { input: 0, output: 0 },
1397
- provider: "opencode-go",
1398
- description: "DeepSeek V4 Pro (New)\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1399
- },
1400
- {
1401
- name: "glm-5.1",
1402
- displayName: "glm-5.1",
1403
- hasVision: false,
1404
- jsonOutput: true,
1405
- fnCall: true,
1406
- supportsTool: true,
1407
- price: { input: 0, output: 0 },
1408
- provider: "opencode-go",
1409
- description: "glm-5.1\uFF0COpenCode Go \u8BA2\u9605\u542B\uFF08models.dev \u65E0\u5143\u6570\u636E\uFF0ChasVision \u672A\u5B9E\u6D4B\uFF09\u3002"
1410
- },
1411
- // models.dev 无元数据:hasVision=false 为占位、未实测;无窗口数据
1412
- {
1413
- name: "glm-5.2",
1414
- displayName: "GLM-5.2",
1415
- hasVision: false,
1416
- contextWindow: 1e6,
1417
- maxOutputTokens: 131072,
1418
- jsonOutput: true,
1419
- fnCall: true,
1420
- supportsTool: true,
1421
- price: { input: 0, output: 0 },
1422
- provider: "opencode-go",
1423
- description: "GLM-5.2\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1424
- },
1425
- {
1426
- name: "glm-5.3",
1427
- displayName: "GLM-5.3",
1428
- hasVision: false,
1429
- contextWindow: 1e6,
1430
- maxOutputTokens: 131072,
1431
- jsonOutput: true,
1432
- fnCall: true,
1433
- supportsTool: true,
1434
- price: { input: 0, output: 0 },
1435
- provider: "opencode-go",
1436
- description: "GLM-5.3\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1437
- },
1438
- {
1439
- name: "grok-4.6",
1440
- displayName: "Grok 4.6",
1441
- hasVision: true,
1442
- contextWindow: 5e5,
1443
- maxOutputTokens: 5e5,
1444
- jsonOutput: true,
1445
- fnCall: true,
1446
- supportsTool: true,
1447
- nativeProtocol: "openai-responses",
1448
- price: { input: 0, output: 0 },
1449
- provider: "opencode-go",
1450
- description: "Grok 4.6\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1451
- },
1452
- {
1453
- name: "grok-4.7",
1454
- displayName: "Grok 4.7",
1455
- hasVision: true,
1456
- contextWindow: 5e5,
1457
- maxOutputTokens: 5e5,
1458
- jsonOutput: true,
1459
- fnCall: true,
1460
- supportsTool: true,
1461
- nativeProtocol: "openai-responses",
1462
- price: { input: 0, output: 0 },
1463
- provider: "opencode-go",
1464
- description: "Grok 4.7\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1465
- },
1466
- {
1467
- name: "muse-spark-1.2-contributor",
1468
- displayName: "Muse Spark 1.2 Contributor",
1469
- hasVision: true,
1470
- contextWindow: 1048576,
1471
- maxOutputTokens: 131072,
1472
- jsonOutput: true,
1473
- fnCall: true,
1474
- supportsTool: true,
1475
- nativeProtocol: "openai-responses",
1476
- price: { input: 0, output: 0 },
1477
- provider: "opencode-go",
1478
- description: "Muse Spark 1.2 Contributor\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1479
- },
1480
- {
1481
- name: "muse-spark-1.3-contributor",
1482
- displayName: "Muse Spark 1.3 Contributor",
1483
- hasVision: true,
1484
- contextWindow: 1048576,
1485
- maxOutputTokens: 131072,
1486
- jsonOutput: true,
1487
- fnCall: true,
1488
- supportsTool: true,
1489
- nativeProtocol: "openai-responses",
1490
- price: { input: 0, output: 0 },
1491
- provider: "opencode-go",
1492
- description: "Muse Spark 1.3 Contributor\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1493
- },
1494
- {
1495
- name: "glm-5.3-flash",
1496
- displayName: "GLM-5.3-Flash",
1497
- hasVision: true,
1498
- contextWindow: 1e6,
1499
- maxOutputTokens: 131072,
1500
- jsonOutput: true,
1501
- fnCall: true,
1502
- supportsTool: true,
1503
- price: { input: 0, output: 0 },
1504
- provider: "opencode-go",
1505
- description: "GLM-5.3-Flash\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1506
- },
1507
- {
1508
- name: "omen-alpha",
1509
- displayName: "omen-alpha",
1510
- hasVision: false,
1511
- jsonOutput: true,
1512
- fnCall: true,
1513
- supportsTool: true,
1514
- price: { input: 0, output: 0 },
1515
- provider: "opencode-go",
1516
- description: "omen-alpha\uFF0COpenCode Go \u8BA2\u9605\u542B\uFF08models.dev \u65E0\u5143\u6570\u636E\uFF0ChasVision \u672A\u5B9E\u6D4B\uFF09\u3002"
1517
- },
1518
- // models.dev 无元数据:hasVision=false 为占位、未实测;无窗口数据
1519
- {
1520
- name: "gpt-5.6-luna",
1521
- displayName: "GPT-5.6 Luna",
1522
- hasVision: true,
1523
- contextWindow: 105e4,
1524
- maxOutputTokens: 128e3,
1525
- jsonOutput: true,
1526
- fnCall: true,
1527
- supportsTool: true,
1528
- nativeProtocol: "openai-responses",
1529
- price: { input: 0, output: 0 },
1530
- provider: "opencode-go",
1531
- description: "GPT-5.6 Luna\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1532
- },
1533
- {
1534
- name: "gpt-6-luna",
1535
- displayName: "GPT-6 Luna",
1536
- hasVision: true,
1537
- contextWindow: 105e4,
1538
- maxOutputTokens: 128e3,
1539
- jsonOutput: true,
1540
- fnCall: true,
1541
- supportsTool: true,
1542
- nativeProtocol: "openai-responses",
1543
- price: { input: 0, output: 0 },
1544
- provider: "opencode-go",
1545
- description: "GPT-6 Luna\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1546
- },
1547
- {
1548
- name: "claude-haiku-5-5",
1549
- displayName: "Claude Haiku 5.5",
1550
- hasVision: true,
1551
- contextWindow: 1e6,
1552
- maxOutputTokens: 128e3,
1553
- jsonOutput: true,
1554
- fnCall: true,
1555
- supportsTool: true,
1556
- nativeProtocol: "anthropic-messages",
1557
- price: { input: 0, output: 0 },
1558
- provider: "opencode-go",
1559
- description: "Claude Haiku 5.5\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1560
- },
1561
- {
1562
- name: "hy3",
1563
- displayName: "Hy3",
1564
- hasVision: false,
1565
- contextWindow: 256e3,
1566
- maxOutputTokens: 128e3,
1567
- jsonOutput: true,
1568
- fnCall: true,
1569
- supportsTool: true,
1570
- price: { input: 0, output: 0 },
1571
- provider: "opencode-go",
1572
- description: "Hy3\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1573
- },
1574
- {
1575
- name: "hy4-preview",
1576
- displayName: "Hy4 preview",
1577
- hasVision: false,
1578
- contextWindow: 1024e3,
1579
- maxOutputTokens: 64e3,
1580
- jsonOutput: true,
1581
- fnCall: true,
1582
- supportsTool: true,
1583
- price: { input: 0, output: 0 },
1584
- provider: "opencode-go",
1585
- description: "Hy4 preview\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1586
- },
1587
- {
1588
- name: "kimi-k2.6",
1589
- displayName: "Kimi K2.6",
1590
- hasVision: true,
1591
- contextWindow: 262144,
1592
- maxOutputTokens: 65536,
1593
- jsonOutput: true,
1594
- fnCall: true,
1595
- supportsTool: true,
1596
- price: { input: 0, output: 0 },
1597
- provider: "opencode-go",
1598
- description: "Kimi K2.6\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1599
- },
1600
- {
1601
- name: "kimi-k2.7-code",
1602
- displayName: "Kimi K2.7 Code",
1603
- hasVision: true,
1604
- contextWindow: 262144,
1605
- maxOutputTokens: 262144,
1606
- jsonOutput: true,
1607
- fnCall: true,
1608
- supportsTool: true,
1609
- price: { input: 0, output: 0 },
1610
- provider: "opencode-go",
1611
- description: "Kimi K2.7 Code\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1612
- },
1613
- {
1614
- name: "kimi-k3",
1615
- displayName: "Kimi K3",
1616
- hasVision: true,
1617
- contextWindow: 1048576,
1618
- maxOutputTokens: 131072,
1619
- jsonOutput: true,
1620
- fnCall: true,
1621
- supportsTool: true,
1622
- price: { input: 0, output: 0 },
1623
- provider: "opencode-go",
1624
- description: "Kimi K3\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1625
- },
1626
- {
1627
- name: "mimo-v2.5",
1628
- displayName: "MiMo V2.5",
1629
- hasVision: true,
1630
- contextWindow: 1e6,
1631
- maxOutputTokens: 128e3,
1632
- jsonOutput: true,
1633
- fnCall: true,
1634
- supportsTool: true,
1635
- price: { input: 0, output: 0 },
1636
- provider: "opencode-go",
1637
- description: "MiMo V2.5\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1638
- },
1639
- {
1640
- name: "mimo-v2.6-flash",
1641
- displayName: "MiMo-V2.6-Flash",
1642
- hasVision: true,
1643
- contextWindow: 1048576,
1644
- maxOutputTokens: 131072,
1645
- jsonOutput: true,
1646
- fnCall: true,
1647
- supportsTool: true,
1648
- price: { input: 0, output: 0 },
1649
- provider: "opencode-go",
1650
- description: "MiMo-V2.6-Flash\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1651
- },
1652
- {
1653
- name: "mimo-v2.5-pro",
1654
- displayName: "MiMo V2.5 Pro",
1655
- hasVision: false,
1656
- contextWindow: 1048576,
1657
- maxOutputTokens: 128e3,
1658
- jsonOutput: true,
1659
- fnCall: true,
1660
- supportsTool: true,
1661
- price: { input: 0, output: 0 },
1662
- provider: "opencode-go",
1663
- description: "MiMo V2.5 Pro\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1664
- },
1665
- {
1666
- name: "mimo-v2.6-pro",
1667
- displayName: "MiMo-V2.6-Pro",
1668
- hasVision: true,
1669
- contextWindow: 1048576,
1670
- maxOutputTokens: 131072,
1671
- jsonOutput: true,
1672
- fnCall: true,
1673
- supportsTool: true,
1674
- price: { input: 0, output: 0 },
1675
- provider: "opencode-go",
1676
- description: "MiMo-V2.6-Pro\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1677
- },
1678
- {
1679
- name: "minimax-m2.5",
1680
- displayName: "minimax-m2.5",
1681
- hasVision: false,
1682
- jsonOutput: true,
1683
- fnCall: true,
1684
- supportsTool: true,
1685
- price: { input: 0, output: 0 },
1686
- provider: "opencode-go",
1687
- description: "minimax-m2.5\uFF0COpenCode Go \u8BA2\u9605\u542B\uFF08models.dev \u65E0\u5143\u6570\u636E\uFF0ChasVision \u672A\u5B9E\u6D4B\uFF09\u3002"
1688
- },
1689
- // models.dev 无元数据:hasVision=false 为占位、未实测;无窗口数据
1690
- {
1691
- name: "minimax-m2.7",
1692
- displayName: "MiniMax-M2.7",
1693
- hasVision: false,
1694
- contextWindow: 204800,
1695
- maxOutputTokens: 131072,
1696
- jsonOutput: true,
1697
- fnCall: true,
1698
- supportsTool: true,
1699
- nativeProtocol: "anthropic-messages",
1700
- price: { input: 0, output: 0 },
1701
- provider: "opencode-go",
1702
- description: "MiniMax-M2.7\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1703
- },
1704
- {
1705
- name: "gemini-4-argon-contributor",
1706
- displayName: "Gemini 4 Argon Contributor",
1707
- hasVision: true,
1708
- contextWindow: 1048576,
1709
- maxOutputTokens: 65536,
1710
- jsonOutput: true,
1711
- fnCall: true,
1712
- supportsTool: true,
1713
- nativeProtocol: "gemini",
1714
- price: { input: 0, output: 0 },
1715
- provider: "opencode-go",
1716
- description: "Gemini 4 Argon Contributor\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1717
- },
1718
- {
1719
- name: "minimax-m3",
1720
- displayName: "MiniMax-M3",
1721
- hasVision: true,
1722
- contextWindow: 1e6,
1723
- maxOutputTokens: 131072,
1724
- jsonOutput: true,
1725
- fnCall: true,
1726
- supportsTool: true,
1727
- price: { input: 0, output: 0 },
1728
- provider: "opencode-go",
1729
- description: "MiniMax-M3\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1730
- },
1731
- {
1732
- name: "space-bunny",
1733
- displayName: "Space Bunny",
1734
- hasVision: true,
1735
- contextWindow: 1048576,
1736
- maxOutputTokens: 524288,
1737
- jsonOutput: true,
1738
- fnCall: true,
1739
- supportsTool: true,
1740
- price: { input: 0, output: 0 },
1741
- provider: "opencode-go",
1742
- description: "Space Bunny\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1743
- },
1744
- {
1745
- name: "longcat-2.0",
1746
- displayName: "LongCat-2.0",
1747
- hasVision: false,
1748
- contextWindow: 1e6,
1749
- maxOutputTokens: 131072,
1750
- jsonOutput: true,
1751
- fnCall: true,
1752
- supportsTool: true,
1753
- price: { input: 0, output: 0 },
1754
- provider: "opencode-go",
1755
- description: "LongCat-2.0\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1756
- },
1757
- {
1758
- name: "longcat-2.5-preview-free",
1759
- displayName: "LongCat 2.5 Preview Free",
1760
- hasVision: true,
1761
- contextWindow: 1e6,
1762
- maxOutputTokens: 131072,
1763
- jsonOutput: true,
1764
- fnCall: true,
1765
- supportsTool: true,
1766
- price: { input: 0, output: 0 },
1767
- provider: "opencode-go",
1768
- description: "LongCat 2.5 Preview Free\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1769
- },
1770
- {
1771
- name: "step-5-preview-free",
1772
- displayName: "Step 5 Preview Free",
1773
- hasVision: true,
1774
- contextWindow: 1e6,
1775
- maxOutputTokens: 65536,
1776
- jsonOutput: true,
1777
- fnCall: true,
1778
- supportsTool: true,
1779
- price: { input: 0, output: 0 },
1780
- provider: "opencode-go",
1781
- description: "Step 5 Preview Free\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1782
- },
1783
- {
1784
- name: "cat-jam-free",
1785
- displayName: "Cat Jam Free",
1786
- hasVision: false,
1787
- contextWindow: 262144,
1788
- maxOutputTokens: 131072,
1789
- jsonOutput: true,
1790
- fnCall: true,
1791
- supportsTool: true,
1792
- price: { input: 0, output: 0 },
1793
- provider: "opencode-go",
1794
- description: "Cat Jam Free\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1795
- },
1796
- {
1797
- name: "qwen3.6-plus",
1798
- displayName: "Qwen3.6 Plus",
1799
- hasVision: true,
1800
- contextWindow: 1e6,
1801
- maxOutputTokens: 65536,
1802
- jsonOutput: true,
1803
- fnCall: true,
1804
- supportsTool: true,
1805
- price: { input: 0, output: 0 },
1806
- provider: "opencode-go",
1807
- description: "Qwen3.6 Plus\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1808
- },
1809
- {
1810
- name: "qwen3.7-max",
1811
- displayName: "Qwen3.7 Max",
1812
- hasVision: false,
1813
- contextWindow: 1e6,
1814
- maxOutputTokens: 65536,
1815
- jsonOutput: true,
1816
- fnCall: true,
1817
- supportsTool: true,
1818
- price: { input: 0, output: 0 },
1819
- provider: "opencode-go",
1820
- description: "Qwen3.7 Max\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1821
- },
1822
- {
1823
- name: "qwen3.8-max",
1824
- displayName: "Qwen3.8 Max",
1825
- hasVision: true,
1826
- contextWindow: 1e6,
1827
- maxOutputTokens: 131072,
1828
- jsonOutput: true,
1829
- fnCall: true,
1830
- supportsTool: true,
1831
- price: { input: 0, output: 0 },
1832
- provider: "opencode-go",
1833
- description: "Qwen3.8 Max\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1834
- },
1835
- {
1836
- name: "qwen3.8-flash",
1837
- displayName: "Qwen3.8 Flash",
1838
- hasVision: true,
1839
- contextWindow: 1e6,
1840
- maxOutputTokens: 131072,
1841
- jsonOutput: true,
1842
- fnCall: true,
1843
- supportsTool: true,
1844
- price: { input: 0, output: 0 },
1845
- provider: "opencode-go",
1846
- description: "Qwen3.8 Flash\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1847
- },
1848
- {
1849
- name: "qwen3.7-plus",
1850
- displayName: "Qwen3.7 Plus",
1851
- hasVision: true,
1852
- contextWindow: 1e6,
1853
- maxOutputTokens: 65536,
1854
- jsonOutput: true,
1855
- fnCall: true,
1856
- supportsTool: true,
1857
- price: { input: 0, output: 0 },
1858
- provider: "opencode-go",
1859
- description: "Qwen3.7 Plus\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1860
- },
1861
- {
1862
- name: "deepseek-v4-flash",
1863
- displayName: "DeepSeek V4 Flash",
1864
- hasVision: false,
1865
- contextWindow: 1e6,
1866
- maxOutputTokens: 384e3,
1867
- jsonOutput: true,
1868
- fnCall: true,
1869
- supportsTool: true,
1870
- price: { input: 0, output: 0 },
1871
- provider: "opencode-go",
1872
- description: "DeepSeek V4 Flash\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1873
- },
1874
- // 网关 `/v1/models` 不返回、但实测 200 可用(review 2026-10-15 复验 2/2);
1875
- // 该 id 在仓库内另有正式引用(packages/ai/agent/providerRegistry.ts)。
1876
- {
1877
- name: "deepseek-v4-flash-vision-exp",
1878
- displayName: "DeepSeek V4 Flash Vision Exp",
1879
- hasVision: true,
1880
- contextWindow: 1e6,
1881
- maxOutputTokens: 384e3,
1882
- jsonOutput: true,
1883
- fnCall: true,
1884
- supportsTool: true,
1885
- price: { input: 0, output: 0 },
1886
- provider: "opencode-go",
1887
- description: "DeepSeek V4 Flash Vision Exp\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
1888
- }
1889
- ];
1890
-
1891
- // node_modules/valibot/dist/index.mjs
1892
- var store$4;
1893
- var DEFAULT_CONFIG = {
1894
- lang: void 0,
1895
- message: void 0,
1896
- abortEarly: void 0,
1897
- abortPipeEarly: void 0
1898
- };
1899
- // @__NO_SIDE_EFFECTS__
1900
- function getGlobalConfig(config$1) {
1901
- if (!config$1 && !store$4) return DEFAULT_CONFIG;
1902
- return {
1903
- lang: config$1?.lang ?? store$4?.lang,
1904
- message: config$1?.message,
1905
- abortEarly: config$1?.abortEarly ?? store$4?.abortEarly,
1906
- abortPipeEarly: config$1?.abortPipeEarly ?? store$4?.abortPipeEarly
1907
- };
1908
- }
1909
- var store$3;
1910
- // @__NO_SIDE_EFFECTS__
1911
- function getGlobalMessage(lang) {
1912
- return store$3?.get(lang);
1913
- }
1914
- var store$2;
1915
- // @__NO_SIDE_EFFECTS__
1916
- function getSchemaMessage(lang) {
1917
- return store$2?.get(lang);
1918
- }
1919
- var store$1;
1920
- // @__NO_SIDE_EFFECTS__
1921
- function getSpecificMessage(reference, lang) {
1922
- return store$1?.get(reference)?.get(lang);
1923
- }
1924
- // @__NO_SIDE_EFFECTS__
1925
- function _stringify(input) {
1926
- const type = typeof input;
1927
- if (type === "string") return `"${input}"`;
1928
- if (type === "number" || type === "bigint" || type === "boolean") return `${input}`;
1929
- if (type === "object" || type === "function") return (input && Object.getPrototypeOf(input)?.constructor?.name) ?? "null";
1930
- return type;
1931
- }
1932
- function _addIssue(context, label, dataset, config$1, other) {
1933
- const input = other && "input" in other ? other.input : dataset.value;
1934
- const expected = other?.expected ?? context.expects ?? null;
1935
- const received = other?.received ?? /* @__PURE__ */ _stringify(input);
1936
- const issue = {
1937
- kind: context.kind,
1938
- type: context.type,
1939
- input,
1940
- expected,
1941
- received,
1942
- message: `Invalid ${label}: ${expected ? `Expected ${expected} but r` : "R"}eceived ${received}`,
1943
- requirement: context.requirement,
1944
- path: other?.path,
1945
- issues: other?.issues,
1946
- lang: config$1.lang,
1947
- abortEarly: config$1.abortEarly,
1948
- abortPipeEarly: config$1.abortPipeEarly
1949
- };
1950
- const isSchema = context.kind === "schema";
1951
- const message$1 = other?.message ?? context.message ?? /* @__PURE__ */ getSpecificMessage(context.reference, issue.lang) ?? (isSchema ? /* @__PURE__ */ getSchemaMessage(issue.lang) : null) ?? config$1.message ?? /* @__PURE__ */ getGlobalMessage(issue.lang);
1952
- if (message$1 !== void 0) issue.message = typeof message$1 === "function" ? message$1(issue) : message$1;
1953
- if (isSchema) dataset.typed = false;
1954
- if (dataset.issues) dataset.issues.push(issue);
1955
- else dataset.issues = [issue];
1956
- }
1957
- // @__NO_SIDE_EFFECTS__
1958
- function _isSameValueZero(value1, value2) {
1959
- return value1 === value2 || Number.isNaN(value1) && Number.isNaN(value2);
1960
- }
1961
- // @__NO_SIDE_EFFECTS__
1962
- function _isValidObjectKey(object$1, key) {
1963
- return Object.prototype.hasOwnProperty.call(object$1, key) && key !== "__proto__" && key !== "prototype" && key !== "constructor";
1964
- }
1965
- // @__NO_SIDE_EFFECTS__
1966
- function _joinExpects(values$1, separator) {
1967
- const list = [...new Set(values$1)];
1968
- if (list.length > 1) return `(${list.join(` ${separator} `)})`;
1969
- return list[0] ?? "never";
1970
- }
1971
- function _standardSchema(schema) {
1972
- schema["~standard"] = {
1973
- version: 1,
1974
- vendor: "valibot",
1975
- validate: (value$1) => schema["~run"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig())
1976
- };
1977
- return schema;
1978
- }
1979
- var EMOJI_REGEX = new RegExp("^(?:[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|(?![\\p{Emoji_Modifier_Base}\\u{1F1E6}-\\u{1F1FF}])\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|(?![\\p{Emoji_Modifier_Base}\\u{1F1E6}-\\u{1F1FF}])\\p{Emoji_Presentation}))*)+$", "u");
1980
- // @__NO_SIDE_EFFECTS__
1981
- function minLength(requirement, message$1) {
1982
- return {
1983
- kind: "validation",
1984
- type: "min_length",
1985
- reference: minLength,
1986
- async: false,
1987
- expects: `>=${requirement}`,
1988
- requirement,
1989
- message: message$1,
1990
- "~run"(dataset, config$1) {
1991
- if (dataset.typed && dataset.value.length < this.requirement) _addIssue(this, "length", dataset, config$1, { received: `${dataset.value.length}` });
1992
- return dataset;
1993
- }
1994
- };
1995
- }
1996
- // @__NO_SIDE_EFFECTS__
1997
- function transform(operation) {
1998
- return {
1999
- kind: "transformation",
2000
- type: "transform",
2001
- reference: transform,
2002
- async: false,
2003
- operation,
2004
- "~run"(dataset) {
2005
- dataset.value = this.operation(dataset.value);
2006
- return dataset;
2007
- }
2008
- };
2009
- }
2010
- // @__NO_SIDE_EFFECTS__
2011
- function trim() {
2012
- return {
2013
- kind: "transformation",
2014
- type: "trim",
2015
- reference: trim,
2016
- async: false,
2017
- "~run"(dataset) {
2018
- dataset.value = dataset.value.trim();
2019
- return dataset;
2020
- }
2021
- };
2022
- }
2023
- // @__NO_SIDE_EFFECTS__
2024
- function getFallback(schema, dataset, config$1) {
2025
- return typeof schema.fallback === "function" ? schema.fallback(dataset, config$1) : schema.fallback;
2026
- }
2027
- // @__NO_SIDE_EFFECTS__
2028
- function getDefault(schema, dataset, config$1) {
2029
- return typeof schema.default === "function" ? schema.default(dataset, config$1) : schema.default;
2030
- }
2031
- // @__NO_SIDE_EFFECTS__
2032
- function array(item, message$1) {
2033
- return _standardSchema({
2034
- kind: "schema",
2035
- type: "array",
2036
- reference: array,
2037
- expects: "Array",
2038
- async: false,
2039
- item,
2040
- message: message$1,
2041
- "~run"(dataset, config$1) {
2042
- const input = dataset.value;
2043
- if (Array.isArray(input)) {
2044
- dataset.typed = true;
2045
- dataset.value = [];
2046
- for (let key = 0; key < input.length; key++) {
2047
- const value$1 = input[key];
2048
- const itemDataset = this.item["~run"]({ value: value$1 }, config$1);
2049
- if (itemDataset.issues) {
2050
- const pathItem = {
2051
- type: "array",
2052
- origin: "value",
2053
- input,
2054
- key,
2055
- value: value$1
2056
- };
2057
- for (const issue of itemDataset.issues) {
2058
- if (issue.path) issue.path.unshift(pathItem);
2059
- else issue.path = [pathItem];
2060
- dataset.issues?.push(issue);
2061
- }
2062
- if (!dataset.issues) dataset.issues = itemDataset.issues;
2063
- if (config$1.abortEarly) {
2064
- dataset.typed = false;
2065
- break;
2066
- }
2067
- }
2068
- if (!itemDataset.typed) dataset.typed = false;
2069
- dataset.value.push(itemDataset.value);
2070
- }
2071
- } else _addIssue(this, "type", dataset, config$1);
2072
- return dataset;
2073
- }
2074
- });
2075
- }
2076
- // @__NO_SIDE_EFFECTS__
2077
- function literal(literal_, message$1) {
2078
- return _standardSchema({
2079
- kind: "schema",
2080
- type: "literal",
2081
- reference: literal,
2082
- expects: /* @__PURE__ */ _stringify(literal_),
2083
- async: false,
2084
- literal: literal_,
2085
- message: message$1,
2086
- "~run"(dataset, config$1) {
2087
- if (/* @__PURE__ */ _isSameValueZero(dataset.value, this.literal)) dataset.typed = true;
2088
- else _addIssue(this, "type", dataset, config$1);
2089
- return dataset;
2090
- }
2091
- });
2092
- }
2093
- // @__NO_SIDE_EFFECTS__
2094
- function looseObject(entries$1, message$1) {
2095
- return _standardSchema({
2096
- kind: "schema",
2097
- type: "loose_object",
2098
- reference: looseObject,
2099
- expects: "Object",
2100
- async: false,
2101
- entries: entries$1,
2102
- message: message$1,
2103
- "~run"(dataset, config$1) {
2104
- const input = dataset.value;
2105
- if (input && typeof input === "object") {
2106
- dataset.typed = true;
2107
- dataset.value = {};
2108
- for (const key in this.entries) {
2109
- const valueSchema = this.entries[key];
2110
- if (key in input || (valueSchema.type === "exact_optional" || valueSchema.type === "optional" || valueSchema.type === "nullish") && valueSchema.default !== void 0) {
2111
- const value$1 = key in input ? input[key] : /* @__PURE__ */ getDefault(valueSchema);
2112
- const valueDataset = valueSchema["~run"]({ value: value$1 }, config$1);
2113
- if (valueDataset.issues) {
2114
- const pathItem = {
2115
- type: "object",
2116
- origin: "value",
2117
- input,
2118
- key,
2119
- value: value$1
2120
- };
2121
- for (const issue of valueDataset.issues) {
2122
- if (issue.path) issue.path.unshift(pathItem);
2123
- else issue.path = [pathItem];
2124
- dataset.issues?.push(issue);
2125
- }
2126
- if (!dataset.issues) dataset.issues = valueDataset.issues;
2127
- if (config$1.abortEarly) {
2128
- dataset.typed = false;
2129
- break;
2130
- }
2131
- }
2132
- if (!valueDataset.typed) dataset.typed = false;
2133
- dataset.value[key] = valueDataset.value;
2134
- } else if (valueSchema.fallback !== void 0) dataset.value[key] = /* @__PURE__ */ getFallback(valueSchema);
2135
- else if (valueSchema.type !== "exact_optional" && valueSchema.type !== "optional" && valueSchema.type !== "nullish") {
2136
- _addIssue(this, "key", dataset, config$1, {
2137
- input: void 0,
2138
- expected: `"${key}"`,
2139
- path: [{
2140
- type: "object",
2141
- origin: "key",
2142
- input,
2143
- key,
2144
- value: input[key]
2145
- }]
2146
- });
2147
- if (config$1.abortEarly) break;
2148
- }
2149
- }
2150
- if (!dataset.issues || !config$1.abortEarly) {
2151
- for (const key in input) if (/* @__PURE__ */ _isValidObjectKey(input, key) && !Object.prototype.hasOwnProperty.call(this.entries, key)) dataset.value[key] = input[key];
2152
- }
2153
- } else _addIssue(this, "type", dataset, config$1);
2154
- return dataset;
2155
- }
2156
- });
2157
- }
2158
- // @__NO_SIDE_EFFECTS__
2159
- function object(entries$1, message$1) {
2160
- return _standardSchema({
2161
- kind: "schema",
2162
- type: "object",
2163
- reference: object,
2164
- expects: "Object",
2165
- async: false,
2166
- entries: entries$1,
2167
- message: message$1,
2168
- "~run"(dataset, config$1) {
2169
- const input = dataset.value;
2170
- if (input && typeof input === "object") {
2171
- dataset.typed = true;
2172
- dataset.value = {};
2173
- for (const key in this.entries) {
2174
- const valueSchema = this.entries[key];
2175
- if (key in input || (valueSchema.type === "exact_optional" || valueSchema.type === "optional" || valueSchema.type === "nullish") && valueSchema.default !== void 0) {
2176
- const value$1 = key in input ? input[key] : /* @__PURE__ */ getDefault(valueSchema);
2177
- const valueDataset = valueSchema["~run"]({ value: value$1 }, config$1);
2178
- if (valueDataset.issues) {
2179
- const pathItem = {
2180
- type: "object",
2181
- origin: "value",
2182
- input,
2183
- key,
2184
- value: value$1
2185
- };
2186
- for (const issue of valueDataset.issues) {
2187
- if (issue.path) issue.path.unshift(pathItem);
2188
- else issue.path = [pathItem];
2189
- dataset.issues?.push(issue);
2190
- }
2191
- if (!dataset.issues) dataset.issues = valueDataset.issues;
2192
- if (config$1.abortEarly) {
2193
- dataset.typed = false;
2194
- break;
2195
- }
2196
- }
2197
- if (!valueDataset.typed) dataset.typed = false;
2198
- dataset.value[key] = valueDataset.value;
2199
- } else if (valueSchema.fallback !== void 0) dataset.value[key] = /* @__PURE__ */ getFallback(valueSchema);
2200
- else if (valueSchema.type !== "exact_optional" && valueSchema.type !== "optional" && valueSchema.type !== "nullish") {
2201
- _addIssue(this, "key", dataset, config$1, {
2202
- input: void 0,
2203
- expected: `"${key}"`,
2204
- path: [{
2205
- type: "object",
2206
- origin: "key",
2207
- input,
2208
- key,
2209
- value: input[key]
2210
- }]
2211
- });
2212
- if (config$1.abortEarly) break;
2213
- }
2214
- }
2215
- } else _addIssue(this, "type", dataset, config$1);
2216
- return dataset;
2217
- }
2218
- });
2219
- }
2220
- // @__NO_SIDE_EFFECTS__
2221
- function optional(wrapped, default_) {
2222
- return _standardSchema({
2223
- kind: "schema",
2224
- type: "optional",
2225
- reference: optional,
2226
- expects: `(${wrapped.expects} | undefined)`,
2227
- async: false,
2228
- wrapped,
2229
- default: default_,
2230
- "~run"(dataset, config$1) {
2231
- if (dataset.value === void 0) {
2232
- if (this.default !== void 0) dataset.value = /* @__PURE__ */ getDefault(this, dataset, config$1);
2233
- if (dataset.value === void 0) {
2234
- dataset.typed = true;
2235
- return dataset;
2236
- }
2237
- }
2238
- return this.wrapped["~run"](dataset, config$1);
2239
- }
2240
- });
2241
- }
2242
- // @__NO_SIDE_EFFECTS__
2243
- function picklist(options, message$1) {
2244
- return _standardSchema({
2245
- kind: "schema",
2246
- type: "picklist",
2247
- reference: picklist,
2248
- expects: /* @__PURE__ */ _joinExpects(options.map(_stringify), "|"),
2249
- async: false,
2250
- options,
2251
- message: message$1,
2252
- "~run"(dataset, config$1) {
2253
- if (this.options.includes(dataset.value)) dataset.typed = true;
2254
- else _addIssue(this, "type", dataset, config$1);
2255
- return dataset;
2256
- }
2257
- });
2258
- }
2259
- // @__NO_SIDE_EFFECTS__
2260
- function record(key, value$1, message$1) {
2261
- return _standardSchema({
2262
- kind: "schema",
2263
- type: "record",
2264
- reference: record,
2265
- expects: "Object",
2266
- async: false,
2267
- key,
2268
- value: value$1,
2269
- message: message$1,
2270
- "~run"(dataset, config$1) {
2271
- const input = dataset.value;
2272
- if (input && typeof input === "object") {
2273
- dataset.typed = true;
2274
- dataset.value = {};
2275
- for (const entryKey in input) if (/* @__PURE__ */ _isValidObjectKey(input, entryKey)) {
2276
- const entryValue = input[entryKey];
2277
- const keyDataset = this.key["~run"]({ value: entryKey }, config$1);
2278
- if (keyDataset.issues) {
2279
- const pathItem = {
2280
- type: "object",
2281
- origin: "key",
2282
- input,
2283
- key: entryKey,
2284
- value: entryValue
2285
- };
2286
- for (const issue of keyDataset.issues) {
2287
- issue.path = [pathItem];
2288
- dataset.issues?.push(issue);
2289
- }
2290
- if (!dataset.issues) dataset.issues = keyDataset.issues;
2291
- if (config$1.abortEarly) {
2292
- dataset.typed = false;
2293
- break;
2294
- }
2295
- }
2296
- const valueDataset = this.value["~run"]({ value: entryValue }, config$1);
2297
- if (valueDataset.issues) {
2298
- const pathItem = {
2299
- type: "object",
2300
- origin: "value",
2301
- input,
2302
- key: entryKey,
2303
- value: entryValue
2304
- };
2305
- for (const issue of valueDataset.issues) {
2306
- if (issue.path) issue.path.unshift(pathItem);
2307
- else issue.path = [pathItem];
2308
- dataset.issues?.push(issue);
2309
- }
2310
- if (!dataset.issues) dataset.issues = valueDataset.issues;
2311
- if (config$1.abortEarly) {
2312
- dataset.typed = false;
2313
- break;
2314
- }
2315
- }
2316
- if (!keyDataset.typed || !valueDataset.typed) dataset.typed = false;
2317
- if (keyDataset.typed) dataset.value[keyDataset.value] = valueDataset.value;
2318
- }
2319
- } else _addIssue(this, "type", dataset, config$1);
2320
- return dataset;
2321
- }
2322
- });
2323
- }
2324
- // @__NO_SIDE_EFFECTS__
2325
- function string(message$1) {
2326
- return _standardSchema({
2327
- kind: "schema",
2328
- type: "string",
2329
- reference: string,
2330
- expects: "string",
2331
- async: false,
2332
- message: message$1,
2333
- "~run"(dataset, config$1) {
2334
- if (typeof dataset.value === "string") dataset.typed = true;
2335
- else _addIssue(this, "type", dataset, config$1);
2336
- return dataset;
2337
- }
2338
- });
2339
- }
2340
- // @__NO_SIDE_EFFECTS__
2341
- function pipe(...pipe$1) {
2342
- return _standardSchema({
2343
- ...pipe$1[0],
2344
- pipe: pipe$1,
2345
- "~run"(dataset, config$1) {
2346
- for (const item of pipe$1) if (item.kind !== "metadata") {
2347
- if (dataset.issues && (item.kind === "schema" || item.kind === "transformation")) {
2348
- dataset.typed = false;
2349
- break;
2350
- }
2351
- if (!dataset.issues || !config$1.abortEarly && !config$1.abortPipeEarly) dataset = item["~run"](dataset, config$1);
2352
- }
2353
- return dataset;
2354
- }
2355
- });
2356
- }
2357
-
2358
- // packages/ai/agent/createAgentSchema.ts
2359
- var DEFAULT_REASONING_EFFORT = "medium";
2360
- var REASONING_EFFORT_OPTIONS = [
2361
- "none",
2362
- "minimal",
2363
- "low",
2364
- "medium",
2365
- "high",
2366
- "xhigh",
2367
- "max",
2368
- "ultra"
2369
- ];
2370
- var PROVIDER_REASONING_EFFORT_VALUES = {
2371
- openai: ["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"],
2372
- openrouter: ["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"],
2373
- deepseek: ["low", "high", "max"],
2374
- // nolo (Ollama Cloud) 支持 DeepSeek/Kimi/GLM 等 thinking 模型,
2375
- // reasoning_effort 通过 OpenAI 兼容端点透传到 Ollama Cloud。
2376
- nolo: ["low", "high", "max"],
2377
- xai: ["low", "medium", "high"],
2378
- grok: ["low", "medium", "high"],
2379
- // none:关闭思考;必须保留,否则上游 clamp 会把 none 抬成 low,
2380
- // kimi-code proxy 的 none/off → thinking.disabled 分支永远接不到。
2381
- kimi: ["none", "low", "high", "max"],
2382
- moonshot: ["none", "low", "high", "max"],
2383
- // Qwen 用 enable_thinking (bool) 而非 reasoning_effort → 隐藏下拉
2384
- qwen: [],
2385
- // MiniMax M3: 接受这些值但所有非 none 效果相同
2386
- minimax: ["none", "low", "medium", "high"],
2387
- // Cursor: 推理强度在模型名后缀 (如 -high),不走独立参数
2388
- cursor: [],
2389
- // MiMo: 保守默认
2390
- mimo: ["low", "medium", "high"],
2391
- // CommandCode Provider API 透传 reasoning_effort(low/medium/high/xhigh/max),
2392
- // 端点按各模型支持的子集自动 clamp(见 commandcode.ai/docs/provider-api)。
2393
- commandcode: ["low", "medium", "high", "xhigh", "max"],
2394
- // 阶跃星辰(StepFun)推理模型(step-3.5-flash-2603 / step-3.7-flash 等)支持 low / medium / high
2395
- stepfun: ["none", "low", "medium", "high"],
2396
- // LithosAI 推理云:上游为 DeepSeek,文档 reasoning_effort 取值 low / high / max
2397
- // (low/high 已实测被接受;medium/xhigh 未验证,不列出)。
2398
- lithosai: ["low", "high", "max"]
2399
- };
2400
- var greetingMenuItemSchema = object({
2401
- id: pipe(string(), minLength(1)),
2402
- label: pipe(string(), minLength(1)),
2403
- userMessage: optional(string())
2404
- });
2405
- var greetingConfigSchema = object({
2406
- text: optional(pipe(string(), trim())),
2407
- menu: optional(array(greetingMenuItemSchema))
2408
- });
2409
- var runtimeToolPolicySchema = looseObject({
2410
- version: optional(literal(1)),
2411
- agentTools: optional(array(string())),
2412
- runtimeTools: optional(array(string())),
2413
- workspace: optional(
2414
- object({
2415
- mode: optional(picklist(["none", "current", "lease"])),
2416
- writableRoots: optional(array(string())),
2417
- cwd: optional(string())
2418
- })
2419
- ),
2420
- shell: optional(record(string(), string())),
2421
- isolation: optional(record(string(), string())),
2422
- git: optional(record(string(), string())),
2423
- budget: optional(record(string(), string())),
2424
- audit: optional(record(string(), string()))
2425
- });
2426
- var referenceItemSchema = pipe(
2427
- object({
2428
- dbKey: string(),
2429
- title: string(),
2430
- type: picklist(["knowledge", "instruction", "page"])
2431
- }),
2432
- transform((data) => ({
2433
- ...data,
2434
- type: data.type === "page" ? "knowledge" : data.type
2435
- }))
2436
- );
2437
-
2438
- // packages/integrations/anthropic/anthropicModels.ts
2439
- var anthropicModels = [
2440
- {
2441
- name: "claude-3-5-sonnet-latest",
2442
- displayName: "Claude 3.5 Sonnet",
2443
- hasVision: true,
2444
- description: "Our most intelligent model to date",
2445
- contextWindow: 2e5,
2446
- maxOutputTokens: 8192,
2447
- price: {
2448
- input: 27,
2449
- output: 135,
2450
- cachingWrite: 33.75,
2451
- cachingRead: 2.7
2452
- }
2453
- },
2454
- {
2455
- name: "claude-3-7-sonnet-latest",
2456
- displayName: "Claude 3.7 Sonnet",
2457
- hasVision: true,
2458
- description: "Our most intelligent model to date",
2459
- contextWindow: 2e5,
2460
- maxOutputTokens: 8192,
2461
- price: {
2462
- input: 27,
2463
- output: 135,
2464
- cachingWrite: 33.75,
2465
- cachingRead: 2.7
2466
- }
2467
- },
2468
- {
2469
- name: "claude-3-5-haiku-20241022",
2470
- displayName: "Claude 3.5 Haiku",
2471
- hasVision: false,
2472
- description: "Fastest, most cost-effective model",
2473
- contextWindow: 2e5,
2474
- maxOutputTokens: 8192,
2475
- price: {
2476
- input: 7.2,
2477
- output: 36,
2478
- cachingWrite: 9,
2479
- cachingRead: 0.72
2480
- }
2481
- }
2482
- ];
2483
-
2484
- // packages/integrations/anthropic/anthropicOAuthModels.ts
2485
- var oauthModel = ({ name, displayName, contextWindow, thinkingMode, maxOutputTokens }) => ({
2486
- name,
2487
- displayName,
2488
- hasVision: true,
2489
- description: `OAuth \u8BA2\u9605\u6A21\u578B\uFF08${displayName}\uFF0C${thinkingMode === "adaptive" ? "Adaptive thinking" : "Extended thinking"}\uFF09`,
2490
- contextWindow,
2491
- ...maxOutputTokens ? { maxOutputTokens } : {},
2492
- supportsReasoningEffort: true,
2493
- price: { input: 0, output: 0 }
2494
- });
2495
- var anthropicOAuthModels = [
2496
- // 5 代与 5.5 代(1M + Adaptive thinking always-on;官方 max output 128k)
2497
- oauthModel({ name: "claude-opus-5-5", displayName: "Claude Opus 5.5", contextWindow: 1e6, thinkingMode: "adaptive", maxOutputTokens: 128e3 }),
2498
- // Claude Sonnet 5.5(2026-09-28 发布):官方规格 1M + Adaptive thinking + max output 128k。
2499
- // 注意该模型对非默认 temperature/top_p/top_k 直接 400——nolo 的 anthropicAdapter
2500
- // 不传采样参数,不受影响。
2501
- oauthModel({ name: "claude-sonnet-5-5", displayName: "Claude Sonnet 5.5", contextWindow: 1e6, thinkingMode: "adaptive", maxOutputTokens: 128e3 }),
2502
- // Claude Haiku 5.5(2026-10-07 发布):官方规格 1M + Adaptive thinking + max output 128k。
2503
- oauthModel({ name: "claude-haiku-5-5", displayName: "Claude Haiku 5.5", contextWindow: 1e6, thinkingMode: "adaptive", maxOutputTokens: 128e3 }),
2504
- oauthModel({ name: "claude-fable-5", displayName: "Claude Fable 5", contextWindow: 1e6, thinkingMode: "adaptive", maxOutputTokens: 128e3 }),
2505
- oauthModel({ name: "claude-opus-5", displayName: "Claude Opus 5", contextWindow: 1e6, thinkingMode: "adaptive", maxOutputTokens: 128e3 }),
2506
- oauthModel({ name: "claude-sonnet-5", displayName: "Claude Sonnet 5", contextWindow: 1e6, thinkingMode: "adaptive", maxOutputTokens: 128e3 }),
2507
- // 4.6/4.7/4.8 系(Adaptive thinking;context 官方未单列,参照 fuzzy claude-4.6→1M)
2508
- oauthModel({ name: "claude-opus-4-8", displayName: "Claude Opus 4.8", contextWindow: 1e6, thinkingMode: "adaptive" }),
2509
- oauthModel({ name: "claude-opus-4-7", displayName: "Claude Opus 4.7", contextWindow: 1e6, thinkingMode: "adaptive" }),
2510
- oauthModel({ name: "claude-sonnet-4-6", displayName: "Claude Sonnet 4.6", contextWindow: 1e6, thinkingMode: "adaptive" }),
2511
- oauthModel({ name: "claude-opus-4-6", displayName: "Claude Opus 4.6", contextWindow: 1e6, thinkingMode: "adaptive" }),
2512
- // 4.5 系(Extended thinking;官方发布规格 1M)
2513
- oauthModel({ name: "claude-opus-4-5-20251101", displayName: "Claude Opus 4.5", contextWindow: 1e6, thinkingMode: "extended" }),
2514
- oauthModel({ name: "claude-sonnet-4-5-20250929", displayName: "Claude Sonnet 4.5", contextWindow: 1e6, thinkingMode: "extended" }),
2515
- // haiku-4-5(官方明确 context=200k + Extended thinking)
2516
- oauthModel({ name: "claude-haiku-4-5-20251001", displayName: "Claude Haiku 4.5", contextWindow: 2e5, thinkingMode: "extended" })
2517
- ];
2518
- function anthropicOAuthModelMaxOutputTokens(model) {
2519
- if (!model) return void 0;
2520
- const found = anthropicOAuthModels.find((m) => m.name === model);
2521
- return typeof found?.maxOutputTokens === "number" ? found.maxOutputTokens : void 0;
2522
- }
2523
- var OAUTH_MODEL_THINKING_MODE = new Map(
2524
- anthropicOAuthModels.map((m) => [m.name, m.thinkingMode])
2525
- );
2526
- function isAdaptiveThinkingModelId(model) {
2527
- if (!model) return false;
2528
- const tableMode = OAUTH_MODEL_THINKING_MODE.get(model);
2529
- if (tableMode === "adaptive") return true;
2530
- if (tableMode === "extended") return false;
2531
- const n = model.toLowerCase();
2532
- return n.includes("fable-5") || n.includes("opus-5") || n.includes("sonnet-5") || n.includes("haiku-5") || n.includes("opus-4-8") || n.includes("opus-4-7") || n.includes("sonnet-4-6") || n.includes("opus-4-6");
2533
- }
2534
-
2535
- // packages/ai/agent/liveAudioModel.ts
2536
- var DEFAULT_GOOGLE_LIVE_AUDIO_MODEL = "gemini-3.1-flash-live-preview";
2537
-
2538
- // packages/integrations/google/models.ts
2539
- var googleModels = [
2540
- {
2541
- name: DEFAULT_GOOGLE_LIVE_AUDIO_MODEL,
2542
- displayName: "Gemini 3.1 Flash Live",
2543
- provider: "google",
2544
- description: "Gemini Live API model for low-latency real-time voice conversations.",
2545
- hasVision: true,
2546
- hasAudio: true,
2547
- contextWindow: 1048576,
2548
- maxOutputTokens: 65500,
2549
- supportsTool: true,
2550
- price: {
2551
- input: 4,
2552
- output: 24,
2553
- cachingWrite: 0.4,
2554
- cachingRead: 0.4
2555
- }
2556
- },
2557
- {
2558
- name: "gemini-3.6-flash",
2559
- displayName: "Gemini 3.6 Flash",
2560
- provider: "google",
2561
- description: "Gemini 3.6 Flash model for fast frontier agentic, coding, and multimodal tasks.",
2562
- hasVision: true,
2563
- hasAudio: true,
2564
- contextWindow: 1048576,
2565
- maxOutputTokens: 65536,
2566
- supportsTool: true,
2567
- supportsReasoningEffort: true,
2568
- price: {
2569
- input: 12,
2570
- output: 72,
2571
- cachingWrite: 1.2,
2572
- cachingRead: 1.2
2573
- },
2574
- serviceTierPriceMultipliers: {
2575
- batch: { inputOutput: 0.5, cache: 0.5 },
2576
- flex: { inputOutput: 0.5, cache: 0.08 / 0.15 },
2577
- priority: { inputOutput: 1.8, cache: 1.8 }
2578
- }
2579
- },
2580
- {
2581
- name: "gemini-3.7-flash",
2582
- displayName: "Gemini 3.7 Flash",
2583
- provider: "google",
2584
- description: "Gemini 3.7 Flash model for fast frontier agentic, coding, and multimodal tasks.",
2585
- hasVision: true,
2586
- hasAudio: true,
2587
- contextWindow: 1048576,
2588
- maxOutputTokens: 65536,
2589
- supportsTool: true,
2590
- supportsReasoningEffort: true,
2591
- // Antigravity's subscription wire route is tiered; Gemini API uses this logical id.
2592
- price: {
2593
- input: 6,
2594
- output: 30,
2595
- cachingWrite: 0.6,
2596
- cachingRead: 0.6
2597
- }
2598
- },
2599
- {
2600
- name: "gemini-3.8-flash",
2601
- displayName: "Gemini 3.8 Flash",
2602
- provider: "google",
2603
- description: "Gemini 3.8 Flash model for fast frontier agentic, coding, and multimodal tasks.",
2604
- hasVision: true,
2605
- hasAudio: true,
2606
- contextWindow: 1048576,
2607
- maxOutputTokens: 65536,
2608
- supportsTool: true,
2609
- supportsReasoningEffort: true,
2610
- price: {
2611
- input: 6,
2612
- output: 30,
2613
- cachingWrite: 0.6,
2614
- cachingRead: 0.6
2615
- }
2616
- },
2617
- {
2618
- name: "gemini-2.5-pro",
2619
- displayName: "Gemini 2.5 Pro",
2620
- provider: "google",
2621
- description: "Gemini 2.5 Pro model for complex reasoning, coding, and large context multimodal tasks.",
2622
- hasVision: true,
2623
- hasAudio: true,
2624
- contextWindow: 1048576,
2625
- maxOutputTokens: 65536,
2626
- supportsTool: true,
2627
- supportsReasoningEffort: true,
2628
- price: {
2629
- input: 10,
2630
- output: 40,
2631
- cachingWrite: 2.5,
2632
- cachingRead: 2.5
2633
- }
2634
- },
2635
- {
2636
- name: "gemini-4-argon",
2637
- displayName: "Gemini 4 Argon",
2638
- provider: "google",
2639
- description: "Gemini 4 Argon flagship reasoning, coding, and multimodal model.",
2640
- hasVision: true,
2641
- hasAudio: true,
2642
- // TODO(model-spec): 上下文/最大输出沿用 Gemini 3.x 的 1M/64K 占位,待官方模型页确认后更新。
2643
- contextWindow: 1048576,
2644
- maxOutputTokens: 65536,
2645
- supportsTool: true,
2646
- supportsReasoningEffort: true,
2647
- // thinking; implicit caching only, so cachingWrite mirrors cachingRead).
2648
- price: {
2649
- input: 16,
2650
- output: 80,
2651
- cachingWrite: 0.8,
2652
- cachingRead: 0.8
2653
- }
2654
- },
2655
- {
2656
- name: "gemini-4-neon",
2657
- displayName: "Gemini 4 Neon",
2658
- provider: "google",
2659
- description: "Gemini 4 Neon frontier model for complex software engineering, knowledge work, and science workflows.",
2660
- hasVision: true,
2661
- hasAudio: true,
2662
- contextWindow: 1048576,
2663
- maxOutputTokens: 65536,
2664
- supportsTool: true,
2665
- supportsReasoningEffort: true,
2666
- // 官方 Gemini API pricing (Standard tier, checked 2026-11-19):
2667
- // 数字真值在 ai/llm/geminiNeonPricing.ts(nolo 托管目录共用同一份,避免同一上游
2668
- // 价目出现两份生产真值);× 8 = credits,与本文件其它条目同口径。
2669
- // Implicit caching only (explicit caching unsupported), so cachingWrite mirrors cachingRead.
2670
- // 档位:Flex = 0.5x、Priority = 1.8x(官方同步线路的 service_tier)。平台没有 Batch
2671
- // 线路(Batch API 是独立的异步接口,本仓库不接),故不登记 batch 倍率。
2672
- price: {
2673
- input: GEMINI_NEON_STANDARD_PRICE_USD.input * 8,
2674
- output: GEMINI_NEON_STANDARD_PRICE_USD.output * 8,
2675
- cachingWrite: GEMINI_NEON_STANDARD_PRICE_USD.cache * 8,
2676
- cachingRead: GEMINI_NEON_STANDARD_PRICE_USD.cache * 8
2677
- },
2678
- serviceTierPriceMultipliers: { ...GEMINI_NEON_SERVICE_TIER_MULTIPLIERS }
2679
- }
2680
- ];
2681
-
2682
- // packages/integrations/openai/models.ts
2683
- var GPT_5_5_STANDARD_PRICE = {
2684
- input: 40,
2685
- output: 240,
2686
- inputCacheHit: 4
2687
- };
2688
- var GPT_5_5_LONG_CONTEXT_PRICE = {
2689
- input: 80,
2690
- output: 360,
2691
- inputCacheHit: 8
2692
- };
2693
- var GPT_5_5_PRO_STANDARD_PRICE = {
2694
- input: 240,
2695
- output: 1440,
2696
- inputCacheHit: 0
2697
- };
2698
- var GPT_5_5_PRO_LONG_CONTEXT_PRICE = {
2699
- input: 480,
2700
- output: 2160,
2701
- inputCacheHit: 0
2702
- };
2703
- var GPT_5_6_SOL_STANDARD_PRICE = {
2704
- input: 32,
2705
- output: 160,
2706
- inputCacheHit: 3.2
2707
- };
2708
- var GPT_5_6_SOL_LONG_CONTEXT_PRICE = {
2709
- input: 64,
2710
- output: 240,
2711
- inputCacheHit: 6.4
2712
- };
2713
- var GPT_5_6_TERRA_STANDARD_PRICE = {
2714
- input: 16,
2715
- output: 96,
2716
- inputCacheHit: 1.6
2717
- };
2718
- var GPT_5_6_TERRA_LONG_CONTEXT_PRICE = {
2719
- input: 32,
2720
- output: 144,
2721
- inputCacheHit: 3.2
2722
- };
2723
- var GPT_5_6_LUNA_PRICE = {
2724
- input: 1.6,
2725
- output: 9.6,
2726
- inputCacheHit: 0.16
2727
- };
2728
- var GPT_6_ASTRA_STANDARD_PRICE = {
2729
- input: 80,
2730
- output: 400,
2731
- inputCacheHit: 8
2732
- };
2733
- var GPT_6_ASTRA_LONG_CONTEXT_PRICE = {
2734
- input: 160,
2735
- output: 600,
2736
- inputCacheHit: 16
2737
- };
2738
- var GPT_6_2_ASTRA_STANDARD_PRICE = {
2739
- input: 64,
2740
- output: 320,
2741
- inputCacheHit: 3.2
2742
- };
2743
- var GPT_6_2_ASTRA_LONG_CONTEXT_PRICE = {
2744
- input: 128,
2745
- output: 480,
2746
- inputCacheHit: 6.4
2747
- };
2748
- var GPT_6_2_SOL_STANDARD_PRICE = {
2749
- input: 16,
2750
- output: 80,
2751
- inputCacheHit: 0.8
2752
- };
2753
- var GPT_6_2_SOL_LONG_CONTEXT_PRICE = {
2754
- input: 32,
2755
- output: 120,
2756
- inputCacheHit: 1.6
2757
- };
2758
- var openAIModels = [
2759
- {
2760
- name: "gpt-5.5",
2761
- displayName: "GPT-5.5 Standard",
2762
- endpointKey: "responses",
2763
- hasVision: true,
2764
- contextWindow: 1047576,
2765
- maxOutputTokens: 128e3,
2766
- supportsReasoningEffort: true,
2767
- price: GPT_5_5_STANDARD_PRICE,
2768
- pricingStrategy: {
2769
- type: "tiered_context",
2770
- tiers: [
2771
- {
2772
- minContext: 272001,
2773
- price: GPT_5_5_LONG_CONTEXT_PRICE
2774
- }
2775
- ]
2776
- }
2777
- },
2778
- {
2779
- name: "gpt-5.6-sol",
2780
- displayName: "GPT-5.6 Sol (Flagship)",
2781
- endpointKey: "responses",
2782
- hasVision: true,
2783
- contextWindow: 105e4,
2784
- maxOutputTokens: 128e3,
2785
- supportsReasoningEffort: true,
2786
- price: GPT_5_6_SOL_STANDARD_PRICE,
2787
- pricingStrategy: {
2788
- type: "tiered_context",
2789
- tiers: [
2790
- {
2791
- minContext: 272001,
2792
- price: GPT_5_6_SOL_LONG_CONTEXT_PRICE
2793
- }
2794
- ]
2795
- }
2796
- },
2797
- {
2798
- name: "gpt-5.6-terra",
2799
- displayName: "GPT-5.6 Terra (Balanced)",
2800
- endpointKey: "responses",
2801
- hasVision: true,
2802
- contextWindow: 105e4,
2803
- maxOutputTokens: 128e3,
2804
- supportsReasoningEffort: true,
2805
- price: GPT_5_6_TERRA_STANDARD_PRICE,
2806
- pricingStrategy: {
2807
- type: "tiered_context",
2808
- tiers: [
2809
- {
2810
- minContext: 272001,
2811
- price: GPT_5_6_TERRA_LONG_CONTEXT_PRICE
2812
- }
2813
- ]
2814
- }
2815
- },
2816
- {
2817
- name: "gpt-5.6-luna",
2818
- displayName: "GPT-5.6 Luna (Fast)",
2819
- // 已知缺口(2026-09-24 官网核对):官方对 >272K 输入有 2x/1.5x 规则,本条目
2820
- // 未建模档位;平台托管侧又明确「价不随档位浮动」。是否给 BYO 档位属于计费
2821
- // 策略决定,留待 owner 决策,不在此顺手改。
2822
- endpointKey: "responses",
2823
- hasVision: true,
2824
- contextWindow: 105e4,
2825
- maxOutputTokens: 128e3,
2826
- supportsReasoningEffort: true,
2827
- price: GPT_5_6_LUNA_PRICE
2828
- },
2829
- {
2830
- name: "gpt-6.2-astra",
2831
- displayName: "GPT-6.2 Astra",
2832
- endpointKey: "responses",
2833
- hasVision: true,
2834
- contextWindow: 105e4,
2835
- maxOutputTokens: 128e3,
2836
- supportsReasoningEffort: true,
2837
- price: GPT_6_2_ASTRA_STANDARD_PRICE,
2838
- pricingStrategy: {
2839
- type: "tiered_context",
2840
- tiers: [
2841
- {
2842
- minContext: 272001,
2843
- price: GPT_6_2_ASTRA_LONG_CONTEXT_PRICE
2844
- }
2845
- ]
2846
- }
2847
- },
2848
- {
2849
- name: "gpt-6.2-sol",
2850
- displayName: "GPT-6.2 Sol",
2851
- endpointKey: "responses",
2852
- hasVision: true,
2853
- contextWindow: 105e4,
2854
- maxOutputTokens: 128e3,
2855
- supportsReasoningEffort: true,
2856
- price: GPT_6_2_SOL_STANDARD_PRICE,
2857
- pricingStrategy: {
2858
- type: "tiered_context",
2859
- tiers: [
2860
- {
2861
- minContext: 272001,
2862
- price: GPT_6_2_SOL_LONG_CONTEXT_PRICE
2863
- }
2864
- ]
2865
- }
2866
- },
2867
- {
2868
- name: "gpt-6-astra",
2869
- displayName: "GPT-6 Astra",
2870
- endpointKey: "responses",
2871
- hasVision: true,
2872
- contextWindow: 105e4,
2873
- maxOutputTokens: 128e3,
2874
- supportsReasoningEffort: true,
2875
- price: GPT_6_ASTRA_STANDARD_PRICE,
2876
- pricingStrategy: {
2877
- type: "tiered_context",
2878
- tiers: [
2879
- {
2880
- minContext: 272001,
2881
- price: GPT_6_ASTRA_LONG_CONTEXT_PRICE
2882
- }
2883
- ]
2884
- }
2885
- },
2886
- {
2887
- name: "gpt-5.5-pro",
2888
- displayName: "GPT-5.5 Pro",
2889
- endpointKey: "responses",
2890
- hasVision: true,
2891
- contextWindow: 1047576,
2892
- maxOutputTokens: 128e3,
2893
- supportsReasoningEffort: true,
2894
- price: GPT_5_5_PRO_STANDARD_PRICE,
2895
- pricingStrategy: {
2896
- type: "tiered_context",
2897
- tiers: [
2898
- {
2899
- minContext: 272001,
2900
- price: GPT_5_5_PRO_LONG_CONTEXT_PRICE
2901
- }
2902
- ]
2903
- }
2904
- }
2905
- ];
2906
-
2907
- // packages/ai/llm/deepinfra.ts
2908
- var DEEPINFRA_CLAUDE_HAIKU_PRICE = {
2909
- input: 1 * 9,
2910
- output: 5 * 9
2911
- };
2912
- var DEEPINFRA_CLAUDE_SONNET_PRICE = {
2913
- input: 3 * 9,
2914
- output: 15 * 9
2915
- };
2916
- var DEEPINFRA_CLAUDE_OPUS_PRICE = {
2917
- input: 5 * 9,
2918
- output: 25 * 9
2919
- };
2920
- var DEEPINFRA_CLAUDE_FABLE_PRICE = {
2921
- input: 10 * 9,
2922
- output: 50 * 9
2923
- };
2924
- var deepinfraModels = [
2925
- {
2926
- name: "anthropic/claude-haiku-4-5",
2927
- displayName: "Anthropic: Claude Haiku 4.5",
2928
- hasVision: true,
2929
- price: { ...DEEPINFRA_CLAUDE_HAIKU_PRICE },
2930
- contextWindow: 195e3,
2931
- maxOutputTokens: 4092,
2932
- supportsTool: false
2933
- },
2934
- {
2935
- name: "anthropic/claude-sonnet-5",
2936
- displayName: "Anthropic: Claude Sonnet 5",
2937
- hasVision: true,
2938
- price: { ...DEEPINFRA_CLAUDE_SONNET_PRICE },
2939
- contextWindow: 976e3,
2940
- maxOutputTokens: 4092,
2941
- supportsTool: false
2942
- },
2943
- {
2944
- name: "anthropic/claude-opus-5",
2945
- displayName: "Anthropic: Claude Opus 5",
2946
- hasVision: true,
2947
- price: { ...DEEPINFRA_CLAUDE_OPUS_PRICE },
2948
- contextWindow: 976e3,
2949
- maxOutputTokens: 4092,
2950
- supportsTool: false
2951
- },
2952
- {
2953
- name: "anthropic/claude-fable-5",
2954
- displayName: "Anthropic: Claude Fable 5",
2955
- hasVision: true,
2956
- price: { ...DEEPINFRA_CLAUDE_FABLE_PRICE },
2957
- contextWindow: 976e3,
2958
- maxOutputTokens: 4092,
2959
- supportsTool: false
2960
- }
2961
- ];
2962
-
2963
- // packages/ai/llm/baseten.ts
2964
- var BASETEN_GLM_53_FLASH_MODEL = "zai-org/GLM-5.3-Flash";
2965
- var BASETEN_GLM_53_FLASH_PRICE = {
2966
- input: 1.2,
2967
- inputCacheHit: 0.24,
2968
- output: 4
2969
- };
2970
- var basetenModels = [
2971
- {
2972
- name: BASETEN_GLM_53_FLASH_MODEL,
2973
- displayName: "GLM 5.3 Flash",
2974
- hasVision: true,
2975
- price: { ...BASETEN_GLM_53_FLASH_PRICE },
2976
- maxOutputTokens: 131072,
2977
- contextWindow: 1048576,
2978
- supportsTool: true,
2979
- supportsReasoningEffort: true
2980
- }
2981
- ];
2982
-
2983
- // packages/ai/llm/runinfra.ts
2984
- var RUNINFRA_GLM_53_FLASH_MODEL = "glm-5-3-flash";
2985
- var RUNINFRA_GLM_53_FLASH_PRICE = {
2986
- input: 0.8,
2987
- inputCacheHit: 0.08,
2988
- output: 3.2
2989
- };
2990
- var runinfraModels = [
2991
- {
2992
- name: RUNINFRA_GLM_53_FLASH_MODEL,
2993
- displayName: "GLM 5.3 Flash",
2994
- hasVision: true,
2995
- price: { ...RUNINFRA_GLM_53_FLASH_PRICE },
2996
- maxOutputTokens: 1048576,
2997
- contextWindow: 1048576,
2998
- supportsTool: true,
2999
- supportsReasoningEffort: true
3000
- }
3001
- ];
3002
-
3003
- // packages/integrations/xai/models.ts
3004
- var xaiModels = [
3005
- {
3006
- name: "grok-4.6",
3007
- displayName: "Grok 4.6",
3008
- hasVision: true,
3009
- contextWindow: 5e5,
3010
- price: { input: 16, output: 48, inputCacheHit: 4 },
3011
- pricingStrategy: {
3012
- type: "tiered_context",
3013
- tiers: [
3014
- {
3015
- minContext: 200001,
3016
- price: { input: 32, output: 96, inputCacheHit: 8 }
3017
- }
3018
- ]
3019
- },
3020
- fnCall: true,
3021
- jsonOutput: true
3022
- }
3023
- ];
3024
-
3025
- // packages/ai/llm/fireworks.ts
3026
- var fireworksModels = [
3027
- {
3028
- // 2026-11-04:Kimi 三条历史 id 统一指向这里。Fireworks 真实 id 为 kimi-k3
3029
- // (https://app.fireworks.ai/models/fireworks/kimi-k3);价格沿用平台 Kimi K3 目录价。
3030
- name: "accounts/fireworks/models/kimi-k3",
3031
- displayName: "MoonshotAI: Kimi K3",
3032
- hasVision: true,
3033
- price: { input: 24, output: 120, cachingRead: 2.4 },
3034
- contextWindow: 256e3,
3035
- supportsTool: true
3036
- },
3037
- {
3038
- // 2026-11-04:minimax-m3 记录迁移到这里。Fireworks 真实 id 为 minimax-m3p1-flash
3039
- name: "accounts/fireworks/models/minimax-m3p1-flash",
3040
- displayName: "MiniMax: MiniMax M3.1 Flash",
3041
- hasVision: true,
3042
- price: { input: 0.6, output: 2.4, cachingRead: 0.06 },
3043
- contextWindow: 512e3,
3044
- supportsTool: true
3045
- },
3046
- {
3047
- name: "accounts/fireworks/models/minimax-m3",
3048
- displayName: "MiniMax: MiniMax M3",
3049
- hasVision: true,
3050
- price: {
3051
- input: 2.4,
3052
- output: 9.6,
3053
- cachingRead: 0.48
3054
- },
3055
- contextWindow: 512e3,
3056
- supportsTool: true
3057
- }
3058
- ];
3059
-
3060
- // packages/ai/agent/openrouterModelCapability.ts
3061
- var VALID_EFFORTS_SET = new Set(REASONING_EFFORT_OPTIONS);
3062
- function extractOpenRouterReasoningCapability(rawModel) {
3063
- if (!rawModel) {
3064
- return {
3065
- found: false,
3066
- supportsReasoning: false,
3067
- supportedEfforts: []
3068
- };
3069
- }
3070
- const supportedParams = rawModel.supported_parameters ?? [];
3071
- const reasoning = rawModel.reasoning;
3072
- const hasReasoningSupport = Boolean(reasoning) || supportedParams.includes("reasoning") || supportedParams.includes("reasoning_effort") || supportedParams.includes("include_reasoning");
3073
- if (!hasReasoningSupport) {
3074
- return {
3075
- found: true,
3076
- supportsReasoning: false,
3077
- supportedEfforts: []
3078
- };
3079
- }
3080
- const rawEfforts = reasoning?.supported_efforts ?? [];
3081
- const supportedEfforts = rawEfforts.filter(
3082
- (e) => VALID_EFFORTS_SET.has(e)
3083
- );
3084
- let defaultEffort;
3085
- if (reasoning?.default_effort && VALID_EFFORTS_SET.has(reasoning.default_effort) && supportedEfforts.includes(reasoning.default_effort)) {
3086
- defaultEffort = reasoning.default_effort;
3087
- } else if (supportedEfforts.length > 0) {
3088
- defaultEffort = supportedEfforts.includes("medium") ? "medium" : supportedEfforts[0];
3089
- }
3090
- return {
3091
- found: true,
3092
- supportsReasoning: true,
3093
- mandatory: reasoning?.mandatory,
3094
- supportedEfforts,
3095
- defaultEffort
3096
- };
3097
- }
3098
- var cachedModels = null;
3099
- var CACHE_TTL_MS = 10 * 60 * 1e3;
3100
- function getCachedOpenRouterModelReasoning(modelId) {
3101
- const trimmed = modelId.trim().toLowerCase();
3102
- if (!trimmed) return null;
3103
- if (!cachedModels || Date.now() - cachedModels.timestamp >= CACHE_TTL_MS) {
3104
- return null;
3105
- }
3106
- const rawModel = cachedModels.data.get(trimmed);
3107
- if (!rawModel) return null;
3108
- return extractOpenRouterReasoningCapability(rawModel);
3109
- }
3110
-
3111
- // packages/ai/agent/modelReasoningCapability.ts
3112
- var GATEWAY_PROVIDERS = /* @__PURE__ */ new Set(["openrouter", "nolo"]);
3113
- var THINKING_MECHANISM_PROVIDERS = /* @__PURE__ */ new Set(["anthropic", "google"]);
3114
- var MODEL_REASONING_OVERRIDES = [
3115
- {
3116
- // Google 官方 OpenAI 兼容文档给出 gemini-4-neon 的 reasoning_effort 映射
3117
- // (minimal→low、low→low、medium→medium、high→high、xhigh→xhigh,其中
3118
- // xhigh 仅 gemini-4-neon 与 gemini-4-hydrogen 支持):
3119
- // https://aistudio.google.com/docs/openai#thinking(2026-11-19 核对)。
3120
- // 只声明该模型:Google 的其它 Gemini 仍走 thinking_config,不在此列。
3121
- providers: ["google"],
3122
- prefix: "gemini-4-neon",
3123
- exact: true,
3124
- efforts: ["low", "medium", "high", "xhigh"],
3125
- note: "Gemini 4 Neon \u5728 Google OpenAI \u517C\u5BB9\u7AEF\u70B9\u4E0A\u7684 reasoning_effort \u6863\u4F4D\uFF08\u5B98\u65B9\u6620\u5C04\u8868\uFF09"
3126
- },
3127
- // Platform GPT models accept medium even though the nolo provider fallback
3128
- // describes DeepSeek's narrower low/high/max scale.
3129
- ...["gpt-6.2-sol", "gpt-6.2-astra", "gpt-6.1-sol", "gpt-6.1-terra", "gpt-6-luna", "gpt-6-astra"].map((prefix) => ({
3130
- providers: ["openai"],
3131
- prefix,
3132
- exact: true,
3133
- efforts: ["none", "low", "medium", "high", "xhigh", "max"],
3134
- note: "GPT-6 model-specific reasoning scale (platformHosted.ts model metadata)"
3135
- })),
3136
- // ---- OpenAI ----
3137
- {
3138
- providers: ["openai"],
3139
- prefix: "gpt-5",
3140
- includes: "-pro",
3141
- efforts: ["high"],
3142
- note: "gpt-5-pro \u7CFB\u5217\u53EA\u66B4\u9732 high \u6863\uFF08OpenAI \u6587\u6863\uFF1Apro \u53D8\u4F53\u4E0D\u53EF\u8C03\u4F4E\uFF09"
3143
- },
3144
- {
3145
- providers: ["openai"],
3146
- prefix: "o1-preview",
3147
- supportsReasoning: false,
3148
- note: "o1-preview \u4E0D\u63A5\u53D7 reasoning_effort \u53C2\u6570"
3149
- },
3150
- {
3151
- providers: ["openai"],
3152
- prefix: "o1-mini",
3153
- supportsReasoning: false,
3154
- note: "o1-mini \u4E0D\u63A5\u53D7 reasoning_effort \u53C2\u6570"
3155
- },
3156
- {
3157
- providers: ["openai"],
3158
- prefix: "o1",
3159
- efforts: ["low", "medium", "high"],
3160
- note: "o1 \u652F\u6301 low/medium/high\uFF0C\u65E0 none/minimal/xhigh/max"
3161
- },
3162
- {
3163
- providers: ["openai"],
3164
- prefix: "o3",
3165
- efforts: ["low", "medium", "high"],
3166
- note: "o3 / o3-mini \u652F\u6301 low/medium/high"
3167
- },
3168
- {
3169
- providers: ["openai"],
3170
- prefix: "o4-mini",
3171
- efforts: ["low", "medium", "high"],
3172
- note: "o4-mini \u652F\u6301 low/medium/high"
3173
- },
3174
- {
3175
- providers: ["openai"],
3176
- prefix: "gpt-4o",
3177
- supportsReasoning: false,
3178
- note: "gpt-4o \u7CFB\u5217\u975E\u63A8\u7406\u6A21\u578B"
3179
- },
3180
- {
3181
- providers: ["openai"],
3182
- prefix: "gpt-4.1",
3183
- supportsReasoning: false,
3184
- note: "gpt-4.1 \u7CFB\u5217\u975E\u63A8\u7406\u6A21\u578B"
3185
- },
3186
- {
3187
- providers: ["openai"],
3188
- prefix: "chatgpt-4o",
3189
- supportsReasoning: false,
3190
- note: "chatgpt-4o \u975E\u63A8\u7406\u6A21\u578B"
3191
- },
3192
- // ---- xAI / Grok ----
3193
- {
3194
- providers: ["xai", "grok"],
3195
- prefix: "grok-3-mini",
3196
- efforts: ["low", "high"],
3197
- note: "grok-3-mini \u4EC5 low/high\uFF0C\u65E0 medium\uFF08xAI \u6587\u6863\uFF09"
3198
- },
3199
- {
3200
- providers: ["xai", "grok"],
3201
- prefix: "grok-3",
3202
- exact: true,
3203
- // 只匹配 grok-3 本体;grok-3-fast 等变体不被误伤
3204
- supportsReasoning: false,
3205
- note: "grok-3\uFF08\u975E mini\uFF09\u4E0D\u652F\u6301 reasoning_effort"
3206
- },
3207
- {
3208
- providers: ["xai", "grok"],
3209
- prefix: "grok-2",
3210
- supportsReasoning: false,
3211
- note: "grok-2 \u7CFB\u5217\u975E\u63A8\u7406\u6A21\u578B"
3212
- },
3213
- // ---- DeepSeek ----
3214
- {
3215
- providers: ["deepseek"],
3216
- prefix: "deepseek-chat",
3217
- exact: true,
3218
- // 只匹配 deepseek-chat 本体;deepseek-chat-v3.1 是混合推理模型
3219
- supportsReasoning: false,
3220
- note: "deepseek-chat\uFF08V3 \u975E\u63A8\u7406\u7EBF\uFF09\u65E0\u63A8\u7406\u5F3A\u5EA6"
3221
- },
3222
- // ---- Kimi / Moonshot ----
3223
- {
3224
- providers: ["kimi", "moonshot"],
3225
- prefix: "moonshot-v1",
3226
- supportsReasoning: false,
3227
- note: "moonshot-v1 \u7CFB\u5217\u975E\u63A8\u7406\u6A21\u578B"
3228
- },
3229
- {
3230
- providers: ["kimi", "moonshot"],
3231
- prefix: "kimi-k2-instruct",
3232
- supportsReasoning: false,
3233
- note: "kimi-k2-instruct \u975E thinking \u53D8\u4F53"
3234
- },
3235
- {
3236
- providers: ["kimi", "moonshot"],
3237
- prefix: "kimi-latest",
3238
- supportsReasoning: false,
3239
- note: "kimi-latest \u6307\u5411\u975E\u63A8\u7406\u5FEB\u7167"
3240
- }
3241
- ];
3242
- function modelBasename(model) {
3243
- const idx = model.lastIndexOf("/");
3244
- return idx === -1 ? model : model.slice(idx + 1);
3245
- }
3246
- function matchOverride(provider, model) {
3247
- const m = model.toLowerCase();
3248
- const base = modelBasename(m);
3249
- const isGateway = GATEWAY_PROVIDERS.has(provider);
3250
- let best = null;
3251
- let bestPrefixLen = -1;
3252
- for (const o of MODEL_REASONING_OVERRIDES) {
3253
- if (!isGateway && !o.providers.includes(provider)) continue;
3254
- const hit = o.exact ? m === o.prefix || base === o.prefix : m.startsWith(o.prefix) || base.startsWith(o.prefix);
3255
- if (!hit) continue;
3256
- if (o.includes && !m.includes(o.includes) && !base.includes(o.includes)) {
3257
- continue;
3258
- }
3259
- if (o.prefix.length > bestPrefixLen) {
3260
- best = o;
3261
- bestPrefixLen = o.prefix.length;
3262
- }
3263
- }
3264
- return best;
3265
- }
3266
- function capabilityFromOpenRouterLive(live) {
3267
- return {
3268
- found: true,
3269
- supportsReasoning: live.supportsReasoning,
3270
- efforts: live.supportedEfforts,
3271
- defaultEffort: live.defaultEffort,
3272
- mandatory: live.mandatory,
3273
- source: "openrouter-live"
3274
- };
3275
- }
3276
- function resolveModelReasoningCapability(provider, model) {
3277
- const p = (provider ?? "").toLowerCase();
3278
- const m = (model ?? "").trim();
3279
- if (m) {
3280
- const override = matchOverride(p, m);
3281
- if (override) {
3282
- const supportsReasoning = override.supportsReasoning ?? true;
3283
- const efforts = supportsReasoning === false ? [] : override.efforts ?? PROVIDER_REASONING_EFFORT_VALUES[p] ?? [
3284
- "low",
3285
- "medium",
3286
- "high"
3287
- ];
3288
- return {
3289
- found: true,
3290
- supportsReasoning,
3291
- efforts,
3292
- defaultEffort: efforts.includes("medium") ? "medium" : efforts[0],
3293
- source: "model-override"
3294
- };
3295
- }
3296
- }
3297
- if (THINKING_MECHANISM_PROVIDERS.has(p)) {
3298
- return {
3299
- found: false,
3300
- supportsReasoning: true,
3301
- // 有推理能力,只是走 Thinking 机制而非 effort
3302
- efforts: [],
3303
- source: "provider-map"
3304
- };
3305
- }
3306
- const providerEfforts = PROVIDER_REASONING_EFFORT_VALUES[p];
3307
- if (providerEfforts) {
3308
- return {
3309
- found: false,
3310
- supportsReasoning: providerEfforts.length > 0,
3311
- efforts: providerEfforts,
3312
- source: "provider-map"
3313
- };
3314
- }
3315
- return {
3316
- found: false,
3317
- supportsReasoning: true,
3318
- efforts: ["low", "medium", "high"],
3319
- source: "provider-fallback"
3320
- };
3321
- }
3322
- function resolveModelReasoningCapabilityWithCache(provider, model) {
3323
- const p = (provider ?? "").toLowerCase();
3324
- const m = (model ?? "").trim();
3325
- if (p === "openrouter" && m) {
3326
- const live = getCachedOpenRouterModelReasoning(m);
3327
- if (live?.found) {
3328
- return capabilityFromOpenRouterLive(live);
3329
- }
3330
- }
3331
- return resolveModelReasoningCapability(provider, model);
3332
- }
3333
-
3334
- // packages/ai/llm/reasoningModels.ts
3335
- var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
3336
- "deepseek-flash",
3337
- "deepseek-v4-flash",
3338
- "deepseek-v4.1-flash",
3339
- "deepseek-v4-pro",
3340
- "gemini-3.7-flash",
3341
- "gemini-3.8-flash",
3342
- "gemini-3.6-flash",
3343
- // Gemini 4 Neon:Google OpenAI 兼容端点接受 reasoning_effort(官方映射表
3344
- // https://aistudio.google.com/docs/openai#thinking,2026-11-19 核对,
3345
- // xhigh 仅 gemini-4-neon / gemini-4-hydrogen 支持)。
3346
- "gemini-4-neon",
3347
- // Legacy Gemini ids — 已从模型注册表下线,保留只为存量 agent 的 reasoning UI。
3348
- "gemini-3.5-flash",
3349
- "gemini-3-flash-preview",
3350
- "gemini-3-pro-preview",
3351
- "gemini-3.1-pro-preview",
3352
- "gpt-5.5-pro",
3353
- "gpt-6.2-astra",
3354
- "gpt-6.2-sol",
3355
- "gpt-6-astra",
3356
- "gpt-6.1-sol",
3357
- "gpt-6.1-terra",
3358
- "gpt-6-sol",
3359
- "gpt-6-luna",
3360
- "gpt-5.6-sol",
3361
- "gpt-5.6-terra",
3362
- "gpt-5.6-luna",
3363
- "glm-5.3",
3364
- "glm-5.2",
3365
- "kimi-k3",
3366
- "kimi-k3.1-pro",
3367
- // Legacy OpenAI catalog ids — still support reasoning UI for agents that
3368
- // were never re-seeded after GPT-5.4 / GPT-5 were retired from the picker.
3369
- "gpt-5.4",
3370
- "gpt-5.4-mini",
3371
- "gpt-5.4-nano",
3372
- "gpt-5.4-pro",
3373
- "gpt-5",
3374
- "gpt-5-mini",
3375
- "@cf/zai-org/glm-5.2",
3376
- "zai-org/GLM-5.2",
3377
- "accounts/fireworks/models/glm-5p2",
3378
- "zai-org/GLM-5.2-FP8"
3379
- ]);
3380
- var isModelSupportReasoningEffort = (model, provider) => {
3381
- if (provider && provider.toLowerCase() === "openrouter") {
3382
- return true;
3383
- }
3384
- const p = provider?.toLowerCase();
3385
- const base = model.toLowerCase().split("/").pop() ?? "";
3386
- const deepseekFlash = ["deepseek-flash", "deepseek-v4-flash", "deepseek-v4.1-flash"].includes(base);
3387
- return REASONING_MODEL_NAMES.has(model) || deepseekFlash && ["commandcode", "opendesign", "ollama-cloud", "lithosai"].includes(p ?? "");
3388
- };
3389
- var supportedReasoningModels = Array.from(REASONING_MODEL_NAMES);
3390
- var EFFORT_ORDER = [
3391
- "none",
3392
- "minimal",
3393
- "low",
3394
- "medium",
3395
- "high",
3396
- "xhigh",
3397
- "max",
3398
- "ultra"
3399
- ];
3400
- function nearestSupportedEffort(effort, supported) {
3401
- const effortIdx = EFFORT_ORDER.indexOf(effort);
3402
- if (effortIdx === -1) return void 0;
3403
- const supportedIdxs = supported.map((s) => EFFORT_ORDER.indexOf(s)).filter((idx) => idx >= 0).sort((a, b) => a - b);
3404
- if (supportedIdxs.length === 0) return void 0;
3405
- let best = supportedIdxs[0];
3406
- let bestDist = Math.abs(best - effortIdx);
3407
- for (const idx of supportedIdxs) {
3408
- const dist = Math.abs(idx - effortIdx);
3409
- if (dist < bestDist || dist === bestDist && idx > best) {
3410
- best = idx;
3411
- bestDist = dist;
3412
- }
3413
- }
3414
- return EFFORT_ORDER[best];
3415
- }
3416
- function clampReasoningEffort(effort, provider, model) {
3417
- if (!effort) return void 0;
3418
- const normalized = effort === "off" ? "none" : effort;
3419
- const providerLower = (provider ?? "").toLowerCase();
3420
- const modelCapability = model ? resolveModelReasoningCapabilityWithCache(provider, model) : void 0;
3421
- const hasModelLevelEfforts = Boolean(modelCapability?.found && modelCapability.supportsReasoning) && (modelCapability?.efforts.length ?? 0) > 0;
3422
- if (THINKING_MECHANISM_PROVIDERS.has(providerLower) && !hasModelLevelEfforts) {
3423
- return void 0;
3424
- }
3425
- if (modelCapability) {
3426
- const cap = modelCapability;
3427
- if (cap.found) {
3428
- if (!cap.supportsReasoning || cap.efforts.length === 0) {
3429
- return void 0;
3430
- }
3431
- if (cap.efforts.includes(normalized)) return normalized;
3432
- return nearestSupportedEffort(normalized, cap.efforts);
3433
- }
3434
- }
3435
- const supported = PROVIDER_REASONING_EFFORT_VALUES[providerLower];
3436
- if (!supported || supported.length === 0) {
3437
- if (normalized === "low" || normalized === "medium" || normalized === "high") {
3438
- return normalized;
3439
- }
3440
- const effortIdx = EFFORT_ORDER.indexOf(
3441
- normalized
3442
- );
3443
- const highIdx = EFFORT_ORDER.indexOf("high");
3444
- const lowIdx = EFFORT_ORDER.indexOf("low");
3445
- if (effortIdx === -1) return void 0;
3446
- if (effortIdx > highIdx) return "high";
3447
- if (effortIdx < lowIdx) return "low";
3448
- return normalized;
3449
- }
3450
- if (supported.includes(normalized)) return normalized;
3451
- return nearestSupportedEffort(normalized, supported);
3452
- }
3453
-
3454
- // packages/ai/llm/providers.ts
3455
- var stepfunAllModels = [...stepfunModels, ...stepfunStepPlanModels];
3456
- var moonshotAllModels = [...moonshotModels, ...kimiCodeModels];
3457
- var qwenAllModels = [...qwenModels, ...qwenTokenPlanModels];
3458
- var devinModels = [
3459
- { name: "swe-2-max", displayName: "SWE-2 Max", hasVision: true, contextWindow: 262e3, price: { input: 0, output: 0 } },
3460
- { name: "swe-2-high", displayName: "SWE-2 High", hasVision: true, contextWindow: 262e3, price: { input: 0, output: 0 } },
3461
- { name: "swe-2-medium", displayName: "SWE-2 Medium", hasVision: true, contextWindow: 262e3, price: { input: 0, output: 0 } },
3462
- { name: "swe-1-7", displayName: "SWE-1.7 Max", hasVision: true, contextWindow: 262e3, price: { input: 0, output: 0 } },
3463
- { name: "swe-1-7-lightning", displayName: "SWE-1.7 Lightning Max", hasVision: true, contextWindow: 202752, price: { input: 0, output: 0 } },
3464
- { name: "swe-1-6-fast", displayName: "SWE-1.6 Fast", hasVision: true, contextWindow: 2e5, price: { input: 0, output: 0 } }
3465
- ];
3466
- var MODEL_MAP = {
3467
- // anthropic: anthropicModels,
3468
- google: googleModels,
3469
- openai: openAIModels,
3470
- deepinfra: deepinfraModels,
3471
- baseten: basetenModels,
3472
- runinfra: runinfraModels,
3473
- openrouter: openrouterModels,
3474
- fireworks: fireworksModels,
3475
- nolo: platformHostedModels,
3476
- cloudflare: cloudflareModels,
3477
- gmi: gmiModels,
3478
- zai: zaiModels,
3479
- qwen: qwenAllModels,
3480
- moonshot: moonshotAllModels,
3481
- stepfun: stepfunAllModels,
3482
- minimax: minimaxModels
3483
- };
3484
- var MODEL_LOOKUP_MAP = {
3485
- anthropic: [...anthropicModels, ...anthropicOAuthModels],
3486
- devin: devinModels,
3487
- xai: xaiModels,
3488
- "opencode-go": opencodeGoModels,
3489
- opencode: opencodeGoModels,
3490
- ...MODEL_MAP,
3491
- // CommandCode Provider API(api.commandcode.ai):CommandCode 清单是窗口真值源,
3492
- // 但只把「带官方口径 contextWindow」的条目挂进窗口表——官方未公布窗口的模型不进表、
3493
- // 不猜值。用过滤而非整表:整表会让 displayName 与其它 provider 的同名条目互相覆盖。
3494
- commandcode: commandCodeModels.filter((m) => typeof m.contextWindow === "number")
3495
- };
3496
- var ANTHROPIC_MODEL_ALIASES = {
3497
- "claude-opus-5.5": "claude-opus-5-5",
3498
- "claude-sonnet-5.5": "claude-sonnet-5-5",
3499
- "claude-haiku-5.5": "claude-haiku-5-5",
3500
- "claude-sonnet-4.6": "claude-3-7-sonnet-latest",
3501
- "claude-sonnet-4.5": "claude-3-5-sonnet-latest"
3502
- };
3503
- var NOLO_MODEL_ALIASES = {
3504
- "glm-5.2": "glm-5.3",
3505
- "glm-5.3-flash": "glm-5-3-flash",
3506
- "deepseek-v4-flash": "deepseek-flash",
3507
- "deepseek-v4-flash-vision-exp": "deepseek-flash"
3508
- // deepseek-v4-pro 已恢复为平台托管一等模型(2026-09-14 官方继续提供),不再折到 flash。
3509
- };
3510
- var normalizeLookupProvider = (provider) => {
3511
- if (!provider) return null;
3512
- const normalized = provider.toLowerCase();
3513
- if (normalized === "ollama-cloud" || normalized === "deepseek") {
3514
- return "nolo";
3515
- }
3516
- if (normalized in MODEL_LOOKUP_MAP) {
3517
- return normalized;
3518
- }
3519
- return null;
3520
- };
3521
- var normalizeLookupModelName = (provider, name) => {
3522
- if (provider === "anthropic") {
3523
- return ANTHROPIC_MODEL_ALIASES[name] ?? name;
3524
- }
3525
- if (provider === "nolo") {
3526
- return NOLO_MODEL_ALIASES[name] ?? name;
3527
- }
3528
- return name;
3529
- };
3530
- var toModel = (candidate) => ({
3531
- name: typeof candidate.id === "string" && candidate.id.trim() ? candidate.id : candidate.name,
3532
- displayName: candidate.displayName ?? (typeof candidate.id === "string" && candidate.id !== candidate.name ? candidate.name : void 0),
3533
- hasVision: typeof candidate.hasVision === "boolean" ? candidate.hasVision : !!candidate.supportVision,
3534
- contextWindow: candidate.contextWindow,
3535
- price: candidate.price ?? candidate.pricing ?? { input: 0, output: 0 },
3536
- peakPrice: candidate.peakPrice,
3537
- offPeakPrice: candidate.offPeakPrice,
3538
- pricingStrategy: candidate.pricingStrategy,
3539
- serviceTierPriceMultipliers: candidate.serviceTierPriceMultipliers,
3540
- maxOutputTokens: candidate.maxOutputTokens ?? candidate.maxTokens,
3541
- jsonOutput: candidate.jsonOutput,
3542
- /** Preserve model-level native wire protocol metadata through catalog projection. */
3543
- nativeProtocol: candidate.nativeProtocol,
3544
- fnCall: typeof candidate.fnCall === "boolean" ? candidate.fnCall : candidate.supportTool,
3545
- provider: candidate.provider,
3546
- description: candidate.description,
3547
- hasAudio: candidate.hasAudio,
3548
- maxImageResolution: candidate.maxImageResolution,
3549
- canFineTune: candidate.canFineTune,
3550
- hasImageOutput: candidate.hasImageOutput,
3551
- supportsImageOutput: candidate.supportsImageOutput,
3552
- supportsTool: typeof candidate.supportsTool === "boolean" ? candidate.supportsTool : candidate.supportTool,
3553
- supportsImageConfig: candidate.supportsImageConfig,
3554
- requiresImageModalities: candidate.requiresImageModalities,
3555
- defaultModalities: candidate.defaultModalities,
3556
- supportedAspectRatios: candidate.supportedAspectRatios,
3557
- supportedImageSizes: candidate.supportedImageSizes,
3558
- pricePerImage: candidate.pricePerImage,
3559
- imagePricingNote: candidate.imagePricingNote,
3560
- imageTokenPricePerMillion: candidate.imageTokenPricePerMillion,
3561
- imageOutputTokenEstimateBySize: candidate.imageOutputTokenEstimateBySize,
3562
- imageGenerationWaitTimeSeconds: candidate.imageGenerationWaitTimeSeconds,
3563
- imageGenerationProfiles: candidate.imageGenerationProfiles,
3564
- supportsReasoningEffort: typeof candidate.supportsReasoningEffort === "boolean" ? candidate.supportsReasoningEffort : candidate.supportReasoning,
3565
- endpointKey: candidate.endpointKey
3566
- });
3567
- var findCandidateInProvider = (provider, name) => {
3568
- const normalizedName = normalizeLookupModelName(provider, name);
3569
- const list = MODEL_LOOKUP_MAP[provider];
3570
- const candidate = list.find(
3571
- (item) => item.name === normalizedName || item.displayName === normalizedName || item.id === normalizedName
3572
- );
3573
- return candidate ? toModel(candidate) : null;
3574
- };
3575
- var findOpenRouterUpstreamModel = (name) => {
3576
- const slash = name.indexOf("/");
3577
- if (slash <= 0) return null;
3578
- const upstreamProvider = normalizeLookupProvider(name.slice(0, slash));
3579
- if (!upstreamProvider) return null;
3580
- const upstreamModelName = name.slice(slash + 1);
3581
- return findCandidateInProvider(upstreamProvider, upstreamModelName);
3582
- };
3583
- function findModelConfig(provider, name) {
3584
- const normalizedProvider = normalizeLookupProvider(provider);
3585
- if (!normalizedProvider) return null;
3586
- if (normalizedProvider === "nolo") {
3587
- const effective = resolvePlatformEffectiveModel(name);
3588
- if (effective && effective !== name) {
3589
- const aliased = findCandidateInProvider(normalizedProvider, effective);
3590
- if (aliased) return aliased;
3591
- }
3592
- }
3593
- const direct = findCandidateInProvider(normalizedProvider, name);
3594
- if (direct) return direct;
3595
- if (normalizedProvider === "openrouter") {
3596
- return findOpenRouterUpstreamModel(name);
3597
- }
3598
- return null;
3599
- }
3600
- var availableProviderOptions = Object.keys(MODEL_MAP);
3601
- var API_ENDPOINTS = {
3602
- openai: {
3603
- completions: "https://api.openai.com/v1/chat/completions",
3604
- responses: "https://api.openai.com/v1/responses"
3605
- },
3606
- xai: {
3607
- default: "https://api.x.ai/v1/chat/completions"
3608
- },
3609
- deepinfra: {
3610
- default: "https://api.deepinfra.com/v1/openai/chat/completions"
3611
- },
3612
- google: {
3613
- default: "https://generativelanguage.googleapis.com/v1beta/openai/chat/completions"
3614
- },
3615
- openrouter: {
3616
- default: "https://openrouter.ai/api/v1/chat/completions"
3617
- },
3618
- fireworks: {
3619
- default: "https://api.fireworks.ai/inference/v1/chat/completions"
3620
- },
3621
- /* 平台托管 provider(nolo / legacy ollama-cloud / deepseek)不放本地默认端点:
3622
- * 直连语义已移除(历史 ollama.com 兜底废弃),端点由服务端按模型决议;
3623
- * getApiEndpoint 对它们直接返回 ""。 */
3624
- cloudflare: {
3625
- default: "__cloudflare_workers_ai_chat_completions__"
3626
- },
3627
- gmi: {
3628
- default: GMI_CHAT_COMPLETIONS_URL
3629
- },
3630
- qwen: {
3631
- // 千问 AI 平台 OpenAI 兼容模式
3632
- default: "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"
3633
- },
3634
- moonshot: {
3635
- // Moonshot AI(月之暗面)开放平台 OpenAI 兼容模式(按量计费)
3636
- default: "https://api.moonshot.cn/v1/chat/completions"
3637
- },
3638
- stepfun: {
3639
- // 阶跃星辰(StepFun)开放平台 OpenAI 兼容模式
3640
- default: "https://api.stepfun.com/v1/chat/completions"
3641
- }
3642
- };
3643
- function getModelConfig(provider, name) {
3644
- const model = findModelConfig(provider, name);
3645
- if (!model) {
3646
- throw new Error(`Model ${name} not found for provider ${provider}`);
3647
- }
3648
- return model;
3649
- }
3650
- function getProviderByModelName(modelName) {
3651
- for (const [provider, models] of Object.entries(MODEL_LOOKUP_MAP)) {
3652
- if (models.some((m) => m.name === modelName)) {
3653
- return provider;
3654
- }
3655
- }
3656
- return void 0;
3657
- }
3658
- var DEFAULT_MODEL = {
3659
- provider: PLATFORM_HOSTED_KIMI_PROVIDER,
3660
- name: PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL
3661
- };
3662
- function getApiEndpoint(agent) {
3663
- const { provider, customProviderUrl, endpointKey, model } = agent;
3664
- const effectiveProvider = provider;
3665
- const effectiveModel = model;
3666
- if (agent.apiSource === "cli") {
3667
- throw new Error(
3668
- "Routing error: CLI agent should not call getApiEndpoint. Check streamAgentChatTurn."
3669
- );
3670
- }
3671
- if (customProviderUrl) {
3672
- const url = customProviderUrl.trim().replace(/\/$/, "");
3673
- if (/\/v\d+(beta\d*)?$/.test(url)) {
3674
- return `${url}/chat/completions`;
3675
- }
3676
- return url;
3677
- }
3678
- const OAUTH_API_KEY_REFS = /* @__PURE__ */ new Set([
3679
- "chatgpt",
3680
- "xai",
3681
- "antigravity",
3682
- "claude",
3683
- "cursor"
3684
- ]);
3685
- if (effectiveProvider === "nolo" || effectiveProvider === "ollama-cloud" || effectiveProvider === "deepseek") {
3686
- return "";
3687
- }
3688
- if (!effectiveProvider || effectiveProvider.toLowerCase() === "custom" || agent.apiSource === "custom") {
3689
- if (agent.useServerProxy) {
3690
- return "";
3691
- }
3692
- const apiKeyRef = agent.apiKeyRef;
3693
- if (apiKeyRef && OAUTH_API_KEY_REFS.has(apiKeyRef)) {
3694
- return "";
3695
- }
3696
- if (effectiveProvider && API_ENDPOINTS[effectiveProvider]) {
3697
- return "";
3698
- }
3699
- throw new Error(
3700
- "Custom provider URL is required when apiSource is 'custom'."
3701
- );
3702
- }
3703
- if (effectiveProvider === "cloudflare") {
3704
- return getCloudflareWorkersAiChatCompletionsUrl();
3705
- }
3706
- const endpoints = API_ENDPOINTS[effectiveProvider];
3707
- if (!endpoints) throw new Error(`Unsupported provider: ${provider}`);
3708
- let key = endpointKey;
3709
- if (!key && effectiveModel) {
3710
- try {
3711
- key = getModelConfig(effectiveProvider, effectiveModel).endpointKey;
3712
- } catch {
3713
- }
3714
- }
3715
- if (key && endpoints[key]) return endpoints[key];
3716
- if (endpoints.default) return endpoints.default;
3717
- const first = Object.values(endpoints)[0];
3718
- if (first) return first;
3719
- throw new Error(`No endpoint found for provider ${provider}`);
3720
- }
3721
-
3722
- export {
3723
- anthropicOAuthModelMaxOutputTokens,
3724
- isAdaptiveThinkingModelId,
3725
- qwenModels,
3726
- qwenTokenPlanModels,
3727
- moonshotModels,
3728
- kimiCodeModels,
3729
- stepfunModels,
3730
- stepfunStepPlanModels,
3731
- minimaxModels,
3732
- commandCodeModels,
3733
- opencodeGoModels,
3734
- DEFAULT_REASONING_EFFORT,
3735
- REASONING_EFFORT_OPTIONS,
3736
- resolveModelReasoningCapability,
3737
- resolveModelReasoningCapabilityWithCache,
3738
- isModelSupportReasoningEffort,
3739
- clampReasoningEffort,
3740
- MODEL_LOOKUP_MAP,
3741
- findModelConfig,
3742
- getModelConfig,
3743
- getProviderByModelName,
3744
- DEFAULT_MODEL,
3745
- getApiEndpoint
3746
- };