nolo-cli 0.227.0-alpha.1 → 0.228.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 (197) hide show
  1. package/{_executeModel-JKQGZ3HU.js → _executeModel-WZKT6XEU.js} +76 -77
  2. package/{action-CK64LS6S.js → action-GDZDXPMB.js} +9 -9
  3. package/{addContentAction-CARFID6E.js → addContentAction-7RO4AMRI.js} +14 -14
  4. package/{addDialogAgentAction-APLZLFW5.js → addDialogAgentAction-EVYBGTXB.js} +16 -16
  5. package/{agentDeleteCommand-NVR2V2HH.js → agentDeleteCommand-PZWRHNXY.js} +113 -114
  6. package/{agentEmailCommands-UCVOWD3S.js → agentEmailCommands-QTKMEICX.js} +116 -117
  7. package/{agentFavoriteCommands-4PDOP3GW.js → agentFavoriteCommands-7LOP3HUD.js} +6 -6
  8. package/{agentGrantCommands-FLCEXLUH.js → agentGrantCommands-L6O2HVJI.js} +7 -7
  9. package/{agentListCommands-C65UESYM.js → agentListCommands-GUGMORTK.js} +72 -71
  10. package/{agentMachineCommands-V3DGEJU4.js → agentMachineCommands-7QGICJLM.js} +57 -56
  11. package/{agentProviderCommands-7QBFRFRK.js → agentProviderCommands-STI3DQ6A.js} +7 -7
  12. package/{agentPullCommand-E6JBGBVG.js → agentPullCommand-KHV4EELF.js} +6 -6
  13. package/{agentRecordCommands-6RCJS2EY.js → agentRecordCommands-SLLADS5C.js} +104 -105
  14. package/{agentRunCommand-P3GRKXKS.js → agentRunCommand-OFQLOF5Y.js} +110 -111
  15. package/{agentRunControl-SNZZ5XP4.js → agentRunControl-MBG4U6SL.js} +23 -17
  16. package/{agentRuntimeLocal-GOX2DIY7.js → agentRuntimeLocal-TU4LA353.js} +44 -44
  17. package/{agentSlice-N7H2FRJA.js → agentSlice-L4SBGWTB.js} +17 -17
  18. package/{appDeleteCommands-LZDN26FU.js → appDeleteCommands-JWP3XPUA.js} +52 -51
  19. package/{appDeployCommands-6IO6TTZH.js → appDeployCommands-6E4TQCWI.js} +52 -51
  20. package/{appDeployStatusCommands-FG3LX24J.js → appDeployStatusCommands-ALU4SADG.js} +52 -51
  21. package/{appGetCommands-NAKVDVD4.js → appGetCommands-JEY4L6L4.js} +52 -51
  22. package/{appListCommands-KL56RN73.js → appListCommands-PCAVHU7M.js} +52 -51
  23. package/{authCommand-AUN5MXV2.js → authCommand-CGRIIOOV.js} +30 -31
  24. package/{authCommands-D2IPS6ES.js → authCommands-55OGQGCR.js} +12 -13
  25. package/{builtinSkillRegistry-UQGLKRYP.js → builtinSkillRegistry-BAE2LDXF.js} +4 -4
  26. package/{chromeOpsCommands-UJWN5HWH.js → chromeOpsCommands-WAA45NCS.js} +8 -8
  27. package/{chunk-OB6DVWPF.js → chunk-262R3XNN.js} +16 -2
  28. package/{chunk-KMRKZNGT.js → chunk-2MCB7CD7.js} +13 -12
  29. package/{chunk-YPPKC6FL.js → chunk-2NPD3FTX.js} +3 -3
  30. package/{chunk-UN7HIYMH.js → chunk-2X7WFDT6.js} +1 -1
  31. package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
  32. package/{chunk-JWXITTQB.js → chunk-3P54D2E4.js} +1 -1
  33. package/{chunk-RU6DULV4.js → chunk-3U44JB3O.js} +1 -1
  34. package/{chunk-EUCFKKDM.js → chunk-4I2MXV5Q.js} +38 -10
  35. package/{chunk-PLPLH2XZ.js → chunk-4ZGPHFLE.js} +2 -2
  36. package/{chunk-NO3VBWTL.js → chunk-547ENH5T.js} +1 -1
  37. package/chunk-5ZUOVCKT.js +32 -0
  38. package/{chunk-XZODOEKU.js → chunk-6QHKRARD.js} +2 -2
  39. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  40. package/{chunk-VPAZ6BEN.js → chunk-7JGMNKKG.js} +18 -14
  41. package/{chunk-3VFYQH3I.js → chunk-AGYPUBFW.js} +14 -39
  42. package/{chunk-5HL4KC4A.js → chunk-ALAES342.js} +57 -86
  43. package/{chunk-VREDDN25.js → chunk-ATEKLSLR.js} +1 -1
  44. package/{chunk-CQVGR3MX.js → chunk-AUAJTAFM.js} +8 -8
  45. package/chunk-BIDSIRTS.js +307 -0
  46. package/chunk-BIWI5M4E.js +62 -0
  47. package/{chunk-L5I543VB.js → chunk-BNMPUQW6.js} +1 -1
  48. package/{chunk-UCFPVYP7.js → chunk-BP5ZJ6B4.js} +1 -1
  49. package/{chunk-2G3YSVO6.js → chunk-CBUZ6DKA.js} +3 -3
  50. package/{chunk-KYH7XW3K.js → chunk-CD3RU7XL.js} +16 -1
  51. package/{chunk-SFTTXGPM.js → chunk-CMMI3DAT.js} +16 -16
  52. package/{chunk-VZW34YUL.js → chunk-CYWNWA77.js} +5 -5
  53. package/{chunk-5LQDHFBN.js → chunk-D6YNCNM6.js} +14 -11
  54. package/{chunk-UVUVQVZ6.js → chunk-DBUR22G5.js} +2 -2
  55. package/{chunk-7Z3WUZ4Q.js → chunk-DDC6P6EH.js} +24 -24
  56. package/{chunk-G6HJUMST.js → chunk-DEA37IUY.js} +2 -2
  57. package/{chunk-5RKRXQ2H.js → chunk-DGYCDA6W.js} +2 -2
  58. package/{chunk-3HTP4WZQ.js → chunk-DUUDXSLX.js} +21 -7
  59. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  60. package/{chunk-TOKPHZ55.js → chunk-EEOOBRA7.js} +5 -5
  61. package/{chunk-UAPNPNSG.js → chunk-EXJK7TQO.js} +1040 -582
  62. package/{chunk-OXA5GWHU.js → chunk-F6Z6ZCUV.js} +2 -2
  63. package/{chunk-X2KRQP7V.js → chunk-FJSNBZXR.js} +1 -1
  64. package/{chunk-KRRE4A7D.js → chunk-G7IUT2V3.js} +3 -2
  65. package/{chunk-VIHDJ3FK.js → chunk-GACR7H6T.js} +14 -14
  66. package/{chunk-GOLPOTG5.js → chunk-GOCSSER3.js} +3 -3
  67. package/{chunk-NAOO4PVX.js → chunk-GPOV42YM.js} +16 -16
  68. package/{chunk-C2B7M567.js → chunk-GUXZK7SE.js} +5 -5
  69. package/{chunk-TINJKQSO.js → chunk-GYS5FUYR.js} +20 -20
  70. package/{chunk-IAJJYHIB.js → chunk-H6L2NFHY.js} +7 -7
  71. package/{chunk-45LZIYXB.js → chunk-HBRDSQ3M.js} +1 -1
  72. package/{chunk-T5N6NHAT.js → chunk-HHFGE2WF.js} +3 -3
  73. package/{chunk-IX2BXN2K.js → chunk-HSSBDZLD.js} +3 -3
  74. package/{chunk-MWHOH4RJ.js → chunk-HYLRQDEE.js} +4 -4
  75. package/{chunk-ZYA2YDB6.js → chunk-IAAIUH64.js} +16 -16
  76. package/{chunk-LXTC53TN.js → chunk-IXG6YXQM.js} +143 -123
  77. package/{chunk-CVERLOJM.js → chunk-JUSHVFNF.js} +236 -182
  78. package/{chunk-ABGULE7H.js → chunk-K67C2JUC.js} +12 -12
  79. package/{chunk-T2BEPTAG.js → chunk-L32W3PRP.js} +47 -17
  80. package/{chunk-M3Y4IBIR.js → chunk-M4SFKP5L.js} +4 -4
  81. package/{chunk-ZI5SZ3MV.js → chunk-MDZWUD3R.js} +20 -20
  82. package/{chunk-F5AY2UZL.js → chunk-NHY322ZU.js} +8 -8
  83. package/{chunk-KJAAPGBE.js → chunk-OBIC6EG7.js} +6 -6
  84. package/{chunk-4OKTPFNX.js → chunk-OG6MQOQG.js} +105 -37
  85. package/{chunk-AXYH4734.js → chunk-OOJNQK6V.js} +13 -13
  86. package/{chunk-XIEYGCN6.js → chunk-OWKNSIXL.js} +149 -48
  87. package/{chunk-JHF6VLVL.js → chunk-OYU2MA5S.js} +29 -29
  88. package/{chunk-6XIE5ZGI.js → chunk-PDCV7P5W.js} +1 -1
  89. package/{chunk-CKT6QUE2.js → chunk-Q3IVPFVO.js} +1 -1
  90. package/{chunk-PHOSZT3E.js → chunk-QBZCGP34.js} +1 -1
  91. package/{chunk-CLCXHIBS.js → chunk-QCB42576.js} +1 -1
  92. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  93. package/{chunk-YQETUZ5V.js → chunk-QRGDJA4B.js} +11 -11
  94. package/{chunk-ULAQPRHX.js → chunk-QYB23WUH.js} +1 -1
  95. package/{chunk-PVAWNHP5.js → chunk-R3NEQZ53.js} +295 -102
  96. package/{chunk-CSW7IPVD.js → chunk-R6Z5S5GA.js} +11 -11
  97. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  98. package/{chunk-GUVXQSFZ.js → chunk-RBPUNSG5.js} +1 -1
  99. package/{chunk-GOQ6ZVTN.js → chunk-RG2DGNL6.js} +3 -3
  100. package/{chunk-6EDAMVG6.js → chunk-RTHFJZ6M.js} +10 -10
  101. package/{chunk-YOT437BH.js → chunk-RYOLWYBK.js} +122 -118
  102. package/{chunk-WJP4TH6U.js → chunk-S6FDXXZV.js} +1 -1
  103. package/{chunk-SW6OD4KE.js → chunk-SMJEXX2S.js} +123 -12
  104. package/{chunk-LJSNEV7M.js → chunk-SRCCSTIM.js} +7 -7
  105. package/{chunk-FKEZOMIF.js → chunk-STJ6LSQE.js} +453 -193
  106. package/{chunk-L42CBKBZ.js → chunk-TGNIKIHR.js} +3 -3
  107. package/{chunk-AK5O76CC.js → chunk-TI2EPRHE.js} +2 -2
  108. package/{chunk-SRG5CNLC.js → chunk-TSPMLCWI.js} +6 -6
  109. package/{chunk-YGILMZ7N.js → chunk-TUSTONB3.js} +1 -1
  110. package/{chunk-2SKTCNWO.js → chunk-UE2EVEYS.js} +2 -2
  111. package/{chunk-ZADGPNTV.js → chunk-UWAIJOF2.js} +29 -29
  112. package/{chunk-HVUDBOQG.js → chunk-VMJVAJ6W.js} +9 -6
  113. package/{chunk-LA7JYAKF.js → chunk-VSYTM22R.js} +3 -3
  114. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  115. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  116. package/{chunk-GRXSJR2Z.js → chunk-XJPLSAPJ.js} +21 -21
  117. package/{chunk-HYKGIXNO.js → chunk-XSW4EXQV.js} +85 -21
  118. package/{chunk-T43K75CK.js → chunk-YKY4OVOX.js} +15 -15
  119. package/{chunk-5RKUPJYL.js → chunk-ZH3KXFHS.js} +11 -3
  120. package/chunk-ZOHO6MOF.js +376 -0
  121. package/{chunk-PXKF5CV4.js → chunk-ZXF6D3I6.js} +10 -8
  122. package/{cliAgentConfigHelpers-QVSQYTKC.js → cliAgentConfigHelpers-BTRHMPW2.js} +14 -14
  123. package/{cliEnvHelpers-D6HMC46Z.js → cliEnvHelpers-CNMP3RDX.js} +2 -2
  124. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  125. package/{cliLocalAgentRecordReader-SPKAJYME.js → cliLocalAgentRecordReader-M3F76NIP.js} +46 -46
  126. package/{commandRegistry-TKR6OWXP.js → commandRegistry-ZLWHQVAI.js} +93 -93
  127. package/{contentThunks-BQWRPCTM.js → contentThunks-4ZX2TO7C.js} +36 -35
  128. package/{cooldownCommands-FZYQOWI5.js → cooldownCommands-YB5H5BBK.js} +3 -3
  129. package/{createAgentAutomationAction-GFI6SJZV.js → createAgentAutomationAction-L4CYUZJG.js} +36 -35
  130. package/{createDialogAction-MMBIHFFU.js → createDialogAction-QTU2R2Q3.js} +37 -37
  131. package/{createPageAction-EEYUE5FB.js → createPageAction-F3GJTHW2.js} +39 -38
  132. package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
  133. package/{dbSlice-X4Z4E4QU.js → dbSlice-XRUZOGSU.js} +13 -13
  134. package/{deleteFile-QOOP2UK7.js → deleteFile-6URDHYRB.js} +9 -9
  135. package/{dialogCommands-OXBQ73DD.js → dialogCommands-NRLCOPJR.js} +56 -56
  136. package/{dialogNotifyCommand-VWS5G4OO.js → dialogNotifyCommand-SHGPCU22.js} +17 -17
  137. package/{dialogSlice-KGYIABDY.js → dialogSlice-P2S4LXQD.js} +34 -33
  138. package/{dialogUsageCommand-FEWCN7IA.js → dialogUsageCommand-W2WCSGKF.js} +6 -6
  139. package/{docCreateCommands-LS32VKY3.js → docCreateCommands-YJRDA3RX.js} +51 -50
  140. package/{docDeleteCommands-JTYR5RPH.js → docDeleteCommands-A5QIHZNF.js} +53 -52
  141. package/{docReadCommands-E5LTVKWN.js → docReadCommands-CF2LTMYH.js} +51 -50
  142. package/{docStore-TVS2FNER.js → docStore-6O7NYL6A.js} +15 -15
  143. package/{docUpdateCommands-I3J3JDZ2.js → docUpdateCommands-QRKV4ZXE.js} +51 -50
  144. package/{fetchMessages-Q3INLN5F.js → fetchMessages-TQEUZD7H.js} +3 -3
  145. package/{getPricing-VNGFM4PN.js → getPricing-LF5C4XSI.js} +6 -6
  146. package/{handleSendMessageAction-SSON36TJ.js → handleSendMessageAction-7IHLR37A.js} +66 -66
  147. package/{hostCredentialCreate-WTW4THJF.js → hostCredentialCreate-VNCQUAFT.js} +104 -105
  148. package/index.js +54 -16
  149. package/keys-RWF7UCB4.js +1 -1
  150. package/{localDialogRead-V36DX2Q2.js → localDialogRead-CCOCVGAP.js} +2 -2
  151. package/{localRuntimeAdapter-MI2JGXSF.js → localRuntimeAdapter-FOWVNMIK.js} +111 -112
  152. package/{machineCommands-3LROJZDK.js → machineCommands-ZGC3J4JB.js} +115 -116
  153. package/{machineWsRunDispatch-BUUJRUUB.js → machineWsRunDispatch-KK5U4M3G.js} +102 -103
  154. package/{memberThunks-CFEPHAND.js → memberThunks-7Y3OYSJQ.js} +17 -17
  155. package/{memoryCommands-JQMEJO7J.js → memoryCommands-BC6REPQB.js} +6 -6
  156. package/{overlay-THLKYIWY.js → overlay-BBQZXGYI.js} +5 -3
  157. package/package.json +1 -1
  158. package/{projectArchive-3X54XFVN.js → projectArchive-7ZDYBXAX.js} +44 -43
  159. package/{providerPresetApply-FO36N5TX.js → providerPresetApply-WHAMP2D5.js} +9 -9
  160. package/{providerRegistry-U2BSFE6K.js → providerRegistry-ZI2KORJ7.js} +9 -9
  161. package/{read-KA3L2V7O.js → read-TYMBGEXO.js} +9 -9
  162. package/{readDocTool-AMAZAPAW.js → readDocTool-SKQVHBLO.js} +1 -1
  163. package/{readlineWorkspace-Z3YUH4SX.js → readlineWorkspace-YHT4SX2C.js} +4391 -4161
  164. package/{removeDialogAgentAction-JQOJSUM7.js → removeDialogAgentAction-F5QE2O2B.js} +19 -19
  165. package/{runAgentClientLoop-4FCFLMDJ.js → runAgentClientLoop-H4ED5V3K.js} +70 -71
  166. package/{runtimeDoctorCommands-CXOCVDPU.js → runtimeDoctorCommands-RRKPBGVO.js} +16 -16
  167. package/{secretCommands-GGUAWAE7.js → secretCommands-KZWBZIYS.js} +2 -2
  168. package/{setDialogExtraReferencesAction-YXQTGXIN.js → setDialogExtraReferencesAction-72L27ERM.js} +15 -15
  169. package/{setPrimaryDialogAgentAction-YNLB66WE.js → setPrimaryDialogAgentAction-GJJDUSGJ.js} +19 -19
  170. package/{settingThunks-E6N7RSSS.js → settingThunks-ZRGWVGZD.js} +18 -18
  171. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-I37M5KJC.js} +3 -3
  172. package/{spaceCommands-DB5DKC2J.js → spaceCommands-MEH3HJBC.js} +53 -52
  173. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  174. package/{streamAgentChatTurn-FCBGMD4D.js → streamAgentChatTurn-ZXPOXU33.js} +91 -92
  175. package/{switchDialogAgentAction-LAHLUECU.js → switchDialogAgentAction-IIJBPND3.js} +16 -16
  176. package/{tableCommands-VNSXHAMG.js → tableCommands-FTAOCBTX.js} +12 -12
  177. package/{tools-6JD36D6K.js → tools-2MRWA2PP.js} +59 -60
  178. package/tuiRestart-2IL37YIB.js +41 -0
  179. package/{tuiSummaryLlmCaller-UHZIPGAX.js → tuiSummaryLlmCaller-W2QN4VAC.js} +21 -21
  180. package/{updateCommands-KZ54HCU5.js → updateCommands-CPATDG6J.js} +8 -6
  181. package/{updateDialogTitleAction-RV3EUEN3.js → updateDialogTitleAction-RZ3KZSGQ.js} +36 -35
  182. package/{usageCommand-KFVV6UL3.js → usageCommand-2BF74MKF.js} +2 -2
  183. package/{usageRebuildCommand-HHFSNK46.js → usageRebuildCommand-UHB55BQM.js} +3 -3
  184. package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-ZFD6J5HF.js} +2 -2
  185. package/chunk-BJF2MHJ3.js +0 -118
  186. package/chunk-KEPOVMF4.js +0 -91
  187. package/chunk-PMDVQBGA.js +0 -100
  188. package/chunk-WACI5I6V.js +0 -147
  189. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +4 -4
  190. package/{chunk-AGP3YSEC.js → chunk-4N6G2CKP.js} +3 -3
  191. package/{chunk-VXL2FZTP.js → chunk-HXER7YJF.js} +3 -3
  192. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  193. package/{chunk-SSGTV4FC.js → chunk-USGHJSGO.js} +5 -5
  194. package/{chunk-IC2I373Q.js → chunk-VS276URX.js} +3 -3
  195. package/{chunk-AETZ7AD6.js → chunk-W6RFEDN4.js} +3 -3
  196. package/{offlineMarxistsAgentCommand-AGA2X5E4.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +5 -5
  197. package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-CQVGR3MX.js";
3
+ } from "./chunk-AUAJTAFM.js";
4
4
  import {
5
5
  resolveServerUrl
6
- } from "./chunk-WACI5I6V.js";
6
+ } from "./chunk-BIDSIRTS.js";
7
7
  import {
8
8
  t
9
- } from "./chunk-OB6DVWPF.js";
9
+ } from "./chunk-262R3XNN.js";
10
10
 
