nolo-cli 0.224.0-alpha.2 → 0.224.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 (237) hide show
  1. package/{_executeModel-4WBUORCW.js → _executeModel-5NA4USGG.js} +77 -71
  2. package/{action-CK64LS6S.js → action-X75O3XPH.js} +11 -8
  3. package/{addContentAction-EQXMFNPR.js → addContentAction-GVC77QSN.js} +14 -13
  4. package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-KKDVAMW3.js} +15 -14
  5. package/{agentDeleteCommand-BB6KU5AO.js → agentDeleteCommand-2RFGKFAB.js} +127 -119
  6. package/{agentEmailCommands-KMHPL6OH.js → agentEmailCommands-GQCQKKOR.js} +126 -114
  7. package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
  8. package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
  9. package/{agentListCommands-5UNM7CGG.js → agentListCommands-HSGLDPDQ.js} +110 -495
  10. package/{agentMachineCommands-OC5D4YZW.js → agentMachineCommands-BISF6PVV.js} +63 -57
  11. package/{agentProviderCommands-ZCH37KAL.js → agentProviderCommands-O3Q25PKU.js} +6 -6
  12. package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-G6U2LHMW.js} +6 -6
  13. package/agentRecordCommands-AOXPGYAJ.js +189 -0
  14. package/{agentRunCommand-M22Y3D5U.js → agentRunCommand-AFAIP7U7.js} +129 -115
  15. package/{agentRunControl-QDFW5P2T.js → agentRunControl-VBL7UFSG.js} +20 -14
  16. package/{agentRuntimeLocal-SD7U2EGY.js → agentRuntimeLocal-T7BX2WGL.js} +47 -41
  17. package/{agentSlice-AJPMMBOP.js → agentSlice-XJNKE3PG.js} +18 -17
  18. package/{appDeleteCommands-NE3NQQJL.js → appDeleteCommands-LURUSPY7.js} +56 -50
  19. package/{appDeployCommands-2BAHY522.js → appDeployCommands-SMEW4AK2.js} +56 -50
  20. package/{appDeployStatusCommands-JTW6LZNC.js → appDeployStatusCommands-VYPJTBJK.js} +56 -50
  21. package/{appGetCommands-WKFEJO6A.js → appGetCommands-N4NI5GGJ.js} +56 -50
  22. package/{appListCommands-HNAZZLFX.js → appListCommands-5C6ONN3Z.js} +56 -50
  23. package/{authCommand-VQP625QS.js → authCommand-4CVBDADE.js} +29 -28
  24. package/{authCommands-PAKU3CJZ.js → authCommands-EHU2BHOX.js} +12 -11
  25. package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-AYWYQVA4.js} +4 -4
  26. package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-CSDG2HYN.js} +6 -6
  27. package/{chunk-OOF7XDZF.js → chunk-2574ANSV.js} +6 -6
  28. package/chunk-2SXN7LAY.js +15 -0
  29. package/{chunk-OGHP3CTL.js → chunk-2X7WFDT6.js} +1 -1
  30. package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
  31. package/{chunk-D726I5AZ.js → chunk-3EMIEC27.js} +2 -2
  32. package/{chunk-XUJZYUIM.js → chunk-3FBAVU2Y.js} +24 -22
  33. package/{chunk-YL3EFYL3.js → chunk-4D4QD7FT.js} +3 -1
  34. package/{chunk-5RKUPJYL.js → chunk-4FIO2S7Z.js} +11 -3
  35. package/{chunk-EK7PGVPY.js → chunk-4IQVE43Z.js} +63 -32
  36. package/{chunk-6NKA6RKF.js → chunk-4Q6HQORG.js} +8 -8
  37. package/{chunk-P2ZLUIW2.js → chunk-4X5AVCM7.js} +94 -4
  38. package/chunk-4ZCTKB27.js +31 -0
  39. package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
  40. package/{chunk-4A2JIXR2.js → chunk-5QZSEQSK.js} +1 -1
  41. package/chunk-5ZUOVCKT.js +32 -0
  42. package/{chunk-TRWT3EE3.js → chunk-62HXNQVV.js} +1 -1
  43. package/{chunk-JC5XLWZK.js → chunk-6CKUO32A.js} +27 -15
  44. package/chunk-6D25V6CB.js +133 -0
  45. package/chunk-6WOLPIPY.js +379 -0
  46. package/{chunk-KOXKKHFE.js → chunk-6WZVM33D.js} +9 -4
  47. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  48. package/{chunk-ULK35M44.js → chunk-7AJRJGSQ.js} +1049 -2860
  49. package/chunk-7NIBQ4HY.js +138 -0
  50. package/{chunk-7Z6EW7AH.js → chunk-7TTMMOKH.js} +13 -6
  51. package/{chunk-ZLOSGVCQ.js → chunk-A3LUWRQK.js} +15 -15
  52. package/{chunk-C4WTX5TU.js → chunk-A5EVA6HU.js} +2 -2
  53. package/{chunk-ZLNHUFOF.js → chunk-A74QP4FI.js} +2613 -1297
  54. package/{chunk-ME4XUFTD.js → chunk-AEQMKYZN.js} +15 -15
  55. package/{chunk-6E2NWYT4.js → chunk-AH5R7BYW.js} +22 -176
  56. package/{chunk-H7R3365N.js → chunk-ANJRDS6U.js} +8 -5
  57. package/{chunk-YFLVRVYK.js → chunk-AVJDELEA.js} +1 -1
  58. package/{chunk-GIABSSWQ.js → chunk-B5SV4H3J.js} +4 -4
  59. package/{chunk-S7RA7A4X.js → chunk-B7DE5XJW.js} +387 -347
  60. package/chunk-BEM6LPD2.js +734 -0
  61. package/{chunk-SRL56PI2.js → chunk-BGGAY6OK.js} +46 -8
  62. package/{chunk-BKJSRO66.js → chunk-BGGV6B5O.js} +555 -328
  63. package/{chunk-BGGHA5DV.js → chunk-BIABIPGW.js} +1 -1
  64. package/chunk-BIDSIRTS.js +307 -0
  65. package/{chunk-6D7NVU66.js → chunk-BXSMFPTG.js} +17 -14
  66. package/{chunk-Q6HOUF4O.js → chunk-CBUZ6DKA.js} +3 -3
  67. package/{chunk-LE6LGAJE.js → chunk-CD3RU7XL.js} +17 -2
  68. package/{chunk-GVGOEMNV.js → chunk-CKZPMJNU.js} +3 -3
  69. package/{chunk-HJAGA3GR.js → chunk-CVJRVBJL.js} +3 -3
  70. package/chunk-D374I563.js +62 -0
  71. package/{chunk-XWGDCWXY.js → chunk-DNZ4JJ7C.js} +9 -9
  72. package/chunk-DVYAFH2Q.js +103 -0
  73. package/{chunk-PYIMOZSX.js → chunk-DXW5WDHZ.js} +4 -4
  74. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  75. package/{chunk-KPAFQHRT.js → chunk-E5KJOZWY.js} +4 -4
  76. package/{chunk-GNHMRBYZ.js → chunk-EBKHA63G.js} +106 -14
  77. package/{chunk-PFJNLBRU.js → chunk-EEOOBRA7.js} +6 -6
  78. package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
  79. package/{chunk-QLFCTYRH.js → chunk-F3XI6WQP.js} +17 -10
  80. package/{chunk-AFHOCBSP.js → chunk-F6YWDVIB.js} +1 -1
  81. package/{chunk-SJYK3LLP.js → chunk-FFYE5ATM.js} +6 -6
  82. package/{chunk-QG3USDTD.js → chunk-FZKA3XFA.js} +21 -21
  83. package/{chunk-C4VAR65S.js → chunk-G22P367E.js} +153 -117
  84. package/{chunk-WOIURUUV.js → chunk-GDUC4VS2.js} +12 -12
  85. package/{chunk-2VUZSVAS.js → chunk-GXXY2NL3.js} +22 -20
  86. package/{chunk-IWH5SOU4.js → chunk-H7ZYKHAZ.js} +38 -18
  87. package/{chunk-G2EJ7NL4.js → chunk-HBRDSQ3M.js} +2 -2
  88. package/{chunk-EGXPAWLG.js → chunk-HCNOO374.js} +1 -1
  89. package/{chunk-DJSTBAOU.js → chunk-HOM6LTEW.js} +4 -4
  90. package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
  91. package/{chunk-RXJ26SQW.js → chunk-IJTXNLQE.js} +13 -13
  92. package/{chunk-UYOICCYG.js → chunk-IUMS6F53.js} +59 -88
  93. package/{chunk-MOMR7NMG.js → chunk-IUTUWIKE.js} +2 -2
  94. package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
  95. package/{chunk-SASHAZ67.js → chunk-KZPEGO6D.js} +13 -2
  96. package/{chunk-HCJFGH6Y.js → chunk-L32W3PRP.js} +46 -16
  97. package/{chunk-GGKNJ42M.js → chunk-LYDEFPQP.js} +18 -108
  98. package/{chunk-K5FNYHZC.js → chunk-MECDGHLK.js} +420 -120
  99. package/{chunk-EOWLBDY6.js → chunk-MM73SP4K.js} +1 -1
  100. package/{chunk-J6T25AJ6.js → chunk-MYOSN6BT.js} +82 -18
  101. package/{chunk-Q7WP5RPC.js → chunk-MYPKBJJO.js} +5 -5
  102. package/{chunk-6RQFZCKH.js → chunk-N2JROHD3.js} +4 -4
  103. package/{chunk-VREDDN25.js → chunk-O6IPRAVV.js} +14 -9
  104. package/{chunk-VALBGPM6.js → chunk-OBSEKCVK.js} +17 -20
  105. package/{chunk-AMEOV5VZ.js → chunk-OOJNQK6V.js} +33 -33
  106. package/{chunk-PPJYZRSQ.js → chunk-OX6GNNVT.js} +6 -1
  107. package/{chunk-5R63B62U.js → chunk-P3IZUMIC.js} +8 -8
  108. package/{chunk-FRSBYNWI.js → chunk-PGKA77TZ.js} +52 -217
  109. package/{chunk-H5LWB3D3.js → chunk-PRMEU7BT.js} +347 -14
  110. package/{chunk-2ZKFCIJJ.js → chunk-PROOOQZ3.js} +1 -1
  111. package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
  112. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  113. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  114. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  115. package/chunk-RETQOQ4D.js +33394 -0
  116. package/{chunk-AVHRSJUH.js → chunk-RM4UMFY4.js} +32 -25
  117. package/{chunk-2OLYKYNY.js → chunk-RTHFJZ6M.js} +8 -8
  118. package/{chunk-OB6DVWPF.js → chunk-S2MHR4PU.js} +164 -4
  119. package/{chunk-IWQAOW2X.js → chunk-SRCCSTIM.js} +8 -8
  120. package/{chunk-PVZY6P3S.js → chunk-T6VROBY7.js} +2 -2
  121. package/{chunk-2KTUDBG7.js → chunk-TEMLHVGX.js} +1 -1
  122. package/{chunk-TVFRV3UQ.js → chunk-TRHJ4NJB.js} +673 -1279
  123. package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
  124. package/{chunk-UMRI2IRY.js → chunk-TWTJV35S.js} +6 -6
  125. package/{chunk-5OZC7R7Y.js → chunk-U3G7RRXJ.js} +13 -12
  126. package/{chunk-CXDPIPZ4.js → chunk-UFC4J7OY.js} +3 -3
  127. package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
  128. package/{chunk-AGP3YSEC.js → chunk-ULLHVDTZ.js} +48 -3
  129. package/{chunk-SYQR7FQS.js → chunk-VM72HKW2.js} +97 -29
  130. package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
  131. package/{chunk-53X6PS42.js → chunk-VREG6ANQ.js} +103 -100
  132. package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
  133. package/{chunk-SH3IKNCG.js → chunk-VSRISJXZ.js} +15 -8
  134. package/chunk-WDWZPASX.js +29 -0
  135. package/chunk-WFGNWWJI.js +326 -0
  136. package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
  137. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  138. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  139. package/chunk-X7IA2B7R.js +166 -0
  140. package/{chunk-5ZMIIR23.js → chunk-XBAEM4RI.js} +7 -0
  141. package/{chunk-4JVNURX4.js → chunk-XS5A3EKX.js} +1 -23
  142. package/{chunk-N5Z2V73W.js → chunk-Y2MF4DCJ.js} +1 -1
  143. package/{chunk-EVYGYDPG.js → chunk-Y5OWZQMJ.js} +39 -30
  144. package/{chunk-AK5O76CC.js → chunk-YGCOJNFZ.js} +3 -3
  145. package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
  146. package/{chunk-OK4MZRJ6.js → chunk-Z2WZAE4P.js} +128 -149
  147. package/chunk-Z6YTCDU4.js +24 -0
  148. package/chunk-ZEKUFJLW.js +1438 -0
  149. package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
  150. package/{cliAgentConfigHelpers-PO3MVDME.js → cliAgentConfigHelpers-U5OAVAKQ.js} +12 -12
  151. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-S42VMGB6.js} +1 -1
  152. package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
  153. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  154. package/{cliLocalAgentRecordReader-Z7CH4K4R.js → cliLocalAgentRecordReader-HVZAQCUD.js} +49 -44
  155. package/{commandRegistry-3JVE76K2.js → commandRegistry-TME7INFU.js} +98 -94
  156. package/{contentThunks-SRKUHSBR.js → contentThunks-U6OC4R2N.js} +37 -35
  157. package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-U7XSRVJP.js} +4 -4
  158. package/{createAgentAutomationAction-B4BQV46J.js → createAgentAutomationAction-IP4LFN3W.js} +37 -35
  159. package/{createDialogAction-IONSKZIX.js → createDialogAction-IAGQJ3LH.js} +38 -37
  160. package/{createPageAction-K75KBQOO.js → createPageAction-AZ3UIFKA.js} +38 -36
  161. package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
  162. package/{dbSlice-ZJPDIFER.js → dbSlice-DKKMJJYY.js} +13 -12
  163. package/{deleteFile-Q3YDB4ML.js → deleteFile-TQSONMVU.js} +11 -8
  164. package/{dialogCommands-6KQEBHSG.js → dialogCommands-PCDRMBWG.js} +60 -55
  165. package/dialogMessageRecord-OAV77LT7.js +7 -0
  166. package/{dialogNotifyCommand-WIZFFEY3.js → dialogNotifyCommand-O35MWMOS.js} +13 -13
  167. package/{dialogSlice-GPALSBQM.js → dialogSlice-QAKYN4DE.js} +35 -33
  168. package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-2SSLTXKO.js} +3 -3
  169. package/{docCreateCommands-XZOLWBRC.js → docCreateCommands-CFQFZOAD.js} +54 -48
  170. package/{docDeleteCommands-ZSO4LGWE.js → docDeleteCommands-5CPNTIIS.js} +56 -50
  171. package/{docReadCommands-TTMXCDER.js → docReadCommands-XQILYSAJ.js} +54 -48
  172. package/{docStore-O43KOHIX.js → docStore-GIVRT7TQ.js} +15 -14
  173. package/{docUpdateCommands-PRG6WOXL.js → docUpdateCommands-VETKSUDD.js} +54 -48
  174. package/fetchMessages-TQEUZD7H.js +1 -1
  175. package/{getPricing-YH3VMSVU.js → getPricing-LF5C4XSI.js} +5 -5
  176. package/{handleSendMessageAction-I2GHUSHZ.js → handleSendMessageAction-HKIW4ZNO.js} +70 -66
  177. package/{hostCredentialCreate-V775SKCE.js → hostCredentialCreate-6VDJFNDO.js} +118 -105
  178. package/index.js +56 -18
  179. package/keys-RWF7UCB4.js +1 -1
  180. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  181. package/{localDialogRead-SVTPA5GY.js → localDialogRead-AV2VKKPG.js} +1 -1
  182. package/{localRecall-2J6QPOK2.js → localRecall-BDYKXB46.js} +3 -1
  183. package/{localRuntimeAdapter-SAMUDW5S.js → localRuntimeAdapter-BQ4F5PZV.js} +120 -108
  184. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-WCNA4A3G.js} +4 -2
  185. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-CRNIBOOM.js} +1 -1
  186. package/{machineCommands-ZXZWGMFE.js → machineCommands-K6XIGOAD.js} +142 -115
  187. package/{machineWsRunDispatch-3ZEI4BEC.js → machineWsRunDispatch-4OO7Z6UM.js} +114 -102
  188. package/mcpLocalAuthorizeCommand-ZP6ESAGE.js +106 -0
  189. package/{memberThunks-JRYNONYV.js → memberThunks-PBJPZ2JU.js} +22 -17
  190. package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
  191. package/{models-CXINDUJA.js → models-H5NNZRLH.js} +2 -2
  192. package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
  193. package/package.json +1 -1
  194. package/{projectArchive-V7EYBAX6.js → projectArchive-G7AOQPRW.js} +43 -41
  195. package/{providerPresetApply-SHT2SUVB.js → providerPresetApply-OPBCAONX.js} +6 -6
  196. package/{providerRegistry-TA7EGCVZ.js → providerRegistry-J2HCVTHE.js} +6 -6
  197. package/{read-Q7GOHGNP.js → read-JEGPITEW.js} +10 -9
  198. package/{readDocTool-Z5OQ6422.js → readDocTool-TE3XIU4Y.js} +1 -1
  199. package/{readlineWorkspace-S4VRNWYG.js → readlineWorkspace-SOW5QUGZ.js} +4412 -4279
  200. package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-CX3OAH4Y.js} +17 -16
  201. package/{runAgentClientLoop-MQLOUDF5.js → runAgentClientLoop-HQJPDFGQ.js} +95 -70
  202. package/{runtimeDoctorCommands-I47JN4HS.js → runtimeDoctorCommands-GUH2YGMH.js} +17 -17
  203. package/{secretCommands-LJXOOYA7.js → secretCommands-NJXFVHZU.js} +4 -4
  204. package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-CGM67EEQ.js} +16 -15
  205. package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-3ABWPPXR.js} +17 -16
  206. package/{settingThunks-AXTBX3Q5.js → settingThunks-AY76OHYX.js} +181 -62
  207. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
  208. package/{spaceCommands-IB6FKWIC.js → spaceCommands-G63QGYQO.js} +59 -53
  209. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  210. package/{streamAgentChatTurn-GMNIKJVL.js → streamAgentChatTurn-E3XH2KFD.js} +160 -155
  211. package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-G6EZRKCQ.js} +15 -14
  212. package/{tableCommands-HITDSLHS.js → tableCommands-JI75ZHDI.js} +14 -11
  213. package/{toolApiClient-OGQEBQVX.js → toolApiClient-62UUPDUA.js} +3 -5
  214. package/{tools-MWIF3S4T.js → tools-7RSX22FT.js} +64 -59
  215. package/tuiRestart-KAAA7TND.js +41 -0
  216. package/{tuiSummaryLlmCaller-7LWYTHLM.js → tuiSummaryLlmCaller-BVNHMWLR.js} +19 -19
  217. package/{updateCommands-RJVCRSBP.js → updateCommands-ASK5XYPH.js} +8 -6
  218. package/{updateDialogTitleAction-ZXHMZFSX.js → updateDialogTitleAction-SEWV252V.js} +37 -35
  219. package/{usageCommand-RVKHEPLU.js → usageCommand-JVT5J3DC.js} +3 -3
  220. package/{usageRebuildCommand-GRAFOZF2.js → usageRebuildCommand-IZYYUTEW.js} +4 -4
  221. package/webapi-24RZDIIQ.js +2488 -0
  222. package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-BSDIS2J5.js} +2 -2
  223. package/workContext-MM3P5GP5.js +13 -0
  224. package/workContextAccess-UZHDLBUR.js +11 -0
  225. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  226. package/agentRecordCommands-S2IVVEES.js +0 -177
  227. package/chunk-2THCNKE4.js +0 -147
  228. package/chunk-2WZXXAQD.js +0 -57
  229. package/chunk-652XYZGP.js +0 -352
  230. package/chunk-BJF2MHJ3.js +0 -118
  231. package/chunk-KEPOVMF4.js +0 -91
  232. package/chunk-OXKUPBAQ.js +0 -776
  233. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  234. package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
  235. package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
  236. package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
  237. package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-YIZ7KLUP.js} +3 -3
