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
@@ -8,35 +8,8 @@ import {
8
8
  getMemoryEvidenceVNext,
9
9
  getMemoryEvidenceVNextStrict,
10
10
  getMemoryStateVNext,
11
- listMemoryStatesForEntityVNext,
12
- loadMemoryVNextCatalog
11
+ listMemoryStatesForEntityVNext
13
12
  } from "./chunk-324FWHUA.js";
14
- import {
15
- recallMemoryVNextLocal
16
- } from "./chunk-4D4QD7FT.js";
17
- import {
18
- DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET,
19
- buildMemoryOverlay
20
- } from "./chunk-4I2MXV5Q.js";
21
- import {
22
- createMemoryKey
23
- } from "./chunk-SYTHYBMI.js";
24
-
25
- // packages/ai/memory/storeShared.ts
26
- var retrievalCountOf = (item) => item.activationCount ?? 0;
27
- var touchMemoryItemsInDb = async (db, items, now = (/* @__PURE__ */ new Date()).toISOString()) => {
28
- if (items.length === 0) return;
29
- const batch = db.batch();
30
- for (const item of items) {
31
- batch.put(createMemoryKey(item.ownerType, item.ownerId, item.id), {
32
- ...item,
33
- // retrieval bookkeeping on legacy storage names — see doc comment above
34
- lastActivatedAt: now,
35
- activationCount: retrievalCountOf(item) + 1
36
- });
37
- }
38
- await batch.write();
39
- };
40
13
 
41
14
  // packages/ai/memory/vnext/applyMutation.ts
42
15
  async function validateMutation(db, ownerId, mutation) {
@@ -301,76 +274,6 @@ var applyMemoryInterpreterMutation = async (db, ownerId, mutation) => {
301
274
  }
302
275
  };
303
276
 
304
- // packages/ai/memory/remember.ts
305
- var RESIDENT_MAX_CONTENT_CHARS = 240;
306
-
307
- // packages/ai/memory/vnext/pureVNextRuntime.ts
308
- function deriveStateResident(state, ownerType) {
309
- if (ownerType !== "user") return false;
310
- if (state.text.trim().length > RESIDENT_MAX_CONTENT_CHARS) return false;
311
- return state.facet === "preference" || state.facet === "style";
312
- }
313
- var buildSynthesizedStateItem = (state, entity, ownerType, ownerId) => ({
314
- id: `vnext-state-${state.id}`,
315
- ownerType,
316
- ownerId,
317
- visibility: "private",
318
- subjectType: "user",
319
- subjectId: ownerId,
320
- kind: "semantic",
321
- content: state.text.trim(),
322
- createdAt: state.createdAt,
323
- lastActivatedAt: state.createdAt,
324
- activationCount: 1,
325
- importance: 0.9,
326
- confidence: 0.9,
327
- resident: deriveStateResident(state, ownerType)
328
- });
329
- async function resolvePureVNextRuntime(input) {
330
- const { db, owners, userInput } = input;
331
- if (owners.length === 0 || !userInput.trim()) {
332
- return { selectedItems: [], promptBlock: buildMemoryOverlay([], { injectionEmit: input.injectionEmit }), recalledStateCount: 0 };
333
- }
334
- const ownerIds = owners.map((o) => `${o.ownerType}:${encodeURIComponent(o.ownerId)}`);
335
- const catalogs = await Promise.all(
336
- ownerIds.map((ownerId) => loadMemoryVNextCatalog(db, ownerId))
337
- );
338
- const selectedItems = [];
339
- const seenStateKeys = /* @__PURE__ */ new Set();
340
- for (let i = 0; i < owners.length; i++) {
341
- const owner = owners[i];
342
- const catalog = catalogs[i];
343
- const currentStates = catalog.states.filter((s) => !s.retiredAt && s.text.trim());
344
- const hits = recallMemoryVNextLocal({
345
- query: userInput,
346
- entities: catalog.entities,
347
- states: currentStates
348
- });
349
- const entityById = new Map(catalog.entities.map((e) => [e.id, e]));
350
- for (const hit of hits) {
351
- const stateKey = `${hit.state.ownerId}\0${hit.state.id}`;
352
- if (seenStateKeys.has(stateKey)) continue;
353
- seenStateKeys.add(stateKey);
354
- selectedItems.push(
355
- buildSynthesizedStateItem(hit.state, entityById.get(hit.state.entityId), owner.ownerType, owner.ownerId)
356
- );
357
- }
358
- }
359
- const promptBlock = buildMemoryOverlay(selectedItems, {
360
- sources: new Map(selectedItems.map((item) => [item, "vnext"])),
361
- injectionEmit: input.injectionEmit,
362
- maxTokens: input.maxTokens ?? DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET
363
- });
364
- return {
365
- selectedItems,
366
- promptBlock,
367
- recalledStateCount: selectedItems.length
368
- };
369
- }
370
-
371
277
  export {
372
- touchMemoryItemsInDb,
373
- applyMemoryInterpreterMutation,
374
- deriveStateResident,
375
- resolvePureVNextRuntime
278
+ applyMemoryInterpreterMutation
376
279
  };
