nolo-cli 0.259.0-alpha.1 → 0.261.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 (320) hide show
  1. package/README.md +1 -1
  2. package/{_executeModel-MTM4BJK3.js → _executeModel-PODMRXJJ.js} +97 -83
  3. package/accountResolver-NGICIMEE.js +1 -1
  4. package/{action-C6IQAKN4.js → action-NJTYNXXR.js} +12 -10
  5. package/{addContentAction-53364YDW.js → addContentAction-RUPXLROG.js} +14 -13
  6. package/{addDialogAgentAction-U5DD5EN5.js → addDialogAgentAction-57EJ2UBC.js} +20 -24
  7. package/{agentDeleteCommand-53NN3VSK.js → agentDeleteCommand-DRFCOTYP.js} +185 -147
  8. package/{agentEmailCommands-KOGGIT6I.js → agentEmailCommands-FHENHUBF.js} +143 -127
  9. package/{agentGrantCommands-L6O2HVJI.js → agentGrantCommands-BMVKNYIY.js} +9 -6
  10. package/{agentListCommands-62UYUQDI.js → agentListCommands-W66W5K3V.js} +88 -69
  11. package/{agentMachineCommands-W6TNJXEA.js → agentMachineCommands-C3BUBCXU.js} +69 -60
  12. package/{agentProviderCommands-QLTABYR7.js → agentProviderCommands-VIWKP7DM.js} +11 -8
  13. package/{agentPullCommand-2EYJ5ENC.js → agentPullCommand-5SNSXOY7.js} +10 -7
  14. package/agentRecordCommands-DYMHWTID.js +210 -0
  15. package/agentRun-QVFG3CI4.js +250 -0
  16. package/agentRunCommand-YV4V5HSL.js +248 -0
  17. package/{agentRunControl-LXMADX3N.js → agentRunControl-RGBHKPKJ.js} +19 -12
  18. package/{agentRuntimeLocal-YGNJMQW3.js → agentRuntimeLocal-LVEMOYS2.js} +62 -49
  19. package/{agentSlice-3HHYUQLM.js → agentSlice-OJCM7OUX.js} +15 -18
  20. package/appConfigCommands-ZUXQLE7L.js +417 -0
  21. package/{appDeleteCommands-5COJ6CSG.js → appDeleteCommands-L5UKUMXY.js} +68 -58
  22. package/{appDeployCommands-3JPAT3XO.js → appDeployCommands-KX2BRQUW.js} +74 -59
  23. package/{appDeployStatusCommands-RHZKF3G4.js → appDeployStatusCommands-7LHRSWW7.js} +68 -58
  24. package/{appGetCommands-73DXOAQW.js → appGetCommands-F7SDFCUK.js} +74 -58
  25. package/{appListCommands-HD5LOQ3G.js → appListCommands-U4NJKSMZ.js} +74 -58
  26. package/appMigrateCommands-JAPOLYSW.js +230 -0
  27. package/appSourceCommands-TLXPWXUH.js +279 -0
  28. package/authCommand-AU3GZBZ2.js +65 -0
  29. package/{authCommands-T5FODCEG.js → authCommands-JKBWMUQ4.js} +20 -17
  30. package/{builtinSkillRegistry-EDHD2UHU.js → builtinSkillRegistry-6XUWMAV5.js} +8 -6
  31. package/{chromeOpsCommands-3SSTDFRF.js → chromeOpsCommands-F47WYQWF.js} +68 -18
  32. package/{chunk-5YS6QHGT.js → chunk-2FGFY72B.js} +9 -9
  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-7OVOZRZF.js → chunk-3B7OTHDW.js} +23 -379
  39. package/{chunk-DNNPARJK.js → chunk-3QMN3T6L.js} +50 -37
  40. package/{chunk-DMPZMYH4.js → chunk-3R4AYHJR.js} +13 -1
  41. package/{chunk-XNNBXUEM.js → chunk-3TII7WCF.js} +5 -5
  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-KZ4A7EIV.js → chunk-56OAS5RZ.js} +1 -1
  47. package/{chunk-KQHEGELM.js → chunk-63G7JWEA.js} +16 -6
  48. package/{chunk-4EACJPZI.js → chunk-6BBXJGIQ.js} +51 -42
  49. package/chunk-72VWN4VK.js +51 -0
  50. package/chunk-7LR2IFUH.js +100 -0
  51. package/{chunk-S73EPYNC.js → chunk-7LS5ATRP.js} +20 -6
  52. package/{chunk-XPETQ4MR.js → chunk-7X4BFUJV.js} +24 -10
  53. package/{chunk-KHYSFS3W.js → chunk-A454UXB6.js} +148 -73
  54. package/chunk-A4O76A6V.js +432 -0
  55. package/chunk-AMNZPQCY.js +635 -0
  56. package/{chunk-4MXYCQBS.js → chunk-AQNWWJLH.js} +2 -56
  57. package/{chunk-LHCGKAFO.js → chunk-BKP325XS.js} +184 -112
  58. package/{chunk-PENRYZ4D.js → chunk-BPB3T5EU.js} +4 -7
  59. package/{chunk-U6QNVOR5.js → chunk-BUGLH2A7.js} +130 -6
  60. package/{chunk-2JHGUL5K.js → chunk-BVYHE6QD.js} +2 -2
  61. package/{chunk-KXOPLLFP.js → chunk-CA7LGAHV.js} +69 -9
  62. package/{chunk-2FZVXOFX.js → chunk-CEIWXKHP.js} +112 -200
  63. package/{chunk-Y2TCTNUD.js → chunk-CK2LMTYO.js} +4 -4
  64. package/{chunk-AIFQKNPP.js → chunk-CL33RFD7.js} +1 -1
  65. package/{chunk-57V4PADY.js → chunk-CNYPQYXT.js} +781 -449
  66. package/{chunk-P4R5KXU7.js → chunk-CW6LRDSF.js} +5 -5
  67. package/chunk-D3ONA3FP.js +762 -0
  68. package/{chunk-PIVTQRX6.js → chunk-DDKA6V6X.js} +111 -12
  69. package/chunk-DLXL4NSL.js +1179 -0
  70. package/{chunk-EJQE5HB7.js → chunk-DSBRIUX5.js} +4 -2
  71. package/{chunk-XRGBJHZX.js → chunk-E36V7MPY.js} +9 -5
  72. package/{chunk-4YPH5KRA.js → chunk-EDKMRDET.js} +1 -1
  73. package/{chunk-DBJODIZ6.js → chunk-EQOWWSNQ.js} +19 -27
  74. package/chunk-ER6NTALN.js +34 -0
  75. package/{chunk-L4XST72F.js → chunk-ERCSHBUD.js} +16027 -17392
  76. package/chunk-EUHMI5KG.js +101 -0
  77. package/{chunk-YQLAFJRQ.js → chunk-FBNVJ2TO.js} +1 -1
  78. package/{chunk-Q2EERN52.js → chunk-FF5ZRKW7.js} +12 -7
  79. package/{chunk-6XIE5ZGI.js → chunk-FGFJUFPS.js} +5 -6
  80. package/chunk-FI4DPLR7.js +902 -0
  81. package/{chunk-HDKMVYNJ.js → chunk-FNLT7NKG.js} +7 -11
  82. package/{chunk-JCQ3WCQ3.js → chunk-FOC4TORM.js} +69 -3
  83. package/chunk-FP46RAJQ.js +58 -0
  84. package/{chunk-JPXACKSW.js → chunk-G22P2J7O.js} +30 -81
  85. package/{chunk-7WHCIA5V.js → chunk-G5IAIGGD.js} +3 -8
  86. package/{chunk-FZENZCIA.js → chunk-GEC4CHS2.js} +19 -12
  87. package/chunk-GF4LYNNZ.js +25 -0
  88. package/{chunk-IYLUK67R.js → chunk-GH6SS2DZ.js} +25 -8
  89. package/chunk-HAZ6UVH4.js +368 -0
  90. package/{chunk-OKAXQFON.js → chunk-HB4J5HA6.js} +4 -4
  91. package/{chunk-324FWHUA.js → chunk-HHXF57CL.js} +12 -3
  92. package/chunk-HJTI7RZV.js +94 -0
  93. package/{chunk-HQUGB2HM.js → chunk-HMFKYZKP.js} +62 -50
  94. package/{chunk-Q2MPKE4B.js → chunk-HVRG27HI.js} +76 -26
  95. package/{chunk-46FETNLF.js → chunk-IN4B6Z2D.js} +7 -6
  96. package/chunk-IV6VUVLJ.js +88 -0
  97. package/{chunk-LLUBUHNT.js → chunk-IWWJSSST.js} +5 -9
  98. package/{chunk-7BIJFGKS.js → chunk-J22PFCQN.js} +106 -52
  99. package/chunk-J42X32PV.js +472 -0
  100. package/{chunk-LCBAMY2M.js → chunk-JKVOKKMQ.js} +0 -7
  101. package/{chunk-KT7S7ANZ.js → chunk-JPYOHIHX.js} +9 -9
  102. package/{chunk-R7XWZDOH.js → chunk-JUMQJSQF.js} +1423 -282
  103. package/{chunk-KVMLM5VD.js → chunk-KAHYBAEN.js} +211 -472
  104. package/{chunk-KLMBM6P6.js → chunk-KALCFXQO.js} +2454 -1115
  105. package/chunk-KDDXC2IH.js +148 -0
  106. package/chunk-KGKTN2NX.js +25 -0
  107. package/chunk-KGWE224L.js +246 -0
  108. package/{chunk-OYUMJMC5.js → chunk-KSV6T4AH.js} +6 -1
  109. package/{chunk-P27E22MA.js → chunk-L43DGEPZ.js} +1 -1
  110. package/{chunk-5BIDJVNX.js → chunk-L45P4JTE.js} +180 -31
  111. package/chunk-LHCIIUCX.js +222 -0
  112. package/{chunk-CBIGMWMI.js → chunk-LHJB4BXJ.js} +1 -1
  113. package/{chunk-TRRXYFTR.js → chunk-LOFRSJX2.js} +1 -0
  114. package/{chunk-SQL7YNED.js → chunk-LPXBBC32.js} +71 -5
  115. package/{chunk-BIDSIRTS.js → chunk-LTCZOOAM.js} +11 -17
  116. package/chunk-LUTSMSIL.js +425 -0
  117. package/chunk-LXP53WGF.js +168 -0
  118. package/{chunk-2CT2J3O6.js → chunk-M7VNNPVX.js} +2493 -4055
  119. package/chunk-MDAYRIP7.js +1889 -0
  120. package/{chunk-6B2OBX5B.js → chunk-MMXHIHJZ.js} +15 -47
  121. package/{chunk-HPDLPEUG.js → chunk-MPWQI36J.js} +267 -234
  122. package/chunk-MRACVEPZ.js +7 -0
  123. package/{chunk-ZYPXOQS2.js → chunk-MSFKHPA6.js} +1 -1
  124. package/chunk-NHLLXINQ.js +8 -0
  125. package/{chunk-QXTEEEIN.js → chunk-NJCTPWJU.js} +8 -8
  126. package/chunk-NLS7F5DW.js +1697 -0
  127. package/{chunk-FP37ELBT.js → chunk-NTBTVKKB.js} +17 -25
  128. package/{chunk-JLZJL3WC.js → chunk-O77F26YB.js} +370 -39
  129. package/{chunk-LVZVSLKO.js → chunk-O7ZY6SUK.js} +5 -22
  130. package/{chunk-YN23INFZ.js → chunk-OIOMBPCA.js} +23 -2
  131. package/{chunk-CJOOF4L5.js → chunk-OSZNERNW.js} +17 -14
  132. package/{chunk-JZO7KUF3.js → chunk-P4I55ASV.js} +313 -275
  133. package/{chunk-2C5VN7NH.js → chunk-P4XAHM4B.js} +1 -1
  134. package/chunk-PL5RKESU.js +40 -0
  135. package/chunk-Q5FJJ6XI.js +103 -0
  136. package/{chunk-WS36XPJD.js → chunk-Q5IXZF3S.js} +82 -6
  137. package/{createAgentAutomationAction-GRZ6XY7Q.js → chunk-QKM55LP2.js} +3 -160
  138. package/{chunk-WSLL7VV4.js → chunk-QXWXRBOL.js} +9 -9
  139. package/{chunk-MXA54TQM.js → chunk-QZYQ3Y3G.js} +1 -1
  140. package/{chunk-FE7G6DSP.js → chunk-R72QWIFO.js} +14 -4
  141. package/{chunk-5RGU3J7P.js → chunk-REAE2SZK.js} +0 -1
  142. package/chunk-RF576RYE.js +117 -0
  143. package/chunk-RI7SXDJW.js +1317 -0
  144. package/{chunk-FEIVARWR.js → chunk-RIOAPUGV.js} +238 -25
  145. package/{chunk-BZLGPM5B.js → chunk-RNLKWUVY.js} +7 -12
  146. package/{chunk-J7JRCOIW.js → chunk-RWXHGPWJ.js} +1 -1
  147. package/{chunk-J55F3IEZ.js → chunk-SARJZIGR.js} +1 -1
  148. package/chunk-SJFL32RD.js +356 -0
  149. package/{chunk-6SOWMEAY.js → chunk-SR57FDTX.js} +2 -258
  150. package/{chunk-MPGR4ZNR.js → chunk-SRVLHMES.js} +46 -42
  151. package/{chunk-CEKRIR22.js → chunk-SU4NCTW4.js} +1 -1
  152. package/{chunk-RD3QLZQV.js → chunk-SWJRX4M5.js} +324 -2
  153. package/{chunk-R3TUHCSJ.js → chunk-T3Y2NA4H.js} +8 -3
  154. package/{chunk-53W5BXLN.js → chunk-TCOHWKDM.js} +54 -55
  155. package/{chunk-KWNVPY6M.js → chunk-TJXO66M2.js} +8 -5
  156. package/{chunk-QIGQFON2.js → chunk-TXMFSGRY.js} +1 -1
  157. package/{chunk-ADYWV732.js → chunk-U5PSCTMR.js} +264 -177
  158. package/{chunk-UUCYUN6Y.js → chunk-UB7NV7NN.js} +1 -1
  159. package/{chunk-QGFLVQ6E.js → chunk-UBOTXA3Z.js} +4 -14
  160. package/{chunk-6YX2RAQN.js → chunk-UEZL3RBG.js} +89 -164
  161. package/{chunk-NCFKHYDM.js → chunk-UJL23HBL.js} +774 -119
  162. package/chunk-ULPU4C43.js +1710 -0
  163. package/{chunk-UA3QTA2S.js → chunk-VC3MAT33.js} +4442 -2570
  164. package/{chunk-VNHZJEQN.js → chunk-VCESLFF4.js} +3 -3
  165. package/chunk-VOO3YQQP.js +17157 -0
  166. package/{chunk-Y2GWUBNS.js → chunk-VZDSNDUD.js} +279 -149
  167. package/{chunk-6BMTKYAO.js → chunk-W2Z5E2R7.js} +126 -698
  168. package/{chunk-4ZCTKB27.js → chunk-W5GKF5ZW.js} +1 -0
  169. package/chunk-WEEB2JKA.js +443 -0
  170. package/{chunk-NUHQO3RB.js → chunk-WIVVNJUS.js} +1 -1
  171. package/chunk-WMBJDXMY.js +408 -0
  172. package/chunk-WSQLCWLQ.js +201 -0
  173. package/{chunk-OOVOAG4Q.js → chunk-WY6DMHMG.js} +1 -1
  174. package/{chunk-6K32PBRY.js → chunk-XJW6SLBZ.js} +3 -3
  175. package/{chunk-MNFUKRRU.js → chunk-XKNDVHF5.js} +7 -7
  176. package/{chunk-MHKPUGPD.js → chunk-XREMPMNK.js} +20 -4
  177. package/chunk-XT6C2QZW.js +46 -0
  178. package/chunk-XUDXQT7R.js +790 -0
  179. package/{chunk-ZEZC7IIM.js → chunk-YFSM2366.js} +35 -35
  180. package/{chunk-RIWKZT7E.js → chunk-YRPIUIEQ.js} +11 -9
  181. package/{chunk-U35UUM5K.js → chunk-YVOUSIIA.js} +1 -1
  182. package/{chunk-6VEO7Z3Y.js → chunk-Z27AH6A5.js} +6 -6
  183. package/chunk-Z3KTXWWB.js +76 -0
  184. package/{chunk-UWWOWTW2.js → chunk-Z7EP5HDL.js} +1 -1
  185. package/{chunk-YFEK7ACQ.js → chunk-ZB2E724W.js} +4 -4
  186. package/{chunk-YLAHYLDQ.js → chunk-ZC3CMUKU.js} +2 -89
  187. package/{chunk-5P3PPQVP.js → chunk-ZQAADXSF.js} +1 -1
  188. package/{cliAgentConfigHelpers-BXHQ3PXP.js → cliAgentConfigHelpers-BJJEXHSZ.js} +20 -14
  189. package/{cliAuthorityBrokerClient-TFNXJLXL.js → cliAuthorityBrokerClient-3SKOA7OZ.js} +3 -1
  190. package/cliAuthorityBrokerProcess-VIJEKQSX.js +34 -0
  191. package/{cliEnvHelpers-CNMP3RDX.js → cliEnvHelpers-NDMKN4X2.js} +6 -3
  192. package/{cliExecutor-K6FDZTQ2.js → cliExecutor-Z62UBJ5S.js} +12 -6
  193. package/cliLocalAgentRecordReader-KCZS2MZU.js +113 -0
  194. package/cloudAutomationCommands-2WQUGQSW.js +310 -0
  195. package/{commandRegistry-IFYQLPGM.js → commandRegistry-C64JBZJ3.js} +288 -121
  196. package/{contentThunks-QCFCD2X3.js → contentThunks-G3HEIRXC.js} +45 -43
  197. package/{cooldownCommands-WDOI5VD7.js → cooldownCommands-FPAFS7XG.js} +1 -1
  198. package/createAgentAutomationAction-DSBL3X3A.js +172 -0
  199. package/createDialogAction-OHFUHC53.js +86 -0
  200. package/{createPageAction-QCVBMP4C.js → createPageAction-E6JZSZLU.js} +49 -45
  201. package/{db-VR74ADGC.js → db-KTQ3LL2Q.js} +3 -3
  202. package/{dbSlice-RWPSVHBC.js → dbSlice-U3GPLEL3.js} +21 -16
  203. package/deleteDbKey-DRXKWJX5.js +86 -0
  204. package/{dialogCommands-4IEQUALS.js → dialogCommands-4EX2OTIC.js} +80 -66
  205. package/{dialogMessageRecord-OAV77LT7.js → dialogMessageRecord-2HJTEXQX.js} +1 -1
  206. package/dialogNotifyCommand-4SCE2Z2R.js +44 -0
  207. package/dialogPortabilityCommands-ZSFFHRX4.js +3036 -0
  208. package/{dialogSlice-XFYID6KE.js → dialogSlice-PRZCIJCH.js} +43 -42
  209. package/{dialogTraceCommand-Y67NRFCV.js → dialogTraceCommand-RKB76OVX.js} +84 -70
  210. package/{dialogUsageCommand-WJ3U6KZU.js → dialogUsageCommand-BP7HMRYP.js} +7 -4
  211. package/{docCreateCommands-QLRIWRQE.js → docCreateCommands-JGPNGIZ7.js} +68 -59
  212. package/{docDeleteCommands-XPRYA532.js → docDeleteCommands-XRJTNRDH.js} +68 -59
  213. package/{docReadCommands-EXQI7ETH.js → docReadCommands-6GFO4ARS.js} +67 -58
  214. package/{docStore-MWFUKZL2.js → docStore-QRLIWFTU.js} +16 -17
  215. package/{docUpdateCommands-EFBFQV77.js → docUpdateCommands-W2GXMUXW.js} +68 -59
  216. package/{ebookDownloaderAgentCommand-DYSKF5ZY.js → ebookDownloaderAgentCommand-2DHPGEOQ.js} +14 -17
  217. package/{fetchMessages-TQEUZD7H.js → fetchMessages-RGPIYEPZ.js} +2 -2
  218. package/{getPricing-5BLZRPTM.js → getPricing-BK6CUBAE.js} +8 -4
  219. package/{handleSendMessageAction-GG3TR62X.js → handleSendMessageAction-DHGWURJZ.js} +265 -119
  220. package/{hostCredentialCreate-26S6DDJ5.js → hostCredentialCreate-FPUZ7RMI.js} +138 -122
  221. package/index.js +36 -22
  222. package/{keys-RWF7UCB4.js → keys-FXEGMKSG.js} +2 -2
  223. package/localAutomationCommands-ZMU22RQJ.js +198 -0
  224. package/localAutomationRuntime-MU5FGJ3V.js +60 -0
  225. package/{localDialogRead-BJJT3TF5.js → localDialogRead-W2EVXISA.js} +2 -2
  226. package/{localRuntimeAdapter-VREWZWPC.js → localRuntimeAdapter-YBXQBV4G.js} +136 -119
  227. package/localRuntimeAuthority-LDXMEDO5.js +44 -0
  228. package/{localRuntimeDb-ZJFGNHML.js → localRuntimeDb-6TQZDLNU.js} +1 -1
  229. package/{machineCommands-CL5XK5UC.js → machineCommands-57RTUYRV.js} +251 -357
  230. package/{machineInfo-LWHTEBHJ.js → machineInfo-BJIU3WQ5.js} +4 -2
  231. package/machineWsRunDispatch-VBKV3FFE.js +227 -0
  232. package/{mcpLocalAuthorizeCommand-RBXJDE6J.js → mcpLocalAuthorizeCommand-J76SOJVZ.js} +40 -22
  233. package/mcpLocalManageCommands-USETIMHB.js +212 -0
  234. package/{memberThunks-43B7UYC5.js → memberThunks-7UERUEMI.js} +102 -22
  235. package/{memoryCommands-BC6REPQB.js → memoryCommands-N7NHEE55.js} +25 -34
  236. package/{models-ZX2BYIMB.js → models-TOXYINNM.js} +3 -2
  237. package/{offlineMarxistsAgentCommand-XVXUE6G5.js → offlineMarxistsAgentCommand-WZBJBCPZ.js} +16 -22
  238. package/package.json +3 -3
  239. package/parityCommands-LYDLWSLK.js +613 -0
  240. package/{projectArchive-OC63TWTD.js → projectArchive-KCNQDVWJ.js} +49 -45
  241. package/{providerPresetApply-NTJUINI6.js → providerPresetApply-IRJ56XIZ.js} +12 -16
  242. package/{providerRegistry-W45SLUV6.js → providerRegistry-26PAUYH2.js} +3 -13
  243. package/{read-KG6INYUT.js → read-SPSQ6NLR.js} +11 -10
  244. package/{readDocTool-N3GA52JR.js → readDocTool-ENUL2GNL.js} +5 -1
  245. package/{readlineWorkspace-2NO6D6IZ.js → readlineWorkspace-MKS7TAEF.js} +927 -573
  246. package/{rememberExplicit-CPAPONSI.js → rememberExplicit-7KX4HXQC.js} +4 -4
  247. package/remove-TNNDO635.js +32 -0
  248. package/{removeDialogAgentAction-EEVSOQOJ.js → removeDialogAgentAction-POPUZ3WU.js} +22 -26
  249. package/{runAgentClientLoop-U7V32UTD.js → runAgentClientLoop-KVILXQNI.js} +117 -82
  250. package/{runtimeDoctorCommands-V3M3JTUV.js → runtimeDoctorCommands-4J2DP4LZ.js} +23 -16
  251. package/{secretCommands-KVVZS7A6.js → secretCommands-CSTQYB6T.js} +2 -2
  252. package/{setDialogExtraReferencesAction-DNO5POHA.js → setDialogExtraReferencesAction-35THMVBP.js} +16 -17
  253. package/{setPrimaryDialogAgentAction-QABBEO4C.js → setPrimaryDialogAgentAction-WLXBNIG7.js} +23 -27
  254. package/{settingThunks-DVKG4X4S.js → settingThunks-6Y5U5M5N.js} +170 -497
  255. package/{skillDiscovery-5GEGWJ6N.js → skillDiscovery-IUEZZG2B.js} +3 -3
  256. package/{spaceCommands-7QKXKBDQ.js → spaceCommands-LXNJBO2U.js} +293 -58
  257. package/spacePruneCommand-2ITUFYBM.js +233 -0
  258. package/{store-Z53ICFL3.js → store-WSAVTR32.js} +3 -1
  259. package/{streamAgentChatTurn-UAGFOXNJ.js → streamAgentChatTurn-EY6MFKCA.js} +225 -137
  260. package/{switchDialogAgentAction-KYWJSGOO.js → switchDialogAgentAction-TG6BQRDA.js} +19 -23
  261. package/{tableCommands-EFA754RE.js → tableCommands-35G34R4B.js} +28 -49
  262. package/{toolApiClient-N5PYW2R3.js → toolApiClient-MPQIFYXP.js} +15 -4
  263. package/{tools-2Q2LBDUC.js → tools-CSLTRRUR.js} +73 -63
  264. package/{tuiRestart-4QDWLHYZ.js → tuiRestart-ALR4Q3JM.js} +20 -13
  265. package/tuiSummaryLlmCaller-3Y3JEXJK.js +52 -0
  266. package/{updateCommands-GJGRS6JK.js → updateCommands-GHQVP6Z5.js} +13 -8
  267. package/{updateDialogTitleAction-GGNTTI5L.js → updateDialogTitleAction-LFAWF5EW.js} +57 -58
  268. package/{usageCommand-WI6SQOPB.js → usageCommand-5VKW6T4C.js} +6 -8
  269. package/{usageRebuildCommand-WQRLLZAT.js → usageRebuildCommand-VUQETFMW.js} +11 -15
  270. package/{windowsSelfUpdate-C7LGVWYX.js → windowsSelfUpdate-SXSVXK4X.js} +2 -2
  271. package/workContext-ZAW6VXT7.js +18 -0
  272. package/workContextQueryProjection-CACY5VFE.js +23 -0
  273. package/{workloadLifecycle-DYX5ZMAT.js → workloadLifecycle-P2SJVV3S.js} +1 -1
  274. package/agentFavoriteCommands-7LOP3HUD.js +0 -186
  275. package/agentRecordCommands-TPE7NSZ6.js +0 -194
  276. package/agentRunCommand-DMVGBPLI.js +0 -232
  277. package/authCommand-V6EOMZX6.js +0 -79
  278. package/chunk-2MBTWINN.js +0 -89
  279. package/chunk-523DITKR.js +0 -32
  280. package/chunk-BUDVRYES.js +0 -2213
  281. package/chunk-BZMDWGQQ.js +0 -47
  282. package/chunk-GAHJLSDO.js +0 -107
  283. package/chunk-GYX6XTAI.js +0 -84
  284. package/chunk-HNUWUO75.js +0 -93
  285. package/chunk-HSBHS6KT.js +0 -33401
  286. package/chunk-KG27JIG4.js +0 -136
  287. package/chunk-OB4FBZXJ.js +0 -364
  288. package/chunk-OKH74FML.js +0 -3746
  289. package/chunk-OLZBQWZU.js +0 -6
  290. package/chunk-OOV5JN25.js +0 -1317
  291. package/chunk-OQFOE4SJ.js +0 -405
  292. package/chunk-PXYBUFDB.js +0 -53
  293. package/chunk-R3FZHW4Q.js +0 -103
  294. package/chunk-R3MV2GII.js +0 -106
  295. package/chunk-SCAC3NM5.js +0 -11751
  296. package/chunk-SR4FE5VD.js +0 -9
  297. package/chunk-SYTHYBMI.js +0 -3558
  298. package/chunk-UKZX3NHN.js +0 -48
  299. package/chunk-UVLYNWIE.js +0 -74
  300. package/chunk-VQX5JJNI.js +0 -861
  301. package/chunk-X4O7FJF5.js +0 -160
  302. package/chunk-YJPK35HB.js +0 -175
  303. package/chunk-YNIYE47Z.js +0 -105
  304. package/chunk-Z4PCXPUE.js +0 -127
  305. package/chunk-ZR5IVL4N.js +0 -862
  306. package/chunk-ZTHAJU3O.js +0 -2537
  307. package/cliAuthorityBrokerProcess-5ZFBTHLB.js +0 -22
  308. package/cliLocalAgentRecordReader-34UKRBLY.js +0 -104
  309. package/createDialogAction-ZAJERW62.js +0 -82
  310. package/deleteFile-ECU6FU5C.js +0 -55
  311. package/dialogNotifyCommand-IASQGEMW.js +0 -36
  312. package/localRuntimeAuthority-UF2DAQ3F.js +0 -28
  313. package/machineWsRunDispatch-TBVOYOAH.js +0 -209
  314. package/markdownToSlate-PXYAIBVL.js +0 -8
  315. package/tuiSummaryLlmCaller-HROLGN4F.js +0 -45
  316. package/webapi-QVV65DQF.js +0 -2487
  317. package/workContext-Y3ADAPZU.js +0 -14
  318. package/{chunk-USGHJSGO.js → chunk-GX2MFKF3.js} +3 -3
  319. package/{chunk-PHREU2KZ.js → chunk-WX266G2C.js} +0 -0
  320. package/{chunk-DXWGFL2Z.js → chunk-YY7IGJMN.js} +3 -3
