nolo-cli 0.219.0 → 0.221.0

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 (201) hide show
  1. package/{_executeModel-WW57SJN4.js → _executeModel-WZKT6XEU.js} +74 -74
  2. package/{action-CK64LS6S.js → action-GDZDXPMB.js} +7 -7
  3. package/{addContentAction-EQXMFNPR.js → addContentAction-7RO4AMRI.js} +12 -12
  4. package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-EVYBGTXB.js} +14 -14
  5. package/{agentDeleteCommand-X2VWEKUA.js → agentDeleteCommand-PZWRHNXY.js} +114 -115
  6. package/{agentEmailCommands-6IE773VW.js → agentEmailCommands-QTKMEICX.js} +115 -116
  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-GUGMORTK.js} +84 -70
  10. package/{agentMachineCommands-EVWFKK6Q.js → agentMachineCommands-7QGICJLM.js} +56 -55
  11. package/{agentProviderCommands-ZCH37KAL.js → agentProviderCommands-STI3DQ6A.js} +6 -6
  12. package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-KHV4EELF.js} +5 -5
  13. package/{agentRecordCommands-DX2WE6BH.js → agentRecordCommands-SLLADS5C.js} +102 -103
  14. package/{agentRunCommand-KGOT2AFB.js → agentRunCommand-OFQLOF5Y.js} +113 -112
  15. package/{agentRunControl-QDFW5P2T.js → agentRunControl-MBG4U6SL.js} +20 -14
  16. package/{agentRuntimeLocal-SD7U2EGY.js → agentRuntimeLocal-TU4LA353.js} +39 -39
  17. package/{agentSlice-ACZGTZVW.js → agentSlice-L4SBGWTB.js} +16 -16
  18. package/{appDeleteCommands-NE3NQQJL.js → appDeleteCommands-JWP3XPUA.js} +50 -49
  19. package/{appDeployCommands-2BAHY522.js → appDeployCommands-6E4TQCWI.js} +50 -49
  20. package/{appDeployStatusCommands-JTW6LZNC.js → appDeployStatusCommands-ALU4SADG.js} +50 -49
  21. package/{appGetCommands-WKFEJO6A.js → appGetCommands-JEY4L6L4.js} +50 -49
  22. package/{appListCommands-HNAZZLFX.js → appListCommands-PCAVHU7M.js} +50 -49
  23. package/{authCommand-4FDPL7WG.js → authCommand-CGRIIOOV.js} +26 -23
  24. package/{authCommands-GAJ3NIXO.js → authCommands-55OGQGCR.js} +9 -6
  25. package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-BAE2LDXF.js} +4 -4
  26. package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-WAA45NCS.js} +6 -6
  27. package/{chunk-OB6DVWPF.js → chunk-262R3XNN.js} +16 -2
  28. package/{chunk-5OZC7R7Y.js → chunk-2MCB7CD7.js} +13 -12
  29. package/{chunk-IWH5SOU4.js → chunk-2NPD3FTX.js} +3 -3
  30. package/{chunk-OGHP3CTL.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-EGXPAWLG.js → chunk-3U44JB3O.js} +1 -1
  34. package/{chunk-YL3EFYL3.js → chunk-4D4QD7FT.js} +3 -1
  35. package/{chunk-EUCFKKDM.js → chunk-4I2MXV5Q.js} +38 -10
  36. package/{chunk-C4WTX5TU.js → chunk-4ZGPHFLE.js} +2 -2
  37. package/{chunk-MOMR7NMG.js → chunk-547ENH5T.js} +1 -1
  38. package/chunk-5ZUOVCKT.js +32 -0
  39. package/{chunk-TRWT3EE3.js → chunk-62HXNQVV.js} +1 -1
  40. package/{chunk-KOXKKHFE.js → chunk-6QHKRARD.js} +2 -2
  41. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  42. package/{chunk-JC5XLWZK.js → chunk-7JGMNKKG.js} +19 -15
  43. package/{chunk-FRSBYNWI.js → chunk-AGYPUBFW.js} +31 -205
  44. package/{chunk-UYOICCYG.js → chunk-ALAES342.js} +59 -88
  45. package/{chunk-VREDDN25.js → chunk-ATEKLSLR.js} +1 -1
  46. package/{chunk-6NKA6RKF.js → chunk-AUAJTAFM.js} +8 -8
  47. package/chunk-BIDSIRTS.js +307 -0
  48. package/chunk-BIWI5M4E.js +62 -0
  49. package/{chunk-L5I543VB.js → chunk-BNMPUQW6.js} +1 -1
  50. package/{chunk-BGGHA5DV.js → chunk-BP5ZJ6B4.js} +1 -1
  51. package/{chunk-Q6HOUF4O.js → chunk-CBUZ6DKA.js} +3 -3
  52. package/{chunk-LE6LGAJE.js → chunk-CD3RU7XL.js} +17 -2
  53. package/{chunk-AVHRSJUH.js → chunk-CMMI3DAT.js} +13 -13
  54. package/{chunk-H7R3365N.js → chunk-CYWNWA77.js} +5 -5
  55. package/{chunk-6D7NVU66.js → chunk-D6YNCNM6.js} +17 -14
  56. package/{chunk-6RQFZCKH.js → chunk-DBUR22G5.js} +6 -6
  57. package/{chunk-MKQ2UTTX.js → chunk-DDC6P6EH.js} +22 -19
  58. package/{chunk-PVZY6P3S.js → chunk-DEA37IUY.js} +2 -2
  59. package/{chunk-QLFCTYRH.js → chunk-DGYCDA6W.js} +3 -3
  60. package/{chunk-SRL56PI2.js → chunk-DUUDXSLX.js} +21 -7
  61. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  62. package/{chunk-PFJNLBRU.js → chunk-EEOOBRA7.js} +6 -6
  63. package/{chunk-KN3HEZIQ.js → chunk-EVGU5P4U.js} +1 -1
  64. package/{chunk-O2CYENYJ.js → chunk-EXJK7TQO.js} +2113 -1090
  65. package/{chunk-CXDPIPZ4.js → chunk-F6Z6ZCUV.js} +2 -2
  66. package/{chunk-EOWLBDY6.js → chunk-FJSNBZXR.js} +1 -1
  67. package/{chunk-GNHMRBYZ.js → chunk-G7IUT2V3.js} +4 -3
  68. package/{chunk-7WPAI5JJ.js → chunk-GACR7H6T.js} +14 -14
  69. package/{chunk-65XXHYZ5.js → chunk-GOCSSER3.js} +3 -3
  70. package/{chunk-4NMHE7CX.js → chunk-GPOV42YM.js} +14 -14
  71. package/{chunk-SASHAZ67.js → chunk-GUXZK7SE.js} +2 -2
  72. package/{chunk-F3TQURKK.js → chunk-GYS5FUYR.js} +19 -19
  73. package/{chunk-VHPAA6MT.js → chunk-H6L2NFHY.js} +6 -6
  74. package/{chunk-G2EJ7NL4.js → chunk-HBRDSQ3M.js} +2 -2
  75. package/{chunk-OOF7XDZF.js → chunk-HHFGE2WF.js} +6 -6
  76. package/{chunk-DJSTBAOU.js → chunk-HSSBDZLD.js} +4 -4
  77. package/{chunk-GIABSSWQ.js → chunk-HYLRQDEE.js} +4 -4
  78. package/{chunk-N3J4VDGV.js → chunk-IAAIUH64.js} +15 -15
  79. package/{chunk-UJKTI5PG.js → chunk-ILHQ2AXT.js} +0 -1
  80. package/{chunk-T3O6BLYU.js → chunk-IXG6YXQM.js} +147 -115
  81. package/{chunk-TVFRV3UQ.js → chunk-JUSHVFNF.js} +238 -185
  82. package/{chunk-QWYFFHCJ.js → chunk-K67C2JUC.js} +10 -10
  83. package/{chunk-HCJFGH6Y.js → chunk-L32W3PRP.js} +46 -16
  84. package/{chunk-2KTUDBG7.js → chunk-M4SFKP5L.js} +1 -1
  85. package/{chunk-KAVGK4ES.js → chunk-MDZWUD3R.js} +18 -18
  86. package/{chunk-OXKUPBAQ.js → chunk-NHY322ZU.js} +151 -10
  87. package/{chunk-UMRI2IRY.js → chunk-OBIC6EG7.js} +6 -6
  88. package/{chunk-VALBGPM6.js → chunk-OBSEKCVK.js} +17 -20
  89. package/{chunk-SYQR7FQS.js → chunk-OG6MQOQG.js} +96 -28
  90. package/{chunk-AMEOV5VZ.js → chunk-OOJNQK6V.js} +33 -33
  91. package/{chunk-K5FNYHZC.js → chunk-OWKNSIXL.js} +149 -54
  92. package/{chunk-XFJ4ZPFC.js → chunk-OYU2MA5S.js} +25 -25
  93. package/{chunk-CKT6QUE2.js → chunk-Q3IVPFVO.js} +1 -1
  94. package/{chunk-AFHOCBSP.js → chunk-QBZCGP34.js} +1 -1
  95. package/{chunk-2ZKFCIJJ.js → chunk-QCB42576.js} +1 -1
  96. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  97. package/{chunk-XWGDCWXY.js → chunk-QRGDJA4B.js} +9 -9
  98. package/{chunk-4A2JIXR2.js → chunk-QYB23WUH.js} +1 -1
  99. package/{chunk-FVZW66K4.js → chunk-R3NEQZ53.js} +288 -95
  100. package/{chunk-2VUZSVAS.js → chunk-R6Z5S5GA.js} +7 -7
  101. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  102. package/{chunk-GGKNJ42M.js → chunk-RBPUNSG5.js} +2 -2
  103. package/{chunk-GVGOEMNV.js → chunk-RG2DGNL6.js} +3 -3
  104. package/{chunk-2OLYKYNY.js → chunk-RTHFJZ6M.js} +8 -8
  105. package/{chunk-C4VAR65S.js → chunk-RYOLWYBK.js} +120 -116
  106. package/{chunk-D726I5AZ.js → chunk-S6FDXXZV.js} +2 -2
  107. package/{chunk-JVRQ6YVK.js → chunk-S6K5F3KP.js} +1 -1
  108. package/{chunk-7UH3DGV6.js → chunk-SMJEXX2S.js} +7 -7
  109. package/{chunk-IWQAOW2X.js → chunk-SRCCSTIM.js} +8 -8
  110. package/{chunk-KO63FPG3.js → chunk-STJ6LSQE.js} +750 -2523
  111. package/{chunk-Q7WP5RPC.js → chunk-TGNIKIHR.js} +5 -5
  112. package/{chunk-AK5O76CC.js → chunk-TI2EPRHE.js} +2 -2
  113. package/{chunk-5R63B62U.js → chunk-TSPMLCWI.js} +7 -7
  114. package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
  115. package/{chunk-3ESU44FG.js → chunk-UE2EVEYS.js} +3 -3
  116. package/{chunk-S7SB7L2I.js → chunk-UWAIJOF2.js} +19 -19
  117. package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
  118. package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
  119. package/{chunk-N7HVLYOY.js → chunk-VSYTM22R.js} +3 -3
  120. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  121. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  122. package/{chunk-3N4ASIP6.js → chunk-XJPLSAPJ.js} +11 -11
  123. package/{chunk-J6T25AJ6.js → chunk-XSW4EXQV.js} +82 -18
  124. package/{chunk-DVQH4BTR.js → chunk-YKY4OVOX.js} +14 -10
  125. package/{chunk-5RKUPJYL.js → chunk-ZH3KXFHS.js} +11 -3
  126. package/chunk-ZOHO6MOF.js +376 -0
  127. package/{chunk-652XYZGP.js → chunk-ZXF6D3I6.js} +13 -6
  128. package/{cliAgentConfigHelpers-PO3MVDME.js → cliAgentConfigHelpers-BTRHMPW2.js} +12 -12
  129. package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
  130. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  131. package/{cliLocalAgentRecordReader-Z7CH4K4R.js → cliLocalAgentRecordReader-M3F76NIP.js} +45 -45
  132. package/{commandRegistry-SDSYBKMC.js → commandRegistry-ZLWHQVAI.js} +93 -93
  133. package/{contentThunks-G3TRPEAU.js → contentThunks-4ZX2TO7C.js} +36 -35
  134. package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-YB5H5BBK.js} +4 -4
  135. package/{createAgentAutomationAction-KHA4MXUJ.js → createAgentAutomationAction-L4CYUZJG.js} +36 -35
  136. package/{createDialogAction-KWSBNAPJ.js → createDialogAction-QTU2R2Q3.js} +37 -36
  137. package/{createPageAction-HXKJ7OFG.js → createPageAction-F3GJTHW2.js} +37 -36
  138. package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
  139. package/{dbSlice-ZJPDIFER.js → dbSlice-XRUZOGSU.js} +11 -11
  140. package/{deleteFile-Q3YDB4ML.js → deleteFile-6URDHYRB.js} +7 -7
  141. package/{dialogCommands-6KQEBHSG.js → dialogCommands-NRLCOPJR.js} +52 -52
  142. package/{dialogNotifyCommand-WIZFFEY3.js → dialogNotifyCommand-SHGPCU22.js} +13 -13
  143. package/{dialogSlice-HXPKFGRL.js → dialogSlice-P2S4LXQD.js} +34 -33
  144. package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-W2WCSGKF.js} +1 -1
  145. package/{docCreateCommands-XZOLWBRC.js → docCreateCommands-YJRDA3RX.js} +48 -47
  146. package/{docDeleteCommands-ZSO4LGWE.js → docDeleteCommands-A5QIHZNF.js} +50 -49
  147. package/{docReadCommands-TTMXCDER.js → docReadCommands-CF2LTMYH.js} +48 -47
  148. package/{docStore-A2B3GH33.js → docStore-6O7NYL6A.js} +12 -12
  149. package/{docUpdateCommands-PRG6WOXL.js → docUpdateCommands-QRKV4ZXE.js} +48 -47
  150. package/fetchMessages-TQEUZD7H.js +1 -1
  151. package/{getPricing-YH3VMSVU.js → getPricing-LF5C4XSI.js} +5 -5
  152. package/{handleSendMessageAction-NWYG3Q72.js → handleSendMessageAction-7IHLR37A.js} +65 -65
  153. package/{hostCredentialCreate-WS6D3EHT.js → hostCredentialCreate-VNCQUAFT.js} +102 -103
  154. package/index.js +56 -18
  155. package/keys-RWF7UCB4.js +1 -1
  156. package/{localDialogRead-SVTPA5GY.js → localDialogRead-CCOCVGAP.js} +1 -1
  157. package/{localRecall-2J6QPOK2.js → localRecall-BDYKXB46.js} +3 -1
  158. package/{localRuntimeAdapter-TFYOA6YE.js → localRuntimeAdapter-FOWVNMIK.js} +109 -110
  159. package/{machineCommands-WFWV25IR.js → machineCommands-ZGC3J4JB.js} +111 -112
  160. package/{machineWsRunDispatch-ZGXC3F2R.js → machineWsRunDispatch-KK5U4M3G.js} +100 -101
  161. package/{memberThunks-JRYNONYV.js → memberThunks-7Y3OYSJQ.js} +15 -15
  162. package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
  163. package/{models-CXINDUJA.js → models-H5NNZRLH.js} +2 -2
  164. package/{overlay-THLKYIWY.js → overlay-BBQZXGYI.js} +5 -3
  165. package/package.json +1 -1
  166. package/{projectArchive-ULJDLUA6.js → projectArchive-7ZDYBXAX.js} +42 -41
  167. package/{providerPresetApply-SHT2SUVB.js → providerPresetApply-WHAMP2D5.js} +6 -6
  168. package/{providerRegistry-TA7EGCVZ.js → providerRegistry-ZI2KORJ7.js} +6 -6
  169. package/{read-Q7GOHGNP.js → read-TYMBGEXO.js} +8 -8
  170. package/{readDocTool-Z5OQ6422.js → readDocTool-SKQVHBLO.js} +1 -1
  171. package/{readlineWorkspace-LTCV2BFW.js → readlineWorkspace-YHT4SX2C.js} +3946 -4393
  172. package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-F5QE2O2B.js} +16 -16
  173. package/{runAgentClientLoop-BVIEQUB3.js → runAgentClientLoop-H4ED5V3K.js} +71 -67
  174. package/{runtimeDoctorCommands-I47JN4HS.js → runtimeDoctorCommands-RRKPBGVO.js} +14 -14
  175. package/{secretCommands-LJXOOYA7.js → secretCommands-KZWBZIYS.js} +4 -4
  176. package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-72L27ERM.js} +13 -13
  177. package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-GJJDUSGJ.js} +16 -16
  178. package/{settingThunks-AXTBX3Q5.js → settingThunks-ZRGWVGZD.js} +15 -15
  179. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-I37M5KJC.js} +3 -3
  180. package/{spaceCommands-IB6FKWIC.js → spaceCommands-MEH3HJBC.js} +53 -52
  181. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  182. package/{streamAgentChatTurn-DNYFHBJM.js → streamAgentChatTurn-ZXPOXU33.js} +89 -128
  183. package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-IIJBPND3.js} +14 -14
  184. package/{tableCommands-HITDSLHS.js → tableCommands-FTAOCBTX.js} +11 -11
  185. package/{tools-JVOJ5HC4.js → tools-2MRWA2PP.js} +58 -58
  186. package/tuiRestart-2IL37YIB.js +41 -0
  187. package/{tuiSummaryLlmCaller-7LWYTHLM.js → tuiSummaryLlmCaller-W2QN4VAC.js} +18 -18
  188. package/{updateCommands-RJVCRSBP.js → updateCommands-CPATDG6J.js} +8 -6
  189. package/{updateDialogTitleAction-Q57BOSXG.js → updateDialogTitleAction-RZ3KZSGQ.js} +36 -35
  190. package/{usageCommand-RVKHEPLU.js → usageCommand-2BF74MKF.js} +2 -2
  191. package/{usageRebuildCommand-GRAFOZF2.js → usageRebuildCommand-UHB55BQM.js} +3 -3
  192. package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-ZFD6J5HF.js} +2 -2
  193. package/chunk-2THCNKE4.js +0 -147
  194. package/chunk-KEPOVMF4.js +0 -91
  195. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
  196. package/{chunk-AGP3YSEC.js → chunk-4N6G2CKP.js} +3 -3
  197. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  198. package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
  199. package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
  200. package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
  201. package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-6NKA6RKF.js";