@@ -1,9 +1,12 @@
1
- import {
2
- trimTrailingSlash
3
- } from "./chunk-RTHFJZ6M.js";
4
1
  import {
5
2
  toErrorMessage
6
3
  } from "./chunk-HNMXYYJR.js";
4
+ import {
5
+ trimTrailingSlash
6
+ } from "./chunk-LVZVSLKO.js";
7
+ import {
8
+ asOptionalFiniteNumber
9
+ } from "./chunk-WWC7I6TA.js";
7
10
  import {
8
11
  commandCodeModels,
9
12
  kimiCodeModels,
@@ -14,10 +17,7 @@ import {
14
17
  qwenTokenPlanModels,
15
18
  stepfunModels,
16
19
  stepfunStepPlanModels
17
- } from "./chunk-CD3RU7XL.js";
18
- import {
19
- asOptionalFiniteNumber
20
- } from "./chunk-WWC7I6TA.js";
20
+ } from "./chunk-OKH74FML.js";
21
21
  import {
22
22
  asOptionalTrimmedString
23
23
  } from "./chunk-G3SUCT4W.js";
@@ -26,7 +26,7 @@ import {
26
26
  PLATFORM_HOSTED_DEEPSEEK_FLASH_PEAK_PRICE,
27
27
  PLATFORM_HOSTED_DEEPSEEK_PRO_OFF_PEAK_PRICE,
28
28
  PLATFORM_HOSTED_DEEPSEEK_PRO_PEAK_PRICE
29
- } from "./chunk-OBSEKCVK.js";
29
+ } from "./chunk-JPXACKSW.js";
30
30
  import {
31
31
  asTrimmedLowercaseString
32
32
  } from "./chunk-QSJ3HFEF.js";
@@ -378,6 +378,9 @@ var SUBSCRIPTION_OAUTH_PROVIDERS = [
378
378
  // 存量 agent 记录里的旧 model id 由 OAuth 通道的家族别名表透明重定向到对应
379
379
  // 最新代(sol 系→6.1 Sol、terra 系→6.1 Terra、luna 系→6 Luna),不丢对话。
380
380
  { id: "gpt-6-astra", label: "GPT-6 Astra", hasVision: true, recommended: true },
381
+ // GPT-6.2 Astra / Sol(2026-11-17 发布):与既有 6 / 6.1 并列保留,适配各账号灰度窗口。
382
+ { id: "gpt-6.2-astra", label: "GPT-6.2 Astra", hasVision: true },
383
+ { id: "gpt-6.2-sol", label: "GPT-6.2 Sol", hasVision: true },
381
384
  // GPT-6.1 Sol 已列入 Codex 订阅通道选型指南,但按账号灰度("when available
382
385
  // to your account and client"),未开通的账号选它会 400,不影响其他选项。
383
386
  { id: "gpt-6.1-sol", label: "GPT-6.1 Sol", hasVision: true },
@@ -419,11 +422,29 @@ var SUBSCRIPTION_OAUTH_PROVIDERS = [
419
422
  { id: "gemini-4-argon", label: "Gemini 4 Argon\uFF08\u9700 Ultra\uFF09", hasVision: true },
420
423
  // Exact wire IDs observed in Antigravity discovery with supportsImages=true.
421
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" },
422
438
  { id: "claude-opus-5-5-medium", label: "Claude Opus 5.5 Medium", hasVision: true },
423
439
  { id: "claude-sonnet-5-5-high", label: "Claude Sonnet 5.5 High", hasVision: true },
424
440
  { id: "gemini-3.1-pro", label: "Gemini 3.1 Pro", hasVision: true },
425
441
  { id: "gemini-2.5-pro", label: "Gemini 2.5 Pro", hasVision: true },
426
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 },
427
448
  { id: "claude-opus-4-6-thinking", label: "Claude Opus 4.6 Thinking", hasVision: true }
428
449
  ],