11
11
  // packages/cli/cliApiClient.ts
12
12
  var CliApiError = class extends Error {
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  selectCurrentServer,
3
3
  selectRemoteServers
4
- } from "./chunk-VREDDN25.js";
4
+ } from "./chunk-ATEKLSLR.js";
5
5
  import {
6
6
  noloDeleteRequest,
7
7
  noloWriteRequest
8
8
  } from "./chunk-7Z6EW7AH.js";
9
9
  import {
10
10
  normalizeTimeFields
11
- } from "./chunk-AGP3YSEC.js";
11
+ } from "./chunk-4N6G2CKP.js";
12
12
  import {
13
13
  selectIdentityUser,
14
14
  selectIdentityUserId
@@ -10,7 +10,7 @@ import {
10
10
  canUsePlatformChatProvider,
11
11
  parsePlatformChatCompletionResponse,
12
12
  resolvePlatformChatProviderConfig
13
- } from "./chunk-IX2BXN2K.js";
13
+ } from "./chunk-HSSBDZLD.js";
14
14
  import {
15
15
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
16
16
  classifySummaryError,
@@ -18,20 +18,20 @@ import {
18
18
  isTruncatedCompletion,
19
19
  selectSummaryRoute,
20
20
  summaryCompletionTokens
21
- } from "./chunk-T2BEPTAG.js";
21
+ } from "./chunk-L32W3PRP.js";
22
22
  import {
23
23
  isAbortError
24
24
  } from "./chunk-7DPNBQSV.js";