4
- import {
5
- t
6
- } from "./chunk-OB6DVWPF.js";
3
+ } from "./chunk-AUAJTAFM.js";
7
4
  import {
8
5
  resolveServerUrl
9
- } from "./chunk-2THCNKE4.js";
6
+ } from "./chunk-BIDSIRTS.js";
7
+ import {
8
+ t
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-DJSTBAOU.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-HCJFGH6Y.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-2OLYKYNY.js";
31
+ } from "./chunk-RTHFJZ6M.js";
29
32
  import {
30
33
  PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL
31
- } from "./chunk-VALBGPM6.js";
32
- import {
33
- parseUserIdFromAuthToken
34
- } from "./chunk-2THCNKE4.js";
34
+ } from "./chunk-OBSEKCVK.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-2THCNKE4.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-T3O6BLYU.js";
3
+ } from "./chunk-IXG6YXQM.js";
4
4
  import {
5
5
  runtime_default
6
- } from "./chunk-FVZW66K4.js";
6
+ } from "./chunk-R3NEQZ53.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
9
  } from "./chunk-6OVNSQHN.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-KUG52IAP.js";
13
13
  import {
14
14
  isNoloHostedProvider
15
- } from "./chunk-VALBGPM6.js";
15
+ } from "./chunk-OBSEKCVK.js";
16
16
  import {
17
17
  asTrimmedLowercaseString
18
18
  } from "./chunk-QSJ3HFEF.js";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-HS7MLR74.js";