@@ -0,0 +1,356 @@
1
+ import {
2
+ selectIdentityToken
3
+ } from "./chunk-SWJRX4M5.js";
4
+ import {
5
+ googleSessionRequestToken,
6
+ isGoogleAuthoritySession
7
+ } from "./chunk-FNLT7NKG.js";
8
+ import {
9
+ isAbortError
10
+ } from "./chunk-7DPNBQSV.js";
11
+ import {
12
+ API_ENDPOINTS
13
+ } from "./chunk-JKVOKKMQ.js";
14
+
15
+ // packages/database/requests.ts
16
+ var TIMEOUT = 5e3;
17
+ var logRequestFailure = (level, message) => {
18
+ if (level === "silent") return;
19
+ if (level === "warn") {
20
+ console.warn(message);
21
+ return;
22
+ }
23
+ if (level === "info") {
24
+ console.info(message);
25
+ return;
26
+ }
27
+ console.error(message);
28
+ };
29
+ var mutationFailureIdentifiers = /* @__PURE__ */ new Set([
30
+ "AUTHORITY_HOME_CONTROLLED",
31
+ "AUTHORITY_MISMATCH",
32
+ "USER_BATCH_AUTHORITY_CONTROLLED",
33
+ "SPACE_OWNER_AGENT_FORBIDDEN",
34
+ "APP_WRITE_FORBIDDEN",
35
+ "INCOMPLETE_APP_PAYLOAD",
36
+ "REVISION_CONFLICT",
37
+ "tombstone_conflict",
38
+ "INVALID_REQUEST",
39
+ "FORBIDDEN",
40
+ "TOKEN_STATS_SERVER_MANAGED",
41
+ "PATCH_PERMISSION_DENIED",
42
+ "WRITE_PERMISSION_DENIED",
43
+ "UNSUPPORTED_OAUTH_PROVIDER",
44
+ "INVALID_AGENT_SKILL_MODE",
45
+ "AUTOMATION_OWNER_AGENT_FORBIDDEN",
46
+ "PROTOCOL_UNAVAILABLE",
47
+ "INVALID_IF_MATCH",
48
+ "provider_model_mismatch"
49
+ ]);
50
+ var DIAGNOSTIC_READ_TIMEOUT_MS = 1200;
51
+ var DIAGNOSTIC_MAX_BYTES = 8 * 1024;
52
+ var readBoundedJson = async (response) => {
53
+ const body = response.body;
54
+ if (!body) return null;
55
+ const reader = body.getReader();
56
+ const deadline = Date.now() + DIAGNOSTIC_READ_TIMEOUT_MS;
57
+ const chunks = [];
58
+ let received = 0;
59
+ try {
60
+ for (; ; ) {
61
+ const remainingMs = deadline - Date.now();
62
+ if (remainingMs <= 0) throw new Error("diagnostic read timed out");
63
+ let timer;
64
+ const timeout = new Promise((_, reject) => {
65
+ timer = setTimeout(() => reject(new Error("diagnostic read timed out")), remainingMs);
66
+ });
67
+ const { done, value } = await Promise.race([reader.read(), timeout]).finally(() => {
68
+ if (timer !== void 0) clearTimeout(timer);
69
+ });
70
+ if (done) break;
71
+ received += value.byteLength;
72
+ if (received > DIAGNOSTIC_MAX_BYTES) throw new Error("diagnostic read too large");
73
+ chunks.push(value);
74
+ }
75
+ } finally {
76
+ void reader.cancel().catch(() => {
77
+ });
78
+ }
79
+ const total = chunks.reduce((sum, chunk) => sum + chunk.byteLength, 0);
80
+ const merged = new Uint8Array(total);
81
+ let offset = 0;
82
+ for (const chunk of chunks) {
83
+ merged.set(chunk, offset);
84
+ offset += chunk.byteLength;
85
+ }
86
+ return JSON.parse(new TextDecoder().decode(merged));
87
+ };
88
+ var describeMutationFailure = async (response) => {
89
+ const status = `HTTP ${response.status}`;
90
+ try {
91
+ const body = await readBoundedJson(response);
92
+ const fields = ["error", "code", "message"].flatMap((field) => {
93
+ const value = body?.[field];
94
+ return typeof value === "string" && mutationFailureIdentifiers.has(value) ? [`${field}=${value}`] : [];
95
+ });
96
+ return fields.length ? `${status} (${fields.join(", ")})` : status;
97
+ } catch {
98
+ return status;
99
+ }
100
+ };
101
+ var noloRequest = async (server, config, state, signal) => {
102
+ const headers = { ...config.headers || { "Content-Type": "application/json" } };
103
+ const token = selectIdentityToken(state) ?? null;
104
+ const requestToken = googleSessionRequestToken(token ?? void 0, server);
105
+ if (requestToken) {
106
+ headers["Authorization"] = `Bearer ${requestToken}`;
107
+ }
108
+ return fetch(server + config.url, {
109
+ method: config.method || "GET",
110
+ headers,
111
+ body: config.body,
112
+ ...isGoogleAuthoritySession(token) ? { credentials: "omit", redirect: "error" } : {},
113
+ signal,
114
+ // 传递 AbortSignal
115
+ ...config.keepalive ? { keepalive: true } : {}
116
+ });
117
+ };
118
+ var noloPatchRequest = async (server, dbKey, updates, state, signal, options) => {
119
+ const failureLogLevel = options?.failureLogLevel ?? "error";
120
+ try {
121
+ const response = await noloRequest(
122
+ server,
123
+ {
124
+ url: `${API_ENDPOINTS.DATABASE}/patch/${dbKey}`,
125
+ method: "PATCH",
126
+ body: JSON.stringify(updates)
127
+ },
128
+ state,
129
+ signal
130
+ );
131
+ if (!response.ok && failureLogLevel !== "silent") {
132
+ logRequestFailure(
133
+ failureLogLevel,
134
+ `PATCH request failed for ${dbKey} on ${server}: ${await describeMutationFailure(response)}`
135
+ );
136
+ }
137
+ return response.ok;
138
+ } catch (error) {
139
+ if (!isAbortError(error)) {
140
+ logRequestFailure(
141
+ failureLogLevel,
142
+ `PATCH request failed for ${dbKey} on ${server}: ${error.message || "Unknown error"}`
143
+ );
144
+ }
145
+ return false;
146
+ }
147
+ };
148
+ var noloWriteRequest = async (server, writeConfig, state, signal, options) => {
149
+ const { data, customKey, userId, indexKeys } = writeConfig;
150
+ const failureLogLevel = options?.failureLogLevel ?? "error";
151
+ try {
152
+ const response = await noloRequest(
153
+ server,
154
+ {
155
+ url: `${API_ENDPOINTS.DATABASE}/write/`,
156
+ method: "POST",
157
+ body: JSON.stringify({ data, customKey, userId, indexKeys })
158
+ },
159
+ state,
160
+ signal
161
+ );
162
+ if (!response.ok && failureLogLevel !== "silent") {
163
+ logRequestFailure(
164
+ failureLogLevel,
165
+ `Write request failed for ${customKey} on ${server}: ${await describeMutationFailure(response)}`
166
+ );
167
+ }
168
+ return response.ok;
169
+ } catch (error) {
170
+ if (!isAbortError(error)) {
171
+ logRequestFailure(
172
+ failureLogLevel,
173
+ `Write request failed for ${customKey} on ${server}: ${error.message || "Unknown error"}`
174
+ );
175
+ }
176
+ return false;
177
+ }
178
+ };
179
+ var rnUploadAdapter = null;
180
+ var xhrUploadRequest = (url, formData, state, onProgress, signal) => new Promise((resolve, reject) => {
181
+ if (signal?.aborted) {
182
+ reject(new DOMException("Upload aborted", "AbortError"));
183
+ return;
184
+ }
185
+ const xhr = new XMLHttpRequest();
186
+ xhr.open("POST", url);
187
+ const token = selectIdentityToken(state) ?? null;
188
+ if (token) {
189
+ xhr.setRequestHeader("Authorization", `Bearer ${token}`);
190
+ }
191
+ const onAbortSignal = () => xhr.abort();
192
+ signal?.addEventListener("abort", onAbortSignal, { once: true });
193
+ const cleanup = () => signal?.removeEventListener("abort", onAbortSignal);
194
+ xhr.upload.onprogress = (event) => {
195
+ if (event.lengthComputable) onProgress(event.loaded, event.total);
196
+ };
197
+ xhr.onload = () => {
198
+ cleanup();
199
+ resolve({ ok: xhr.status >= 200 && xhr.status < 300, status: xhr.status });
200
+ };
201
+ xhr.onerror = () => {
202
+ cleanup();
203
+ reject(new Error("Network error during upload"));
204
+ };
205
+ xhr.onabort = () => {
206
+ cleanup();
207
+ reject(new DOMException("Upload aborted", "AbortError"));
208
+ };
209
+ xhr.send(formData);
210
+ });
211
+ var noloUploadRequest = async (server, uploadConfig, state, signal, onProgress) => {
212
+ const { file, metadata, customKey, userId, ownerType, spaceId } = uploadConfig;
213
+ const googleSession = isGoogleAuthoritySession(selectIdentityToken(state));
214
+ try {
215
+ googleSessionRequestToken(selectIdentityToken(state) ?? void 0, server);
216
+ const isReactNative = typeof navigator !== "undefined" && navigator.product === "ReactNative";
217
+ const isRNFile = (f) => f && typeof f.uri === "string" && typeof f.name === "string" && typeof f.type === "string";
218
+ if (isReactNative && isRNFile(file)) {
219
+ if (!rnUploadAdapter) {
220
+ throw new Error(
221
+ "React Native upload adapter is not registered. Call initRNUploadAdapter() in the RN app entry before uploading files."
222
+ );
223
+ }
224
+ return await rnUploadAdapter(server, uploadConfig, state, signal);
225
+ }
226
+ const formData = new FormData();
227
+ if (isRNFile(file)) {
228
+ formData.append("file", {
229
+ uri: file.uri,
230
+ type: file.type,
231
+ name: file.name
232
+ });
233
+ } else {
234
+ formData.append("file", file);
235
+ }
236
+ formData.append("metadata", JSON.stringify(metadata));
237
+ formData.append("customKey", customKey);
238
+ if (userId) {
239
+ formData.append("userId", userId);
240
+ }
241
+ if (ownerType) {
242
+ formData.append("ownerType", ownerType);
243
+ }
244
+ if (spaceId) {
245
+ formData.append("spaceId", spaceId);
246
+ }
247
+ if (onProgress && !googleSession && typeof XMLHttpRequest !== "undefined") {
248
+ const result = await xhrUploadRequest(
249
+ server + `${API_ENDPOINTS.DATABASE}/upload`,
250
+ formData,
251
+ state,
252
+ onProgress,
253
+ signal
254
+ );
255
+ if (!result.ok) {
256
+ console.error(
257
+ `Upload request failed for ${customKey} on ${server}: HTTP ${result.status}` + (ownerType === "space" ? " (space ownership claim rejected: the Space may not be synced to this server, or you are not a member there)" : "")
258
+ );
259
+ }
260
+ return result.ok;
261
+ }
262
+ const response = await noloRequest(
263
+ server,
264
+ {
265
+ url: `${API_ENDPOINTS.DATABASE}/upload`,
266
+ method: "POST",
267
+ body: formData,
268
+ // Cast to any to avoid TS mismatch with Bun/DOM FormData
269
+ headers: {}
270
+ // 不设置 Content-Type,让浏览器自动处理 multipart/form-data
271
+ },
272
+ state,
273
+ signal
274
+ );
275
+ if (!response.ok) {
276
+ console.error(
277
+ `Upload request failed for ${customKey} on ${server}: HTTP ${response.status}` + (ownerType === "space" ? " (space ownership claim rejected: the Space may not be synced to this server, or you are not a member there)" : "")
278
+ );
279
+ }
280
+ if (response.ok && googleSession && onProgress) onProgress(file.size, file.size);
281
+ return response.ok;
282
+ } catch (error) {
283
+ if (!isAbortError(error)) {
284
+ console.error(
285
+ `Upload request failed for ${customKey} on ${server}: ${error.message || "Unknown error"}`
286
+ );
287
+ }
288
+ return false;
289
+ }
290
+ };
291
+ var syncWithServers = (servers, requestFn, errorMessage, ...requestArgs) => {
292
+ servers.forEach((server) => {
293
+ const abortController = new AbortController();
294
+ const timeoutId = setTimeout(() => {
295
+ abortController.abort();
296
+ }, TIMEOUT);
297
+ requestFn(server, ...requestArgs, abortController.signal).then((success) => {
298
+ clearTimeout(timeoutId);
299
+ if (!success) {
300
+ console.warn(`${errorMessage} ${server}`);
301
+ }
302
+ }).catch((error) => {
303
+ clearTimeout(timeoutId);
304
+ if (!isAbortError(error)) {
305
+ console.error(
306
+ `Unexpected error during sync with ${server}: ${error.message || "Unknown error"}`
307
+ );
308
+ }
309
+ });
310
+ });
311
+ };
312
+ var noloDeleteRequest = async (server, dbKey, options, state, signal) => {
313
+ const { type = "single", force = false } = options;
314
+ try {
315
+ const queryParts = [];
316
+ if (type === "messages") queryParts.push("type=messages");
317
+ else if (type === "table") queryParts.push("type=table");
318
+ if (force) queryParts.push("force=true");
319
+ const query = queryParts.length ? `?${queryParts.join("&")}` : "";
320
+ const url = `${API_ENDPOINTS.DATABASE}/delete/${dbKey}${query}`;
321
+ const response = await noloRequest(
322
+ server,
323
+ {
324
+ url,
325
+ method: "DELETE",
326
+ keepalive: true
327
+ },
328
+ state,
329
+ signal
330
+ );
331
+ if (!response.ok) {
332
+ console.error(
333
+ `DELETE request failed for ${dbKey} on ${server}: HTTP ${response.status}`
334
+ );
335
+ return false;
336
+ }
337
+ return true;
338
+ } catch (error) {
339
+ if (!isAbortError(error)) {
340
+ console.error(
341
+ `DELETE request failed for ${dbKey} on ${server}: ${error.message || "Unknown error"}`
342
+ );
343
+ }
344
+ return false;
345
+ }
346
+ };
347
+
348
+ export {
349
+ TIMEOUT,
350
+ noloRequest,
351
+ noloPatchRequest,
352
+ noloWriteRequest,
353
+ noloUploadRequest,
354
+ syncWithServers,
355
+ noloDeleteRequest
356
+ };
@@ -1,12 +1,3 @@
1
- import {
2
- toErrorMessage
3
- } from "./chunk-HNMXYYJR.js";
4
- import {
5
- trimTrailingSlash
6
- } from "./chunk-LVZVSLKO.js";
7
- import {
8
- asOptionalFiniteNumber
9
- } from "./chunk-WWC7I6TA.js";
10
1
  import {
11
2
  commandCodeModels,
12
3
  kimiCodeModels,
@@ -17,175 +8,17 @@ import {
17
8
  qwenTokenPlanModels,
18
9
  stepfunModels,
19
10
  stepfunStepPlanModels
20
- } from "./chunk-OKH74FML.js";
21
- import {
22
- asOptionalTrimmedString
23
- } from "./chunk-G3SUCT4W.js";
11
+ } from "./chunk-MDAYRIP7.js";
24
12
  import {
25
13
  PLATFORM_HOSTED_DEEPSEEK_FLASH_OFF_PEAK_PRICE,
26
14
  PLATFORM_HOSTED_DEEPSEEK_FLASH_PEAK_PRICE,
27
15
  PLATFORM_HOSTED_DEEPSEEK_PRO_OFF_PEAK_PRICE,
28
16
  PLATFORM_HOSTED_DEEPSEEK_PRO_PEAK_PRICE
29
- } from "./chunk-JPXACKSW.js";
17
+ } from "./chunk-G22P2J7O.js";
30
18
  import {
31
19
  asTrimmedLowercaseString
32
20
  } from "./chunk-QSJ3HFEF.js";