429
450
  cloudCodeBaseUrl: ANTIGRAVITY_CLOUD_CODE_BASE_URL,
@@ -485,7 +506,7 @@ var SUBSCRIPTION_OAUTH_PROVIDERS = [
485
506
  kind: "oauth",
486
507
  id: "devin-oauth",
487
508
  label: "Devin Pro",
488
- description: "Devin Pro $20/\u6708\uFF1A\u65E5/\u5468 quota \u8986\u76D6 sessions/CLI/Desktop\uFF0C\u8D85\u989D\u6309 API \u4EF7\u8D2D credits\uFF1BSWE-2 \u9650\u65F6\u514D\u8D39\u81F3 2026-10-10",
509
+ description: "Devin Pro $20/\u6708\uFF1A\u65E5/\u5468 quota \u8986\u76D6 sessions/CLI/Desktop\uFF0C\u8D85\u989D\u6309 API \u4EF7\u8D2D credits",
489
510
  apiKeyRef: "devin",
490
511
  provider: "devin",
491
512
  defaultModel: "swe-2-max",
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  selectCurrentServer
3
- } from "./chunk-ATEKLSLR.js";
3
+ } from "./chunk-BZMDWGQQ.js";
4
4
  import {
5
5
  patch
6
- } from "./chunk-CMMI3DAT.js";
6
+ } from "./chunk-ADYWV732.js";
7
7
  import {
8
8
  getIsDesktopApp
9
- } from "./chunk-4N6G2CKP.js";
9
+ } from "./chunk-HDKMVYNJ.js";
10
10
  import {
11
11
  selectIdentityToken
12
12
  } from "./chunk-PXYBUFDB.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildSkillDocMarkdown
3
- } from "./chunk-W6RFEDN4.js";
3
+ } from "./chunk-AETZ7AD6.js";
4
4
 
5
5
  // packages/cli/docPageHelpers.ts
6
6
  import { readFileSync } from "node:fs";
@@ -7,22 +7,26 @@ import {
7
7
  scheduleExistingRecordReplication,
8
8
  shouldReplaceLocalWithRemoteRecord,
9
9
  shouldReplicateLocalRecord
10
- } from "./chunk-R6Z5S5GA.js";
10
+ } from "./chunk-HPDLPEUG.js";
11
11
  import {
12
12
  fetchFromClientDb,
13
13
  fetchFromServer,
14
+ googleSessionRequestToken,
15
+ googleSessionServer,
14
16
  isReadTimeoutError,
15
- logger
16
- } from "./chunk-4N6G2CKP.js";
17
- import {
18
- shouldReplaceWithNextRecord
19
- } from "./chunk-BV3FLP2L.js";
17
+ logger,
18
+ scopeGoogleSessionServers
19
+ } from "./chunk-HDKMVYNJ.js";
20
20
  import {
21
21
  isAbortError
22
22
  } from "./chunk-7DPNBQSV.js";
23
23
  import {
24
- isBuiltinPlatformAgentKey
25
- } from "./chunk-ILHQ2AXT.js";
24
+ shouldReplaceWithNextRecord
25
+ } from "./chunk-BV3FLP2L.js";
26
+ import {
27
+ isBuiltinPlatformAgentKey,
28
+ isPublicBuiltinPlatformAgentKey
29
+ } from "./chunk-RIWKZT7E.js";
26
30
  import {
27
31
  NOLO_CLUSTER_SERVERS,
28
32
  normalizeKnownServerOrigin
@@ -188,6 +192,8 @@ var saveRemoteDataToClientDb = async (clientDb, dbKey, remoteData, serverOrigin)
188
192
  } catch (err) {
189
193
  }
190
194
  };