4
4
  import {
5
5
  performServerProxyFetchWithRetry
6
- } from "./chunk-KAVGK4ES.js";
6
+ } from "./chunk-MDZWUD3R.js";
7
7
  import {
8
8
  fetchServerSyncedCredential
9
- } from "./chunk-QWYFFHCJ.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-FRSBYNWI.js";
25
+ } from "./chunk-AGYPUBFW.js";
26
26
  import {
27
27
  convertMessagesToResponsesInput,
28
28
  getUsageRequestOptions,
@@ -31,18 +31,18 @@ import {
31
31
  resolveReasoningReplayOptions,
32
32
  shouldStripReasoningContentForOutbound,
33
33
  stablePromptCacheKey
34
- } from "./chunk-PFJNLBRU.js";
34
+ } from "./chunk-EEOOBRA7.js";
35
35
  import {
36
36
  resolveAgentCallPlan,
37
37
  resolveClientWire
38
- } from "./chunk-UMRI2IRY.js";
38
+ } from "./chunk-OBIC6EG7.js";
39
39
  import {
40
40
  createFileCredentialBroker
41
- } from "./chunk-SNBZZPYH.js";
41
+ } from "./chunk-OQHIVPG4.js";
42
42
  import {
43
43
  WORKTREE_ISOLATION_PRELUDE,
44
44
  buildSkillGuidancePromptBlock
45
- } from "./chunk-GNHMRBYZ.js";
45
+ } from "./chunk-G7IUT2V3.js";
46
46
  import {
47
47
  canonicalizeToolNames
48
48
  } from "./chunk-6OVNSQHN.js";