33
21
 
34
- // packages/agent-runtime/antigravityOAuth.ts
35
- var decodeBase64 = (s) => typeof Buffer !== "undefined" ? Buffer.from(s, "base64").toString("utf8") : typeof atob === "function" ? atob(s) : s;
36
- var ANTIGRAVITY_CLIENT_ID = decodeBase64(
37
- "MTA3MTAwNjA2MDU5MS10bWhzc2luMmgyMWxjcmUyMzV2dG9sb2poNGc0MDNlcC5hcHBzLmdvb2dsZXVzZXJjb250ZW50LmNvbQ=="
38
- );
39
- var ANTIGRAVITY_CLIENT_SECRET = decodeBase64(
40
- "R09DU1BYLUs1OEZXUjQ4NkxkTEoxbUxCOHNYQzR6NnFEQWY="
41
- );
42
- var ANTIGRAVITY_AUTH_URL = "https://accounts.google.com/o/oauth2/v2/auth";
43
- var ANTIGRAVITY_TOKEN_URL = "https://oauth2.googleapis.com/token";
44
- var ANTIGRAVITY_USERINFO_URL = "https://www.googleapis.com/oauth2/v1/userinfo?alt=json";
45
- var ANTIGRAVITY_CALLBACK_PORT = 51121;
46
- var ANTIGRAVITY_CALLBACK_PATH = "/oauth-callback";
47
- var ANTIGRAVITY_CALLBACK_URL = `http://127.0.0.1:${ANTIGRAVITY_CALLBACK_PORT}${ANTIGRAVITY_CALLBACK_PATH}`;
48
- var ANTIGRAVITY_SCOPES = [
49
- "https://www.googleapis.com/auth/cloud-platform",
50
- "https://www.googleapis.com/auth/userinfo.email",
51
- "https://www.googleapis.com/auth/userinfo.profile",
52
- "https://www.googleapis.com/auth/cclog",
53
- "https://www.googleapis.com/auth/experimentsandconfigs",
54
- // Antigravity 的「附加模型」(Claude / GPT-OSS 经其代理)需要这个 scope;
55
- // 对齐 oh-my-pi 的 google-antigravity 授权范围。只影响**新登录**:老凭据没有它
56
- // 也能继续用 Gemini,不强制重新授权。
57
- "https://www.googleapis.com/auth/aicode"
58
- ];
59
- var ANTIGRAVITY_ACCESS_TOKEN_CLIENT_SKEW_MS = 5 * 60 * 1e3;
60
- var ANTIGRAVITY_TOKEN_REQUEST_TIMEOUT_MS = 3e4;
61
- var ANTIGRAVITY_CLOUD_CODE_BASE_URL = "https://daily-cloudcode-pa.googleapis.com";
62
- var ANTIGRAVITY_CLOUD_CODE_HOST = "cloudcode-pa.googleapis.com";
63
- var ANTIGRAVITY_CLOUD_CODE_HOSTS = [
64
- ANTIGRAVITY_CLOUD_CODE_HOST,
65
- "daily-cloudcode-pa.googleapis.com"
66
- ];
67
- function isAntigravityCloudCodeHostname(rawHost) {
68
- const hostname = asTrimmedLowercaseString(rawHost ?? "").replace(/\.+$/, "");
69
- if (!hostname) return false;
70
- return ANTIGRAVITY_CLOUD_CODE_HOSTS.includes(hostname);
71
- }
72
- function isAntigravityCloudCodeBaseUrl(raw) {
73
- const value = typeof raw === "string" ? raw.trim() : "";
74
- if (!value) return false;
75
- try {
76
- return isAntigravityCloudCodeHostname(new URL(value).hostname);
77
- } catch {
78
- return false;
79
- }
80
- }
81
- var ANTIGRAVITY_LEGACY_GENERIC_BASE_RE = /^https?:\/\/cloudcode-pa\.googleapis\.com$/i;
82
- function getAntigravityUserAgent() {
83
- const version = process.env.NOLO_ANTIGRAVITY_VERSION || "2.23.1";
84
- const os = process.platform === "win32" ? "windows" : process.platform;
85
- const arch = process.arch === "x64" ? "amd64" : process.arch === "ia32" ? "386" : process.arch;
86
- return `antigravity/hub/${version} ${os}/${arch}`;
87
- }
88
- function resolveAntigravityCloudCodeBaseUrl(customProviderUrl) {
89
- const raw = (customProviderUrl ?? "").trim();
90
- if (!raw) return ANTIGRAVITY_CLOUD_CODE_BASE_URL;
91
- const trimmed = trimTrailingSlash(raw);
92
- if (isAntigravityCloudCodeBaseUrl(trimmed)) {
93
- const base = trimmed.replace(/\/v1internal:.*$/i, "").replace(/\/$/, "");
94
- if (ANTIGRAVITY_LEGACY_GENERIC_BASE_RE.test(base)) {
95
- return ANTIGRAVITY_CLOUD_CODE_BASE_URL;
96
- }
97
- return base;
98
- }
99
- return ANTIGRAVITY_CLOUD_CODE_BASE_URL;
100
- }
101
- function isAntigravityOAuthAgent(agentConfig) {
102
- if (!agentConfig) return false;
103
- const apiKeyRef = asTrimmedLowercaseString(agentConfig.apiKeyRef);
104
- const provider = asTrimmedLowercaseString(agentConfig.provider);
105
- const url = asTrimmedLowercaseString(agentConfig.customProviderUrl);
106
- return apiKeyRef === "antigravity" || provider === "google-antigravity" || // 只看解析后的 hostname(同 resolver):后缀 host / userinfo / path 里的官方串
107
- // 都不构成 antigravity 身份。
108
- isAntigravityCloudCodeBaseUrl(url);
109
- }
110
- function readAntigravityProjectId(metadata) {
111
- return asOptionalTrimmedString(metadata?.projectId);
112
- }
113
- function normalizeAntigravityTokenPayload(args) {
114
- const {
115
- payload,
116
- baseCredential,
117
- now = Date.now(),
118
- clientSkewMs = ANTIGRAVITY_ACCESS_TOKEN_CLIENT_SKEW_MS
119
- } = args;
120
- if (typeof payload.access_token !== "string" || !payload.access_token.trim()) {
121
- throw new Error("Antigravity token response missing access_token");
122
- }
123
- const accessToken = payload.access_token.trim();
124
- const expiresIn = asOptionalFiniteNumber(payload.expires_in);
125
- const expiresAt = expiresIn !== void 0 ? now + expiresIn * 1e3 - clientSkewMs : baseCredential?.expiresAt;
126
- const refreshToken = typeof payload.refresh_token === "string" && payload.refresh_token.trim() ? payload.refresh_token.trim() : baseCredential?.refreshToken;
127
- const scope = typeof payload.scope === "string" && payload.scope.trim() ? payload.scope.trim() : baseCredential?.scope;
128
- return {
129
- ...baseCredential ?? {},
130
- provider: baseCredential?.provider ?? "antigravity",
131
- accessToken,
132
- ...refreshToken ? { refreshToken } : {},
133
- ...expiresAt !== void 0 ? { expiresAt } : {},
134
- ...scope ? { scope } : {},
135
- obtainedAt: now
136
- };
137
- }
138
- async function refreshAntigravityToken(credential, deps = {}) {
139
- if (!credential.refreshToken || !credential.refreshToken.trim()) {
140
- throw new Error("Antigravity credential has no refresh_token");
141
- }
142
- const fetchImpl = deps.fetchImpl ?? fetch;
143
- let response;
144
- try {
145
- response = await fetchImpl(ANTIGRAVITY_TOKEN_URL, {
146
- method: "POST",
147
- headers: {
148
- "Content-Type": "application/x-www-form-urlencoded",
149
- Accept: "application/json"
150
- },
151
- body: new URLSearchParams({
152
- client_id: ANTIGRAVITY_CLIENT_ID,
153
- client_secret: ANTIGRAVITY_CLIENT_SECRET,
154
- refresh_token: credential.refreshToken.trim(),
155
- grant_type: "refresh_token"
156
- }),
157
- signal: AbortSignal.timeout(ANTIGRAVITY_TOKEN_REQUEST_TIMEOUT_MS)
158
- });
159
- } catch (error) {
160
- throw new Error(
161
- `Antigravity token refresh failed: ${toErrorMessage(error)}`
162
- );
163
- }
164
- let rawBodyText = "";
165
- let payload;
166
- try {
167
- rawBodyText = await response.text();
168
- payload = rawBodyText ? JSON.parse(rawBodyText) : {};
169
- } catch {
170
- payload = {};
171
- }
172
- if (!response.ok) {
173
- const errorCode = typeof payload.error === "string" && payload.error.trim() ? payload.error.trim() : void 0;
174
- const errorDescription = typeof payload.error_description === "string" && payload.error_description.trim() ? payload.error_description.trim() : void 0;
175
- const detail = (errorCode && errorDescription && errorDescription !== errorCode ? `${errorCode}: ${errorDescription}` : errorCode ?? errorDescription ?? rawBodyText.trim()) || `HTTP ${response.status}`;
176
- throw new Error(`Antigravity token refresh failed: ${detail}`);
177
- }
178
- if (typeof payload.access_token !== "string" || !payload.access_token.trim()) {
179
- throw new Error("Antigravity token refresh response missing access_token");
180
- }
181
- const now = deps.now?.() ?? Date.now();
182
- return normalizeAntigravityTokenPayload({
183
- payload,
184
- baseCredential: credential,
185
- now
186
- });
187
- }
188
-
189
22
  // packages/integrations/deepseek/models.ts