@@ -3,7 +3,7 @@ import {
3
3
  parseFlagWithOptionalValue,
4
4
  runCloudflareOAuthLogin,
5
5
  upsertEnvVariable
6
- } from "./chunk-EGXPAWLG.js";
6
+ } from "./chunk-HCNOO374.js";
7
7
  import {
8
8
  ANTHROPIC_OAUTH_AUTHORIZE_URL,
9
9
  ANTHROPIC_OAUTH_CALLBACK_PORT,
@@ -47,10 +47,10 @@ import {
47
47
  startCallbackServer,
48
48
  validateXAIEndpoint,
49
49
  xaiOAuthDiscovery
50
- } from "./chunk-J6T25AJ6.js";
50
+ } from "./chunk-MYOSN6BT.js";
51
51
  import {
52
52
  defaultOpenBrowser
53
- } from "./chunk-6E2NWYT4.js";
53
+ } from "./chunk-AH5R7BYW.js";
54
54
  import {
55
55
  extractGoogleValidationLink
56
56
  } from "./chunk-BMQ2MJUK.js";
@@ -60,14 +60,21 @@ import {
60
60
  detectLocalDevinCredentials,
61
61
  extractDevinToken,
62
62
  fetchAntigravityCloudCodeCompletion
63
- } from "./chunk-IWH5SOU4.js";
63
+ } from "./chunk-H7ZYKHAZ.js";
64
+ import {
65
+ createOAuthTokenStore,
66
+ resolveFreshAccessToken
67
+ } from "./chunk-G7Y4GXTY.js";
68
+ import {
69
+ parseUserIdFromAuthToken
70
+ } from "./chunk-BIDSIRTS.js";
64
71
  import {
65
72
  getProfileOAuthSync,
66
73
  saveProfileOAuthSync
67
74
  } from "./chunk-R5GO3YZP.js";