@@ -50,10 +50,13 @@ import {
50
50
  MEMORY_USE_GUIDANCE,
51
51
  buildUserResponseLanguageContext,
52
52
  wrapHistoricalSummaryWithReplayGuard
53
- } from "./chunk-L5I543VB.js";
53
+ } from "./chunk-BNMPUQW6.js";
54
+ import {
55
+ API_ENDPOINTS
56
+ } from "./chunk-LCBAMY2M.js";
54
57
  import {
55
58
  buildProviderAuthHeaders
56
- } from "./chunk-2OLYKYNY.js";
59
+ } from "./chunk-RTHFJZ6M.js";
57
60
  import {
58
61
  toErrorMessage
59
62
  } from "./chunk-HNMXYYJR.js";
@@ -64,25 +67,22 @@ import {
64
67
  clampReasoningEffort,
65
68
  getModelConfig,
66
69
  isModelSupportReasoningEffort
67
- } from "./chunk-LE6LGAJE.js";
70
+ } from "./chunk-CD3RU7XL.js";
68
71
  import {
69
72
  isRecord
70
73
  } from "./chunk-KUG52IAP.js";
71
- import {
72
- isDeepInfraKimiModel,
73
- isFireworksKimiModel,
74
- isPlatformMimoProviderModel,
75
- resolveFireworksKimiModel
76
- } from "./chunk-VALBGPM6.js";
77
- import {
78
- API_ENDPOINTS
79
- } from "./chunk-LCBAMY2M.js";
80
74
  import {
81
75
  asOptionalTrimmedString
82
76
  } from "./chunk-G3SUCT4W.js";