25
+ import {
26
+ parseUserIdFromAuthToken
27
+ } from "./chunk-BIDSIRTS.js";
25
28
  import {
26
29
  resolvePlatformAuthToken,
27
30
  resolvePlatformServerUrl
28
- } from "./chunk-6EDAMVG6.js";
31
+ } from "./chunk-RTHFJZ6M.js";
29
32
  import {
30
33
  PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL
31
34
  } from "./chunk-OBSEKCVK.js";
32
- import {
33
- parseUserIdFromAuthToken
34
- } from "./chunk-WACI5I6V.js";
35
35
 
36
36
  // packages/core/accountSession/fetchAccountProfile.ts
37
37
  async function fetchAccountProfile(input) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  resolveAuthToken,
3
3
  resolveServerUrl
4
- } from "./chunk-WACI5I6V.js";
4
+ } from "./chunk-BIDSIRTS.js";
5
5
 
6
6
  // packages/cli/subscriptionQuotaRefresh.ts
7
7
  var CATALOG_QUOTA_REFRESH_TIMEOUT_MS = 2e3;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-LXTC53TN.js";
3
+ } from "./chunk-IXG6YXQM.js";
4
4
  import {
5
5
  runtime_default
6
- } from "./chunk-PVAWNHP5.js";
6
+ } from "./chunk-R3NEQZ53.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
9
  } from "./chunk-6OVNSQHN.js";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-HS7MLR74.js";