195
+ var REJECTED_RECORD = Symbol("rejected read record");
196
+ var hasRejectedRecord = (results) => results.some((result) => result.status === "fulfilled" && result.value === REJECTED_RECORD);
191
197
  var processRemoteDataInBackground = async (clientDb, dbKey, remotePromises, remoteServers, localData, replicationContext) => {
192
198
  if (!clientDb) return;
193
199
  try {
@@ -210,7 +216,7 @@ var processRemoteDataInBackground = async (clientDb, dbKey, remotePromises, remo
210
216
  localData
211
217
  );
212
218
  }
213
- if (shouldReplicateLocalRecord({
219
+ if (!hasRejectedRecord(settledResults) && shouldReplicateLocalRecord({
214
220
  localData,
215
221
  remoteData: validRemoteData,
216
222
  remoteTargetCount: remotePromises.length
@@ -247,9 +253,16 @@ var readAction = async (payload, thunkApi) => {
247
253
  userAuthorityRegistry
248
254
  } = getRuntimeServerContext(state, preferredServerOrigin);
249
255
  const allServers = resolveAgentReadServers({ dbKey, configuredServers });
256
+ const { validateRecord } = payload;
257
+ const fetchScopedFromServer = async (server, key, token, signal2) => {
258
+ const record = await fetchFromServer(server, key, googleSessionRequestToken(token, server, isPublicBuiltinPlatformAgentKey(key)), signal2);
259
+ return record && validateRecord && !validateRecord(record, "remote") ? REJECTED_RECORD : record;
260
+ };
250
261
  const isLoggedIn = !!currentToken;
251
262
  const now = Date.now();
252
- const localData = await fetchFromClientDb(clientDb, dbKey);
263
+ const rawLocalData = await fetchFromClientDb(clientDb, dbKey);
264
+ const localRejected = !!rawLocalData && !!validateRecord && !validateRecord(rawLocalData, "local");
265
+ const localData = localRejected ? null : rawLocalData;
253
266
  if (isDialogKey) {
254
267
  console.info("[readAction-perf] dialog local-read", {
255
268
  dbKey,
@@ -265,14 +278,15 @@ var readAction = async (payload, thunkApi) => {
265
278
  currentServer,
266
279
  userAuthorityRegistry
267
280
  });
268
- const authorityPlannedServers = planAuthorityReadServers({
281
+ let authorityPlannedServers = planAuthorityReadServers({
269
282
  allServers,
270
283
  authorityServer: preferredServerOrigin ?? authority.authorityServer,
271
284
  serverOrigin: authority.serverOrigin
272
285
  });
286
+ if (!isPublicBuiltinPlatformAgentKey(dbKey)) authorityPlannedServers = scopeGoogleSessionServers(currentToken, currentServer, authorityPlannedServers);
273
287
  let { preferredServer, fallbackServers, orderedServersForLocalHit } = partitionReadServers({
274
288
  allServers: authorityPlannedServers,
275
- preferredServerOrigin: preferredServerOrigin ?? authority.authorityServer
289
+ preferredServerOrigin: googleSessionServer(currentToken, currentServer) ?? preferredServerOrigin ?? authority.authorityServer
276
290
  });
277
291
  readRequestManager.cleanupMisses(now);
278
292
  readRequestManager.cleanupLocalHitRevalidations(now);
@@ -310,6 +324,7 @@ var readAction = async (payload, thunkApi) => {
310
324
  }
311
325
  return normalizeReadRecord(dbKey, localData);
312
326
  }
327
+ if (localRejected) return null;
313
328
  readRequestManager.markMiss(dbKey, now);
314
329
  throw new Error(
315
330
  `Failed to fetch data for key "${dbKey}" because network is offline and no local data is available.`
@@ -321,7 +336,7 @@ var readAction = async (payload, thunkApi) => {
321
336
  if (retryInMs === null) {
322
337
  readRequestManager.markLocalHitRevalidated(dbKey, now);
323
338
  const remotePromises2 = orderedServersForLocalHit.map(
324
- (server) => fetchFromServer(
339
+ (server) => fetchScopedFromServer(
325
340
  server,
326
341
  dbKey,
327
342
  isLoggedIn ? currentToken : void 0,
@@ -353,18 +368,21 @@ var readAction = async (payload, thunkApi) => {
353
368
  return normalizeReadRecord(dbKey, localData);
354
369
  }
355
370
  if (authoritativeServerOrigin) {
371
+ googleSessionRequestToken(currentToken, authoritativeServerOrigin, isPublicBuiltinPlatformAgentKey(dbKey));
356
372
  preferredServer = authoritativeServerOrigin;
357
373
  fallbackServers = [];
358
374
  }
375
+ let preferredRejected = false;
359
376
  if (preferredServer) {
360
377
  try {
361
- const preferredRemoteData = await fetchFromServer(
378
+ const preferredRemoteData = await fetchScopedFromServer(
362
379
  preferredServer,
363
380
  dbKey,
364
381
  isLoggedIn ? currentToken : void 0,
365
382
  signal
366
383
  );
367
- if (preferredRemoteData) {
384
+ preferredRejected = preferredRemoteData === REJECTED_RECORD;
385
+ if (preferredRemoteData && !preferredRejected) {
368
386
  await saveRemoteDataToClientDb(
369
387
  clientDb,
370
388
  dbKey,
@@ -402,7 +420,7 @@ var readAction = async (payload, thunkApi) => {
402
420
  }
403
421
  }
404
422
  const remotePromises = fallbackServers.map(
405
- (server) => fetchFromServer(
423
+ (server) => fetchScopedFromServer(
406
424
  server,
407
425
  dbKey,
408
426
  isLoggedIn ? currentToken : void 0,
@@ -432,12 +450,13 @@ var readAction = async (payload, thunkApi) => {
432
450
  const remoteData = serverOrigin ? { ...validRemoteData, dbKey, serverOrigin } : { ...validRemoteData, dbKey };
433
451
  return normalizeReadRecord(dbKey, remoteData);
434
452
  }
453
+ if (localRejected || preferredRejected || hasRejectedRecord(settledResults)) return null;
435
454
  readRequestManager.markMiss(dbKey, Date.now());
436
455
  throw new Error(
437
456
  `Failed to fetch data for key "${dbKey}" from all sources.`
438
457
  );
439
458
  };
440
- const canDedup = !signal;
459
+ const canDedup = !signal && !payload.validateRecord;
441
460
  if (canDedup) {
442
461
  const existing = readRequestManager.getInFlight(dbKey);
443
462
  if (existing) return existing;
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  defaultOpenBrowser
3
- } from "./chunk-YKY4OVOX.js";
3
+ } from "./chunk-HQUGB2HM.js";
4
4
  import {
5
5
  generateCloudflareEmailRoutingToken,
6
6
  parseFlagWithOptionalValue,
7
7
  runCloudflareOAuthLogin,
8
8
  upsertEnvVariable
9
- } from "./chunk-3U44JB3O.js";
9
+ } from "./chunk-2C5VN7NH.js";
10
10
  import {
11
11
  ANTHROPIC_OAUTH_AUTHORIZE_URL,
12
12
  ANTHROPIC_OAUTH_CALLBACK_PORT,
@@ -50,7 +50,7 @@ import {
50
50
  startCallbackServer,
51
51
  validateXAIEndpoint,
52
52
  xaiOAuthDiscovery
53
- } from "./chunk-XSW4EXQV.js";
53
+ } from "./chunk-6BMTKYAO.js";
54
54
  import {
55
55
  extractGoogleValidationLink
56
56
  } from "./chunk-BMQ2MJUK.js";
@@ -60,7 +60,7 @@ import {
60
60
  detectLocalDevinCredentials,
61
61
  extractDevinToken,
62
62
  fetchAntigravityCloudCodeCompletion
63
- } from "./chunk-U2HBB7RS.js";
63
+ } from "./chunk-OOV5JN25.js";
64
64
  import {
65
65
  createOAuthTokenStore,
66
66
  resolveFreshAccessToken
@@ -74,19 +74,19 @@ import {
74
74
  } from "./chunk-R5GO3YZP.js";
75
75
  import {
76
76
  t
77
- } from "./chunk-262R3XNN.js";
77
+ } from "./chunk-FEIVARWR.js";
78
78
  import {
79
79
  toErrorMessage
80
80
  } from "./chunk-HNMXYYJR.js";
81
81
  import {
82
82
  asTrimmedString
83
83
  } from "./chunk-3EUW3WEO.js";
84
- import {
85
- isRecord
86
- } from "./chunk-KUG52IAP.js";
87
84
  import {
88
85
  asOptionalFiniteNumber
89
86
  } from "./chunk-WWC7I6TA.js";
87
+ import {
88
+ isRecord
89
+ } from "./chunk-KUG52IAP.js";
90
90
 
91
91
  // packages/cli/oauth/flows/xai.ts
92
92
  function buildXAIAuthorizeUrl(opts) {
@@ -1,28 +1,29 @@
1
1
  import {
2
2
  upsertSSREntity,
3
3
  write
4
- } from "./chunk-CMMI3DAT.js";
4
+ } from "./chunk-ADYWV732.js";
5
5
  import {
6
6
  getRuntimeServerContext,
7
7
  resolveRecordAuthority
8
- } from "./chunk-R6Z5S5GA.js";
8
+ } from "./chunk-HPDLPEUG.js";
9
9
  import {
10
10
  TIMEOUT,
11
11
  asyncThunkCreator,
12
12
  buildCreateSlice,
13
13
  noloRequest
14
- } from "./chunk-7Z6EW7AH.js";
14
+ } from "./chunk-ZTHAJU3O.js";
15
15
  import {
16
16
  applyAgentSecretMigrationUpdates,
17
+ buildAgentApiKeyCredentialRef,
17
18
  migrateAgentSecrets,
18
19
  normalizeAgentRuntimeToolPolicy
19
20
  } from "./chunk-USGHJSGO.js";
21
+ import {
22
+ createFileCredentialBroker
23
+ } from "./chunk-E6A5NHDH.js";
20
24
  import {
21
25
  asRecordOrEmpty
22
26
  } from "./chunk-KX6YBIHG.js";
23
- import {
24
- createFileCredentialBroker
25
- } from "./chunk-OQHIVPG4.js";
26
27
  import {
27
28
  isLevelNotFoundError
28
29
  } from "./chunk-OW765XBU.js";
@@ -104,6 +105,13 @@ async function agentRequest(server, state, path, method, body) {
104
105
  clearTimeout(timeout);
105
106
  }
106
107
  }
108
+ var AGENT_CHANNEL_FIELDS = ["provider", "apiSource", "apiKeyRef", "customProviderUrl"];
109
+ function clearQuotaOnAgentChannelChange(previous, saved) {
110
+ if (!AGENT_CHANNEL_FIELDS.some((field) => (previous[field] ?? void 0) !== (saved[field] ?? void 0))) return;
111
+ delete saved.quota;
112
+ delete saved.quotaExhaustion;
113
+ delete saved.nextAvailableAt;
114
+ }
107
115
  async function updateAgentRecord(options) {
108
116
  const { server, state, dbKey, changes } = options;
109
117
  if (dbKey.startsWith("agent-local-")) {
@@ -129,6 +137,7 @@ async function updateAgentRecord(options) {
129
137
  return result2;
130
138
  };
131
139
  const saved = merge(previous, { ...changes, isPublic: false, userId: "local" });
140
+ clearQuotaOnAgentChannelChange(previous, saved);
132
141
  saved.updatedAt = Date.now();
133
142
  try {
134
143
  await options.localDb.put(dbKey, saved);
@@ -261,6 +270,7 @@ var migrateRawApiKeyForAgent = async (args) => {
261
270
  var createSliceWithThunks = buildCreateSlice({
262
271
  creators: { asyncThunk: asyncThunkCreator }
263
272
  });
273
+ var pendingCreateIds = /* @__PURE__ */ new WeakMap();
264
274
  var initialState = {};
265
275
  var normalizeAgentReferences = (references) => {
266
276
  if (!Array.isArray(references)) return [];
@@ -342,6 +352,9 @@ var processAgentUpdateChanges = (data, userId, previousAgent) => {
342
352
  if ("apiKey" in data) {
343
353
  changes.apiKey = (data.apiKey ?? "").trim();
344
354
  }
355
+ if (data.enableThinking !== void 0) {
356
+ changes.enableThinking = data.enableThinking;
357
+ }
345
358
  if ("hasVision" in data && data.hasVision !== void 0) {
346
359
  changes.hasVision = !!data.hasVision;
347
360
  }
@@ -458,7 +471,7 @@ var slice = createSliceWithThunks({
458
471
  const overrides = {};
459
472
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
460
473
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
461
- const { _executeModel } = await import("./_executeModel-VYCHHZVT.js");
474
+ const { _executeModel } = await import("./_executeModel-AKCTHGMP.js");
462
475
  return _executeModel(
463
476
  {
464
477
  isStreaming: args.isStreaming ?? false,
@@ -479,7 +492,7 @@ var slice = createSliceWithThunks({
479
492
  * - 循环直到无工具调用或触发其他运行时停止条件
480
493
  */
481
494
  runAgent: create.asyncThunk(async (args, thunkApi) => {
482
- const { runAgentClientLoop } = await import("./runAgentClientLoop-AF4JQIJ7.js");
495
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-3VC5TCDW.js");
483
496
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
484
497
  {
485
498
  agentKey: args.agentKey,
@@ -495,7 +508,7 @@ var slice = createSliceWithThunks({
495
508
  * 聊天轮次流式 Agent 调用
496
509
  */
497
510
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
498
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-YSPEFY4K.js");
511
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-4GTLL2OF.js");
499
512
  return streamAgentChatTurnHandler(args, thunkApi);
500
513
  }),
501
514
  /**
@@ -505,11 +518,19 @@ var slice = createSliceWithThunks({
505
518
  * - 返回完整 Agent 对象(包含 id / meta 字段)
506
519
  */
507
520
  createAgent: create.asyncThunk(
508
- async ({ userId, formData, spaceId }, thunkApi) => {
521
+ async ({ userId, formData, spaceId, createAttempt }, thunkApi) => {
509
522
  const effectiveUserId = asOptionalTrimmedString(userId) ?? "local";
510
523
  const processed = processAgentCreateForm(formData, effectiveUserId);
511
524
  const now = Date.now();
512
- const id = ulid();
525
+ const previous = createAttempt && pendingCreateIds.get(createAttempt);
526
+ const pending = previous?.owner === effectiveUserId ? previous : {
527
+ owner: effectiveUserId,
528
+ id: ulid(),
529
+ usesPerAgentRef: false
530
+ };
531
+ pending.usesPerAgentRef ||= formData.credentialSynced === true;
532
+ if (createAttempt) pendingCreateIds.set(createAttempt, pending);
533
+ const { id } = pending;
513
534
  const privateKey = createAgentKey.private(effectiveUserId, id);
514
535
  const publicKey = createAgentKey.public(id);
515
536
  let agent = {
@@ -544,9 +565,20 @@ var slice = createSliceWithThunks({
544
565
  agentKey: privateKey,
545
566
  apiKey: createRawApiKey,
546
567
  apiKeyRef: agent.apiKeyRef,
547
- credentialRef: agent.credentialRef
568
+ credentialRef: pending.usesPerAgentRef ? buildAgentApiKeyCredentialRef(privateKey) : agent.credentialRef
548
569
  });
549
570
  }
571
+ if (agent.credentialSynced === true) {
572
+ const ctx = getRuntimeServerContext(thunkApi.getState());
573
+ const ref = agent.credentialRef;
574
+ if (!createRawApiKey || !ctx.currentServer || !ctx.currentToken || !ref?.startsWith("api-key:") || !await pushServerSyncedCredential(
575
+ { currentServer: ctx.currentServer, authToken: ctx.currentToken },
576
+ ref,
577
+ createRawApiKey
578
+ )) {
579
+ throw new Error("agent_credential_sync_failed");
580
+ }
581
+ }
550
582
  await thunkApi.dispatch(
551
583
  write({
552
584
  data: agent,
@@ -567,21 +599,6 @@ var slice = createSliceWithThunks({
567
599
  })
568
600
  ).unwrap();
569
601
  }
570
- if (agent.credentialSynced && createRawApiKey) {
571
- const ctx = getRuntimeServerContext(thunkApi.getState());
572
- const credentialRef = agent.credentialRef;
573
- if (ctx.currentToken && credentialRef) {
574
- try {
575
- await pushServerSyncedCredential(
576
- { currentServer: ctx.currentServer ?? "", authToken: ctx.currentToken },
577
- credentialRef,
578
- createRawApiKey
579
- );
580
- } catch (error) {
581
- console.error("[agent-credential-sync] push failed", error instanceof Error ? error.message : "unknown error");
582
- }
583
- }
584
- }
585
602
  try {
586
603
  const { localFirstLog } = await import("./localFirstLog-OIETGK66.js");
587
604
  localFirstLog("agent.create.done", {
@@ -595,6 +612,7 @@ var slice = createSliceWithThunks({
595
612
  });
596
613
  } catch {
597
614
  }
615
+ if (createAttempt) pendingCreateIds.delete(createAttempt);
598
616
  return agent;
599
617
  }
600
618
  ),