nolo-cli 0.228.0-alpha.2 → 0.228.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 (260) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-VYCHHZVT.js → _executeModel-AKCTHGMP.js} +89 -83
  3. package/{accountResolver-QETKNC7T.js → accountResolver-NGICIMEE.js} +1 -1
  4. package/{action-GDZDXPMB.js → action-C6IQAKN4.js} +8 -5
  5. package/{addContentAction-7RO4AMRI.js → addContentAction-53364YDW.js} +13 -12
  6. package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-U5DD5EN5.js} +16 -15
  7. package/{agentDeleteCommand-QWQKT54A.js → agentDeleteCommand-2E5FAGUO.js} +128 -115
  8. package/{agentEmailCommands-EISMBIRE.js → agentEmailCommands-UGZZAH7E.js} +128 -111
  9. package/{agentListCommands-4WLG32IW.js → agentListCommands-JCTW3J2K.js} +398 -179
  10. package/{agentMachineCommands-DC6NKWTU.js → agentMachineCommands-QPG5ZXF4.js} +58 -47
  11. package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-QLTABYR7.js} +2 -2
  12. package/{agentPullCommand-KHV4EELF.js → agentPullCommand-2EYJ5ENC.js} +1 -1
  13. package/agentRecordCommands-4NTVR6MZ.js +194 -0
  14. package/agentRunCommand-VHF34PYC.js +232 -0
  15. package/{agentRunControl-MBG4U6SL.js → agentRunControl-QYTXUQGY.js} +14 -9
  16. package/{agentRuntimeLocal-HOXKWCYO.js → agentRuntimeLocal-U54AKHXH.js} +58 -43
  17. package/{agentSlice-UG76KEBH.js → agentSlice-4JGDEXWK.js} +14 -13
  18. package/{appDeleteCommands-WWCC6WA5.js → appDeleteCommands-XBE5QJ6P.js} +58 -47
  19. package/{appDeployCommands-AU4IUN33.js → appDeployCommands-QIYLXXGA.js} +58 -47
  20. package/{appDeployStatusCommands-STUW7WXL.js → appDeployStatusCommands-JXS6ZQZZ.js} +58 -47
  21. package/{appGetCommands-BGTLIQ4K.js → appGetCommands-SZS7SJPK.js} +58 -47
  22. package/{appListCommands-CUCPRUXW.js → appListCommands-B3GBJSNV.js} +58 -47
  23. package/{authCommand-OZ2KTP4Z.js → authCommand-V6EOMZX6.js} +25 -19
  24. package/{authCommands-55OGQGCR.js → authCommands-T5FODCEG.js} +12 -6
  25. package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-ZQC3IIO2.js} +8 -7
  26. package/{chromeCommands-G5UDKVSV.js → chromeCommands-O4IIKTBD.js} +384 -7
  27. package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-OFX7ZGKP.js} +3 -3
  28. package/{chunk-DBUR22G5.js → chunk-223KZUJ6.js} +19 -15
  29. package/{chunk-3U44JB3O.js → chunk-2C5VN7NH.js} +1 -1
  30. package/{chunk-PWTNI4N7.js → chunk-2E4BYAUE.js} +22 -0
  31. package/{chunk-L32W3PRP.js → chunk-2FZVXOFX.js} +234 -18
  32. package/{chunk-HBRDSQ3M.js → chunk-2JHGUL5K.js} +3 -2
  33. package/chunk-2SXN7LAY.js +15 -0
  34. package/chunk-3A5NNQCN.js +64 -0
  35. package/chunk-3F2FRLIO.js +372 -0
  36. package/{chunk-DEA37IUY.js → chunk-46FETNLF.js} +2 -2
  37. package/{chunk-ZEVQHCLM.js → chunk-4GYVS4PM.js} +8 -6
  38. package/{chunk-CBUZ6DKA.js → chunk-4YPH5KRA.js} +1 -1
  39. package/chunk-4ZCTKB27.js +31 -0
  40. package/chunk-53W5BXLN.js +340 -0
  41. package/{chunk-7FEP5USX.js → chunk-5AYP5QBB.js} +5 -5
  42. package/{chunk-XAG3FWBE.js → chunk-5ISNPTQH.js} +5 -5
  43. package/{chunk-EVGU5P4U.js → chunk-5P3PPQVP.js} +1 -1
  44. package/{chunk-XSW4EXQV.js → chunk-6BMTKYAO.js} +55 -18
  45. package/chunk-6PAHSSD2.js +33401 -0
  46. package/{chunk-ZOHO6MOF.js → chunk-6RSNVJGO.js} +2 -99
  47. package/{chunk-7JGMNKKG.js → chunk-6SOWMEAY.js} +30 -9
  48. package/{chunk-RG2DGNL6.js → chunk-6VEO7Z3Y.js} +3 -3
  49. package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
  50. package/{chunk-DGYCDA6W.js → chunk-7BIJFGKS.js} +36 -17
  51. package/{chunk-WFDNADFX.js → chunk-7OVOZRZF.js} +8 -8
  52. package/{chunk-WCFFRBL5.js → chunk-7PON4LBY.js} +45 -27
  53. package/{chunk-QRGDJA4B.js → chunk-7WHCIA5V.js} +33 -7
  54. package/{chunk-CMMI3DAT.js → chunk-ADYWV732.js} +59 -30
  55. package/{chunk-QYB23WUH.js → chunk-AIFQKNPP.js} +1 -1
  56. package/{chunk-HGDKT2D6.js → chunk-BPB3T5EU.js} +174 -1
  57. package/{chunk-DUUDXSLX.js → chunk-BZLGPM5B.js} +28 -4
  58. package/{chunk-ATEKLSLR.js → chunk-BZMDWGQQ.js} +14 -9
  59. package/chunk-C5A54QS7.js +108 -0
  60. package/{chunk-S6K5F3KP.js → chunk-CEKRIR22.js} +1 -1
  61. package/{chunk-42OKN2LI.js → chunk-D634SL2Y.js} +9 -107
  62. package/{chunk-DLXMMTGM.js → chunk-DHRPLRIR.js} +1283 -786
  63. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  64. package/{chunk-OBIC6EG7.js → chunk-DNNPARJK.js} +9 -5
  65. package/{chunk-X3E6EHJW.js → chunk-E3LSO6EI.js} +292 -207
  66. package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
  67. package/chunk-EHFBP6IK.js +791 -0
  68. package/chunk-EJQE5HB7.js +21 -0
  69. package/{chunk-VQ5N5GSV.js → chunk-EL5NRJHI.js} +4 -4
  70. package/chunk-EUGTFFO6.js +42 -0
  71. package/{chunk-7BCG67EI.js → chunk-EVHTYVD2.js} +1199 -442
  72. package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
  73. package/{chunk-262R3XNN.js → chunk-FEIVARWR.js} +377 -112
  74. package/{chunk-3VZLEKV2.js → chunk-FLBJ7IJI.js} +14 -14
  75. package/{chunk-EEOOBRA7.js → chunk-FXEPZKNJ.js} +13 -6
  76. package/{chunk-XTJKU3Z4.js → chunk-FYAMUU55.js} +677 -140
  77. package/{chunk-M3OZRQNH.js → chunk-FZANZZ63.js} +1 -1
  78. package/chunk-GAHJLSDO.js +107 -0
  79. package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
  80. package/{chunk-4N6G2CKP.js → chunk-HDKMVYNJ.js} +47 -1
  81. package/chunk-HEVRQGGH.js +106 -0
  82. package/{chunk-BIWI5M4E.js → chunk-HFHJPHFK.js} +1 -1
  83. package/{chunk-R6Z5S5GA.js → chunk-HPDLPEUG.js} +60 -17
  84. package/{chunk-YKY4OVOX.js → chunk-HQUGB2HM.js} +17 -170
  85. package/chunk-IIRJ4P4I.js +24 -0
  86. package/chunk-IVK2KT3H.js +209 -0
  87. package/{chunk-ALAES342.js → chunk-IYLUK67R.js} +9 -5
  88. package/{chunk-N5Z2V73W.js → chunk-J55F3IEZ.js} +1 -1
  89. package/{chunk-S6FDXXZV.js → chunk-J7JRCOIW.js} +2 -2
  90. package/{chunk-OWKNSIXL.js → chunk-JAKRY74O.js} +470 -83
  91. package/{chunk-VS276URX.js → chunk-JCQ3WCQ3.js} +4 -2
  92. package/chunk-JLZJL3WC.js +988 -0
  93. package/{chunk-OBSEKCVK.js → chunk-JPXACKSW.js} +219 -52
  94. package/{chunk-OTKSESZR.js → chunk-KDBDOXOM.js} +138 -54
  95. package/{chunk-VP3BINY7.js → chunk-KDDHQMSH.js} +31 -1
  96. package/{chunk-RBPUNSG5.js → chunk-KG27JIG4.js} +18 -108
  97. package/{chunk-4WVJLODK.js → chunk-KHYSFS3W.js} +88 -7
  98. package/{chunk-TCZ2VJZQ.js → chunk-KKIQAVDR.js} +9 -9
  99. package/{chunk-4JVNURX4.js → chunk-KQHEGELM.js} +68 -16
  100. package/chunk-KXOPLLFP.js +190 -0
  101. package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
  102. package/{chunk-HYLRQDEE.js → chunk-LLUBUHNT.js} +6 -6
  103. package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
  104. package/{chunk-RTHFJZ6M.js → chunk-LVZVSLKO.js} +29 -9
  105. package/{chunk-TI2EPRHE.js → chunk-MNFUKRRU.js} +3 -3
  106. package/chunk-MVOZ22RZ.js +26 -0
  107. package/{chunk-CNMY2XM6.js → chunk-O3A2CHAL.js} +6 -6
  108. package/{chunk-TSPMLCWI.js → chunk-OB4FBZXJ.js} +5 -5
  109. package/{chunk-LYD6C7OU.js → chunk-OJSJJKHF.js} +6 -6
  110. package/{chunk-M4SFKP5L.js → chunk-OKAXQFON.js} +3 -3
  111. package/{chunk-CD3RU7XL.js → chunk-OKH74FML.js} +121 -14
  112. package/{chunk-U2HBB7RS.js → chunk-OOV5JN25.js} +130 -30
  113. package/{chunk-ZH3KXFHS.js → chunk-OOVOAG4Q.js} +1 -1
  114. package/chunk-OQFOE4SJ.js +405 -0
  115. package/{chunk-M3JEW6N6.js → chunk-OYUMJMC5.js} +15 -0
  116. package/chunk-P27E22MA.js +203 -0
  117. package/{chunk-SRCCSTIM.js → chunk-P4R5KXU7.js} +4 -4
  118. package/{chunk-FJ23FZXF.js → chunk-PHREU2KZ.js} +5 -3
  119. package/{chunk-HSSBDZLD.js → chunk-PIVTQRX6.js} +43 -13
  120. package/{chunk-XFXFPUO7.js → chunk-PJL7OJRC.js} +13 -39
  121. package/{chunk-RRDRQOEC.js → chunk-PNLDLUMO.js} +276 -303
  122. package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
  123. package/{chunk-HHFGE2WF.js → chunk-QGFLVQ6E.js} +5 -5
  124. package/{chunk-EGHP7KOY.js → chunk-QONAOHVW.js} +38 -29
  125. package/chunk-R3FZHW4Q.js +103 -0
  126. package/{chunk-ZYKJBRZ3.js → chunk-R3MV2GII.js} +1 -47
  127. package/chunk-R72QWIFO.js +50 -0
  128. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  129. package/{chunk-ILHQ2AXT.js → chunk-RIWKZT7E.js} +36 -8
  130. package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
  131. package/{chunk-45CAVC35.js → chunk-S7H4KTMB.js} +2568 -337
  132. package/{chunk-OJ45MEEI.js → chunk-SA356NGW.js} +1 -1
  133. package/{chunk-F6Z6ZCUV.js → chunk-SCAC3NM5.js} +3 -3
  134. package/{chunk-YVFH2MFB.js → chunk-SLUN7W6S.js} +7 -7
  135. package/chunk-SQL7YNED.js +650 -0
  136. package/chunk-SR4FE5VD.js +9 -0
  137. package/{chunk-HF7BLF3F.js → chunk-SSOR2EDT.js} +107 -104
  138. package/chunk-TRRXYFTR.js +46 -0
  139. package/{chunk-3QIYD3VM.js → chunk-TUOHSUK5.js} +20068 -18402
  140. package/chunk-TYJCIA2O.js +835 -0
  141. package/{chunk-S2NTVGA2.js → chunk-U35UUM5K.js} +2 -1
  142. package/{chunk-GAYNXB6T.js → chunk-U3BUWDUP.js} +1031 -2155
  143. package/{chunk-BP5ZJ6B4.js → chunk-U6QNVOR5.js} +1 -1
  144. package/{chunk-UAIHKQIA.js → chunk-U6RD332P.js} +18 -2
  145. package/chunk-UAF5VQCE.js +77 -0
  146. package/{chunk-TQEKUOTI.js → chunk-UFGUJ2IH.js} +12 -12
  147. package/{chunk-VMJVAJ6W.js → chunk-UP7KBWLE.js} +109 -33
  148. package/{chunk-2X7WFDT6.js → chunk-UUCYUN6Y.js} +1 -1
  149. package/{chunk-5YMA6DDZ.js → chunk-UZKBVQUX.js} +1 -1
  150. package/chunk-V5TI7HJH.js +133 -0
  151. package/{chunk-WFGNWWJI.js → chunk-VH7UO6E5.js} +252 -114
  152. package/{chunk-MNEZUL5S.js → chunk-VJFDG3ZG.js} +63 -94
  153. package/{chunk-G7IUT2V3.js → chunk-WC3J5SL2.js} +635 -350
  154. package/{chunk-HXB4VDGK.js → chunk-WD5547ZF.js} +33 -30
  155. package/chunk-WDWZPASX.js +29 -0
  156. package/{chunk-4ZGPHFLE.js → chunk-WS36XPJD.js} +2 -2
  157. package/{chunk-6QHKRARD.js → chunk-WSLL7VV4.js} +29 -5
  158. package/chunk-XRGBJHZX.js +136 -0
  159. package/{chunk-MZG5CETE.js → chunk-Y2KWJTOZ.js} +4 -4
  160. package/{dialogUsageCommand-W2WCSGKF.js → chunk-Y2TCTNUD.js} +27 -20
  161. package/chunk-YJPK35HB.js +175 -0
  162. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  163. package/{chunk-547ENH5T.js → chunk-YN23INFZ.js} +4 -4
  164. package/{chunk-4QYJPWHH.js → chunk-YXK3GJF5.js} +232 -10
  165. package/{chunk-MJI3UAXN.js → chunk-Z2OWAYMI.js} +77 -51
  166. package/{chunk-7Z6EW7AH.js → chunk-ZTHAJU3O.js} +106 -14
  167. package/{chunk-YFLVRVYK.js → chunk-ZYPXOQS2.js} +1 -1
  168. package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-BXHQ3PXP.js} +9 -9
  169. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
  170. package/cliAuthorityBrokerProcess-5ZFBTHLB.js +22 -0
  171. package/cliLocalAgentRecordReader-47PXMHPH.js +104 -0
  172. package/{commandRegistry-FVYPE2IN.js → commandRegistry-CTMPAQH2.js} +111 -162
  173. package/{contentThunks-GNFPG32S.js → contentThunks-CAHIIZO5.js} +38 -36
  174. package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-WDOI5VD7.js} +3 -3
  175. package/{createAgentAutomationAction-PB4QIFQ4.js → createAgentAutomationAction-M25XZSPD.js} +38 -36
  176. package/{createDialogAction-EVTOPY7A.js → createDialogAction-4SN7FKI7.js} +39 -37
  177. package/{createPageAction-2UYF2IDZ.js → createPageAction-N7QPDN3M.js} +43 -41
  178. package/{db-M7FU2GNK.js → db-VR74ADGC.js} +7 -2
  179. package/{dbSlice-XRUZOGSU.js → dbSlice-RWPSVHBC.js} +12 -11
  180. package/{deleteFile-6URDHYRB.js → deleteFile-ECU6FU5C.js} +15 -7
  181. package/{dialogCommands-6SZD4TYP.js → dialogCommands-BBHWCKDP.js} +69 -53
  182. package/dialogMessageRecord-OAV77LT7.js +7 -0
  183. package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-IASQGEMW.js} +11 -11
  184. package/{dialogSlice-5EQ2A6LY.js → dialogSlice-JI3J22RV.js} +39 -37
  185. package/dialogTraceCommand-EW2KK6A4.js +961 -0
  186. package/dialogUsageCommand-WJ3U6KZU.js +27 -0
  187. package/{docCreateCommands-25E6PGN3.js → docCreateCommands-QSX3X5U4.js} +57 -46
  188. package/{docDeleteCommands-F7ZVGEHW.js → docDeleteCommands-63JBG2HQ.js} +59 -48
  189. package/{docReadCommands-JY2E5XEN.js → docReadCommands-CQFKRQUI.js} +57 -46
  190. package/{docStore-OKKIKLT3.js → docStore-XLBKGGNM.js} +14 -13
  191. package/{docUpdateCommands-OZ4CUSIQ.js → docUpdateCommands-534LUK25.js} +57 -46
  192. package/ebookDownloaderAgentCommand-DYSKF5ZY.js +677 -0
  193. package/fetchMessages-TQEUZD7H.js +1 -1
  194. package/{getPricing-LF5C4XSI.js → getPricing-5BLZRPTM.js} +4 -4
  195. package/{handleSendMessageAction-LNT7SZND.js → handleSendMessageAction-Q2VMEVOR.js} +127 -81
  196. package/{hostCredentialCreate-XUU2CSHI.js → hostCredentialCreate-C57T7YPE.js} +127 -109
  197. package/index.js +23 -11
  198. package/{localDialogRead-CCOCVGAP.js → localDialogRead-BJJT3TF5.js} +1 -1
  199. package/{localRuntimeAdapter-IBSTMSX7.js → localRuntimeAdapter-OALZPFZU.js} +134 -115
  200. package/localRuntimeAuthority-UF2DAQ3F.js +28 -0
  201. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-ZJFGNHML.js} +1 -1
  202. package/{machineCommands-HSQHDHOT.js → machineCommands-N6IVWRZT.js} +262 -325
  203. package/machineWsRunDispatch-PDWYB33B.js +209 -0
  204. package/markdownToSlate-PXYAIBVL.js +8 -0
  205. package/mcpLocalAuthorizeCommand-KYI4EGF5.js +110 -0
  206. package/{memberThunks-7Y3OYSJQ.js → memberThunks-43B7UYC5.js} +21 -16
  207. package/{models-H5NNZRLH.js → models-ZX2BYIMB.js} +2 -2
  208. package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
  209. package/package.json +2 -1
  210. package/{projectArchive-FQO654Z3.js → projectArchive-TJNW5DLM.js} +46 -44
  211. package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-NTJUINI6.js} +36 -17
  212. package/{providerRegistry-ZI2KORJ7.js → providerRegistry-W45SLUV6.js} +6 -6
  213. package/{read-TYMBGEXO.js → read-KG6INYUT.js} +13 -7
  214. package/{readDocTool-SKQVHBLO.js → readDocTool-N3GA52JR.js} +1 -1
  215. package/{readlineWorkspace-7U272DSA.js → readlineWorkspace-PJZJVGA5.js} +7486 -4492
  216. package/rememberExplicit-CPAPONSI.js +15 -0
  217. package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-EEVSOQOJ.js} +18 -17
  218. package/{runAgentClientLoop-AF4JQIJ7.js → runAgentClientLoop-3VC5TCDW.js} +107 -76
  219. package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-V3M3JTUV.js} +14 -11
  220. package/{secretCommands-KZWBZIYS.js → secretCommands-KVVZS7A6.js} +3 -3
  221. package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-DNO5POHA.js} +15 -14
  222. package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-QABBEO4C.js} +18 -17
  223. package/{settingThunks-ZRGWVGZD.js → settingThunks-DVKG4X4S.js} +181 -66
  224. package/{skillDiscovery-BHHPCUHZ.js → skillDiscovery-ZMJH36AK.js} +4 -3
  225. package/{spaceCommands-5VNWMDBE.js → spaceCommands-AGGZXPY3.js} +235 -87
  226. package/{streamAgentChatTurn-YSPEFY4K.js → streamAgentChatTurn-4GTLL2OF.js} +242 -169
  227. package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-KYWJSGOO.js} +16 -15
  228. package/{tableCommands-FTAOCBTX.js → tableCommands-EFA754RE.js} +7 -4
  229. package/{toolApiClient-OGQEBQVX.js → toolApiClient-N5PYW2R3.js} +8 -6
  230. package/{tools-M35PTIFB.js → tools-5AGPOPLW.js} +69 -65
  231. package/{tuiRestart-2IL37YIB.js → tuiRestart-77E7PL4R.js} +11 -10
  232. package/{tuiSummaryLlmCaller-W2QN4VAC.js → tuiSummaryLlmCaller-HROLGN4F.js} +16 -15
  233. package/{updateCommands-CPATDG6J.js → updateCommands-GJGRS6JK.js} +3 -3
  234. package/{updateDialogTitleAction-IMIRJRQQ.js → updateDialogTitleAction-5OSEDGRK.js} +40 -38
  235. package/{usageCommand-2BF74MKF.js → usageCommand-WI6SQOPB.js} +2 -2
  236. package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-WQRLLZAT.js} +3 -3
  237. package/webapi-QVV65DQF.js +2487 -0
  238. package/{windowsSelfUpdate-ZFD6J5HF.js → windowsSelfUpdate-C7LGVWYX.js} +2 -2
  239. package/workContext-Y3ADAPZU.js +14 -0
  240. package/workContextAccess-VU5I4LKZ.js +11 -0
  241. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  242. package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-P2SJVV3S.js} +2 -2
  243. package/agentRecordCommands-IZYUVHME.js +0 -177
  244. package/agentRunCommand-QM7ETUTX.js +0 -209
  245. package/chunk-2YGBI2XB.js +0 -30
  246. package/chunk-5ZMIIR23.js +0 -265
  247. package/chunk-5ZUOVCKT.js +0 -32
  248. package/chunk-62HXNQVV.js +0 -134
  249. package/chunk-FJSNBZXR.js +0 -142
  250. package/chunk-FPBJM2BW.js +0 -689
  251. package/chunk-JQZRSXS5.js +0 -90
  252. package/chunk-P2ZLUIW2.js +0 -795
  253. package/chunk-PPJYZRSQ.js +0 -160
  254. package/chunk-TUSTONB3.js +0 -81
  255. package/chunk-ZXF6D3I6.js +0 -359
  256. package/cliLocalAgentRecordReader-H3HYQRRR.js +0 -91
  257. package/lib-OT5OTXRU.js +0 -21046
  258. package/localRuntimeAuthority-IBJAT62G.js +0 -16
  259. package/machineWsRunDispatch-L6H7J66T.js +0 -192
  260. package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