4
4
  import {
5
5
  performServerProxyFetchWithRetry
6
- } from "./chunk-ZI5SZ3MV.js";
6
+ } from "./chunk-MDZWUD3R.js";
7
7
  import {
8
8
  fetchServerSyncedCredential
9
- } from "./chunk-ABGULE7H.js";
9
+ } from "./chunk-K67C2JUC.js";
10
10
  import {
11
11
  CREDENTIAL_HYGIENE_RULE,
12
12
  DELETE_SAFETY_RED_LINE,
@@ -22,7 +22,7 @@ import {
22
22
  compileContextLayers,
23
23
  detectDispatchIntentFromMessages,
24
24
  resolveToolGuidedSections
25
- } from "./chunk-3VFYQH3I.js";
25
+ } from "./chunk-AGYPUBFW.js";
26
26
  import {
27
27
  convertMessagesToResponsesInput,
28
28
  getUsageRequestOptions,
@@ -31,58 +31,58 @@ import {
31
31
  resolveReasoningReplayOptions,
32
32
  shouldStripReasoningContentForOutbound,
33
33
  stablePromptCacheKey
34
- } from "./chunk-TOKPHZ55.js";
34
+ } from "./chunk-EEOOBRA7.js";
35
35
  import {
36
36
  resolveAgentCallPlan,
37
37
  resolveClientWire
38
- } from "./chunk-KJAAPGBE.js";
38
+ } from "./chunk-OBIC6EG7.js";
39
39
  import {
40
40
  createFileCredentialBroker
41
41
  } from "./chunk-OQHIVPG4.js";
