nolo-cli 0.213.0 → 0.220.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 (271) hide show
  1. package/README.md +3 -2
  2. package/{_executeModel-CUJLCFWR.js → _executeModel-BNEMFCAO.js} +125 -96
  3. package/{accountResolver-4LKIHEKL.js → accountResolver-QETKNC7T.js} +4 -4
  4. package/{action-DF5UYSJF.js → action-GDZDXPMB.js} +14 -13
  5. package/{addContentAction-WERAONNY.js → addContentAction-7RO4AMRI.js} +21 -20
  6. package/{addDialogAgentAction-7VI7YRML.js → addDialogAgentAction-EVYBGTXB.js} +26 -25
  7. package/{agentDeleteCommand-XJORXPGU.js → agentDeleteCommand-7QTQNFCO.js} +145 -137
  8. package/{agentEmailCommands-XTYYFR6Z.js → agentEmailCommands-I7SHOSD6.js} +146 -139
  9. package/{agentFavoriteCommands-EDK743YA.js → agentFavoriteCommands-7LOP3HUD.js} +11 -12
  10. package/{agentGrantCommands-RQWK2TEV.js → agentGrantCommands-L6O2HVJI.js} +9 -9
  11. package/{agentListCommands-OBLRBLHS.js → agentListCommands-GUGMORTK.js} +180 -103
  12. package/{agentMachineCommands-5FMT3OT5.js → agentMachineCommands-UMDKILU3.js} +75 -66
  13. package/{agentProviderCommands-Q5O33MED.js → agentProviderCommands-STI3DQ6A.js} +8 -8
  14. package/{agentPullCommand-6EM3URVK.js → agentPullCommand-KHV4EELF.js} +11 -11
  15. package/agentRecordCommands-YTAMTHOY.js +175 -0
  16. package/agentRunCommand-DBM6YNO6.js +207 -0
  17. package/{agentRunControl-TAMHJQSR.js → agentRunControl-MBG4U6SL.js} +40 -19
  18. package/{agentRuntimeLocal-SOO2OPJG.js → agentRuntimeLocal-TU4LA353.js} +55 -48
  19. package/{agentSlice-CHR6KOZN.js → agentSlice-DPG7Q7IA.js} +24 -23
  20. package/{appDeleteCommands-GUP6P5YE.js → appDeleteCommands-JWP3XPUA.js} +67 -58
  21. package/{appDeployCommands-MH2FX4O5.js → appDeployCommands-6E4TQCWI.js} +67 -58
  22. package/{appDeployStatusCommands-SUHN3HPJ.js → appDeployStatusCommands-ALU4SADG.js} +67 -58
  23. package/{appGetCommands-YWDEX6Z4.js → appGetCommands-JEY4L6L4.js} +67 -58
  24. package/{appListCommands-ZQVMLPAY.js → appListCommands-PCAVHU7M.js} +67 -58
  25. package/{authCommand-PWX2ZNUP.js → authCommand-CGRIIOOV.js} +37 -33
  26. package/{authCommands-HV3EAU3V.js → authCommands-55OGQGCR.js} +16 -12
  27. package/{builtinSkillRegistry-2QETTQPM.js → builtinSkillRegistry-BAE2LDXF.js} +11 -13
  28. package/{chromeCommands-REEAH4SX.js → chromeCommands-G5UDKVSV.js} +3 -3
  29. package/{chromeOpsCommands-DIVM2K3T.js → chromeOpsCommands-WAA45NCS.js} +23 -13
  30. package/{chunk-VNYYOX3V.js → chunk-262R3XNN.js} +157 -50
  31. package/chunk-2MCB7CD7.js +98 -0
  32. package/{chunk-CTPXME7U.js → chunk-2NPD3FTX.js} +30 -7
  33. package/{chunk-YB3YZK56.js → chunk-2WZXXAQD.js} +1 -67
  34. package/{chunk-HRMJUN5J.js → chunk-2X7WFDT6.js} +1 -1
  35. package/chunk-2YGBI2XB.js +30 -0
  36. package/{chunk-TY3TIUJK.js → chunk-324FWHUA.js} +85 -3
  37. package/{chunk-KFLT5KAD.js → chunk-3NNXR7EH.js} +20 -20
  38. package/{chunk-ZRSNONOB.js → chunk-3P54D2E4.js} +8 -3
  39. package/{chunk-7OCO4TDT.js → chunk-3U44JB3O.js} +1 -1
  40. package/{chunk-TX5EYMGT.js → chunk-44J7Z5AQ.js} +34 -258
  41. package/chunk-4D4QD7FT.js +201 -0
  42. package/chunk-4I2MXV5Q.js +275 -0
  43. package/{chunk-MYOH447Z.js → chunk-4JVNURX4.js} +1 -1
  44. package/{chunk-COFEN36Z.js → chunk-4ZGPHFLE.js} +3 -3
  45. package/{chunk-ZXOUUDCG.js → chunk-53MFERZ3.js} +3869 -362
  46. package/chunk-547ENH5T.js +226 -0
  47. package/{chunk-YDH3FDFQ.js → chunk-5FUN7EG4.js} +1 -1
  48. package/{chunk-6DWMYIUY.js → chunk-5WKDR7HS.js} +14 -9
  49. package/chunk-5ZUOVCKT.js +32 -0
  50. package/{chunk-T43B7LB2.js → chunk-62HXNQVV.js} +1 -1
  51. package/{chunk-ZC3CMUKU.js → chunk-6OVNSQHN.js} +84 -2
  52. package/{chunk-IXNGOHV5.js → chunk-6QHKRARD.js} +12 -153
  53. package/{chunk-4T2WNOY7.js → chunk-6RDBLXVQ.js} +28 -17
  54. package/{chunk-EYLGAEB4.js → chunk-6XRPBZRS.js} +134 -0
  55. package/{chunk-KIM6CLW5.js → chunk-7JGMNKKG.js} +57 -26
  56. package/{chunk-P5L7CXOC.js → chunk-7Z6EW7AH.js} +3 -2
  57. package/chunk-AGYPUBFW.js +686 -0
  58. package/{chunk-Y63ZSOR6.js → chunk-AL3TYDIF.js} +1 -1
  59. package/{chunk-NOKUNJON.js → chunk-ALAES342.js} +75 -94
  60. package/{chunk-4I7ERB7F.js → chunk-ATEKLSLR.js} +2 -2
  61. package/{chunk-CRHOO2ZR.js → chunk-AUAJTAFM.js} +8 -8
  62. package/{chunk-LLRPJECG.js → chunk-AWIL6EHN.js} +15 -157
  63. package/chunk-BIDSIRTS.js +307 -0
  64. package/chunk-BIWI5M4E.js +62 -0
  65. package/{chunk-4VJAC32I.js → chunk-BNMPUQW6.js} +3 -2
  66. package/{chunk-RLBNLZVC.js → chunk-BP5ZJ6B4.js} +1 -1
  67. package/{chunk-NBTY7YJF.js → chunk-BR3GT6MR.js} +1 -0
  68. package/{chunk-7RFNTILS.js → chunk-BUDVRYES.js} +2 -2
  69. package/{chunk-SVYO6AO7.js → chunk-BV3FLP2L.js} +41 -1
  70. package/{chunk-ZL5RAEEB.js → chunk-CBUZ6DKA.js} +3 -3
  71. package/{chunk-SM3NSZJV.js → chunk-CD3RU7XL.js} +36 -2
  72. package/chunk-CMMI3DAT.js +1621 -0
  73. package/{chunk-J2NHJ7WX.js → chunk-CYWNWA77.js} +6 -6
  74. package/{chunk-MOIJOHA5.js → chunk-D6YNCNM6.js} +35 -21
  75. package/{chunk-H2TJUNCH.js → chunk-DBUR22G5.js} +16 -16
  76. package/chunk-DEA37IUY.js +271 -0
  77. package/{chunk-O2TZF4AI.js → chunk-DGYCDA6W.js} +4 -4
  78. package/{chunk-YWSEPJ7C.js → chunk-DUUDXSLX.js} +21 -7
  79. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  80. package/{chunk-H5HF7TJA.js → chunk-EEOOBRA7.js} +6 -6
  81. package/{chunk-Y6ORVLSS.js → chunk-EVGU5P4U.js} +1 -1
  82. package/chunk-EWQ3HGNZ.js +90 -0
  83. package/{chunk-6VLJ6YA7.js → chunk-F6Z6ZCUV.js} +9 -9
  84. package/{chunk-75XIDFBW.js → chunk-FJ23FZXF.js} +72 -28
  85. package/chunk-FJSNBZXR.js +142 -0
  86. package/{chunk-WRYQ35LQ.js → chunk-G7IUT2V3.js} +860 -57
  87. package/{chunk-PCLE46CE.js → chunk-GBWGPTA7.js} +2 -1
  88. package/{chunk-H7PPIYWP.js → chunk-GPOV42YM.js} +19 -19
  89. package/{chunk-W4S457LU.js → chunk-GUXZK7SE.js} +42 -6
  90. package/{chunk-QHPRUL4O.js → chunk-GV6PRJBU.js} +4 -4
  91. package/{chunk-YUA6OAH5.js → chunk-HBRDSQ3M.js} +2 -2
  92. package/{chunk-G7MLNNEX.js → chunk-HHFGE2WF.js} +7 -7
  93. package/{chunk-OQPKUBPB.js → chunk-HSSBDZLD.js} +19 -7
  94. package/{chunk-EHSZD5OI.js → chunk-HXER7YJF.js} +4 -4
  95. package/{chunk-TAKB25RM.js → chunk-HYLRQDEE.js} +6 -6
  96. package/{chunk-LOEO7LRC.js → chunk-ILHQ2AXT.js} +10 -8
  97. package/{chunk-BBJ22CLB.js → chunk-JJMR2EA3.js} +64 -34
  98. package/{chunk-G2BQWAVT.js → chunk-JLAMNSBC.js} +4 -4
  99. package/{chunk-RSHTSUEG.js → chunk-JUSHVFNF.js} +2133 -622
  100. package/{chunk-YJAFKXMU.js → chunk-KHVFJSVE.js} +54 -49
  101. package/{chunk-X7SDOJUM.js → chunk-KRI6N5QZ.js} +16 -16
  102. package/{chunk-7BT37FK3.js → chunk-L32W3PRP.js} +675 -128
  103. package/chunk-LKA64WH4.js +227 -0
  104. package/{chunk-HUBHAQK2.js → chunk-LMRRCEDE.js} +31 -31
  105. package/chunk-M4SFKP5L.js +675 -0
  106. package/{chunk-MDB67IWP.js → chunk-MSMHU36U.js} +12 -12
  107. package/{chunk-7Y4YTDQF.js → chunk-MXKWTPUM.js} +288 -166
  108. package/{chunk-WYDI6TGM.js → chunk-MXRUXMZ3.js} +94 -135
  109. package/{chunk-AZMYUSVF.js → chunk-N5Z2V73W.js} +1 -1
  110. package/{chunk-QG4AOSON.js → chunk-NHY322ZU.js} +154 -32
  111. package/{chunk-UHJGXRJ4.js → chunk-OBIC6EG7.js} +6 -6
  112. package/{chunk-GOO6G4PY.js → chunk-OBSEKCVK.js} +123 -70
  113. package/{chunk-WMTBPBMP.js → chunk-OG6MQOQG.js} +130 -60
  114. package/{chunk-XJWWBO34.js → chunk-OJKUU3LP.js} +5 -7
  115. package/{chunk-ALQ3657A.js → chunk-OOJNQK6V.js} +21 -1
  116. package/{chunk-NSAPDIN2.js → chunk-OWKNSIXL.js} +679 -74
  117. package/{chunk-6XIE5ZGI.js → chunk-PDCV7P5W.js} +1 -1
  118. package/{chunk-A7TFUNZO.js → chunk-PPJYZRSQ.js} +6 -2
  119. package/{chunk-F6UUQOG6.js → chunk-Q3IVPFVO.js} +4 -4
  120. package/{chunk-VO4WSAVP.js → chunk-QBZCGP34.js} +3 -3
  121. package/chunk-QCB42576.js +13 -0
  122. package/chunk-QHEN7NZ7.js +46 -0
  123. package/{chunk-3UKL3HPD.js → chunk-QJTZ76CP.js} +32 -84
  124. package/{chunk-V5Y3R6BT.js → chunk-QRGDJA4B.js} +215 -212
  125. package/{chunk-4KB6WQUL.js → chunk-QYB23WUH.js} +1 -1
  126. package/{chunk-ZNWI6OVT.js → chunk-R44TU3MZ.js} +85 -11
  127. package/{chunk-PYRUW7XN.js → chunk-R6Z5S5GA.js} +139 -57
  128. package/{chunk-VL5KOY2C.js → chunk-R7XWZDOH.js} +125 -29
  129. package/{chunk-R5O4QAWG.js → chunk-RBPUNSG5.js} +11 -77
  130. package/{chunk-NJLL224W.js → chunk-RG2DGNL6.js} +3 -3
  131. package/{chunk-C6KNNXWU.js → chunk-RGQ4UUWZ.js} +25 -2
  132. package/{chunk-TCZHTTUU.js → chunk-RTHFJZ6M.js} +11 -11
  133. package/{chunk-RZOV7OMV.js → chunk-RYOLWYBK.js} +146 -200
  134. package/{chunk-OWYYDMGJ.js → chunk-S2NTVGA2.js} +4 -2
  135. package/{chunk-XHQC4PXX.js → chunk-S5NA3C52.js} +488 -226
  136. package/{secretCommands-LXDWOLZ6.js → chunk-S6FDXXZV.js} +190 -15
  137. package/chunk-S6K5F3KP.js +99 -0
  138. package/{chunk-INN4LTAJ.js → chunk-SRCCSTIM.js} +8 -8
  139. package/{chunk-JY5NGFFH.js → chunk-SYTHYBMI.js} +5 -5
  140. package/{chunk-UYD5HQ6T.js → chunk-SZVMASJ2.js} +3300 -1396
  141. package/{chunk-FUGMREBO.js → chunk-TGNIKIHR.js} +3 -3
  142. package/{chunk-HPFCI4SK.js → chunk-TI2EPRHE.js} +4 -4
  143. package/chunk-TLE77UJ5.js +230 -0
  144. package/chunk-TSPMLCWI.js +364 -0
  145. package/{chunk-YGILMZ7N.js → chunk-TUSTONB3.js} +1 -1
  146. package/{chunk-4VNS5WPM.js → chunk-U67V476Y.js} +1 -8
  147. package/{chunk-F7CI2ZC5.js → chunk-UAIHKQIA.js} +2 -1
  148. package/{chunk-WPORQFYN.js → chunk-UVLYNWIE.js} +2 -2
  149. package/{chunk-H4UOTUOX.js → chunk-VMJVAJ6W.js} +152 -19
  150. package/{chunk-KC4XDTT3.js → chunk-VS276URX.js} +4 -4
  151. package/{chunk-YTF4WH7J.js → chunk-WWTSEBDF.js} +1 -1
  152. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  153. package/{chunk-RPQXPZZF.js → chunk-XSW4EXQV.js} +976 -17
  154. package/{chunk-7QTZCMKL.js → chunk-XTETTSKN.js} +3036 -2468
  155. package/{chunk-J5JTMQIA.js → chunk-YFLVRVYK.js} +1 -1
  156. package/chunk-YKY4OVOX.js +1141 -0
  157. package/{chunk-MMA3LZ3W.js → chunk-YNIYE47Z.js} +1 -1
  158. package/chunk-YZMNK53S.js +68 -0
  159. package/{chunk-FY7F4Q6X.js → chunk-Z4PCXPUE.js} +2 -2
  160. package/{chunk-INUFILG6.js → chunk-ZH3KXFHS.js} +11 -3
  161. package/chunk-ZOHO6MOF.js +376 -0
  162. package/{cliAgentConfigHelpers-WJBZQTLW.js → cliAgentConfigHelpers-BTRHMPW2.js} +18 -19
  163. package/{cliAuthorityBrokerClient-PM3U6Q6J.js → cliAuthorityBrokerClient-XHH7MH2P.js} +1 -1
  164. package/{cliAuthorityStoreDriver-TKLXNNTG.js → cliAuthorityStoreDriver-6FE3BJNB.js} +1 -1
  165. package/{cliEnvHelpers-BVYTMUPJ.js → cliEnvHelpers-CNMP3RDX.js} +3 -3
  166. package/{cliExecutor-BWBF2MTI.js → cliExecutor-K6FDZTQ2.js} +4 -2
  167. package/cliLocalAgentRecordReader-M3F76NIP.js +90 -0
  168. package/{commandRegistry-W63CYRZJ.js → commandRegistry-T3UBK6OA.js} +105 -97
  169. package/{contentThunks-U7PL5MQD.js → contentThunks-YEPZAHXU.js} +53 -48
  170. package/{cooldownCommands-TIGUHXTD.js → cooldownCommands-YB5H5BBK.js} +5 -4
  171. package/{createAgentAutomationAction-OLBQDD6R.js → createAgentAutomationAction-TBIIO5WT.js} +51 -48
  172. package/{createDialogAction-SVH6B3SB.js → createDialogAction-KBKMYFTQ.js} +52 -53
  173. package/{createPageAction-F4DIWZ2Z.js → createPageAction-3FGAPLJO.js} +56 -53
  174. package/{cursorProvider-YGGNMVWX.js → cursorProvider-2RACMEMF.js} +1 -1
  175. package/{db-HUCI5R4G.js → db-M7FU2GNK.js} +10 -7
  176. package/{dbSlice-BVH2YZPQ.js → dbSlice-XRUZOGSU.js} +20 -19
  177. package/{deleteFile-5YOEKV4U.js → deleteFile-6URDHYRB.js} +12 -12
  178. package/{desktopFolderProjects-SFY5EZS3.js → desktopFolderProjects-4POAMVJN.js} +2 -2
  179. package/{dialogCommands-KHIEPY3M.js → dialogCommands-NRLCOPJR.js} +71 -64
  180. package/dialogNotifyCommand-SHGPCU22.js +36 -0
  181. package/{dialogSlice-ZCTDV2PZ.js → dialogSlice-DP2WTMNO.js} +48 -45
  182. package/{dialogUsageCommand-7KCPYGHG.js → dialogUsageCommand-W2WCSGKF.js} +11 -10
  183. package/{docCreateCommands-DPMZI7G5.js → docCreateCommands-YJRDA3RX.js} +66 -59
  184. package/{docDeleteCommands-IRQQLUBT.js → docDeleteCommands-A5QIHZNF.js} +69 -62
  185. package/{docReadCommands-LK37XH6L.js → docReadCommands-CF2LTMYH.js} +66 -59
  186. package/{docStore-V2KECILA.js → docStore-NDY3K3PK.js} +25 -24
  187. package/{docUpdateCommands-O6T3HJHH.js → docUpdateCommands-QRKV4ZXE.js} +69 -62
  188. package/{fetchMessages-NR4KNQLO.js → fetchMessages-TQEUZD7H.js} +8 -7
  189. package/{getPricing-2MNMXEVG.js → getPricing-LF5C4XSI.js} +7 -7
  190. package/{handleSendMessageAction-2PE25WM3.js → handleSendMessageAction-IUGVVJ43.js} +206 -314
  191. package/{hostCredentialCreate-S233UMAP.js → hostCredentialCreate-X2ZFRXDR.js} +132 -124
  192. package/index.js +65 -27
  193. package/{keys-BEGDOTRL.js → keys-RWF7UCB4.js} +5 -4
  194. package/legacyMigration-TF4SYJCZ.js +19 -0
  195. package/{lib-5KKIBFIT.js → lib-OT5OTXRU.js} +7087 -6664
  196. package/{localDialogRead-7NNDVVF7.js → localDialogRead-CCOCVGAP.js} +3 -3
  197. package/{localFirstLog-DHNOY2NA.js → localFirstLog-OIETGK66.js} +1 -1
  198. package/localRecall-BDYKXB46.js +17 -0
  199. package/{localRuntimeAdapter-KY6WXNBR.js → localRuntimeAdapter-KAG3T4LF.js} +138 -130
  200. package/{localRuntimeAuthority-OYH4AE4G.js → localRuntimeAuthority-IBJAT62G.js} +1 -1
  201. package/{localRuntimeDb-VBIMCWUC.js → localRuntimeDb-N7KHDXS2.js} +2 -2
  202. package/{machineCommands-Q6HA3IXF.js → machineCommands-6NIQJE2A.js} +143 -135
  203. package/{machineInfo-UKPTZO5Y.js → machineInfo-LWHTEBHJ.js} +1 -1
  204. package/machineWsRunDispatch-RA5NOSGG.js +190 -0
  205. package/{memberThunks-7EDJADWU.js → memberThunks-7Y3OYSJQ.js} +30 -29
  206. package/{memoryCommands-ASCE5STX.js → memoryCommands-BC6REPQB.js} +7 -7
  207. package/models-H5NNZRLH.js +9 -0
  208. package/{oauthTokenStore-OEERZFUC.js → oauthTokenStore-RUYNYALS.js} +1 -1
  209. package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +6 -6
  210. package/overlay-BBQZXGYI.js +13 -0
  211. package/package.json +2 -2
  212. package/{pdf-U6KSUEZZ.js → pdf-KE3QI2V7.js} +1 -1
  213. package/{processSpawn-ZU5QFM43.js → processSpawn-6GEO77KV.js} +1 -1
  214. package/{profileConfig-KN3N2BLF.js → profileConfig-KOWK4HOG.js} +1 -1
  215. package/{projectArchive-DRTDIMEV.js → projectArchive-OIUP63MV.js} +59 -56
  216. package/{providerPresetApply-YXGV6NXB.js → providerPresetApply-WHAMP2D5.js} +20 -13
  217. package/{providerRegistry-S6UL6UNA.js → providerRegistry-ZI2KORJ7.js} +11 -11
  218. package/{read-4V2RMG7N.js → read-TYMBGEXO.js} +13 -13
  219. package/{readDocTool-BH6ATGQO.js → readDocTool-SKQVHBLO.js} +2 -2
  220. package/{readlineWorkspace-2W4WRCOU.js → readlineWorkspace-ZGC4KSXG.js} +7760 -6499
  221. package/{removeDialogAgentAction-LYAZGNKW.js → removeDialogAgentAction-F5QE2O2B.js} +29 -28
  222. package/{runAgentClientLoop-J2VQBS2Z.js → runAgentClientLoop-NKUW2DSJ.js} +94 -88
  223. package/{runtimeDoctorCommands-QAI3MBKQ.js → runtimeDoctorCommands-RRKPBGVO.js} +19 -19
  224. package/{runtimeModeArgs-2Y7BALTO.js → runtimeModeArgs-X7DL7PUN.js} +1 -1
  225. package/secretCommands-KZWBZIYS.js +24 -0
  226. package/{setDialogExtraReferencesAction-OCRPGPYH.js → setDialogExtraReferencesAction-72L27ERM.js} +25 -24
  227. package/{setPrimaryDialogAgentAction-HFJDQIBU.js → setPrimaryDialogAgentAction-GJJDUSGJ.js} +29 -28
  228. package/{settingThunks-RAMHMTGM.js → settingThunks-ZRGWVGZD.js} +99 -90
  229. package/{skillDiscovery-XKHROSH2.js → skillDiscovery-I37M5KJC.js} +4 -4
  230. package/{skillSummaryMarker-42HKSXYY.js → skillSummaryMarker-62UW7HI7.js} +1 -1
  231. package/{slateToRenderMarkdown-Y5IYN73U.js → slateToRenderMarkdown-R3X74MCX.js} +1 -1
  232. package/{slateUtils-NGV2NMKM.js → slateUtils-ESQAJ6RN.js} +1 -1
  233. package/{spaceCommands-KVJZVKVO.js → spaceCommands-MEH3HJBC.js} +66 -57
  234. package/store-Z53ICFL3.js +48 -0
  235. package/{streamAgentChatTurn-GHBMJJ6S.js → streamAgentChatTurn-FJTUUXHJ.js} +886 -668
  236. package/{switchDialogAgentAction-EBRMW3RA.js → switchDialogAgentAction-IIJBPND3.js} +26 -25
  237. package/{tableCommands-MP6VFSVT.js → tableCommands-FTAOCBTX.js} +13 -13
  238. package/tombstones-FQQMEDOW.js +32 -0
  239. package/{toolApiClient-HGNO53TC.js → toolApiClient-OGQEBQVX.js} +4 -4
  240. package/{tools-EWKCPKMS.js → tools-ZXHIAOSP.js} +82 -81
  241. package/tuiRestart-2IL37YIB.js +41 -0
  242. package/tuiSummaryLlmCaller-W2QN4VAC.js +44 -0
  243. package/{updateCommands-ZQYU6SCI.js → updateCommands-CPATDG6J.js} +11 -7
  244. package/{updateDialogTitleAction-5GGMBTDF.js → updateDialogTitleAction-JMKLKL4P.js} +54 -51
  245. package/{usageCommand-F4IPVMIZ.js → usageCommand-2BF74MKF.js} +11 -10
  246. package/{usageRebuildCommand-HAW2AD5N.js → usageRebuildCommand-UHB55BQM.js} +12 -11
  247. package/userDataMerge-HT2ZVHBJ.js +13 -0
  248. package/{windowsSelfUpdate-257DV2T6.js → windowsSelfUpdate-ZFD6J5HF.js} +3 -3
  249. package/{workloadLifecycle-4C42SVBD.js → workloadLifecycle-HFJIN5IZ.js} +4 -4
  250. package/agentRecordCommands-ZQ7SVYGG.js +0 -167
  251. package/agentRunCommand-WS7IGO2W.js +0 -196
  252. package/chunk-3CGG2PAL.js +0 -594
  253. package/chunk-5MQRBSMW.js +0 -862
  254. package/chunk-5XBUWM6I.js +0 -89
  255. package/chunk-CJEIOP3E.js +0 -0
  256. package/chunk-EHGEOAHI.js +0 -636
  257. package/chunk-FW6YHHLI.js +0 -842
  258. package/chunk-GPVRUGGY.js +0 -115
  259. package/chunk-HSVBJRF4.js +0 -339
  260. package/chunk-LEC5ALIN.js +0 -91
  261. package/chunk-WACI5I6V.js +0 -147
  262. package/chunk-WJZOQR2J.js +0 -151
  263. package/chunk-ZCWRMUWT.js +0 -89
  264. package/dist-M676ULYG.js +0 -7314
  265. package/machineWsRunDispatch-WWJQ6WR3.js +0 -182
  266. package/models-PJBE6JDV.js +0 -9
  267. package/tuiSummaryLlmCaller-ALQYUUWB.js +0 -189
  268. package/{chunk-AGP3YSEC.js → chunk-4N6G2CKP.js} +3 -3
  269. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  270. package/{chunk-2QHFH3DR.js → chunk-USGHJSGO.js} +3 -3
  271. package/{chunk-AETZ7AD6.js → chunk-W6RFEDN4.js} +3 -3