68
75
  import {
69
76
  t
70
- } from "./chunk-OB6DVWPF.js";
77
+ } from "./chunk-S2MHR4PU.js";
71
78
  import {
72
79
  toErrorMessage
73
80
  } from "./chunk-HNMXYYJR.js";
@@ -80,13 +87,6 @@ import {
80
87
  import {
81
88
  asOptionalFiniteNumber
82
89
  } from "./chunk-WWC7I6TA.js";
83
- import {
84
- parseUserIdFromAuthToken
85
- } from "./chunk-2THCNKE4.js";
86
- import {
87
- createOAuthTokenStore,
88
- resolveFreshAccessToken
89
- } from "./chunk-G7Y4GXTY.js";
90
90
 
91
91
  // packages/cli/oauth/flows/xai.ts
92
92
  function buildXAIAuthorizeUrl(opts) {
@@ -8,11 +8,13 @@ import {
8
8
  noloUploadRequest,
9
9
  noloWriteRequest,
10
10
  syncWithServers
11
- } from "./chunk-7Z6EW7AH.js";
11
+ } from "./chunk-7TTMMOKH.js";
12
12
  import {
13
13
  getAllServers,
14
- getIsDesktopApp
15
- } from "./chunk-AGP3YSEC.js";
14
+ getIsDesktopApp,
15
+ googleSessionServer,
16
+ scopeGoogleSessionServers
17
+ } from "./chunk-ULLHVDTZ.js";
16
18
  import {
17
19
  selectIdentityToken,
18
20
  selectIdentityUser,
@@ -21,12 +23,6 @@ import {
21
23
  import {
22
24
  isTombstoneRecord
23
25
  } from "./chunk-BV3FLP2L.js";
24
- import {
25
- asTrimmedString
26
- } from "./chunk-3EUW3WEO.js";
27
- import {
28
- isRecord
29
- } from "./chunk-KUG52IAP.js";
30
26
  import {
31
27
  asOptionalPositiveFiniteNumber
32
28
  } from "./chunk-U6VC4MU4.js";
@@ -34,6 +30,12 @@ import {
34
30
  SERVERS,
35
31
  normalizeKnownServerOrigin
36
32
  } from "./chunk-LCBAMY2M.js";
33
+ import {
34
+ asTrimmedString
35
+ } from "./chunk-3EUW3WEO.js";
36
+ import {
37
+ isRecord
38
+ } from "./chunk-KUG52IAP.js";
37
39
  import {
38
40
  asOptionalTrimmedString
39
41
  } from "./chunk-G3SUCT4W.js";
@@ -88,8 +90,8 @@ var selectRuntimeSnapshot = createSelector(
88
90
  (currentToken, currentUserId, currentServer, syncServers, localRuntimeOrigin) => ({
89
91
  currentToken,
90
92
  currentUserId,
91
- currentServer,
92
- syncServers,
93
+ currentServer: googleSessionServer(currentToken, currentServer) ?? currentServer,
94
+ syncServers: googleSessionServer(currentToken, currentServer) === void 0 ? syncServers : [],
93
95
  localRuntimeOrigin
94
96
  })
95
97
  );
@@ -99,7 +101,7 @@ var selectRuntimeCurrentServer = createSelector(
99
101
  );
100
102
  var selectRuntimeRemoteServers = createSelector(
101
103
  [selectRuntimeSnapshot],
102
- (runtime) => getAllServers(runtime.currentServer, runtime.syncServers)
104
+ (runtime) => scopeGoogleSessionServers(runtime.currentToken, runtime.currentServer, getAllServers(runtime.currentServer, runtime.syncServers))
103
105
  );
104
106
 
105
107
  // packages/database/runtimeServerContext.ts
@@ -116,11 +118,11 @@ var getRuntimeServerContext = (state, preferredServerOrigin) => {
116
118
  currentServer,
117
119
  syncServers,
118
120
  userAuthorityRegistry: resolveRuntimeUserAuthorityRegistry(state),
119
- remoteServers: getAllServers(
121
+ remoteServers: scopeGoogleSessionServers(currentToken, currentServer, getAllServers(
120
122
  currentServer,
121
123
  syncServers,
122
124
  preferredServerOrigin
123
- )
125
+ ))
124
126
  };
125
127
  };
126
128
  var resolveRuntimeUserAuthorityRegistry = (state) => {
@@ -585,11 +587,11 @@ var resolveAuthorityReplicationServers = ({
585
587
  if (isDeviceLocalOwnerId(authority.ownerUserId) || isDeviceLocalOwnerId(record?.userId) || isDeviceLocalDbKey(dbKey)) {
586
588
  return [];
587
589
  }
588
- return planAuthorityReadServers({
590
+ return scopeGoogleSessionServers(selectIdentityToken(state), currentServer, planAuthorityReadServers({
589
591
  allServers,
590
592
  authorityServer: preferredServerOrigin ?? authority.authorityServer,
591
593
  serverOrigin: authority.serverOrigin
592
- });
594
+ }));
593
595
  };
594
596
  var scheduleWriteReplication = (servers, request, state) => {
595
597
  if (servers.length === 0) return null;
@@ -680,17 +682,17 @@ var resolveUploadReplicationServers = ({
680
682
  userAuthorityRegistry: state?.settings?.userAuthorityRegistry ?? selectIdentityUser(state)?.authorityRegistry
681
683
  });
682
684
  if (authority.ownerUserId || authority.authorityServer) {
683
- return planAuthorityReadServers({
685
+ return scopeGoogleSessionServers(selectIdentityToken(state), currentServer, planAuthorityReadServers({
684
686
  allServers,
685
687
  authorityServer: authority.authorityServer,
686
688
  serverOrigin: authority.serverOrigin
687
- });
689
+ }));
688
690
  }
689
- return resolveTenantReplicationServers({
691
+ return scopeGoogleSessionServers(selectIdentityToken(state), currentServer, resolveTenantReplicationServers({
690
692
  currentServer,
691
693
  syncServers,
692
694
  tenantId
693
- });
695
+ }));
694
696
  };
695
697
  var scheduleExistingRecordReplication = ({
696
698
  currentServer,
@@ -3,19 +3,29 @@ import {
3
3
  } from "./chunk-HNUWUO75.js";
4
4
  import {
5
5
  resolveToolImagePolicy
6
- } from "./chunk-SRL56PI2.js";
6
+ } from "./chunk-BGGAY6OK.js";
7
7
  import {
8
8
  projectOpenAiToolImages
9
- } from "./chunk-E2BESSAW.js";
9
+ } from "./chunk-X4O7FJF5.js";
10
10
  import {
11
11
  getAntigravityUserAgent,
12
12
  readAntigravityProjectId,
13
13
  resolveAntigravityCloudCodeBaseUrl
14
- } from "./chunk-JC5XLWZK.js";
14
+ } from "./chunk-6CKUO32A.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) {
@@ -46,16 +56,16 @@ var WIRE_PROFILES = {
46
56
  // 证据确认 3.8 的 wire modelEnum,禁止虚构,先只声明同档输出上限;enum 待
47
57
  // discovery 证据到位后补齐。
48
58
  "gemini-3.8-flash-tiered": { maxOutputTokens: 65536 },
49
- // Gemini 4 Argon:fetchAvailableModels(2026-10 实测)仅返回键 `gemini-4-argon-disabled`
50
- // (MODEL_PLACEHOLDER_M421,maxOutputTokens 65536,disabled=true,提示「仅 Ultra 订阅可用」)。
51
- // 该键名带 -disabled 后缀,不是已验证可调用的 wire id:对 streamGenerateContent 用
52
- // gemini-4-argon / -disabled / -tiered / -low 均返回 404。因此这里以 logical id 作为
53
- // 透传 wire id(开放后若 discovery 给出真实 id,只需改这一行与 resolve 分支),
54
- // enum 取自 discovery 的 M421,不凭空推测 low/medium/high 档位 id。
55
- // 2026-10-13 实测:UA 升到官方 2.23.1 后 discovery 与 2.18.1 完全一致(仍仅 gemini-4-argon-disabled,
56
- // disabled=true,tagTitle "Unavailable",tagDescription "currently available to Ultra plan subscribers"),
57
- // streamGenerateContent 仍 404;loadCodeAssist currentTier=free-tier,账号非 Ultra,故保持占位映射。
58
- "gemini-4-argon": { modelEnum: "MODEL_PLACEHOLDER_M421", maxOutputTokens: 65536 },
59
+ // Discovery (2026-11-16) exposes separate enabled Argon effort variants.
60
+ "gemini-4-argon-low": { modelEnum: "MODEL_PLACEHOLDER_M419", maxOutputTokens: 65536 },
61
+ "gemini-4-argon-medium": { modelEnum: "MODEL_PLACEHOLDER_M418", maxOutputTokens: 65536 },
62
+ "gemini-4-argon-high": { modelEnum: "MODEL_PLACEHOLDER_M417", maxOutputTokens: 65536 },
63
+ // Discovery (2026-11-17) exposes Carbon effort variants with their own enums and a
64
+ // 262144 output cap (Argon caps at 65536). 裸 gemini-4-carbon 不在 discovery 里,
65
+ // 必须折叠到 effort 变体,否则上游回 404。
66
+ "gemini-4-carbon-low": { modelEnum: "MODEL_PLACEHOLDER_M438", maxOutputTokens: 262144 },
67
+ "gemini-4-carbon-medium": { modelEnum: "MODEL_PLACEHOLDER_M437", maxOutputTokens: 262144 },
68
+ "gemini-4-carbon-high": { modelEnum: "MODEL_PLACEHOLDER_M427", maxOutputTokens: 262144 },
59
69
  "gemini-3.6-flash-low": { maxOutputTokens: 65536 },
60
70
  "gemini-3.6-flash-medium": { maxOutputTokens: 65536 },
61
71
  "gemini-3.6-flash-high": { maxOutputTokens: 65536 },
@@ -71,7 +81,7 @@ var WIRE_PROFILES = {
71
81
  "gemini-2.5-flash": { maxOutputTokens: 65536 },
72
82
  "gemini-2.5-pro": { maxOutputTokens: 65536 }
73
83
  };
74
- function resolveAntigravityWireModel(logicalModelId) {
84
+ function resolveAntigravityWireModel(logicalModelId, reasoningEffort) {
75
85
  const id = logicalModelId.trim();
76
86
  const lower = id.toLowerCase();
77
87
  if (lower === "gemini-3.5-flash") {
@@ -86,8 +96,13 @@ function resolveAntigravityWireModel(logicalModelId) {
86
96
  const wireModelId = "gemini-3.8-flash-tiered";
87
97
  return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
88
98
  }
89
- if (lower === "gemini-4-argon" || ["gemini-4-argon-low", "gemini-4-argon-medium", "gemini-4-argon-high"].includes(lower)) {
90
- const wireModelId = "gemini-4-argon";
99
+ const gemini4 = /^gemini-4-(argon|carbon)(?:-(low|medium|high))?$/.exec(lower);
100
+ if (gemini4) {
101
+ const family = gemini4[1] ?? "argon";
102
+ const explicitEffort = gemini4[2];
103
+ const effort = reasoningEffort?.trim().toLowerCase();
104
+ const selected = explicitEffort ?? (effort === "low" || effort === "high" ? effort : "medium");
105
+ const wireModelId = `gemini-4-${family}-${selected}`;
91
106
  return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
92
107
  }
93
108
  if (lower === "gemini-3.6-flash") {
@@ -898,7 +913,10 @@ function buildCloudCodeAssistPayload(args) {
898
913
  );
899
914
  }
900
915
  const logicalModel = asOptionalTrimmedString(args.openAiBody.model) ?? asOptionalTrimmedString(args.agentConfig.model) ?? "gemini-3.1-pro";
901
- const { wireModelId: model, profile } = resolveAntigravityWireModel(logicalModel);
916
+ const { wireModelId: model, profile } = resolveAntigravityWireModel(
917
+ logicalModel,
918
+ asOptionalTrimmedString(args.openAiBody.reasoning_effort) ?? args.agentConfig.reasoning_effort
919
+ );
902
920
  const rawMessages = Array.isArray(args.openAiBody.messages) ? args.openAiBody.messages : [];
903
921
  const quirks = resolveGeminiModelQuirks(model);
904
922
  const isClaude = quirks.isClaudeCrossModel;
@@ -916,7 +934,7 @@ function buildCloudCodeAssistPayload(args) {
916
934
  throw new Error("Antigravity Cloud Code Assist request has no user/model contents.");
917
935
  }
918
936
  const prompt = args.agentConfig.prompt?.trim();
919
- if (prompt) systemTexts.unshift(prompt);
937
+ if (prompt && !hasAssembledAgentPrompt(rawMessages)) systemTexts.unshift(prompt);
920
938
  const request = { contents };
921
939
  if (systemTexts.length > 0) {
922
940
  request.systemInstruction = {
@@ -1199,6 +1217,8 @@ function buildDevinOAuthCredential(token, now = Date.now()) {
1199
1217
  }
1200
1218
 
1201
1219
  export {
1220
+ AGENT_PROMPT_IN_MESSAGES,
1221
+ hasAssembledAgentPrompt,
1202
1222
  parseSseDataLineJson,
1203
1223
  parseSseDataLineObject,
1204
1224
  parseUpstreamErrorBody,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getModelConfig
3
- } from "./chunk-LE6LGAJE.js";
3
+ } from "./chunk-CD3RU7XL.js";
4
4
  import {
5
5
  isPlatformHostedDeepseekModel,
6
6
  isPlatformHostedOpenAIImageModel,
7
7
  resolvePlatformHostedRouting
8
- } from "./chunk-VALBGPM6.js";
8
+ } from "./chunk-OBSEKCVK.js";
9
9
  import {
10
10
  asTrimmedLowercaseString
11
11
  } from "./chunk-QSJ3HFEF.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  generatePkcePair,
3
3
  startCallbackServer
4
- } from "./chunk-J6T25AJ6.js";
4
+ } from "./chunk-MYOSN6BT.js";
5
5
  import {
6
6
  toErrorMessage
7
7
  } from "./chunk-HNMXYYJR.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-HNUWUO75.js";
4
4
  import {
5
5
  resolveToolImagePolicy
6
- } from "./chunk-SRL56PI2.js";
6
+ } from "./chunk-BGGAY6OK.js";
7
7
  import {
8
8
  accumulateToolCallDelta,
9
9
  createThinkParserState,
@@ -31,7 +31,7 @@ import {
31
31
  stablePromptCacheKey,
32
32
  toOpenAiCompatibleMessages,
33
33
  toResponsesTools
34
- } from "./chunk-PFJNLBRU.js";
34
+ } from "./chunk-EEOOBRA7.js";
35
35
  import {
36
36
  isMeaningfulChatCompletionOutput,
37
37
  isMeaningfulResponsesOutput
@@ -51,14 +51,14 @@ import {
51
51
  resolvePlatformAuthToken,
52
52
  resolvePlatformServerUrl,
53
53
  resolveProviderTransportDecision
54
- } from "./chunk-2OLYKYNY.js";
54
+ } from "./chunk-RTHFJZ6M.js";
55
55
  import {
56
56
  isRecord
57
57
  } from "./chunk-KUG52IAP.js";
58
58
  import {
59
59
  NOLO_CLIENT_VERSION_HEADER,
60
60
  isPlatformMimoProviderModel
61
- } from "./chunk-VALBGPM6.js";
61
+ } from "./chunk-OBSEKCVK.js";
62
62
 
63
63
  // packages/ai/token/sseUsageExtract.ts
64
64
  var TOKEN_FIELDS = [
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_react
3
- } from "./chunk-5FUN7EG4.js";
3
+ } from "./chunk-RD3QLZQV.js";
4
4
  import {
5
5
  __toESM
6
6
  } from "./chunk-U67V476Y.js";
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  upsertSSREntity,
3
3
  write
4
- } from "./chunk-AVHRSJUH.js";
4
+ } from "./chunk-RM4UMFY4.js";
5
5
  import {
6
6
  getRuntimeServerContext,
7
7
  resolveRecordAuthority
8
- } from "./chunk-2VUZSVAS.js";
8
+ } from "./chunk-GXXY2NL3.js";
9
9
  import {
10
10
  TIMEOUT,
11
11
  asyncThunkCreator,
12
12
  buildCreateSlice,
13
13
  noloRequest
14
- } from "./chunk-7Z6EW7AH.js";
14
+ } from "./chunk-7TTMMOKH.js";
15
15
  import {
16
16
  applyAgentSecretMigrationUpdates,
17
17
  migrateAgentSecrets,
18
18
  normalizeAgentRuntimeToolPolicy
19
- } from "./chunk-47ITIXO7.js";
19
+ } from "./chunk-USGHJSGO.js";
20
+ import {
21
+ createFileCredentialBroker
22
+ } from "./chunk-OQHIVPG4.js";
20
23
  import {
21
24
  asRecordOrEmpty
22
25
  } from "./chunk-KX6YBIHG.js";