83
77
  import {
84
78
  isLoopbackUrl
85
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,21 +1,21 @@
1
+ import {
2
+ resolveNoloStateDir
3
+ } from "./chunk-6UBGXX2W.js";
4
+ import {
5
+ asOptionalPositiveFiniteNumber
6
+ } from "./chunk-U6VC4MU4.js";
1
7
  import {
2
8
  toErrorMessage
3
9
  } from "./chunk-HNMXYYJR.js";
4
10
  import {
5
11
  isRecord
6
12
  } from "./chunk-KUG52IAP.js";
7
- import {
8
- asOptionalPositiveFiniteNumber
9
- } from "./chunk-U6VC4MU4.js";
10
13
  import {
11
14
  asOptionalFiniteNumber
12
15
  } from "./chunk-WWC7I6TA.js";
13
16
  import {
14
17
  asOptionalTrimmedString
15
18
  } from "./chunk-G3SUCT4W.js";
16
- import {
17
- resolveNoloStateDir
18
- } from "./chunk-6UBGXX2W.js";
19
19
 
20
20
  // packages/agent-runtime/processTask.ts
21
21
  var PROCESS_TASK_TERMINAL_STATUSES = [
@@ -2082,6 +2082,13 @@ ${stderr.trim()}` : "",
2082
2082
  }
2083
2083
 
2084
2084
  export {
2085
+ countLines,
2086
+ spillToolOutput,
2087
+ formatToolOverflowMarker,
2088
+ TOOL_OUTPUT_SPILL_BYTES,
2089
+ TOOL_OUTPUT_SPILL_LINES,
2090
+ isSpilledToolOutput,
2091
+ spillLargeToolOutput,
2085
2092
  resolveExecutableOnPath,
2086
2093
  createGlob,
2087
2094
  spawnToWebStreams,
@@ -2089,10 +2096,6 @@ export {
2089
2096
  reportedTaskStatus,
2090
2097
  toProcessTaskView,
2091
2098
  getProcessRegistry,
2092
- spillToolOutput,
2093
- formatToolOverflowMarker,
2094
- isSpilledToolOutput,
2095
- spillLargeToolOutput,
2096
2099
  buildProcessTaskResultCapsule,
2097
2100
  withShellChildEnvironment,
2098
2101
  extractActivity,
@@ -67,8 +67,6 @@ var HIGH_RISK_MUTATION_TOOL_NAMES = [
67
67
  // 编排副作用:startAgentRun 会另起一次 run(子 run 的只读与否由调用方参数决定),
68
68
  // controlAgentRun 能追加指令/停止它;只读 run 不应拿到这两个(review A-1)。
69
69
  "startAgentRun",
70
- "requestTaskReview",
71
- "recordTaskReviewDecision",
72
70
  "controlAgentRun",
73
71
  // 受控云端执行:在用户拥有的云资源上跑任意命令,不可重放、副作用在云端。
74
72
  // 硬边界:它永不进 DEFAULT_PRIVATE_NOLO_WORKSPACE_TOOLS(见该清单注释),
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  patch,
9
9
  readAndWait
10
- } from "./chunk-AVHRSJUH.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-G3TRPEAU.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-HXKJ7OFG.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-GGKNJ42M.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-GIABSSWQ.js";
16
16
  import {
17
17
  fetchAndCacheTableRows
18
- } from "./chunk-F3TQURKK.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-AVHRSJUH.js";
30
+ } from "./chunk-CMMI3DAT.js";
31
31
  import {
32
32
  selectRuntimeSnapshot
33
- } from "./chunk-2VUZSVAS.js";
33
+ } from "./chunk-R6Z5S5GA.js";
34
34
  import {
35
35
  createAsyncThunk,
36
36
  createSelector
@@ -40,12 +40,12 @@ import {
40
40
  } from "./chunk-PXYBUFDB.js";
41
41
  import {
42
42
  isAgentSkillDisabled
43
- } from "./chunk-EOWLBDY6.js";
43
+ } from "./chunk-FJSNBZXR.js";
44
44
  import {
45
45
  DEFAULT_SYSTEM_AGENT_CAPABILITIES,
46
46
  listBuiltinSkills,
47
47
  resolveBuiltinSkillByName
48
- } from "./chunk-GNHMRBYZ.js";
48
+ } from "./chunk-G7IUT2V3.js";
49
49
  import {
50
50
  parseSkillDocProtocol
51
51
  } from "./chunk-W6RFEDN4.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-JVOJ5HC4.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-JRYNONYV.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,14 +21,7 @@ import {
11
21
  getAntigravityUserAgent,
12
22
  normalizeAntigravityTokenPayload,
13
23
  refreshAntigravityToken
14
- } from "./chunk-JC5XLWZK.js";
15
- import {
16
- buildEnvFromProfile,
17
- loadProfileConfig
18
- } from "./chunk-R5GO3YZP.js";
19
- import {
20
- getCliLocale
21
- } from "./chunk-OB6DVWPF.js";
24
+ } from "./chunk-7JGMNKKG.js";
22
25
  import {
23
26
  toErrorMessage
24
27
  } from "./chunk-HNMXYYJR.js";
@@ -31,9 +34,6 @@ import {
31
34
  import {
32
35
  asOptionalFiniteNumber
33
36
  } from "./chunk-WWC7I6TA.js";
34
- import {
35
- writeOAuthCredential
36
- } from "./chunk-G7Y4GXTY.js";
37
37
 
38
38
  // packages/cli/tui/wtAmbiguousWidth.ts
39
39
  import fs from "node:fs";
@@ -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,10 +1,13 @@
1
1
  import {
2
- _appendRetiredStateBatch,
3
- loadMemoryVNextCatalog
4
- } from "./chunk-XI2BWJM5.js";
2
+ deriveStateResident
3
+ } from "./chunk-ZOHO6MOF.js";
5
4
  import {
6
5
  resolveMachineId
7
6
  } from "./chunk-S73EPYNC.js";
7
+ import {
8
+ _appendRetiredStateBatch,
9
+ loadMemoryVNextCatalog
10
+ } from "./chunk-324FWHUA.js";
8
11
  import {
9
12
  getDefaultCliLocalRuntimeDb
10
13
  } from "./chunk-N5Z2V73W.js";
@@ -17,6 +20,12 @@ import {
17
20
  import {
18
21
  asTrimmedNonEmptyStringArray
19
22
  } from "./chunk-I42VC5KR.js";
23
+ import {
24
+ resolveAuthTokenFromEnv
25
+ } from "./chunk-BIDSIRTS.js";
26
+ import {
27
+ DEFAULT_NOLO_SERVER_URL
28
+ } from "./chunk-OLZBQWZU.js";
20
29
  import {
21
30
  buildCliRuntimeEnv,
22
31
  clearProfileAuthToken,
@@ -29,12 +38,6 @@ import {
29
38
  import {
30
39
  asTrimmedString
31
40
  } from "./chunk-3EUW3WEO.js";
32
- import {
33
- resolveAuthTokenFromEnv
34
- } from "./chunk-2THCNKE4.js";
35
- import {
36
- DEFAULT_NOLO_SERVER_URL
37
- } from "./chunk-OLZBQWZU.js";
38
41
 
39
42
  // packages/core/crypto.ts
40
43
  import nacl from "tweetnacl";
@@ -618,7 +621,8 @@ var toVNextMemoryItem = (state, owner) => ({
618
621
  activationCount: 1,
619
622
  importance: 0.9,
620
623
  confidence: 0.9,
621
- resident: state.facet === "preference" || state.facet === "style"
624
+ // 与其余三条合成路径共用同一判定(2026-11-15 收敛)。
625
+ resident: deriveStateResident(state, owner.ownerType)
622
626
  });
623
627
  var matchesVNextFilters = (state, idSet, contentSub) => {
624
628
  if (!idSet && !contentSub) return false;
@@ -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);