@@ -0,0 +1,307 @@
1
+ import {
2
+ DEFAULT_NOLO_SERVER_URL
3
+ } from "./chunk-OLZBQWZU.js";
4
+ import {
5
+ NOLO_CLUSTER_SERVERS
6
+ } from "./chunk-LCBAMY2M.js";
7
+ import {
8
+ asOptionalTrimmedString
9
+ } from "./chunk-G3SUCT4W.js";
10
+ import {
11
+ DEFAULT_LOCAL_API_ORIGIN
12
+ } from "./chunk-4SN6J65J.js";
13
+ import {
14
+ normalizeServerOrigin
15
+ } from "./chunk-CF7PE763.js";
16
+
17
+ // packages/cli/agentRunProtocol.ts
18
+ import { createHash } from "node:crypto";
19
+ import { existsSync, lstatSync, statSync, readFileSync, readdirSync, realpathSync } from "node:fs";
20
+ import { dirname, extname, join, relative } from "node:path";
21
+ import { fileURLToPath } from "node:url";
22
+ var AGENT_RUN_PROTOCOL = "nolo-agent-run/2";
23
+ var RuntimeProtocolMismatchError = class extends Error {
24
+ code = "runtime_protocol_mismatch";
25
+ constructor() {
26
+ super("runtime_protocol_mismatch: parent and child agent-run protocols differ");
27
+ }
28
+ };
29
+ function validateAgentRunProtocol(expected) {
30
+ if (expected !== AGENT_RUN_PROTOCOL) throw new RuntimeProtocolMismatchError();
31
+ }
32
+ var RuntimeVersionMismatchError = class extends Error {
33
+ code = "runtime_version_mismatch";
34
+ constructor(detail) {
35
+ super(`runtime_version_mismatch: ${detail}; restart CLI/desktop before retrying`);
36
+ }
37
+ };
38
+ var ignoredDirectories = /* @__PURE__ */ new Set([
39
+ "node_modules",
40
+ ".git",
41
+ ".nolo",
42
+ ".worktrees",
43
+ "data",
44
+ "nolodata",
45
+ "credentials",
46
+ "dist",
47
+ "build",
48
+ "public",
49
+ "assets",
50
+ "docs",
51
+ "logs",
52
+ "artifacts",
53
+ "coverage",
54
+ "__tests__",
55
+ "__fixtures__",
56
+ "fixtures",
57
+ "testHelpers",
58
+ "test-helpers"
59
+ ]);
60
+ var codeFile = /\.[cm]?[jt]sx?$/;
61
+ var testFile = /(?:\.(?:test|spec)\.[^.]+$|^tsconfig\.)/;
62
+ function captureRuntimeContent(root, source) {
63
+ const hash = createHash("sha256");
64
+ const active = /* @__PURE__ */ new Set();
65
+ const visit = (directory) => {
66
+ const canonical = realpathSync(directory);
67
+ if (active.has(canonical)) throw new RuntimeVersionMismatchError("runtime code contains a symlink cycle");
68
+ active.add(canonical);
69
+ for (const name of readdirSync(directory).sort()) {
70
+ if (name.startsWith(".") || ignoredDirectories.has(name)) continue;
71
+ const path = join(directory, name);
72
+ let stat = lstatSync(path);
73
+ if (stat.isSymbolicLink()) {
74
+ try {
75
+ stat = statSync(path);
76
+ } catch {
77
+ if (codeFile.test(name) || name === "package.json") throw new RuntimeVersionMismatchError("runtime code link is unreadable");
78
+ continue;
79
+ }
80
+ }
81
+ if (stat.isDirectory()) visit(path);
82
+ else if (codeFile.test(name) && !testFile.test(name) || name === "package.json") {
83
+ const bytes = readFileSync(path);
84
+ hash.update(JSON.stringify([relative(root, path), bytes.length]));
85
+ hash.update(bytes);
86
+ }
87
+ }
88
+ active.delete(canonical);
89
+ };
90
+ if (source) {
91
+ visit(join(root, "packages"));
92
+ for (const name of ["package.json", "bun.lock", "bun.lockb", "bunfig.toml", "tsconfig.json"]) {
93
+ hash.update(name);
94
+ const path = join(root, name);
95
+ hash.update(existsSync(path) ? readFileSync(path) : "<absent>");
96
+ }
97
+ } else visit(root);
98
+ return hash.digest("hex");
99
+ }
100
+ function createRuntimeContentGuard(root, source) {
101
+ const canonical = realpathSync(root);
102
+ const startupContent = captureRuntimeContent(canonical, source);
103
+ return Object.assign(() => {
104
+ try {
105
+ if (captureRuntimeContent(canonical, source) !== startupContent) {
106
+ throw new RuntimeVersionMismatchError("runtime content changed since host startup");
107
+ }
108
+ } catch (error) {
109
+ if (error instanceof RuntimeVersionMismatchError) throw error;
110
+ throw new RuntimeVersionMismatchError("startup runtime content is no longer readable");
111
+ }
112
+ }, { identity: startupContent });
113
+ }
114
+ function captureHostRuntimeGuard() {
115
+ try {
116
+ const url = import.meta.url;
117
+ if (url.includes("/$bunfs/")) {
118
+ const executable = getHostRuntimeExecutable();
119
+ const digest = createHash("sha256").update(readFileSync(executable)).digest("hex");
120
+ return Object.assign(() => {
121
+ try {
122
+ if (createHash("sha256").update(readFileSync(executable)).digest("hex") !== digest) {
123
+ throw new RuntimeVersionMismatchError("host executable changed since startup");
124
+ }
125
+ } catch (error) {
126
+ if (error instanceof RuntimeVersionMismatchError) throw error;
127
+ throw new RuntimeVersionMismatchError("startup executable is no longer readable");
128
+ }
129
+ }, { identity: digest });
130
+ }
131
+ const modulePath = fileURLToPath(url);
132
+ const source = extname(modulePath) === ".ts";
133
+ return createRuntimeContentGuard(source ? dirname(dirname(dirname(modulePath))) : dirname(modulePath), source);
134
+ } catch {
135
+ return Object.assign(() => {
136
+ throw new RuntimeVersionMismatchError("host startup identity unavailable");
137
+ }, { identity: "unavailable" });
138
+ }
139
+ }
140
+ var hostExecutable;
141
+ function getHostRuntimeExecutable() {
142
+ return hostExecutable ?? realpathSync(process.execPath);
143
+ }
144
+ var hostGuard;
145
+ var HOST_RUNTIME_CONTENT_IDENTITY = "uninitialized";
146
+ function initializeHostRuntimeIdentity() {
147
+ if (hostGuard) return;
148
+ hostExecutable = realpathSync(process.execPath);
149
+ hostGuard = captureHostRuntimeGuard();
150
+ HOST_RUNTIME_CONTENT_IDENTITY = hostGuard.identity;
151
+ }
152
+ function isAgentRuntimeHostCommand(args, interactive) {
153
+ if (args.some((arg) => ["--help", "-h", "--version", "-v"].includes(arg))) return false;
154
+ if (!args.length) return interactive;
155
+ return args[0] === "chat" || args[0] === "tui" || args[0] === "connect" || args[0] === "agent" && ["run", "continue", "smoke-current"].includes(args[1]);
156
+ }
157
+ function resolveExactRuntimeEntrypoint(path) {
158
+ try {
159
+ if (!existsSync(path)) throw new Error("missing");
160
+ return realpathSync(path);
161
+ } catch {
162
+ throw new RuntimeVersionMismatchError("explicit runtime entrypoint is missing or unreadable");
163
+ }
164
+ }
165
+
166
+ // packages/cli/cliEnvHelpers.ts
167
+ import { dirname as dirname2, extname as extname2, join as join2 } from "node:path";
168
+ import { fileURLToPath as fileURLToPath2 } from "node:url";
169
+ import { existsSync as existsSync2, realpathSync as realpathSync2 } from "node:fs";
170
+ function resolveServerUrlFromEnv(env) {
171
+ return normalizeServerOrigin(
172
+ env.NOLO_SERVER || env.BASE_URL || DEFAULT_NOLO_SERVER_URL
173
+ );
174
+ }
175
+ function isCliArgs(value) {
176
+ return Array.isArray(value);
177
+ }
178
+ function buildServerCandidates(values) {
179
+ return [...new Set(
180
+ values.filter((value) => typeof value === "string" && value.trim().length > 0).map((value) => normalizeServerOrigin(value))
181
+ )];
182
+ }
183
+ function resolveServerUrl(input, env) {
184
+ if (isCliArgs(input)) {
185
+ const explicit = readOption(input, "--server-url") || readOption(input, "--server");
186
+ return normalizeServerOrigin(explicit) || resolveServerUrlFromEnv(env ?? {});
187
+ }
188
+ return resolveServerUrlFromEnv(input);
189
+ }
190
+ function resolveServerCandidates(input, envOrPreferred, preferred) {
191
+ if (isCliArgs(input)) {
192
+ const env2 = envOrPreferred ?? {};
193
+ const explicitServer = resolveServerUrl(input, env2);
194
+ return buildServerCandidates([
195
+ explicitServer,
196
+ preferred?.trim(),
197
+ env2.NOLO_SERVER,
198
+ env2.BASE_URL,
199
+ env2.NOLO_SERVER_URL,
200
+ DEFAULT_NOLO_SERVER_URL,
201
+ ...NOLO_CLUSTER_SERVERS
202
+ ]);
203
+ }
204
+ const env = input;
205
+ return buildServerCandidates([
206
+ asOptionalTrimmedString(envOrPreferred),
207
+ env.NOLO_SERVER,
208
+ env.BASE_URL,
209
+ env.NOLO_SERVER_URL,
210
+ DEFAULT_NOLO_SERVER_URL,
211
+ ...NOLO_CLUSTER_SERVERS
212
+ ]);
213
+ }
214
+ function resolveDeleteServerCandidatesFromEnv(env, ...preferredValues) {
215
+ return buildServerCandidates([
216
+ ...preferredValues,
217
+ env.NOLO_SERVER,
218
+ env.BASE_URL,
219
+ env.NOLO_SERVER_URL,
220
+ env.READ_DIALOG_BASE,
221
+ DEFAULT_NOLO_SERVER_URL,
222
+ ...NOLO_CLUSTER_SERVERS,
223
+ DEFAULT_LOCAL_API_ORIGIN
224
+ ]);
225
+ }
226
+ function resolveDeleteServerCandidates(input, envOrPreferred, preferred) {
227
+ if (isCliArgs(input)) {
228
+ const env2 = envOrPreferred ?? {};
229
+ const explicitServer = resolveServerUrl(input, env2);
230
+ return resolveDeleteServerCandidatesFromEnv(env2, explicitServer, preferred?.trim());
231
+ }
232
+ const env = input;
233
+ return resolveDeleteServerCandidatesFromEnv(
234
+ env,
235
+ asOptionalTrimmedString(envOrPreferred)
236
+ );
237
+ }
238
+ function resolveAuthTokenFromEnv(env, extraEnvKeys = []) {
239
+ for (const key of ["AUTH_TOKEN", "AUTH", "NOLO_MACHINE_API_KEY", ...extraEnvKeys]) {
240
+ const value = env[key];
241
+ if (typeof value === "string" && value.trim()) return value;
242
+ }
243
+ return "";
244
+ }
245
+ function resolveAuthToken(input, envOrExtraEnvKeys, extraEnvKeys = []) {
246
+ if (isCliArgs(input)) {
247
+ const env = envOrExtraEnvKeys ?? {};
248
+ return readOption(input, "--token") || readOption(input, "--machine-key") || resolveAuthTokenFromEnv(env, extraEnvKeys);
249
+ }
250
+ return resolveAuthTokenFromEnv(input, envOrExtraEnvKeys ?? []);
251
+ }
252
+ function parseUserIdFromAuthToken(token) {
253
+ const parts = token.trim().split(".").filter(Boolean);
254
+ const payloadCandidates = parts.length >= 3 ? [parts[1], parts[0]] : [parts[0]];
255
+ for (const payload of payloadCandidates) {
256
+ if (!payload) continue;
257
+ try {
258
+ const parsed = JSON.parse(Buffer.from(payload, "base64").toString("utf8"));
259
+ if (typeof parsed?.userId === "string") return parsed.userId;
260
+ } catch {
261
+ }
262
+ }
263
+ return "";
264
+ }
265
+ function readOption(args, flag) {
266
+ const index = args.indexOf(flag);
267
+ return index >= 0 ? args[index + 1] : void 0;
268
+ }
269
+ function isCompiledBinary() {
270
+ try {
271
+ const url = import.meta.url;
272
+ return url.startsWith("file:///$bunfs/root/") || url.startsWith("/$bunfs/root/");
273
+ } catch {
274
+ return false;
275
+ }
276
+ }
277
+ function resolveCliEntrypointPath(fromModuleUrl = import.meta.url) {
278
+ if (isCompiledBinary()) {
279
+ return getHostRuntimeExecutable();
280
+ }
281
+ const modulePath = fileURLToPath2(fromModuleUrl);
282
+ const sourcePath = existsSync2(modulePath) ? realpathSync2(modulePath) : modulePath;
283
+ const ext = extname2(sourcePath) || ".ts";
284
+ return join2(dirname2(sourcePath), `index${ext}`);
285
+ }
286
+
287
+ export {
288
+ AGENT_RUN_PROTOCOL,
289
+ RuntimeProtocolMismatchError,
290
+ validateAgentRunProtocol,
291
+ RuntimeVersionMismatchError,
292
+ getHostRuntimeExecutable,
293
+ HOST_RUNTIME_CONTENT_IDENTITY,
294
+ initializeHostRuntimeIdentity,
295
+ isAgentRuntimeHostCommand,
296
+ resolveExactRuntimeEntrypoint,
297
+ resolveServerUrlFromEnv,
298
+ resolveServerUrl,
299
+ resolveServerCandidates,
300
+ resolveDeleteServerCandidates,
301
+ resolveAuthTokenFromEnv,
302
+ resolveAuthToken,
303
+ parseUserIdFromAuthToken,
304
+ readOption,
305
+ isCompiledBinary,
306
+ resolveCliEntrypointPath
307
+ };
@@ -0,0 +1,62 @@
1
+ import {
2
+ isPidGone
3
+ } from "./chunk-OWKNSIXL.js";
4
+
5
+ // packages/cli/tui/tuiRestart.ts
6
+ import { realpathSync } from "node:fs";
7
+ import { isAbsolute, resolve } from "node:path";
8
+ function getRestartBlocker(state, checks) {
9
+ if (!checks.supported) return "\u5F53\u524D\u5BBF\u4E3B\u4E0D\u652F\u6301\u539F\u5730\u91CD\u542F\u3002";
10
+ if (checks.activeProcesses || checks.activeRuns) return "\u540E\u53F0\u4EFB\u52A1\u4ECD\u5728\u8FD0\u884C\u6216\u72B6\u6001\u672A\u786E\u8BA4\uFF0C\u4E0D\u80FD\u91CD\u542F\uFF1B\u8BF7\u7B49\u5F85\u4EFB\u52A1\u7ED3\u675F\u3002";
11
+ if (state.attachedImages.length || state.attachedDocs.length || state.attachedSkills.length || state.pendingCwdNotice || state.pendingTranscripts?.length || state.pendingChildRunNotices?.length || state.pendingProcessNotices?.length) {
12
+ return "\u6709\u672A\u53D1\u9001\u9644\u4EF6\u6216\u5F85\u5904\u7406\u901A\u77E5\uFF0C\u4E0D\u80FD\u91CD\u542F\uFF1B\u8BF7\u5148\u5904\u7406\u3002";
13
+ }
14
+ return void 0;
15
+ }
16
+ function buildRestartEnv(env, state) {
17
+ return {
18
+ ...env,
19
+ // Override the startup snapshot, including an empty value after revocation.
20
+ // Omitting the key would let the next process inherit stale grants.
21
+ NOLO_PERMISSION_GRANTS: ["local", "remote"].filter((bucket) => state.permissionGrants?.[bucket] === true).join(","),
22
+ NOLO_CWD: state.cwd,
23
+ NOLO_AGENT: state.agentKey,
24
+ NOLO_AGENT_NAME: state.agentName,
25
+ NOLO_SERVER: state.serverUrl,
26
+ NOLO_RUNTIME_MODE: state.runtimeMode,
27
+ NOLO_DIALOG_ID: state.dialogId ?? "",
28
+ NOLO_DIALOG_KEY: state.dialogKey ?? "",
29
+ NOLO_DIALOG: state.dialogLabel,
30
+ NOLO_TUI_RESTART: "1"
31
+ };
32
+ }
33
+ function hasRestartBlockingRuns(records, pidGone = isPidGone) {
34
+ return records.some((run) => run.status === "running" && (typeof run.pid !== "number" || run.pid <= 0 || !pidGone(run.pid)));
35
+ }
36
+ function buildRestartArgv(args) {
37
+ return args.compiled ? [args.executable, "tui"] : [args.executable, ...args.execArgv, args.entrypoint, "tui"];
38
+ }
39
+ function replaceTuiProcess(executable, argv, env, execve = process.execve) {
40
+ try {
41
+ execve(executable, argv, env);
42
+ } catch (error) {
43
+ throw new Error(`\u539F\u5730\u91CD\u542F\u5931\u8D25\uFF1B\u672A\u542F\u52A8\u65B0\u8FDB\u7A0B\u3002\u5BF9\u8BDD ${env.NOLO_DIALOG_ID || "(new)"}\uFF1Bcwd ${env.NOLO_CWD}\uFF1B${String(error)}`, { cause: error });
44
+ }
45
+ }
46
+ function captureRestartExecutable(executable, invocation, lookup = (name) => Bun.which(name), realpath = realpathSync) {
47
+ const candidate = isAbsolute(invocation) ? invocation : invocation.includes("/") ? resolve(invocation) : lookup(invocation);
48
+ try {
49
+ if (candidate && realpath(candidate) === realpath(executable)) return candidate;
50
+ } catch {
51
+ }
52
+ return executable;
53
+ }
54
+
55
+ export {
56
+ getRestartBlocker,
57
+ buildRestartEnv,
58
+ hasRestartBlockingRuns,
59
+ buildRestartArgv,
60
+ replaceTuiProcess,
61
+ captureRestartExecutable
62
+ };
@@ -43,7 +43,7 @@ var normalizeLocale = (value) => {
43
43
  return language;
44
44
  };