23
- import {
24
- createFileCredentialBroker
25
- } from "./chunk-SNBZZPYH.js";
26
26
  import {
27
27
  isLevelNotFoundError
28
28
  } from "./chunk-OW765XBU.js";
@@ -31,15 +31,15 @@ import {
31
31
  createUserKey,
32
32
  toTrimmedString
33
33
  } from "./chunk-SYTHYBMI.js";
34
+ import {
35
+ API_ENDPOINTS
36
+ } from "./chunk-LCBAMY2M.js";
34
37
  import {
35
38
  asTrimmedString
36
39
  } from "./chunk-3EUW3WEO.js";
37
40
  import {
38
41
  isRecord
39
42
  } from "./chunk-KUG52IAP.js";
40
- import {
41
- API_ENDPOINTS
42
- } from "./chunk-LCBAMY2M.js";
43
43
  import {
44
44
  asOptionalTrimmedString
45
45
  } from "./chunk-G3SUCT4W.js";
@@ -458,7 +458,7 @@ var slice = createSliceWithThunks({
458
458
  const overrides = {};
459
459
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
460
460
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
461
- const { _executeModel } = await import("./_executeModel-4WBUORCW.js");
461
+ const { _executeModel } = await import("./_executeModel-5NA4USGG.js");
462
462
  return _executeModel(
463
463
  {
464
464
  isStreaming: args.isStreaming ?? false,
@@ -479,7 +479,7 @@ var slice = createSliceWithThunks({
479
479
  * - 循环直到无工具调用或触发其他运行时停止条件
480
480
  */
481
481
  runAgent: create.asyncThunk(async (args, thunkApi) => {
482
- const { runAgentClientLoop } = await import("./runAgentClientLoop-MQLOUDF5.js");
482
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-HQJPDFGQ.js");
483
483
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
484
484
  {
485
485
  agentKey: args.agentKey,
@@ -495,7 +495,7 @@ var slice = createSliceWithThunks({
495
495
  * 聊天轮次流式 Agent 调用
496
496
  */
497
497
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
498
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-GMNIKJVL.js");
498
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-E3XH2KFD.js");
499
499
  return streamAgentChatTurnHandler(args, thunkApi);
500
500
  }),
501
501
  /**
@@ -1,3 +1,9 @@
1
+ import {
2
+ isCompiledBinary
3
+ } from "./chunk-BIDSIRTS.js";
4
+ import {
5
+ DEFAULT_NOLO_SERVER_URL
6
+ } from "./chunk-OLZBQWZU.js";
1
7
  import {
2
8
  loadProfileConfig
3
9
  } from "./chunk-R5GO3YZP.js";
@@ -6,28 +12,22 @@ import {
6
12
  } from "./chunk-4O22PGNQ.js";
7
13
  import {
8
14
  scheduleWindowsSelfUpdate
9
- } from "./chunk-5RKUPJYL.js";
15
+ } from "./chunk-4FIO2S7Z.js";
10
16
  import {
11
17
  t
12
- } from "./chunk-OB6DVWPF.js";
13
- import {
14
- isCompiledBinary
15
- } from "./chunk-2THCNKE4.js";
16
- import {
17
- DEFAULT_NOLO_SERVER_URL
18
- } from "./chunk-OLZBQWZU.js";
18
+ } from "./chunk-S2MHR4PU.js";
19
19
  import {
20
20
  normalizeServerOrigin
21
21
  } from "./chunk-CF7PE763.js";
22
22
 
23
23
  // packages/cli/updateCommands.ts
24
- import { existsSync, readFileSync, accessSync, constants } from "node:fs";
24
+ import { existsSync, readFileSync, accessSync, constants, realpathSync } from "node:fs";
25
25
  import { homedir } from "node:os";
26
26
  import { dirname, join } from "node:path";
27
27
  import { fileURLToPath } from "node:url";
28
28
  function resolvePackageJsonPath() {
29
29
  if (isCompiledBinary()) {
30
- const execDir = dirname(process.execPath);
30
+ const execDir = dirname(realpathSync(process.execPath));
31
31
  const candidate2 = join(execDir, "package.json");
32
32
  if (existsSync(candidate2)) return candidate2;
33
33
  return null;
@@ -212,6 +212,34 @@ async function runShellScript(script, {
212
212
  ]);
213
213
  return exitCode;
214
214
  }
215
+ function buildManagedNpmUpdateScript(channel) {
216
+ return `set -eu
217
+ PREFIX=$(npm prefix -g)
218
+ ENTRY="$PREFIX/bin/nolo"
219
+ ROOT="\${NOLO_HOME:-$HOME/.nolo}/cli/versions"
220
+ mkdir -p "$ROOT" "\${ENTRY%/*}"
221
+ STAGING=$(mktemp -d "$ROOT/npm.XXXXXXXX")
222
+ # npm writes only into the newly reserved prefix, never the global package.
223
+ npm install -g --prefix "$STAGING" ${shellQuote(`nolo-cli@${channel}`)} --progress
224
+ PACKAGE="$STAGING/lib/node_modules/nolo-cli"
225
+ node -e 'const p=require(process.argv[1]); if(p.name!=="nolo-cli" || !/^[0-9]+\\.[0-9]+\\.[0-9]+(?:[-+][0-9A-Za-z.+-]+)?$/.test(p.version)) process.exit(1)' "$PACKAGE/package.json"
226
+ VERSION_TEXT=$("$PACKAGE/index.js" -v)
227
+ case "$VERSION_TEXT" in
228
+ "nolo-cli "*) ;;
229
+ *) echo "Error: invalid staged CLI version" >&2; exit 1 ;;
230
+ esac
231
+ # Fail before touching the live entry. Version is a health check, not identity:
232
+ # every install has a unique permanent prefix, including same-version builds.
233
+ EXPECTED=$(node -p 'require(process.argv[1]).version' "$PACKAGE/package.json")
234
+ [ "$VERSION_TEXT" = "nolo-cli $EXPECTED" ]
235
+ if [ -d "$ENTRY" ] || { [ -e "$ENTRY" ] && [ ! -L "$ENTRY" ]; }; then echo "Error: refusing non-symlink entrypoint; retain it and migrate explicitly" >&2; exit 1; fi
236
+ LINK="$ENTRY.new.$$"
237
+ if [ -e "$LINK" ] || [ -L "$LINK" ]; then exit 1; fi
238
+ ln -s "$PACKAGE/index.js" "$LINK"
239
+ mv -f "$LINK" "$ENTRY"
240
+ echo "nolo updated to $ENTRY"
241
+ `;
242
+ }
215
243
  function shellQuote(value) {
216
244
  return "'" + value.replace(/'/g, "'\\''") + "'";
217
245
  }
@@ -221,39 +249,19 @@ function buildStandaloneUpdateScript(args) {
221
249
  EXTRACT_DIR=${shellQuote(args.extractDir)}
222
250
  ENTRY=${shellQuote(args.symlinkPath)}
223
251
  CURRENT_VERSION=${shellQuote(args.currentVersion)}
224
- STAGING="$EXTRACT_DIR.new.$$"
225
- BACKUP="$EXTRACT_DIR.old.$$"
252
+ if [ -L "$EXTRACT_DIR" ]; then
253
+ echo "Error: refusing symlink bundle directory" >&2
254
+ exit 1
255
+ fi
256
+ # mktemp reserves a fresh directory even for rebuilds of the same version.
257
+ mkdir -p "$EXTRACT_DIR.versions"
258
+ STAGING=$(mktemp -d "$EXTRACT_DIR.versions/build.XXXXXXXX")
226
259
  LINK="$ENTRY.new.$$"
227
- old_moved=0
228
- new_moved=0
229
- committed=0
230
- cleanup() {
231
- status=$?
232
- trap - 0 HUP INT TERM
233
- if [ "$committed" = 0 ]; then
234
- if [ "$new_moved" = 1 ] && [ -d "$EXTRACT_DIR" ]; then
235
- mv "$EXTRACT_DIR" "$STAGING" || exit 1
236
- fi
237
- if [ "$old_moved" = 1 ] && [ -d "$BACKUP" ]; then
238
- mv "$BACKUP" "$EXTRACT_DIR" || exit 1
239
- fi
240
- fi
241
- rm -rf "$STAGING" || true
242
- rm -f "$LINK" || true
243
- exit "$status"
244
- }
245
- # Refuse collisions before installing cleanup: never remove somebody else's path.
246
- if [ -e "$STAGING" ] || [ -L "$STAGING" ] ||
247
- [ -e "$BACKUP" ] || [ -L "$BACKUP" ] ||
248
- [ -e "$LINK" ] || [ -L "$LINK" ]; then
249
- echo "Error: update staging path already exists" >&2
260
+ if [ -e "$LINK" ] || [ -L "$LINK" ]; then
261
+ echo "Error: update link staging path already exists" >&2
250
262
  exit 1
251
263
  fi
252
- mkdir -p "\${EXTRACT_DIR%/*}"
253
- mkdir "$STAGING"
254
- trap cleanup 0
255
- trap 'exit 1' HUP INT TERM
256
-
264
+ # Failed staged bundles are retained too; no old runtime is ever removed.
257
265
  echo ${shellQuote(`Downloading nolo from ${args.tarballUrl}...`)}
258
266
  if ! ${curl} ${shellQuote(args.tarballUrl)} -o "$STAGING/bundle.tar.gz"; then
259
267
  ${args.tarballUrl !== args.fallbackUrl ? `echo ${shellQuote(`Primary source unavailable, trying ${args.fallbackUrl}...`)}
@@ -264,7 +272,6 @@ if ! ${curl} ${shellQuote(args.tarballUrl)} -o "$STAGING/bundle.tar.gz"; then
264
272
  exit 1`}
265
273
  fi
266
274
  tar -xzf "$STAGING/bundle.tar.gz" -C "$STAGING"
267
- rm -f "$STAGING/bundle.tar.gz"
268
275
  chmod +x "$STAGING/nolo"
269
276
  # A failing, empty or malformed version response must not touch the live install.
270
277
  VERSION_TEXT=$("$STAGING/nolo" -v)
@@ -321,32 +328,14 @@ if [ -n "$CUR_MAJOR" ] && [ -n "$CUR_MINOR" ] && [ -n "$CUR_PATCH" ]; then
321
328
  ;;
322
329
  esac
323
330
  fi
324
- if [ "$VERSION" = "$CURRENT_VERSION" ]; then
325
- echo "\u2713 Already up to date (nolo-cli $VERSION)."
326
- exit 10
327
- fi
328
331
  mkdir -p "\${ENTRY%/*}"
329
- # mv without -T is portable only when the destination is not a directory.
330
- if [ -d "$ENTRY" ] || [ -L "$EXTRACT_DIR" ]; then
331
- echo "Error: refusing directory entrypoint or symlink bundle directory" >&2
332
+ if [ -d "$ENTRY" ] || { [ -e "$ENTRY" ] && [ ! -L "$ENTRY" ]; }; then
333
+ echo "Error: refusing non-symlink entrypoint; retain it and migrate explicitly" >&2
332
334
  exit 1
333
335
  fi
334
- ln -s "$EXTRACT_DIR/nolo" "$LINK"
335
- if [ -e "$EXTRACT_DIR" ]; then
336
- old_moved=1
337
- mv "$EXTRACT_DIR" "$BACKUP"
338
- fi
339
- new_moved=1
340
- mv "$STAGING" "$EXTRACT_DIR"
336
+ # The staged path becomes permanent. Never rename the running bundle.
337
+ ln -s "$STAGING/nolo" "$LINK"
341
338
  mv -f "$LINK" "$ENTRY"
342
- committed=1
343
- # Retain only the newest recovery copy from this run; prune older backups.
344
- for old_copy in "$EXTRACT_DIR.old."*; do
345
- if [ -d "$old_copy" ] && [ ! -L "$old_copy" ] && [ "$old_copy" != "$BACKUP" ]; then
346
- rm -rf "$old_copy" || true
347
- fi
348
- done
349
- # Retain the previous bundle as a recovery copy; never unlink the live entry.
350
339
  echo "nolo updated to $ENTRY"
351
340
  `;
352
341
  }
@@ -369,7 +358,7 @@ async function runStandaloneBundleUpdate(options) {
369
358
  const tarballUrl = `${repoBase}/public/downloads/${bundleName}`;
370
359
  const fallbackUrl = `https://nolo.chat/public/downloads/${bundleName}`;
371
360
  const extractDir = join(homedir(), ".nolo", extractSubdir);
372
- const installDir = resolveStandaloneInstallDir();
361
+ const installDir = env.NOLO_INSTALL_DIR || resolveStandaloneInstallDir();
373
362
  const symlinkPath = join(installDir, "nolo");
374
363
  const script = buildStandaloneUpdateScript({
375
364
  tarballUrl,
@@ -543,31 +532,12 @@ ${t("updateInstallerTitle")}
543
532
  `);
544
533
  output.write(`${t("updateNpmDownloading")}
545
534
  `);
546
- const useCustomSink = options.output !== void 0;
547
- const proc = spawn({
548
- cmd: command,
549
- // Capture mode (TUI sink): ignore stdin — see runShellScript.
550
- stdin: useCustomSink ? "ignore" : "inherit",
551
- stdout: useCustomSink ? "pipe" : "inherit",
552
- stderr: useCustomSink ? "pipe" : "inherit",
553
- env
535
+ const exitCode = await runShellScript(buildManagedNpmUpdateScript(channel), {
536
+ output,
537
+ spawn,
538
+ env,
539
+ useCustomSink: options.output !== void 0
554
540
  });
555
- if (!useCustomSink) {
556
- const exitCode2 = await proc.exited;
557
- if (exitCode2 === 0) {
558
- output.write(` ${renderProgressBar(100)}
559
- `);
560
- output.write(`${t("updateCompleted")}
561
-
562
- `);
563
- }
564
- return { exitCode: exitCode2, disposition: "completed" };
565
- }
566
- const [exitCode] = await Promise.all([
567
- proc.exited,
568
- forwardSpawnOutput(proc.stdout, output),
569
- forwardSpawnOutput(proc.stderr, output)
570
- ]);
571
541
  if (exitCode === 0) {
572
542
  output.write(` ${renderProgressBar(100)}
573
543
  `);
@@ -594,6 +564,7 @@ export {
594
564
  buildSelfUpdateCommand,
595
565
  resolveSelfUpdateServerUrl,
596
566
  buildCliDoctorText,
567
+ buildManagedNpmUpdateScript,
597
568
  buildStandaloneUpdateScript,
598
569
  runStandaloneBundleUpdate,
599
570
  NOLO_UPDATE_CHECK_KILL_SWITCH,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  require_react
3
- } from "./chunk-5FUN7EG4.js";
3
+ } from "./chunk-RD3QLZQV.js";
4
4
  import {
5
5
  normalizeSpaceId
6
6
  } from "./chunk-UAD2WT54.js";
7
7
  import {
8
8
  toTimestampMs
9
- } from "./chunk-AVHRSJUH.js";
9
+ } from "./chunk-RM4UMFY4.js";
10
10
  import {
11
11
  __toESM
12
12
  } from "./chunk-U67V476Y.js";