@@ -1,4 +1,6 @@
1
1
  import {
2
+ GEMINI_NEON_SERVICE_TIER_MULTIPLIERS,
3
+ GEMINI_NEON_STANDARD_PRICE_USD,
2
4
  GMI_CHAT_COMPLETIONS_URL,
3
5
  PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
4
6
  PLATFORM_HOSTED_KIMI_PROVIDER,
@@ -10,7 +12,7 @@ import {
10
12
  resolvePlatformEffectiveModel,
11
13
  toCnyCredits,
12
14
  zaiModels
13
- } from "./chunk-OBSEKCVK.js";
15
+ } from "./chunk-JPXACKSW.js";
14
16
 
15
17
  // packages/integrations/qwen/models.ts
16
18
  var qwenModels = [
@@ -2649,6 +2651,31 @@ var googleModels = [
2649
2651
  cachingWrite: 0.8,
2650
2652
  cachingRead: 0.8
2651
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 }
2652
2679
  }
2653
2680
  ];
2654
2681
 
@@ -2708,6 +2735,26 @@ var GPT_6_ASTRA_LONG_CONTEXT_PRICE = {
2708
2735
  output: 600,
2709
2736
  inputCacheHit: 16
2710
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
+ };
2711
2758
  var openAIModels = [
2712
2759
  {
2713
2760
  name: "gpt-5.5",
@@ -2779,6 +2826,44 @@ var openAIModels = [
2779
2826
  supportsReasoningEffort: true,
2780
2827
  price: GPT_5_6_LUNA_PRICE
2781
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
+ },
2782
2867
  {
2783
2868
  name: "gpt-6-astra",
2784
2869
  displayName: "GPT-6 Astra",
@@ -3027,9 +3112,21 @@ function getCachedOpenRouterModelReasoning(modelId) {
3027
3112
  var GATEWAY_PROVIDERS = /* @__PURE__ */ new Set(["openrouter", "nolo"]);
3028
3113
  var THINKING_MECHANISM_PROVIDERS = /* @__PURE__ */ new Set(["anthropic", "google"]);
3029
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
+ },
3030
3127
  // Platform GPT models accept medium even though the nolo provider fallback
3031
3128
  // describes DeepSeek's narrower low/high/max scale.
3032
- ...["gpt-6.1-sol", "gpt-6.1-terra", "gpt-6-luna", "gpt-6-astra"].map((prefix) => ({
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) => ({
3033
3130
  providers: ["openai"],
3034
3131
  prefix,
3035
3132
  exact: true,
@@ -3179,15 +3276,6 @@ function capabilityFromOpenRouterLive(live) {
3179
3276
  function resolveModelReasoningCapability(provider, model) {
3180
3277
  const p = (provider ?? "").toLowerCase();
3181
3278
  const m = (model ?? "").trim();
3182
- if (THINKING_MECHANISM_PROVIDERS.has(p)) {
3183
- return {
3184
- found: false,
3185
- supportsReasoning: true,
3186
- // 有推理能力,只是走 Thinking 机制而非 effort
3187
- efforts: [],
3188
- source: "provider-map"
3189
- };
3190
- }
3191
3279
  if (m) {
3192
3280
  const override = matchOverride(p, m);
3193
3281
  if (override) {
@@ -3206,6 +3294,15 @@ function resolveModelReasoningCapability(provider, model) {
3206
3294
  };
3207
3295
  }
3208
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
+ }
3209
3306
  const providerEfforts = PROVIDER_REASONING_EFFORT_VALUES[p];
3210
3307
  if (providerEfforts) {
3211
3308
  return {
@@ -3243,12 +3340,18 @@ var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
3243
3340
  "gemini-3.7-flash",
3244
3341
  "gemini-3.8-flash",
3245
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",
3246
3347
  // Legacy Gemini ids — 已从模型注册表下线,保留只为存量 agent 的 reasoning UI。
3247
3348
  "gemini-3.5-flash",
3248
3349
  "gemini-3-flash-preview",
3249
3350
  "gemini-3-pro-preview",
3250
3351
  "gemini-3.1-pro-preview",
3251
3352
  "gpt-5.5-pro",
3353
+ "gpt-6.2-astra",
3354
+ "gpt-6.2-sol",
3252
3355
  "gpt-6-astra",
3253
3356
  "gpt-6.1-sol",
3254
3357
  "gpt-6.1-terra",
@@ -3260,6 +3363,7 @@ var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
3260
3363
  "glm-5.3",
3261
3364
  "glm-5.2",
3262
3365
  "kimi-k3",
3366
+ "kimi-k3.1-pro",
3263
3367
  // Legacy OpenAI catalog ids — still support reasoning UI for agents that
3264
3368
  // were never re-seeded after GPT-5.4 / GPT-5 were retired from the picker.
3265
3369
  "gpt-5.4",
@@ -3313,11 +3417,13 @@ function clampReasoningEffort(effort, provider, model) {
3313
3417
  if (!effort) return void 0;
3314
3418
  const normalized = effort === "off" ? "none" : effort;
3315
3419
  const providerLower = (provider ?? "").toLowerCase();
3316
- if (THINKING_MECHANISM_PROVIDERS.has(providerLower)) {
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) {
3317
3423
  return void 0;
3318
3424
  }
3319
- if (model) {
3320
- const cap = resolveModelReasoningCapabilityWithCache(provider, model);
3425
+ if (modelCapability) {
3426
+ const cap = modelCapability;
3321
3427
  if (cap.found) {
3322
3428
  if (!cap.supportsReasoning || cap.efforts.length === 0) {
3323
3429
  return void 0;
@@ -3626,6 +3732,7 @@ export {
3626
3732
  commandCodeModels,
3627
3733
  opencodeGoModels,
3628
3734
  DEFAULT_REASONING_EFFORT,
3735
+ REASONING_EFFORT_OPTIONS,
3629
3736
  resolveModelReasoningCapability,
3630
3737
  resolveModelReasoningCapabilityWithCache,
3631
3738
  isModelSupportReasoningEffort,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-HNUWUO75.js";
4
4
  import {
5
5
  resolveToolImagePolicy
6
- } from "./chunk-DUUDXSLX.js";
6
+ } from "./chunk-BZLGPM5B.js";
7
7
  import {
8
8
  projectOpenAiToolImages
9
9
  } from "./chunk-X4O7FJF5.js";
@@ -11,11 +11,21 @@ import {
11
11
  getAntigravityUserAgent,
12
12
  readAntigravityProjectId,
13
13
  resolveAntigravityCloudCodeBaseUrl
14
- } from "./chunk-7JGMNKKG.js";
14
+ } from "./chunk-6SOWMEAY.js";
15
15
  import {
16
16
  asOptionalTrimmedString
17
17
  } from "./chunk-G3SUCT4W.js";
18
18
 
19
+ // packages/agent-runtime/types.ts
20
+ var AGENT_PROMPT_IN_MESSAGES = Symbol("agent-prompt-in-messages");
21
+ function hasAssembledAgentPrompt(messages) {
22
+ return messages.some((raw) => {
23
+ if (!raw || typeof raw !== "object") return false;
24
+ const message = raw;
25
+ return message.role === "system" && message[AGENT_PROMPT_IN_MESSAGES] === true;
26
+ });
27
+ }
28
+
19
29
  // packages/core/chat/upstreamErrorBody.ts
20
30
  function parseUpstreamErrorBody(errorText, statusText) {
21
31
  if (errorText) {
@@ -41,24 +51,78 @@ var WIRE_PROFILES = {
41
51
  // Antigravity discovery exposes 3.7 Flash as one tiered wire model.
42
52
  // The UI labels its effort variants (Low/Medium/High), but the literal
43
53
  // -medium/-high ids return 404 from streamGenerateContent.
44
- "gemini-3.7-flash-tiered": { modelEnum: "MODEL_PLACEHOLDER_M301", maxOutputTokens: 65536 },
54
+ "gemini-3.7-flash-tiered": {
55
+ modelEnum: "MODEL_PLACEHOLDER_M301",
56
+ maxOutputTokens: 65536
57
+ },
45
58
  // Gemini 3.8 Flash 沿用 3.7 的 tiered 兼容策略:仓库内暂无 Antigravity discovery
46
59
  // 证据确认 3.8 的 wire modelEnum,禁止虚构,先只声明同档输出上限;enum 待
47
60
  // discovery 证据到位后补齐。
48
61
  "gemini-3.8-flash-tiered": { maxOutputTokens: 65536 },
49
62
  // Discovery (2026-11-16) exposes separate enabled Argon effort variants.
50
- "gemini-4-argon-low": { modelEnum: "MODEL_PLACEHOLDER_M419", maxOutputTokens: 65536 },
51
- "gemini-4-argon-medium": { modelEnum: "MODEL_PLACEHOLDER_M418", maxOutputTokens: 65536 },
52
- "gemini-4-argon-high": { modelEnum: "MODEL_PLACEHOLDER_M417", maxOutputTokens: 65536 },
63
+ "gemini-4-argon-low": {
64
+ modelEnum: "MODEL_PLACEHOLDER_M419",
65
+ maxOutputTokens: 65536
66
+ },
67
+ "gemini-4-argon-medium": {
68
+ modelEnum: "MODEL_PLACEHOLDER_M418",
69
+ maxOutputTokens: 65536
70
+ },
71
+ "gemini-4-argon-high": {
72
+ modelEnum: "MODEL_PLACEHOLDER_M417",
73
+ maxOutputTokens: 65536
74
+ },
75
+ // Discovery (2026-11-17) exposes Carbon effort variants with their own enums and a
76
+ // 262144 output cap (Argon caps at 65536). 裸 gemini-4-carbon 不在 discovery 里,
77
+ // 必须折叠到 effort 变体,否则上游回 404。
78
+ "gemini-4-carbon-low": {
79
+ modelEnum: "MODEL_PLACEHOLDER_M438",
80
+ maxOutputTokens: 262144
81
+ },
82
+ "gemini-4-carbon-medium": {
83
+ modelEnum: "MODEL_PLACEHOLDER_M437",
84
+ maxOutputTokens: 262144
85
+ },
86
+ "gemini-4-carbon-high": {
87
+ modelEnum: "MODEL_PLACEHOLDER_M427",
88
+ maxOutputTokens: 262144
89
+ },
90
+ // Antigravity discovery 暴露 -medium / -high 变体;尚无 modelEnum 证据时不虚构 enum,仅声明 65536 输出上限。
91
+ "gemini-4-hydrogen-medium": { maxOutputTokens: 65536 },
92
+ "gemini-4-hydrogen-high": { maxOutputTokens: 65536 },
93
+ // Gemini 4 Neon(官方 2026-11-18 发布;仅 Google AI Pro / Ultra / Enterprise)**不登记 profile**:
94
+ // 2026-11-19 订阅档账号强制刷新 token 后跑 fetchAvailableModels(UA `antigravity/hub/2.26.0`),
95
+ // 四个 effort 变体 `gemini-4-neon-low` / `-medium` / `-high` / `-xhigh` 全部 enabled,
96
+ // 与官方 Antigravity 模型列表同形;同一批里仍没有裸 `gemini-4-neon`,free-tier 账号
97
+ // 依旧只看到 `gemini-4-neon-disabled`(MODEL_PLACEHOLDER_M536,tagDescription
98
+ // 「currently available to paid Pro and Ultra subscribers」)。
99
+ // 这批 discovery 没有给出四个变体的 modelEnum,也没有给出各自的输出窗口,因此这里**不写
100
+ // WIRE_PROFILES**:不虚构 enum、不复用 disabled 占位符的 262144 窗口、不折叠到
101
+ // Hydrogen / Carbon 冒充。四个变体按 wire id 原样透传,输出上限回落 agentConfig.max_tokens。
53
102
  "gemini-3.6-flash-low": { maxOutputTokens: 65536 },
54
103
  "gemini-3.6-flash-medium": { maxOutputTokens: 65536 },
55
104
  "gemini-3.6-flash-high": { maxOutputTokens: 65536 },
56
105
  // 旧模型 wire 映射保留:存量自定义 agent 仍可能引用(注册表已下线不影响此处)。
57
- "gemini-3.5-flash-extra-low": { modelEnum: "MODEL_PLACEHOLDER_M187", maxOutputTokens: 65536 },
58
- "gemini-3.5-flash-low": { modelEnum: "MODEL_PLACEHOLDER_M20", maxOutputTokens: 65536 },
59
- "gemini-3-flash-agent": { modelEnum: "MODEL_PLACEHOLDER_M132", maxOutputTokens: 65536 },
60
- "gemini-3.1-pro-low": { modelEnum: "MODEL_PLACEHOLDER_M36", maxOutputTokens: 65535 },
61
- "gemini-pro-agent": { modelEnum: "MODEL_PLACEHOLDER_M16", maxOutputTokens: 65535 },
106
+ "gemini-3.5-flash-extra-low": {
107
+ modelEnum: "MODEL_PLACEHOLDER_M187",
108
+ maxOutputTokens: 65536
109
+ },
110
+ "gemini-3.5-flash-low": {
111
+ modelEnum: "MODEL_PLACEHOLDER_M20",
112
+ maxOutputTokens: 65536
113
+ },
114
+ "gemini-3-flash-agent": {
115
+ modelEnum: "MODEL_PLACEHOLDER_M132",
116
+ maxOutputTokens: 65536
117
+ },
118
+ "gemini-3.1-pro-low": {
119
+ modelEnum: "MODEL_PLACEHOLDER_M36",
120
+ maxOutputTokens: 65535
121
+ },
122
+ "gemini-pro-agent": {
123
+ modelEnum: "MODEL_PLACEHOLDER_M16",
124
+ maxOutputTokens: 65535
125
+ },
62
126
  "claude-sonnet-5": { maxOutputTokens: 64e3 },
63
127
  "claude-sonnet-4-6": { maxOutputTokens: 64e3 },
64
128
  "claude-opus-4-6-thinking": { maxOutputTokens: 64e3 },
@@ -72,19 +136,39 @@ function resolveAntigravityWireModel(logicalModelId, reasoningEffort) {
72
136
  const wireModelId = "gemini-3.5-flash-low";
73
137
  return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
74
138
  }
75
- if (lower === "gemini-3.7-flash" || ["gemini-3.7-flash-low", "gemini-3.7-flash-medium", "gemini-3.7-flash-high"].includes(lower)) {
139
+ if (lower === "gemini-3.7-flash" || [
140
+ "gemini-3.7-flash-low",
141
+ "gemini-3.7-flash-medium",
142
+ "gemini-3.7-flash-high"
143
+ ].includes(lower)) {
76
144
  const wireModelId = "gemini-3.7-flash-tiered";
77
145
  return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
78
146
  }
79
- if (lower === "gemini-3.8-flash" || ["gemini-3.8-flash-low", "gemini-3.8-flash-medium", "gemini-3.8-flash-high"].includes(lower)) {
147
+ if (lower === "gemini-3.8-flash" || [
148
+ "gemini-3.8-flash-low",
149
+ "gemini-3.8-flash-medium",
150
+ "gemini-3.8-flash-high"
151
+ ].includes(lower)) {
80
152
  const wireModelId = "gemini-3.8-flash-tiered";
81
153
  return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
82
154
  }
83
- const argonVariant = /^gemini-4-argon-(low|medium|high)$/.exec(lower);
84
- if (lower === "gemini-4-argon" || argonVariant) {
155
+ const gemini4 = /^gemini-4-(argon|carbon)(?:-(low|medium|high))?$/.exec(
156
+ lower
157
+ );
158
+ if (gemini4) {
159
+ const family = gemini4[1] ?? "argon";
160
+ const explicitEffort = gemini4[2];
161
+ const effort = reasoningEffort?.trim().toLowerCase();
162
+ const selected = explicitEffort ?? (effort === "low" || effort === "high" ? effort : "medium");
163
+ const wireModelId = `gemini-4-${family}-${selected}`;
164
+ return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
165
+ }
166
+ const hydrogen = /^gemini-4-hydrogen(?:-(medium|high))?$/.exec(lower);
167
+ if (hydrogen) {
168
+ const explicitEffort = hydrogen[1];
85
169
  const effort = reasoningEffort?.trim().toLowerCase();
86
- const selected = argonVariant?.[1] ?? (effort === "low" || effort === "high" ? effort : "medium");
87
- const wireModelId = `gemini-4-argon-${selected}`;
170
+ const selected = explicitEffort ?? (effort === "high" ? "high" : "medium");
171
+ const wireModelId = `gemini-4-hydrogen-${selected}`;
88
172
  return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
89
173
  }
90
174
  if (lower === "gemini-3.6-flash") {
@@ -605,10 +689,13 @@ function sanitizeGeminiSchemaNodeInner(src, out, seen) {
605
689
  const branchRequired = Array.isArray(sanitized.required) ? sanitized.required : [];
606
690
  requiredIntersection = requiredIntersection === void 0 ? [...branchRequired] : requiredIntersection.filter((r) => branchRequired.includes(r));
607
691
  }
608
- out.properties = {
692
+ const combinedProperties = {
609
693
  ...out.properties ?? {},
610
694
  ...mergedProperties
611
695
  };
696
+ out.properties = Object.fromEntries(
697
+ Object.keys(combinedProperties).sort().map((key) => [key, combinedProperties[key]])
698
+ );
612
699
  if (requiredIntersection !== void 0 && requiredIntersection.length > 0) {
613
700
  out.required = requiredIntersection;
614
701
  }
@@ -636,10 +723,13 @@ function sanitizeGeminiSchemaNodeInner(src, out, seen) {
636
723
  for (const branch of src.allOf) {
637
724
  const sanitized = sanitizeGeminiSchemaNode(branch, seen);
638
725
  if (out.type === void 0 || out.type === "object" || out.properties || sanitized.properties) {
639
- out.properties = {
726
+ const merged = {
640
727
  ...out.properties ?? {},
641
728
  ...sanitized.properties ?? {}
642
729
  };
730
+ out.properties = Object.fromEntries(
731
+ Object.keys(merged).sort().map((key) => [key, merged[key]])
732
+ );
643
733
  }
644
734
  if (Array.isArray(sanitized.required)) {
645
735
  out.required = [
@@ -653,11 +743,10 @@ function sanitizeGeminiSchemaNodeInner(src, out, seen) {
653
743
  if (typeof out.type !== "string") out.type = "object";
654
744
  }
655
745
  if (src.properties && typeof src.properties === "object") {
746
+ const rawProperties = src.properties;
656
747
  const properties = {};
657
- for (const [key, value] of Object.entries(
658
- src.properties
659
- )) {
660
- properties[key] = sanitizeGeminiSchemaNode(value, seen);
748
+ for (const key of Object.keys(rawProperties).sort()) {
749
+ properties[key] = sanitizeGeminiSchemaNode(rawProperties[key], seen);
661
750
  }
662
751
  out.properties = properties;
663
752
  if (typeof out.type !== "string") out.type = "object";
@@ -703,6 +792,7 @@ function convertOpenAiToolsToGemini(tools) {
703
792
  });
704
793
  }
705
794
  if (declarations.length === 0) return void 0;
795
+ declarations.sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
706
796
  return [{ functionDeclarations: declarations }];
707
797
  }
708
798
  function createGeminiAccumulatorState() {
@@ -718,19 +808,25 @@ function applyGeminiChunk(chunk, state, options) {
718
808
  const response = "response" in chunk && chunk.response && typeof chunk.response === "object" ? chunk.response : chunk;
719
809
  if ("usageMetadata" in response && response.usageMetadata && typeof response.usageMetadata === "object") {
720
810
  const meta = response.usageMetadata;
721
- const prompt = typeof meta.promptTokenCount === "number" ? meta.promptTokenCount : 0;
811
+ const hasPromptTokenCount = typeof meta.promptTokenCount === "number" && Number.isFinite(meta.promptTokenCount);
812
+ const hasCachedContentTokenCount = typeof meta.cachedContentTokenCount === "number" && Number.isFinite(meta.cachedContentTokenCount);
813
+ const prompt = hasPromptTokenCount ? meta.promptTokenCount : 0;
722
814
  const candidates2 = typeof meta.candidatesTokenCount === "number" ? meta.candidatesTokenCount : 0;
723
815
  const total = typeof meta.totalTokenCount === "number" ? meta.totalTokenCount : prompt + candidates2;
724
- const cached = typeof meta.cachedContentTokenCount === "number" && Number.isFinite(meta.cachedContentTokenCount) ? (
816
+ const clampedPrompt = Math.max(0, Math.floor(prompt));
817
+ const cached = hasCachedContentTokenCount ? (
725
818
  // cached ⊆ prompt;对畸形上游防御性钳位,避免 cache_read > input 破坏归一化与计费
726
- Math.min(Math.max(0, Math.floor(meta.cachedContentTokenCount)), prompt)
819
+ Math.min(
820
+ Math.max(0, Math.floor(meta.cachedContentTokenCount)),
821
+ clampedPrompt
822
+ )
727
823
  ) : 0;
728
824
  const thoughts = typeof meta.thoughtsTokenCount === "number" ? meta.thoughtsTokenCount : Array.isArray(meta.candidatesTokensDetails) && typeof meta.candidatesTokensDetails[0]?.tokensCount === "number" ? meta.candidatesTokensDetails[0].tokensCount : void 0;
729
825
  state.usage = {
730
826
  prompt_tokens: prompt,
731
827
  completion_tokens: candidates2,
732
828
  total_tokens: total,
733
- ...cached > 0 ? { cache_read_input_tokens: cached } : {},
829
+ ...hasPromptTokenCount || hasCachedContentTokenCount ? { cache_read_input_tokens: cached } : {},
734
830
  ...thoughts !== void 0 ? {
735
831
  completion_tokens_details: {
736
832
  reasoning_tokens: thoughts
@@ -837,7 +933,7 @@ function buildGeminiGenerateContentRequest(args) {
837
933
  maxImagesPerRequest: toolImagePolicy.maxImagesPerRequest
838
934
  }
839
935
  );
840
- const request = { contents };
936
+ const request = {};
841
937
  if (systemTexts.length > 0) {
842
938
  request.systemInstruction = {
843
939
  role: "user",
@@ -849,6 +945,7 @@ function buildGeminiGenerateContentRequest(args) {
849
945
  request.tools = toolsResult;
850
946
  request.toolConfig = { functionCallingConfig: { mode: "AUTO" } };
851
947
  }
948
+ request.contents = contents;
852
949
  const generationConfig = {};
853
950
  if (typeof args.maxTokens === "number" && args.maxTokens > 0) {
854
951
  generationConfig.maxOutputTokens = args.maxTokens;
@@ -916,8 +1013,8 @@ function buildCloudCodeAssistPayload(args) {
916
1013
  throw new Error("Antigravity Cloud Code Assist request has no user/model contents.");
917
1014
  }
918
1015
  const prompt = args.agentConfig.prompt?.trim();
919
- if (prompt) systemTexts.unshift(prompt);
920
- const request = { contents };
1016
+ if (prompt && !hasAssembledAgentPrompt(rawMessages)) systemTexts.unshift(prompt);
1017
+ const request = {};
921
1018
  if (systemTexts.length > 0) {
922
1019
  request.systemInstruction = {
923
1020
  role: "user",
@@ -931,6 +1028,7 @@ function buildCloudCodeAssistPayload(args) {
931
1028
  request.tools = tools;
932
1029
  request.toolConfig = { functionCallingConfig: { mode: "AUTO" } };
933
1030
  }
1031
+ request.contents = contents;
934
1032
  const generationConfig = {};
935
1033
  if (profile?.maxOutputTokens) {
936
1034
  generationConfig.maxOutputTokens = profile.maxOutputTokens;
@@ -1199,6 +1297,8 @@ function buildDevinOAuthCredential(token, now = Date.now()) {
1199
1297
  }
1200
1298
 
1201
1299
  export {
1300
+ AGENT_PROMPT_IN_MESSAGES,
1301
+ hasAssembledAgentPrompt,
1202
1302
  parseSseDataLineJson,
1203
1303
  parseSseDataLineObject,
1204
1304
  parseUpstreamErrorBody,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  t
3
- } from "./chunk-262R3XNN.js";
3
+ } from "./chunk-FEIVARWR.js";
4
4
 
5
5
  // packages/cli/windowsSelfUpdate.ts
6
6
  import { spawn } from "node:child_process";