42
- import {
43
- buildProviderAuthHeaders
44
- } from "./chunk-6EDAMVG6.js";
45
- import {
46
- toErrorMessage
47
- } from "./chunk-HNMXYYJR.js";
48
42
  import {
49
43
  WORKTREE_ISOLATION_PRELUDE,
50
44
  buildSkillGuidancePromptBlock
51
- } from "./chunk-KRRE4A7D.js";
45
+ } from "./chunk-G7IUT2V3.js";
52
46
  import {
53
47
  canonicalizeToolNames
54
48
  } from "./chunk-6OVNSQHN.js";
55
- import {
56
- clampReasoningEffort,
57
- getModelConfig,
58
- isModelSupportReasoningEffort
59
- } from "./chunk-KYH7XW3K.js";
60
- import {
61
- isRecord
62
- } from "./chunk-KUG52IAP.js";
63
- import {
64
- isDeepInfraKimiModel,
65
- isFireworksKimiModel,
66
- isPlatformMimoProviderModel,
67
- resolveFireworksKimiModel
68
- } from "./chunk-OBSEKCVK.js";
69
49
  import {
70
50
  MEMORY_USE_GUIDANCE,
71
51
  buildUserResponseLanguageContext,
72
52
  wrapHistoricalSummaryWithReplayGuard
73
- } from "./chunk-L5I543VB.js";
53
+ } from "./chunk-BNMPUQW6.js";
74
54
  import {
75
55
  API_ENDPOINTS
76
56
  } from "./chunk-LCBAMY2M.js";
77
57
  import {
78
- isLoopbackUrl
79
- } from "./chunk-4SN6J65J.js";
58
+ buildProviderAuthHeaders
59
+ } from "./chunk-RTHFJZ6M.js";
60
+ import {
61
+ toErrorMessage
62
+ } from "./chunk-HNMXYYJR.js";
80
63
  import {
81
64
  asTrimmedString
82
65
  } from "./chunk-3EUW3WEO.js";
66
+ import {
67
+ clampReasoningEffort,
68
+ getModelConfig,
69
+ isModelSupportReasoningEffort
70
+ } from "./chunk-CD3RU7XL.js";
71
+ import {
72
+ isRecord
73
+ } from "./chunk-KUG52IAP.js";
83
74
  import {
84
75
  asOptionalTrimmedString
85
76
  } from "./chunk-G3SUCT4W.js";
77
+ import {
78
+ isLoopbackUrl
79
+ } from "./chunk-4SN6J65J.js";
80
+ import {
81
+ isDeepInfraKimiModel,
82
+ isFireworksKimiModel,
83
+ isPlatformMimoProviderModel,
84
+ resolveFireworksKimiModel
85
+ } from "./chunk-OBSEKCVK.js";
86
86
 
87
87
  // packages/agent-runtime/responsesConversationState.ts