190
23
  var deepseekModels = [
191
24
  // ── 旗舰 ──
@@ -403,79 +236,6 @@ var SUBSCRIPTION_OAUTH_PROVIDERS = [
403
236
  { id: "grok-4.6", label: "Grok 4.6", hasVision: true, recommended: true }
404
237
  ]
405
238
  },
406
- {
407
- kind: "oauth",
408
- id: "antigravity",
409
- label: "Antigravity",
410
- description: "Gemini 3, Claude, GPT-OSS",
411
- apiKeyRef: "antigravity",
412
- provider: "google-antigravity",
413
- defaultModel: "gemini-3.8-flash",
414
- defaultReasoningEffort: "medium",
415
- modelOptions: [
416
- { id: "gemini-3.8-flash", label: "Gemini 3.8 Flash", hasVision: true, recommended: true },
417
- { id: "gemini-3.7-flash", label: "Gemini 3.7 Flash", hasVision: true },
418
- { id: "gemini-3.6-flash", label: "Gemini 3.6 Flash", hasVision: true },
419
- // Gemini 4 Argon 需 Google AI Ultra / 符合条件的企业订阅(官方 2026-10-13 公告);
420
- // 非 Ultra 账号 discovery 返回 gemini-4-argon-disabled,选中后调用 404。标签明示门槛,
421
- // 让不具备资格的 Antigravity 用户不会误选;3.1 Pro 保留为所有档位可用的回退。
422
- { id: "gemini-4-argon", label: "Gemini 4 Argon\uFF08\u9700 Ultra\uFF09", hasVision: true },
423
- // Exact wire IDs observed in Antigravity discovery with supportsImages=true.
424
- { id: "gemini-4-hydrogen-medium", label: "Gemini 4 Hydrogen Medium", hasVision: true },
425
- // Discovery (2026-11-17) 确认 Carbon 存在且 supportsImages=true;逻辑 id 用裸
426
- // gemini-4-carbon,effort 变体由 antigravityWireModel 折叠(裸 id 直传会 404)。
427
- { id: "gemini-4-carbon", label: "Gemini 4 Carbon", hasVision: true },
428
- // Gemini 4 Neon(官方 2026-11-18 公告:仅 Google AI Pro / Ultra / Enterprise):
429
- // 2026-11-19 订阅档账号刷新 token 后 discovery 给出 gemini-4-neon-low/-medium/-high/-xhigh
430
- // 全部 enabled(与官方 agy 模型列表同形),仍无裸 `gemini-4-neon`。四个 effort 是独立
431
- // wire id,故按实测 id 原样登记(不做 effort 折叠);标签沿用 Argon 的门槛明示,避免
432
- // 无权账号把它们误当可用——free-tier discovery 只有 `gemini-4-neon-disabled`,选中即 404。
433
- // hasVision 未在 discovery 证据中确认,先不声明,等实测再补。
434
- { id: "gemini-4-neon-low", label: "Gemini 4 Neon Low\uFF08\u9700 Pro/Ultra\uFF09" },
435
- { id: "gemini-4-neon-medium", label: "Gemini 4 Neon Medium\uFF08\u9700 Pro/Ultra\uFF09" },
436
- { id: "gemini-4-neon-high", label: "Gemini 4 Neon High\uFF08\u9700 Pro/Ultra\uFF09" },
437
- { id: "gemini-4-neon-xhigh", label: "Gemini 4 Neon XHigh\uFF08\u9700 Pro/Ultra\uFF09" },
438
- { id: "claude-opus-5-5-medium", label: "Claude Opus 5.5 Medium", hasVision: true },
439
- { id: "claude-sonnet-5-5-high", label: "Claude Sonnet 5.5 High", hasVision: true },
440
- { id: "gemini-3.1-pro", label: "Gemini 3.1 Pro", hasVision: true },
441
- { id: "gemini-2.5-pro", label: "Gemini 2.5 Pro", hasVision: true },
442
- { id: "claude-sonnet-5", label: "Claude Sonnet 5", hasVision: true },
443
- // Claude 可用 id 随 Antigravity 账号档位变化:2026-11-17 实测 Ultra 账号的
444
- // discovery 只给 claude-sonnet-4-6 / claude-opus-4-6-thinking,Pro 档位此前给
445
- // claude-sonnet-5-5-high / claude-opus-5-5-medium。两套都保留在目录里,
446
- // 谁账号有什么就用什么;缺失的那档调用时上游回 404,不因此删掉另一档。
447
- { id: "claude-sonnet-4-6", label: "Claude Sonnet 4.6", hasVision: true },
448
- { id: "claude-opus-4-6-thinking", label: "Claude Opus 4.6 Thinking", hasVision: true }
449
- ],
450
- cloudCodeBaseUrl: ANTIGRAVITY_CLOUD_CODE_BASE_URL,
451
- // Google 的 Antigravity 条款不允许第三方客户端登录,且已有账号因此被停用的
452
- // 报告(oh-my-pi #18341,该仓库据此停用了同一通道)。保留条目与运行时支持,
453
- // 只是不再进入新建选择器。
454
- officialBan: {
455
- reason: "Google \u7684 Antigravity \u6761\u6B3E\u4E0D\u5141\u8BB8\u7B2C\u4E09\u65B9\u767B\u5F55\uFF0C\u5DF2\u6709\u8D26\u53F7\u56E0\u6B64\u88AB\u505C\u7528",
456
- guidance: "\u6539\u7528 GEMINI_API_KEY\uFF08AI Studio\uFF09\u6216 google-vertex \u901A\u9053",
457
- source: "oh-my-pi #18341"
458
- }
459
- },
460
- {
461
- kind: "oauth",
462
- id: "claude-oauth",
463
- label: "Claude Pro/Max",
464
- description: "Anthropic Subscription",
465
- apiKeyRef: "claude",
466
- provider: "anthropic",
467
- defaultModel: "claude-sonnet-5-5",
468
- defaultReasoningEffort: "high",
469
- modelOptions: [
470
- { id: "claude-opus-5-5", label: "Claude Opus 5.5", hasVision: true, recommended: true },
471
- { id: "claude-sonnet-5-5", label: "Claude Sonnet 5.5", hasVision: true },
472
- { id: "claude-haiku-5-5", label: "Claude Haiku 5.5", hasVision: true },
473
- { id: "claude-sonnet-5", label: "Claude Sonnet 5", hasVision: true },
474
- { id: "claude-opus-5", label: "Claude Opus 5", hasVision: true },
475
- { id: "claude-opus-4-8", label: "Claude Opus 4.8", hasVision: true },
476
- { id: "claude-fable-5", label: "Claude Fable 5", hasVision: true }
477
- ]
478
- },
479
239
  {
480
240
  kind: "oauth",
481
241
  id: "cursor-oauth",
@@ -963,22 +723,6 @@ function isSubscriptionOAuthCredential(apiKeyRef) {
963
723
  }
964
724
 
965
725
  export {
966
- ANTIGRAVITY_CLIENT_ID,
967
- ANTIGRAVITY_CLIENT_SECRET,
968
- ANTIGRAVITY_AUTH_URL,
969
- ANTIGRAVITY_TOKEN_URL,
970
- ANTIGRAVITY_USERINFO_URL,
971
- ANTIGRAVITY_CALLBACK_PORT,
972
- ANTIGRAVITY_CALLBACK_PATH,
973
- ANTIGRAVITY_SCOPES,
974
- ANTIGRAVITY_CLOUD_CODE_BASE_URL,
975
- isAntigravityCloudCodeBaseUrl,
976
- getAntigravityUserAgent,
977
- resolveAntigravityCloudCodeBaseUrl,
978
- isAntigravityOAuthAgent,
979
- readAntigravityProjectId,
980
- normalizeAntigravityTokenPayload,
981
- refreshAntigravityToken,
982
726
  SUBSCRIPTION_OAUTH_PROVIDERS,
983
727
  CUSTOM_API_KEY_TEMPLATES,
984
728
  ALL_PROVIDER_REGISTRY,