45
45
  var resolveUserResponseLanguage = (input = {}) => {
46
- const raw = asLocale(input.responseLanguage) || asLocale(input.language) || asLocale(input.fallbackLanguage) || "en-US";
46
+ const raw = asLocale(input.language) || "en-US";
47
47
  const locale = normalizeLocale(raw);
48
48
  return {
49
49
  locale,
@@ -80,7 +80,8 @@ var MEMORY_USE_GUIDANCE = `--- \u8BB0\u5FC6\u4F7F\u7528\u65B9\u5F0F ---
80
80
  - \u8BB0\u5FC6\u542B\u7528\u6237\u8EAB\u4EFD/\u79F0\u547C/\u5173\u7CFB/\u957F\u671F\u504F\u597D/\u9879\u76EE\u80CC\u666F\u65F6\uFF0C\u76F8\u5173\u5904\u81EA\u7136\u4F53\u73B0\uFF08\u5F00\u573A\u79F0\u547C\u3001\u4E0A\u4E0B\u6587\u786E\u8BA4\u3001\u56DE\u7B54\u7ED3\u6784\u3001\u53D6\u820D\u6807\u51C6\uFF09\uFF0C\u4E0D\u8981\u6BCF\u53E5\u673A\u68B0\u79F0\u547C\u7528\u6237\u3002
81
81
  - \u201C\u4E0A\u6B21/\u7EE7\u7EED/\u8FD9\u4E2A\u9879\u76EE\u201D\u7B49\u6307\u4EE3\u4F18\u5148\u6309\u5F53\u524D dialog/space/project/agent/sourceDialog \u7B49 KV \u8DEF\u5F84\u548C\u65F6\u95F4\u7EBF\u5B9A\u4F4D\uFF0C\u4E0D\u8981\u53EA\u6309\u8BED\u4E49\u76F8\u4F3C\u5EA6\u635E\u4E00\u6761\u3002
82
82
  - \u63A8\u65AD\u578B\u8BB0\u5FC6\uFF08inferred\uFF09\u53EA\u7528\u4E8E\u628A\u63E1\u8BED\u6C14\u3001\u72B6\u6001\u548C\u672A\u5B8C\u6210\u4E8B\u9879\uFF0C\u4E0D\u8981\u8BF4\u6210\u201C\u4F60\u660E\u786E\u544A\u8BC9\u8FC7\u6211\u201D\u6216\u5F53\u6210\u7528\u6237\u5DF2\u6388\u6743\u4FDD\u5B58\u7684\u4E8B\u5B9E\uFF1B\u51B2\u7A81\u6216\u573A\u666F\u4E0D\u660E\u65F6\u8BF4\u660E\u4F9D\u636E\u6216\u7B80\u77ED\u786E\u8BA4\uFF0C\u4E0D\u8981\u786C\u5957\u3002
83
- - \u7F6E\u4FE1\u5EA6\uFF08verified/stated/inferred\uFF09\u3001\u53EC\u56DE\u4E0A\u4E0B\u6587\u8981\u6C42\u4E0E\u964D\u6743/\u5220\u9664\u8FB9\u754C\u4EE5\u8BB0\u5FC6\u5DE5\u5177\uFF08rememberMemory / queryMemory / deleteMemory\uFF09schema \u4E3A\u51C6\u3002`;
83
+ - \u7F6E\u4FE1\u5EA6\uFF08verified/stated/inferred\uFF09\u3001\u53EC\u56DE\u4E0A\u4E0B\u6587\u8981\u6C42\u4E0E\u5220\u9664\u6743\u9650\u8FB9\u754C\u4EE5\u8BB0\u5FC6\u5DE5\u5177\uFF08rememberMemory / queryMemory / deleteMemory\uFF09schema \u4E3A\u51C6\u3002
84
+ - \u7528\u6237\u660E\u786E\u8868\u8FBE**\u8DE8\u4F1A\u8BDD**\u7684\u6253\u6270\u5F3A\u5EA6\u504F\u597D\u65F6\uFF08\u5982\u300C\u4EE5\u540E\u90FD\u53EA\u62A5\u7ED3\u679C\u300D\u300C\u6BCF\u6B21\u90FD\u7ED9\u6211\u770B\u8BE6\u7EC6\u8FC7\u7A0B\u300D\uFF0C\u800C\u975E\u4E00\u6B21\u4EFB\u52A1\u91CC\u7684\u300C\u8FD9\u6B21\u522B\u70E6\u6211\u300D\uFF09\uFF0C\u7528 rememberMemory \u8BB0\u4E3A\u7528\u6237\u504F\u597D\uFF1B\u4E4B\u540E\u6309\u5B83\u8C03\u6574 ignore / FYI / important \u7684\u8BE6\u7565\u3002\u8BB0\u5FC6\u504F\u597D\u7EDD\u4E0D\u80FD\u53D6\u6D88 decision / blocked / failed \u4E09\u7C7B\u5FC5\u987B\u62A5\u7684\u5185\u5BB9\u3002`;
84
85
 
85
86
  export {
86
87
  buildUserResponseLanguageContext,
@@ -206,7 +206,7 @@ async function readDocFunc(args, thunkApi) {
206
206
  throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
207
207
  }
208
208
  try {
209
- const { readAction } = await import("./read-4V2RMG7N.js");
209
+ const { readAction } = await import("./read-TYMBGEXO.js");
210
210
  const pageData = await readAction({ dbKey: id }, thunkApi);
211
211
  if (!pageData) {
212
212
  throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
@@ -49,6 +49,7 @@ function isLocalCliAgentKey(agentKey) {
49
49
  }
50
50
 
51
51
  export {
52
+ CURRENT_OPERATOR_USER_ID,
52
53
  NOLO_DEFAULT_AGENT_ID,
53
54
  NOLO_DEFAULT_AGENT_KEY,
54
55
  LOCAL_CODEX_AGENT_ID,
@@ -4,10 +4,10 @@ import {
4
4
  require_requiredArgs,
5
5
  require_toDate,
6
6
  require_typeof
7
- } from "./chunk-MMA3LZ3W.js";
7
+ } from "./chunk-YNIYE47Z.js";
8
8
  import {
9
9
  __commonJS
10
- } from "./chunk-4VNS5WPM.js";
10
+ } from "./chunk-U67V476Y.js";
11
11
 
12
12
  // node_modules/date-fns/isDate/index.js
13
13
  var require_isDate = __commonJS({
@@ -82,12 +82,52 @@ var buildRestorePatch = (nowIso) => ({
82
82
  restoredAt: nowIso,
83
83
  updatedAt: nowIso
84
84
  });
85
+ var COMPACT_TOMBSTONE_FIELDS = [
86
+ "dbKey",
87
+ "id",
88
+ "contentKey",
89
+ "appKey",
90
+ "appId",
91
+ "type",
92
+ "userId",
93
+ "deletedAt",
94
+ "updatedAt",
95
+ "createdAt",
96
+ "created",
97
+ "title",
98
+ "name",
99
+ "displayName",
100
+ "spaceId",
101
+ "serverOrigin"
102
+ ];
103
+ var compactTombstoneRecord = (record) => {
104
+ if (!isTombstoneRecord(record)) return record;
105
+ const compacted = {};
106
+ for (const field of COMPACT_TOMBSTONE_FIELDS) {
107
+ if (field in record) compacted[field] = record[field];
108
+ }
109
+ return compacted;
110
+ };
111
+ var shouldCompactTombstoneRecord = (record, nowMs = Date.now(), retentionMs = TOMBSTONE_DETAIL_RETENTION_MS) => {
112
+ if (!isTombstoneRecord(record)) return false;
113
+ const tombstoneTs = getTombstoneTimestamp(record);
114
+ return tombstoneTs > 0 && nowMs - tombstoneTs >= retentionMs;
115
+ };
116
+ var prepareTombstoneRecordForCache = (record, nowMs = Date.now()) => shouldCompactTombstoneRecord(record, nowMs) ? compactTombstoneRecord(record) : record;
117
+ var canPhysicallyPurgeTombstoneRecord = (record, options = {}) => isTombstoneRecord(record) && options.explicitPurge === true;
85
118
 
86
119
  export {
120
+ TOMBSTONE_DETAIL_RETENTION_MS,
87
121
  getRecordTimestamp,
88
122
  getTombstoneTimestamp,
123
+ getRestoreTimestamp,
89
124
  isTombstoneRecord,
125
+ isRestoredAfterTombstone,
90
126
  shouldReplaceWithNextRecord,
91
127
  buildTombstoneRecord,
92
- buildRestorePatch
128
+ buildRestorePatch,
129
+ compactTombstoneRecord,
130
+ shouldCompactTombstoneRecord,
131
+ prepareTombstoneRecordForCache,
132
+ canPhysicallyPurgeTombstoneRecord
93
133
  };
@@ -1,9 +1,9 @@
1
- import {
2
- resolvePlatformAuthToken
3
- } from "./chunk-TCZHTTUU.js";
4
1
  import {
5
2
  getCredentialsDir
6
3
  } from "./chunk-G7Y4GXTY.js";
4
+ import {
5
+ resolvePlatformAuthToken
6
+ } from "./chunk-RTHFJZ6M.js";
7
7
 
8
8
  // packages/cli/client/authGuidance.ts
9
9
  import { readdirSync } from "node:fs";
@@ -10,7 +10,7 @@ import {
10
10
  resolvePlatformEffectiveModel,
11
11
  toCnyCredits,
12
12
  zaiModels
13
- } from "./chunk-GOO6G4PY.js";
13
+ } from "./chunk-OBSEKCVK.js";
14
14
 
15
15
  // packages/integrations/qwen/models.ts
16
16
  var qwenModels = [
@@ -2939,6 +2939,25 @@ var xaiModels = [
2939
2939
 
2940
2940
  // packages/ai/llm/fireworks.ts
2941
2941
  var fireworksModels = [
2942
+ {
2943
+ // 2026-11-04:Kimi 三条历史 id 统一指向这里。Fireworks 真实 id 为 kimi-k3
2944
+ // (https://app.fireworks.ai/models/fireworks/kimi-k3);价格沿用平台 Kimi K3 目录价。
2945
+ name: "accounts/fireworks/models/kimi-k3",
2946
+ displayName: "MoonshotAI: Kimi K3",
2947
+ hasVision: true,
2948
+ price: { input: 24, output: 120, cachingRead: 2.4 },
2949
+ contextWindow: 256e3,
2950
+ supportsTool: true
2951
+ },
2952
+ {
2953
+ // 2026-11-04:minimax-m3 记录迁移到这里。Fireworks 真实 id 为 minimax-m3p1-flash
2954
+ name: "accounts/fireworks/models/minimax-m3p1-flash",
2955
+ displayName: "MiniMax: MiniMax M3.1 Flash",
2956
+ hasVision: true,
2957
+ price: { input: 0.6, output: 2.4, cachingRead: 0.06 },
2958
+ contextWindow: 512e3,
2959
+ supportsTool: true
2960
+ },
2942
2961
  {
2943
2962
  name: "accounts/fireworks/models/minimax-m3",
2944
2963
  displayName: "MiniMax: MiniMax M3",
@@ -3008,6 +3027,15 @@ function getCachedOpenRouterModelReasoning(modelId) {
3008
3027
  var GATEWAY_PROVIDERS = /* @__PURE__ */ new Set(["openrouter", "nolo"]);
3009
3028
  var THINKING_MECHANISM_PROVIDERS = /* @__PURE__ */ new Set(["anthropic", "google"]);
3010
3029
  var MODEL_REASONING_OVERRIDES = [
3030
+ // Platform GPT models accept medium even though the nolo provider fallback
3031
+ // describes DeepSeek's narrower low/high/max scale.
3032
+ ...["gpt-6.1-sol", "gpt-6.1-terra", "gpt-6-luna", "gpt-6-astra"].map((prefix) => ({
3033
+ providers: ["openai"],
3034
+ prefix,
3035
+ exact: true,
3036
+ efforts: ["none", "low", "medium", "high", "xhigh", "max"],
3037
+ note: "GPT-6 model-specific reasoning scale (platformHosted.ts model metadata)"
3038
+ })),
3011
3039
  // ---- OpenAI ----
3012
3040
  {
3013
3041
  providers: ["openai"],
@@ -3209,6 +3237,8 @@ function resolveModelReasoningCapabilityWithCache(provider, model) {
3209
3237
  // packages/ai/llm/reasoningModels.ts
3210
3238
  var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
3211
3239
  "deepseek-flash",
3240
+ "deepseek-v4-flash",
3241
+ "deepseek-v4.1-flash",
3212
3242
  "deepseek-v4-pro",
3213
3243
  "gemini-3.7-flash",
3214
3244
  "gemini-3.8-flash",
@@ -3247,7 +3277,10 @@ var isModelSupportReasoningEffort = (model, provider) => {
3247
3277
  if (provider && provider.toLowerCase() === "openrouter") {
3248
3278
  return true;
3249
3279
  }
3250
- return REASONING_MODEL_NAMES.has(model);
3280
+ const p = provider?.toLowerCase();
3281
+ const base = model.toLowerCase().split("/").pop() ?? "";
3282
+ const deepseekFlash = ["deepseek-flash", "deepseek-v4-flash", "deepseek-v4.1-flash"].includes(base);
3283
+ return REASONING_MODEL_NAMES.has(model) || deepseekFlash && ["commandcode", "opendesign", "ollama-cloud", "lithosai"].includes(p ?? "");
3251
3284
  };
3252
3285
  var supportedReasoningModels = Array.from(REASONING_MODEL_NAMES);
3253
3286
  var EFFORT_ORDER = [
@@ -3593,6 +3626,7 @@ export {
3593
3626
  commandCodeModels,
3594
3627
  opencodeGoModels,
3595
3628
  DEFAULT_REASONING_EFFORT,
3629
+ resolveModelReasoningCapability,
3596
3630
  resolveModelReasoningCapabilityWithCache,
3597
3631
  isModelSupportReasoningEffort,
3598
3632
  clampReasoningEffort,