88
88
  function supportsResponsesConversationState(agent) {
@@ -1,15 +1,15 @@
1
- import {
2
- toErrorMessage
3
- } from "./chunk-HNMXYYJR.js";
4
- import {
5
- isRecord
6
- } from "./chunk-KUG52IAP.js";
7
1
  import {
8
2
  resolveNoloStateDir
9
3
  } from "./chunk-6UBGXX2W.js";
10
4
  import {
11
5
  asOptionalPositiveFiniteNumber
12
6
  } from "./chunk-U6VC4MU4.js";
7
+ import {
8
+ toErrorMessage
9
+ } from "./chunk-HNMXYYJR.js";
10
+ import {
11
+ isRecord
12
+ } from "./chunk-KUG52IAP.js";
13
13
  import {
14
14
  asOptionalFiniteNumber
15
15
  } from "./chunk-WWC7I6TA.js";
@@ -2082,8 +2082,11 @@ ${stderr.trim()}` : "",
2082
2082
  }
2083
2083
 
2084
2084
  export {
2085
+ countLines,
2085
2086
  spillToolOutput,
2086
2087
  formatToolOverflowMarker,
2088
+ TOOL_OUTPUT_SPILL_BYTES,
2089
+ TOOL_OUTPUT_SPILL_LINES,
2087
2090
  isSpilledToolOutput,
2088
2091
  spillLargeToolOutput,
2089
2092
  resolveExecutableOnPath,
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  patch,
9
9
  readAndWait
10
- } from "./chunk-SFTTXGPM.js";
10
+ } from "./chunk-CMMI3DAT.js";
11
11
  import {
12
12
  toErrorMessage
13
13
  } from "./chunk-HNMXYYJR.js";
@@ -335,7 +335,7 @@ async function saveDocState(arg, { dispatch, getState }) {
335
335
  ).unwrap();
336
336
  if (dbSpaceId) {
337
337
  try {
338
- const { updateContentTitle } = await import("./contentThunks-BQWRPCTM.js");
338
+ const { updateContentTitle } = await import("./contentThunks-4ZX2TO7C.js");
339
339
  await dispatch(
340
340
  updateContentTitle({
341
341
  spaceId: dbSpaceId,
@@ -378,7 +378,7 @@ async function saveDocState(arg, { dispatch, getState }) {
378
378
  }
379
379
  }
380
380
  async function createDocState(args, thunkApi) {
381
- const { createPageAction } = await import("./createPageAction-EEYUE5FB.js");
381
+ const { createPageAction } = await import("./createPageAction-F3GJTHW2.js");
382
382
  return createPageAction(args, thunkApi);
383
383
  }
384
384
  function subscribe(listener) {
@@ -2,7 +2,7 @@ import {
2
2
  mergeAvailabilityDeadline,
3
3
  resolveCredentialCandidateKeys,
4
4
  resolveCredentialKeyWithFallback
5
- } from "./chunk-HOCHUZQ7.js";
5
+ } from "./chunk-QJTZ76CP.js";
6
6
 
7
7
  // packages/agent-runtime/credentialAvailability.ts
8
8
  import { homedir } from "node:os";
@@ -148,6 +148,8 @@ export {
148
148
  toolImageNotices,
149
149
  resetToolImageDelivery,
150
150
  toolImageDelivery,
151
+ MAX_TOOL_IMAGES_PER_REQUEST,
152
+ MAX_TOOL_IMAGE_BASE64_BYTES_PER_REQUEST,
151
153
  formatToolImageBudgetNote,
152
154
  createToolImageBudget,
153
155
  toolImageSource,
@@ -6,16 +6,16 @@ import {
6
6
  normalizeSystemBuiltinSkills,
7
7
  normalizeTonePresetSetting,
8
8
  resolveUserEnabledSkills
9
- } from "./chunk-GUVXQSFZ.js";
9
+ } from "./chunk-RBPUNSG5.js";
10
+ import {
11
+ setDialogExtraReferencesAction
12
+ } from "./chunk-HYLRQDEE.js";
10
13
  import {
11
14
  isSkillSummaryMarker
12
15
  } from "./chunk-VF4K2QE6.js";
13
- import {
14
- setDialogExtraReferencesAction
15
- } from "./chunk-MWHOH4RJ.js";
16
16
  import {
17
17
  fetchAndCacheTableRows
18
- } from "./chunk-TINJKQSO.js";
18
+ } from "./chunk-GYS5FUYR.js";
19
19
  import {
20
20
  getActiveDialogKey
21
21
  } from "./chunk-S2NTVGA2.js";
@@ -27,10 +27,10 @@ import {
27
27
  } from "./chunk-UAD2WT54.js";
28
28
  import {
29
29
  selectById
30
- } from "./chunk-SFTTXGPM.js";
30
+ } from "./chunk-CMMI3DAT.js";
31
31
  import {
32
32
  selectRuntimeSnapshot
33
- } from "./chunk-CSW7IPVD.js";
33
+ } from "./chunk-R6Z5S5GA.js";
34
34
  import {
35
35
  createAsyncThunk,
36
36
  createSelector
@@ -40,33 +40,33 @@ import {
40
40
  } from "./chunk-PXYBUFDB.js";
41
41
  import {
42
42
  isAgentSkillDisabled
43
- } from "./chunk-X2KRQP7V.js";
44
- import {
45
- toErrorMessage
46
- } from "./chunk-HNMXYYJR.js";
43
+ } from "./chunk-FJSNBZXR.js";
47
44
  import {
48
45
  DEFAULT_SYSTEM_AGENT_CAPABILITIES,
49
46
  listBuiltinSkills,
50
47
  resolveBuiltinSkillByName
51
- } from "./chunk-KRRE4A7D.js";
48
+ } from "./chunk-G7IUT2V3.js";
52
49
  import {
53
50
  parseSkillDocProtocol
54
- } from "./chunk-AETZ7AD6.js";
55
- import {
56
- isRecord
57
- } from "./chunk-KUG52IAP.js";
58
- import {
59
- normalizeServerOrigin
60
- } from "./chunk-CF7PE763.js";
51
+ } from "./chunk-W6RFEDN4.js";
61
52
  import {
62
53
  asTrimmedNonEmptyStringArray
63
54
  } from "./chunk-I42VC5KR.js";
55
+ import {
56
+ toErrorMessage
57
+ } from "./chunk-HNMXYYJR.js";
64
58
  import {
65
59
  asTrimmedString
66
60
  } from "./chunk-3EUW3WEO.js";
61
+ import {
62
+ isRecord
63
+ } from "./chunk-KUG52IAP.js";
67
64
  import {
68
65
  asOptionalTrimmedString
69
66
  } from "./chunk-G3SUCT4W.js";
67
+ import {
68
+ normalizeServerOrigin
69
+ } from "./chunk-CF7PE763.js";
70
70
  import {
71
71
  __toESM
72
72
  } from "./chunk-U67V476Y.js";
@@ -783,7 +783,7 @@ var executeToolRun = createAsyncThunk(
783
783
  if (!executionInput) {
784
784
  throw new Error(`ToolRun ${id} has no input to execute with.`);
785
785
  }
786
- const { findToolExecutor } = await import("./tools-6JD36D6K.js");
786
+ const { findToolExecutor } = await import("./tools-2MRWA2PP.js");
787
787
  const { executor } = findToolExecutor(run.toolName);
788
788
  toolRunStarted({
789
789
  id: run.id,
@@ -807,7 +807,7 @@ var executeToolRun = createAsyncThunk(
807
807
  const latestState = thunkApi.getState();
808
808
  const userId = selectIdentityUserId(latestState);
809
809
  if (userId) {
810
- const { fetchUserSpaceMemberships } = await import("./memberThunks-CFEPHAND.js");
810
+ const { fetchUserSpaceMemberships } = await import("./memberThunks-7Y3OYSJQ.js");
811
811
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
812
812
  }
813
813
  }
@@ -1,3 +1,13 @@
1
+ import {
2
+ writeOAuthCredential
3
+ } from "./chunk-G7Y4GXTY.js";
4
+ import {
5
+ buildEnvFromProfile,
6
+ loadProfileConfig
7
+ } from "./chunk-R5GO3YZP.js";
8
+ import {
9
+ getCliLocale
10
+ } from "./chunk-262R3XNN.js";
1
11
  import {
2
12
  ANTIGRAVITY_AUTH_URL,
3
13
  ANTIGRAVITY_CALLBACK_PATH,
@@ -11,26 +21,16 @@ import {
11
21
  getAntigravityUserAgent,
12
22
  normalizeAntigravityTokenPayload,
13
23
  refreshAntigravityToken
14
- } from "./chunk-VPAZ6BEN.js";
24
+ } from "./chunk-7JGMNKKG.js";
15
25
  import {
16
26
  toErrorMessage
17
27
  } from "./chunk-HNMXYYJR.js";
18
- import {
19
- isRecord
20
- } from "./chunk-KUG52IAP.js";
21
- import {
22
- buildEnvFromProfile,
23
- loadProfileConfig
24
- } from "./chunk-R5GO3YZP.js";
25
- import {
26
- getCliLocale
27
- } from "./chunk-OB6DVWPF.js";
28
- import {
29
- writeOAuthCredential
30
- } from "./chunk-G7Y4GXTY.js";
31
28
  import {
32
29
  asTrimmedString
33
30
  } from "./chunk-3EUW3WEO.js";
31
+ import {
32
+ isRecord
33
+ } from "./chunk-KUG52IAP.js";
34
34
  import {
35
35
  asOptionalFiniteNumber
36
36
  } from "./chunk-WWC7I6TA.js";
@@ -767,6 +767,25 @@ function wrapTranscriptLineWithLayout(line, columns, hangingIndent = "", lineSou
767
767
  break;
768
768
  }
769
769
  }
770
+ const CJK_CLOSING_OR_SEP_REGEX = /^[,。!?;:、)》】」』]$/;
771
+ let listMarkerEndToken = 0;
772
+ {
773
+ let plainPrefix = "";
774
+ let probe = 0;
775
+ while (probe < tokens.length && plainPrefix.length < 24) {
776
+ const tok = tokens[probe];
777
+ if (tok.kind === "char") {
778
+ plainPrefix += tok.value;
779
+ if (plainPrefix.length >= 2 && !/^(?:◈ ?)?\s*(?:\d*[.)]?|[•*+-])?\s*$/.test(plainPrefix)) {
780
+ break;
781
+ }
782
+ if (/^(?:◈\s+)?\s*(?:\d+[.)]|[•*+-])\s+$/.test(plainPrefix)) {
783
+ listMarkerEndToken = probe + 1;
784
+ }
785
+ }
786
+ probe += 1;
787
+ }
788
+ }
770
789
  let plainCharIndexAtStart = 0;
771
790
  let start = 0;
772
791
  while (start < tokens.length) {
@@ -776,6 +795,10 @@ function wrapTranscriptLineWithLayout(line, columns, hangingIndent = "", lineSou
776
795
  const currentPrefixWidth = isContinuation ? visibleWidth(hangingIndent) : prefixWidth;
777
796
  const indentWidth = isContinuation ? visibleWidth(hangingIndent) : 0;
778
797
  const maxSegmentWidth = Math.max(1, columns - indentWidth);
798
+ const nextContent = (from) => {
799
+ while (from < tokens.length && tokens[from].kind === "sgr") from += 1;
800
+ return tokens[from];
801
+ };
779
802
  let width = 0;
780
803
  let end = start;
781
804
  let lastBreak = -1;
@@ -788,17 +811,40 @@ function wrapTranscriptLineWithLayout(line, columns, hangingIndent = "", lineSou
788
811
  if (width + token.width > maxSegmentWidth && width > 0) break;
789
812
  width += token.width;
790
813
  end += 1;
791
- if ((token.value === " " || token.value === " ") && token.charIndex >= prefixCharCount) {
792
- lastBreak = end;
814
+ if (token.charIndex >= prefixCharCount && (isContinuation || end > listMarkerEndToken)) {
815
+ if (token.value === " " || token.value === " " || CJK_CLOSING_OR_SEP_REGEX.test(token.value) || token.value === "/") {
816
+ lastBreak = end;
817
+ }
793
818
  }
794
819
  }
795
820
  let segmentEnd = end;
796
821
  if (end < tokens.length && lastBreak > start) {
797
822
  const overflowToken = tokens[end];
798
- if (overflowToken.kind === "char" && overflowToken.value !== " " && overflowToken.width === 1) {
823
+ if (overflowToken.kind === "char" && overflowToken.value !== " " && (overflowToken.width === 1 || CJK_CLOSING_OR_SEP_REGEX.test(overflowToken.value)) && nextContent(lastBreak) !== overflowToken) {
799
824
  segmentEnd = lastBreak;
800
825
  }
801
826
  }
827
+ const next = nextContent(segmentEnd);
828
+ if (next?.kind === "char" && CJK_CLOSING_OR_SEP_REGEX.test(next.value)) {
829
+ const minBacktrack = isContinuation ? start : Math.max(start, listMarkerEndToken);
830
+ let previous = segmentEnd - 1;
831
+ while (previous > minBacktrack) {
832
+ const tok = tokens[previous];
833
+ if (tok.kind === "sgr") {
834
+ previous -= 1;
835
+ continue;
836
+ }
837
+ if (CJK_CLOSING_OR_SEP_REGEX.test(tok.value)) {
838
+ previous -= 1;
839
+ continue;
840
+ }
841
+ break;
842
+ }
843
+ const preceding = tokens[previous];
844
+ if (previous > minBacktrack && preceding?.kind === "char" && preceding.value !== " " && preceding.value !== " ") {
845
+ segmentEnd = previous;
846
+ }
847
+ }
802
848
  if (segmentEnd === start) segmentEnd = start + 1;
803
849
  let segment = "";
804
850
  let sawStyle = openingStyles.length > 0;
@@ -879,7 +925,7 @@ function wrapTranscriptLine(line, columns, hangingIndent = "") {
879
925
  return wrapTranscriptLineWithLayout(line, columns, hangingIndent).map((r) => r.rendered);
880
926
  }
881
927
  function buildWindowTitle(title) {
882
- const plain = stripAnsi2(title).replace(/[\x00-\x1f\x7f]+/g, " ");
928
+ const plain = stripAnsi2(title).replace(/[\x00-\x1f\x7f-\x9f]+/g, " ");
883
929
  let truncated = "";
884
930
  let width = 0;
885
931
  const maxCols = 80;
@@ -1026,6 +1072,23 @@ async function startCallbackServer(options) {
1026
1072
  var TIER_LEGACY = "legacy-tier";
1027
1073
  var PROJECT_ONBOARD_MAX_ATTEMPTS = 5;
1028
1074
  var PROJECT_ONBOARD_INTERVAL_MS = 2e3;
1075
+ async function fetchAntigravityAvailableModels(fetchImpl, accessToken) {
1076
+ const response = await fetchImpl(`${ANTIGRAVITY_CLOUD_CODE_BASE_URL}/v1internal:fetchAvailableModels`, {
1077
+ method: "POST",
1078
+ headers: {
1079
+ Authorization: `Bearer ${accessToken}`,
1080
+ "Content-Type": "application/json",
1081
+ "User-Agent": getAntigravityUserAgent()
1082
+ },
1083
+ body: "{}"
1084
+ });
1085
+ if (!response.ok) {
1086
+ const body = await response.text();
1087
+ throw new Error(`fetchAvailableModels failed: ${response.status} ${response.statusText}: ${body}`);
1088
+ }
1089
+ const payload = await response.json();
1090
+ return payload.models && typeof payload.models === "object" && !Array.isArray(payload.models) ? payload.models : {};
1091
+ }
1029
1092
  var ANTIGRAVITY_LOAD_CODE_ASSIST_METADATA = Object.freeze({
1030
1093
  ideType: "ANTIGRAVITY",
1031
1094
  platform: "PLATFORM_UNSPECIFIED",
@@ -2363,12 +2426,13 @@ export {
2363
2426
  wrapTranscriptLine,
2364
2427
  buildWindowTitle,
2365
2428
  wrapTextToLines,
2366
- resolveClaudeCodeVersion,
2367
- getClaudeCodeUserAgent,
2368
- adoptRequiredClaudeCodeVersion,
2369
2429
  startCallbackServer,
2430
+ fetchAntigravityAvailableModels,
2370
2431
  runAntigravityOAuthLogin,
2371
2432
  refreshAntigravityOAuthToken,
2433
+ resolveClaudeCodeVersion,
2434
+ getClaudeCodeUserAgent,
2435
+ adoptRequiredClaudeCodeVersion,
2372
2436
  renderDeviceCodeDisplay,
2373
2437
  generatePkcePair,
2374
2438
  runOpenAiCodexDeviceCode,
@@ -1,19 +1,28 @@
1
1
  import {
2
2
  deriveStateResident
3
- } from "./chunk-PMDVQBGA.js";
4
- import {
5
- _appendRetiredStateBatch,
6
- loadMemoryVNextCatalog
7
- } from "./chunk-XI2BWJM5.js";
3
+ } from "./chunk-ZOHO6MOF.js";
8
4
  import {
9
5
  resolveMachineId
10
6
  } from "./chunk-S73EPYNC.js";
7
+ import {
8
+ _appendRetiredStateBatch,
9
+ loadMemoryVNextCatalog
10
+ } from "./chunk-324FWHUA.js";
11
11
  import {
12
12
  getDefaultCliLocalRuntimeDb
13
13
  } from "./chunk-N5Z2V73W.js";
14
+ import {
15
+ createMemoryKey,
16
+ createMemoryOwnerIndexKey,
17
+ createMemorySubjectKindIndexKey,
18
+ memoryOwnerRange
19
+ } from "./chunk-SYTHYBMI.js";
20
+ import {
21
+ asTrimmedNonEmptyStringArray
22
+ } from "./chunk-I42VC5KR.js";
14
23
  import {
15
24
  resolveAuthTokenFromEnv
16
- } from "./chunk-WACI5I6V.js";
25
+ } from "./chunk-BIDSIRTS.js";
17
26
  import {
18
27
  DEFAULT_NOLO_SERVER_URL
19
28
  } from "./chunk-OLZBQWZU.js";
@@ -26,15 +35,6 @@ import {
26
35
  loadProfileConfig,
27
36
  saveDefaultProfile
28
37
  } from "./chunk-R5GO3YZP.js";
29
- import {
30
- createMemoryKey,
31
- createMemoryOwnerIndexKey,
32
- createMemorySubjectKindIndexKey,
33
- memoryOwnerRange
34
- } from "./chunk-SYTHYBMI.js";
35
- import {
36
- asTrimmedNonEmptyStringArray
37
- } from "./chunk-I42VC5KR.js";
38
38
  import {
39
39
  asTrimmedString
40
40
  } from "./chunk-3EUW3WEO.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  t
3
- } from "./chunk-OB6DVWPF.js";
3
+ } from "./chunk-262R3XNN.js";
4
4
 
5
5
  // packages/cli/windowsSelfUpdate.ts
6
6
  import { spawn } from "node:child_process";
@@ -304,11 +304,12 @@ const switchWindowsShims = (shimDir, entrypoint) => {
304
304
  throw new Error("Refusing to downgrade " + payload.currentVersion + " to " + targetVersion);
305
305
  }
306
306
 
307
- if (compare(targetVersion, payload.currentVersion) > 0) {
307
+ if (compare(targetVersion, payload.currentVersion) >= 0) {
308
308
  log("phase: install-target");
309
309
  const versionPrefix = join(payload.managedRoot, targetVersion + "-" + payload.updateId);
310
310
  uncommittedVersionPrefix = versionPrefix;
311
- mkdirSync(versionPrefix, { recursive: true });
311
+ mkdirSync(payload.managedRoot, { recursive: true });
312
+ mkdirSync(versionPrefix);
312
313
  // Install the exact version resolved from the dist-tag above — never the
313
314
  // floating channel tag — so the staged package is the verified one.
314
315
  const install = runNpm(["install", "-g", "--prefix", versionPrefix, "nolo-cli@" + targetVersion, "--force", "--progress"]);
@@ -320,6 +321,13 @@ const switchWindowsShims = (shimDir, entrypoint) => {
320
321
  }
321
322
  const stagedEntrypoint = join(versionPrefix, "node_modules", "nolo-cli", "index.js");
322
323
  if (!existsSync(stagedEntrypoint)) throw new Error("Staged nolo entrypoint is missing");
324
+ const preflight = spawnSync(payload.nodePath, [stagedEntrypoint, "-v"], {
325
+ encoding: "utf8", windowsHide: true, env: process.env,
326
+ cwd: payload.updateDir, timeout: 30 * 1000,
327
+ });
328
+ if (preflight.error || preflight.status !== 0 || String(preflight.stdout || "").trim() !== "nolo-cli " + targetVersion) {
329
+ throw new Error("The staged CLI failed its pre-switch version check");
330
+ }
323
331
  assertLockOwnership();
324
332
  log("phase: switch-shims");
325
333
  const switchedShims = switchWindowsShims(prefix, stagedEntrypoint);