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
@@ -4,9 +4,18 @@ import {
4
4
  normalizeNonNegativeMs,
5
5
  parseRetryAfterHeaderMs
6
6
  } from "./chunk-3L2WKC3W.js";
7
+ import {
8
+ dialogMessageKey
9
+ } from "./chunk-OJKUU3LP.js";
7
10
  import {
8
11
  toErrorMessage
9
12
  } from "./chunk-HNMXYYJR.js";
13
+ import {
14
+ asOptionalFiniteNumber
15
+ } from "./chunk-WWC7I6TA.js";
16
+ import {
17
+ asOptionalTrimmedString
18
+ } from "./chunk-G3SUCT4W.js";
10
19
  import {
11
20
  isLoopbackHostname
12
21
  } from "./chunk-4SN6J65J.js";
@@ -124,7 +133,86 @@ async function fetchWithTransientRetry(fetchImpl, input, init, options = {}) {
124
133
  throw lastError;
125
134
  }
126
135
 
136
+ // packages/core/chat/dialogAttachmentCleanup.ts
137
+ var FILE_CONTENT_RE = /(?:https?:\/\/[^/"'\s]+)?\/api\/v1\/db\/file\/content\/([^?#"'\s)]+)/g;
138
+ function extractFileContentIds(value) {
139
+ const ids = /* @__PURE__ */ new Set();
140
+ const visit = (input) => {
141
+ if (typeof input === "string") {
142
+ for (const match of input.matchAll(FILE_CONTENT_RE)) {
143
+ const fileId = decodeURIComponent(match[1] ?? "").trim();
144
+ if (fileId) ids.add(fileId);
145
+ }
146
+ return;
147
+ }
148
+ if (Array.isArray(input)) {
149
+ for (const item of input) visit(item);
150
+ return;
151
+ }
152
+ if (input && typeof input === "object") {
153
+ for (const item of Object.values(input)) visit(item);
154
+ }
155
+ };
156
+ visit(value);
157
+ return [...ids];
158
+ }
159
+ function messageDbKey(dialogId, message) {
160
+ const dbKey = asOptionalTrimmedString(message.dbKey);
161
+ if (dbKey) return dbKey;
162
+ const id = asOptionalTrimmedString(message.id);
163
+ if (id) return dialogMessageKey(dialogId, id);
164
+ return null;
165
+ }
166
+ function asText(value) {
167
+ return asOptionalTrimmedString(value) ?? null;
168
+ }
169
+ function buildDialogAttachmentPlan(args) {
170
+ const messageKeys = new Set(
171
+ args.messages.map((message) => messageDbKey(args.dialogId, message)).filter((key) => Boolean(key))
172
+ );
173
+ const referencedFileIds = [
174
+ ...new Set(args.messages.flatMap((message) => extractFileContentIds(message)))
175
+ ];
176
+ const candidates = referencedFileIds.map((fileId) => {
177
+ const metadata = args.metadataByFileId[fileId];
178
+ const ownerType = asText(metadata?.ownerType);
179
+ const ownerId = asText(metadata?.ownerId);
180
+ const ownerDbKey = asText(metadata?.ownerDbKey);
181
+ const fileDbKey = asText(metadata?.dbKey);
182
+ const source = asText(metadata?.source);
183
+ const ownedByDialog = ownerType === "dialog" && ownerId === args.dialogId;
184
+ const ownedByMessage = Boolean(ownerDbKey && messageKeys.has(ownerDbKey));
185
+ const userOwnedReferenced = args.includeUserOwnedReferenced === true && Boolean(args.ownerId) && ownerType === "user" && ownerId === args.ownerId;
186
+ const canDelete = Boolean(fileDbKey && (ownedByDialog || ownedByMessage || userOwnedReferenced));
187
+ return {
188
+ fileId,
189
+ fileDbKey,
190
+ size: asOptionalFiniteNumber(metadata?.size) ?? null,
191
+ ownerType,
192
+ ownerId,
193
+ ownerDbKey,
194
+ source,
195
+ status: canDelete ? "delete" : "retain",
196
+ reason: canDelete ? ownedByMessage ? "ownerDbKey matches a message in this dialog" : userOwnedReferenced ? "user-owned file is referenced by this dialog and explicit referenced-attachment deletion is enabled" : "ownerType/ownerId matches this dialog" : fileDbKey ? "file ownership is not exclusive to this dialog" : "file metadata not found"
197
+ };
198
+ });
199
+ const deleteCandidates = candidates.filter((candidate) => candidate.status === "delete");
200
+ const retainedCandidates = candidates.filter((candidate) => candidate.status === "retain");
201
+ return {
202
+ dialogId: args.dialogId,
203
+ messageCount: args.messages.length,
204
+ referencedFileIds,
205
+ candidates,
206
+ deleteCandidates,
207
+ retainedCandidates,
208
+ bytesToDelete: deleteCandidates.reduce((sum, candidate) => sum + (candidate.size ?? 0), 0),
209
+ metadataReadFailures: args.metadataReadFailures ?? []
210
+ };
211
+ }
212
+
127
213
  export {
128
214
  isTransientFetchError,
129
- fetchWithTransientRetry
215
+ fetchWithTransientRetry,
216
+ extractFileContentIds,
217
+ buildDialogAttachmentPlan
130
218
  };
@@ -7,24 +7,24 @@ import {
7
7
  hadToolImages,
8
8
  projectOpenAiToolImages,
9
9
  toolImages
10
- } from "./chunk-E2BESSAW.js";
10
+ } from "./chunk-X4O7FJF5.js";
11
11
  import {
12
12
  getModelContextWindow
13
- } from "./chunk-7BT37FK3.js";
13
+ } from "./chunk-L32W3PRP.js";
14
14
  import {
15
15
  isRecord
16
16
  } from "./chunk-KUG52IAP.js";
17
+ import {
18
+ asOptionalTrimmedString
19
+ } from "./chunk-G3SUCT4W.js";
17
20
  import {
18
21
  PLATFORM_HOSTED_KIMI_K3_MODEL,
19
22
  isFireworksKimiModel,
20
23
  isNoloHostedProvider
21
- } from "./chunk-GOO6G4PY.js";
24
+ } from "./chunk-OBSEKCVK.js";
22
25
  import {
23
26
  asTrimmedLowercaseString
24
27
  } from "./chunk-QSJ3HFEF.js";
25
- import {
26
- asOptionalTrimmedString
27
- } from "./chunk-G3SUCT4W.js";
28
28
 
29
29
  // packages/integrations/openai/responsesHelpers.ts
30
30
  var RESPONSES_TOP_LEVEL_SCHEMA_KEYS = ["anyOf", "oneOf", "allOf", "enum", "not"];
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BUILTIN_NOLO_AGENT_KEY
3
- } from "./chunk-LOEO7LRC.js";
3
+ } from "./chunk-ILHQ2AXT.js";
4
4
 
5
5
  // packages/core/init.ts
6
6
  var nolotusId = "0e95801d90";
@@ -0,0 +1,90 @@
1
+ // packages/ai/tools/agent/quotaCircuitBreaker.ts
2
+ var QUOTA_ERROR_PATTERNS = [
3
+ /429/,
4
+ /quota/i,
5
+ /access_terminated_error/i,
6
+ /(?:weekly|monthly)\s*(?:\([^)]*\)\s*)?usage\s+limit/i,
7
+ /rate\s*limit/i,
8
+ /too\s*many\s*requests/i,
9
+ /额度/,
10
+ /上限/,
11
+ /用尽/,
12
+ /CliProviderQuotaError/i
13
+ ];
14
+ var AUTH_ERROR_PATTERNS = [
15
+ /401/,
16
+ /403/,
17
+ /unauthori[sz]ed/i,
18
+ /authentication\s+failed/i,
19
+ /invalid\s+(api[-\s]?key|token|credential)/i,
20
+ /api[-\s]?key\s+(invalid|missing|not\s+found)/i,
21
+ /token\s*(invalid|expired|失效|过期)/i,
22
+ /未授权/,
23
+ /认证失败/,
24
+ /凭证/
25
+ ];
26
+ function isCliProviderQuotaErrorShape(error) {
27
+ if (!error || typeof error !== "object") return false;
28
+ const e = error;
29
+ return e.name === "CliProviderQuotaError" || typeof e.message === "string" && e.message.startsWith("[QUOTA_LIMITED:");
30
+ }
31
+ function isQuotaExhaustedError(error) {
32
+ if (!error) return false;
33
+ if (isCliProviderQuotaErrorShape(error)) return true;
34
+ if (error instanceof Error) {
35
+ return QUOTA_ERROR_PATTERNS.some((pattern) => pattern.test(error.message));
36
+ }
37
+ if (typeof error === "string") {
38
+ return QUOTA_ERROR_PATTERNS.some((pattern) => pattern.test(error));
39
+ }
40
+ const maybeStatus = error.status;
41
+ const maybeStatusCode = error.statusCode;
42
+ const status = typeof maybeStatus === "number" ? maybeStatus : maybeStatusCode;
43
+ if (status === 429) return true;
44
+ if (status === 403) {
45
+ const message = extractMessage(error);
46
+ return QUOTA_ERROR_PATTERNS.some((pattern) => pattern.test(message));
47
+ }
48
+ return false;
49
+ }
50
+ function extractMessage(error) {
51
+ if (typeof error === "string") return error;
52
+ if (error instanceof Error) return error.message;
53
+ if (error && typeof error === "object") {
54
+ const m = error.message;
55
+ return typeof m === "string" ? m : "";
56
+ }
57
+ return "";
58
+ }
59
+ function parseResetsInMs(text) {
60
+ if (!text) return void 0;
61
+ const sanitized = text.replace(/\btrace[\s_-]?id\b[^)\n]*/gi, " ").replace(/\b[0-9a-f]{16,}\b/gi, " ");
62
+ const unitMs = (n, unit) => {
63
+ if (/^d/.test(unit)) return n * 24 * 3600 * 1e3;
64
+ if (/^h/.test(unit)) return n * 3600 * 1e3;
65
+ if (/^m/.test(unit)) return n * 60 * 1e3;
66
+ if (/^s/.test(unit)) return n * 1e3;
67
+ return NaN;
68
+ };
69
+ const re = /(\d+)\s*(d(?:ay|ays)?|h(?:r|rs|our|ours)?|m(?:in|ins|inute|inutes)?|s(?:ec|ecs|econd|econds)?)/gi;
70
+ const MAX_SINGLE_MATCH_MS = 7 * 24 * 3600 * 1e3;
71
+ let totalMs = 0;
72
+ let matched = false;
73
+ let m;
74
+ while ((m = re.exec(sanitized)) !== null) {
75
+ const ms = unitMs(Number(m[1]), m[2]);
76
+ if (!Number.isFinite(ms) || ms > MAX_SINGLE_MATCH_MS) continue;
77
+ totalMs += ms;
78
+ matched = true;
79
+ }
80
+ return matched ? totalMs : void 0;
81
+ }
82
+ var DEFAULT_QUOTA_BREAKER_MS = 6 * 3600 * 1e3;
83
+ var DEFAULT_AGENT_NOT_FOUND_BREAKER_MS = 15 * 60 * 1e3;
84
+
85
+ export {
86
+ QUOTA_ERROR_PATTERNS,
87
+ AUTH_ERROR_PATTERNS,
88
+ isQuotaExhaustedError,
89
+ parseResetsInMs
90
+ };
@@ -3,7 +3,7 @@ import {
3
3
  require_differenceInMilliseconds,
4
4
  require_differenceInMinutes,
5
5
  require_roundingMethods
6
- } from "./chunk-FY7F4Q6X.js";
6
+ } from "./chunk-Z4PCXPUE.js";
7
7
  import {
8
8
  normalizeStats,
9
9
  require_addMilliseconds,
@@ -23,27 +23,27 @@ import {
23
23
  require_startOfUTCWeek,
24
24
  require_subMilliseconds,
25
25
  require_toInteger
26
- } from "./chunk-7RFNTILS.js";
26
+ } from "./chunk-BUDVRYES.js";
27
27
  import {
28
28
  require_formatISO
29
- } from "./chunk-WPORQFYN.js";
29
+ } from "./chunk-UVLYNWIE.js";
30
30
  import {
31
31
  require_addLeadingZeros,
32
32
  require_interopRequireDefault,
33
33
  require_requiredArgs,
34
34
  require_toDate,
35
35
  require_typeof
36
- } from "./chunk-MMA3LZ3W.js";
36
+ } from "./chunk-YNIYE47Z.js";
37
37
  import {
38
38
  getDefaultCliLocalRuntimeDb
39
- } from "./chunk-AZMYUSVF.js";
39
+ } from "./chunk-N5Z2V73W.js";
40
40
  import {
41
41
  createTokenStatsKey
42
- } from "./chunk-JY5NGFFH.js";
42
+ } from "./chunk-SYTHYBMI.js";
43
43
  import {
44
44
  __commonJS,
45
45
  __toESM
46
- } from "./chunk-4VNS5WPM.js";
46
+ } from "./chunk-U67V476Y.js";
47
47
 
48
48
  // node_modules/date-fns/addDays/index.js
49
49
  var require_addDays = __commonJS({
@@ -11658,7 +11658,7 @@ async function runUsageCommand(args, deps) {
11658
11658
  const output = deps.output ?? process.stdout;
11659
11659
  const errorOutput = deps.errorOutput ?? process.stderr;
11660
11660
  if (args[0] === "rebuild") {
11661
- const { runUsageRebuildCommand } = await import("./usageRebuildCommand-HAW2AD5N.js");
11661
+ const { runUsageRebuildCommand } = await import("./usageRebuildCommand-UHB55BQM.js");
11662
11662
  return runUsageRebuildCommand(args.slice(1), deps);
11663
11663
  }
11664
11664
  if (hasFlag(args, "-h") || hasFlag(args, "--help")) {
@@ -11729,7 +11729,7 @@ async function runUsageCommand(args, deps) {
11729
11729
  return 0;
11730
11730
  }
11731
11731
  async function resolveUsageUserId(env) {
11732
- const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-WJBZQTLW.js");
11732
+ const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-BTRHMPW2.js");
11733
11733
  return resolveLocalUserId(env);
11734
11734
  }
11735
11735
  function isLocalDbMissingError(error) {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-3EUW3WEO.js";
4
4
  import {
5
5
  __export
6
- } from "./chunk-4VNS5WPM.js";
6
+ } from "./chunk-U67V476Y.js";
7
7
 
8
8
  // node_modules/mdast-util-to-string/lib/index.js
9
9
  var emptyOptions = {};
@@ -7490,7 +7490,10 @@ function gfmAutolinkLiteralFromMarkdown() {
7490
7490
  };
7491
7491
  }
7492
7492
  function enterLiteralAutolink(token) {
7493
- this.enter({ type: "link", title: null, url: "", children: [] }, token);
7493
+ this.enter(
7494
+ { type: "link", title: null, url: "", children: [], position: void 0 },
7495
+ token
7496
+ );
7494
7497
  }
7495
7498
  function enterLiteralAutolinkValue(token) {
7496
7499
  this.config.enter.autolinkProtocol.call(this, token);
@@ -7514,67 +7517,109 @@ function transformGfmAutolinkLiterals(tree) {
7514
7517
  findAndReplace(
7515
7518
  tree,
7516
7519
  [
7517
- [/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, findUrl],
7518
- [new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), findEmail]
7520
+ [
7521
+ /(?<![\da-z])(https?:\/\/|www(?=\.))([\w-]*\.[\w\-.]*)([^\t\n\r ]*)/gi,
7522
+ findUrl
7523
+ ],
7524
+ [
7525
+ /(?<![\w+\-.@])xmpp:([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)(\/(?:[\w\-/]|\.(?=[\dA-Za-z]))*)?/g,
7526
+ findXmpp
7527
+ ],
7528
+ [/(?<![\w+\-.@])mailto:([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)/g, findMailto],
7529
+ [
7530
+ /(?<![\w+\-.]|(?:^|[^\d@A-Za-z])(?:mailto|xmpp):)([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)/g,
7531
+ findEmail
7532
+ ]
7519
7533
  ],
7520
7534
  { ignore: ["link", "linkReference"] }
7521
7535
  );
7522
7536
  }
7523
7537
  function findUrl(_, protocol, domain2, path2, match) {
7524
- let prefix = "";
7525
7538
  if (!previous2(match)) {
7526
7539
  return false;
7527
7540
  }
7541
+ let prefix = "";
7528
7542
  if (/^w/i.test(protocol)) {
7529
7543
  domain2 = protocol + domain2;
7530
7544
  protocol = "";
7531
7545
  prefix = "http://";
7532
7546
  }
7533
- if (!isCorrectDomain(domain2)) {
7547
+ if (unicodePunctuation(domain2.charCodeAt(0)) || !isCorrectDomain(domain2)) {
7534
7548
  return false;
7535
7549
  }
7536
7550
  const parts = splitUrl(domain2 + path2);
7537
- if (!parts[0]) return false;
7538
7551
  const result = {
7539
7552
  type: "link",
7540
7553
  title: null,
7541
7554
  url: prefix + protocol + parts[0],
7542
- children: [{ type: "text", value: protocol + parts[0] }]
7555
+ children: [{ type: "text", value: protocol + parts[0], position: void 0 }],
7556
+ position: void 0
7543
7557
  };
7544
7558
  if (parts[1]) {
7545
- return [result, { type: "text", value: parts[1] }];
7559
+ return [result, { type: "text", value: parts[1], position: void 0 }];
7546
7560
  }
7547
7561
  return result;
7548
7562
  }
7549
- function findEmail(_, atext, label, match) {
7550
- if (
7551
- // Not an expected previous character.
7552
- !previous2(match, true) || // Label ends in not allowed character.
7553
- /[-\d_]$/.test(label)
7554
- ) {
7563
+ function findEmail(_, atext, label) {
7564
+ if (/[\d\-_]$/.test(label)) {
7555
7565
  return false;
7556
7566
  }
7557
7567
  return {
7558
7568
  type: "link",
7559
7569
  title: null,
7560
7570
  url: "mailto:" + atext + "@" + label,
7561
- children: [{ type: "text", value: atext + "@" + label }]
7571
+ children: [{ type: "text", value: atext + "@" + label, position: void 0 }],
7572
+ position: void 0
7573
+ };
7574
+ }
7575
+ function findMailto(_, atext, label) {
7576
+ if (/[\d\-_]$/.test(label)) {
7577
+ return false;
7578
+ }
7579
+ const value = "mailto:" + atext + "@" + label;
7580
+ return {
7581
+ type: "link",
7582
+ title: null,
7583
+ url: value,
7584
+ children: [{ type: "text", value, position: void 0 }],
7585
+ position: void 0
7586
+ };
7587
+ }
7588
+ function findXmpp(matchValue, atext, label, resource, match) {
7589
+ if (/[\d\-_]$/.test(label) || resource && (!/[A-Za-z]$/.test(resource) || match.input.charAt(match.index + matchValue.length) === "@")) {
7590
+ return false;
7591
+ }
7592
+ const value = "xmpp:" + atext + "@" + label + (resource || "");
7593
+ return {
7594
+ type: "link",
7595
+ title: null,
7596
+ url: value,
7597
+ children: [{ type: "text", value, position: void 0 }],
7598
+ position: void 0
7562
7599
  };
7563
7600
  }
7564
7601
  function isCorrectDomain(domain2) {
7565
7602
  const parts = domain2.split(".");
7566
- if (parts.length < 2 || parts[parts.length - 1] && (/_/.test(parts[parts.length - 1]) || !/[a-zA-Z\d]/.test(parts[parts.length - 1])) || parts[parts.length - 2] && (/_/.test(parts[parts.length - 2]) || !/[a-zA-Z\d]/.test(parts[parts.length - 2]))) {
7603
+ if (parts.length < 2 || parts[parts.length - 1] && (/_/.test(parts[parts.length - 1]) || !/[\dA-Za-z]/.test(parts[parts.length - 1])) || parts[parts.length - 2] && (/_/.test(parts[parts.length - 2]) || !/[\dA-Za-z]/.test(parts[parts.length - 2]))) {
7567
7604
  return false;
7568
7605
  }
7569
7606
  return true;
7570
7607
  }
7571
7608
  function splitUrl(url) {
7572
- const trailExec = /[!"&'),.:;<>?\]}]+$/.exec(url);
7573
- if (!trailExec) {
7609
+ let index2 = url.length;
7610
+ while (index2 > 0) {
7611
+ const code2 = url.charCodeAt(index2 - 1);
7612
+ if (code2 === 33 || code2 === 34 || code2 === 38 || code2 === 39 || code2 === 41 || code2 === 44 || code2 === 46 || code2 === 58 || code2 === 59 || code2 === 60 || code2 === 62 || code2 === 63 || code2 === 93 || code2 === 125) {
7613
+ index2--;
7614
+ } else {
7615
+ break;
7616
+ }
7617
+ }
7618
+ if (index2 === url.length) {
7574
7619
  return [url, void 0];
7575
7620
  }
7576
- url = url.slice(0, trailExec.index);
7577
- let trail2 = trailExec[0];
7621
+ let trail2 = url.slice(index2);
7622
+ url = url.slice(0, index2);
7578
7623
  let closingParenIndex = trail2.indexOf(")");
7579
7624
  const openingParens = ccount(url, "(");
7580
7625
  let closingParens = ccount(url, ")");
@@ -7586,10 +7631,9 @@ function splitUrl(url) {
7586
7631
  }
7587
7632
  return [url, trail2];
7588
7633
  }
7589
- function previous2(match, email) {
7634
+ function previous2(match) {
7590
7635
  const code2 = match.input.charCodeAt(match.index - 1);
7591
- return (match.index === 0 || unicodeWhitespace(code2) || unicodePunctuation(code2)) && // If it’s an email, the previous character should not be a slash.
7592
- (!email || code2 !== 47);
7636
+ return match.index === 0 || unicodeWhitespace(code2) || unicodePunctuation(code2);
7593
7637
  }
7594
7638
 
7595
7639
  // node_modules/mdast-util-gfm-footnote/lib/index.js
@@ -7788,22 +7832,22 @@ function exitParagraphWithTaskListItem(token) {
7788
7832
  if (head && head.type === "text") {
7789
7833
  const siblings = parent.children;
7790
7834
  let index2 = -1;
7791
- let firstParaghraph;
7835
+ let firstParagraph;
7792
7836
  while (++index2 < siblings.length) {
7793
7837
  const sibling = siblings[index2];
7794
7838
  if (sibling.type === "paragraph") {
7795
- firstParaghraph = sibling;
7839
+ firstParagraph = sibling;
7796
7840
  break;
7797
7841
  }
7798
7842
  }
7799
- if (firstParaghraph === node2) {
7843
+ if (firstParagraph === node2) {
7800
7844
  head.value = head.value.slice(1);
7801
7845
  if (head.value.length === 0) {
7802
7846
  node2.children.shift();
7803
7847
  } else if (node2.position && head.position && typeof head.position.start.offset === "number") {
7804
7848
  head.position.start.column++;
7805
7849
  head.position.start.offset++;
7806
- node2.position.start = Object.assign({}, head.position.start);
7850
+ node2.position.start = { ...head.position.start };
7807
7851
  }
7808
7852
  }
7809
7853
  }
@@ -0,0 +1,142 @@
1
+ import {
2
+ resolveBuiltinCapability,
3
+ resolveBuiltinSkillEntry
4
+ } from "./chunk-G7IUT2V3.js";
5
+ import {
6
+ asTrimmedNonEmptyStringArray
7
+ } from "./chunk-I42VC5KR.js";
8
+
9
+ // packages/core/agentSkillModes.ts
10
+ var AGENT_SKILL_MODES = [
11
+ "required",
12
+ "recommended",
13
+ "disabled"
14
+ ];
15
+ var isAgentSkillMode = (value) => typeof value === "string" && AGENT_SKILL_MODES.includes(value);
16
+ var collectInvalidAgentSkillModes = (skills) => {
17
+ if (!skills || typeof skills !== "object" || Array.isArray(skills)) return [];
18
+ const out = [];
19
+ for (const [slug, value] of Object.entries(skills)) {
20
+ if (value === null) continue;
21
+ if (!isAgentSkillMode(value)) out.push({ slug, value });
22
+ }
23
+ return out;
24
+ };
25
+ var describeAgentSkillModeValue = (value) => {
26
+ let text;
27
+ if (typeof value === "string") {
28
+ text = JSON.stringify(value.length > 40 ? `${value.slice(0, 40)}\u2026` : value);
29
+ } else if (value === void 0) {
30
+ text = "undefined";
31
+ } else {
32
+ try {
33
+ const serialized = JSON.stringify(value);
34
+ text = typeof serialized === "string" ? serialized : String(value);
35
+ } catch {
36
+ text = typeof value;
37
+ }
38
+ }
39
+ return text.length > 60 ? `${text.slice(0, 60)}\u2026` : text;
40
+ };
41
+ var formatInvalidAgentSkillModeMessage = (invalid, allowed = AGENT_SKILL_MODES) => `Invalid agent skill mode for "${invalid.slug}": ${describeAgentSkillModeValue(invalid.value)}. Allowed values: ${allowed.join(", ")}.`;
42
+ var isAgentSkillModesFieldShapeValid = (skills) => {
43
+ if (skills === null || skills === void 0) return true;
44
+ return typeof skills === "object" && !Array.isArray(skills);
45
+ };
46
+ var formatInvalidAgentSkillModesFieldMessage = (allowed = AGENT_SKILL_MODES) => `Invalid agent skills field: expected an object mapping slug \u2192 mode (${allowed.join(" | ")}).`;
47
+
48
+ // packages/ai/tools/agentSkillConfig.ts
49
+ var MODES = AGENT_SKILL_MODES;
50
+ var DEFAULT_RECOMMENDED_SKILL_SLUGS = [
51
+ // `worktree-isolation` 已上移为系统层固定前置(agent-runtime/worktreeIsolationPrelude),
52
+ // 不再依赖「相关技能」提示行被发现,也不再是用户可关项——见 skillExploreDirectory 的
53
+ // PLATFORM_CORE_SKILL_SLUGS。注册表解析与 legacy 读取保留。
54
+ "systematic-investigation",
55
+ "show-me",
56
+ // 凭据管理:仓库已有 nolo secret(set/list/run/bind),但技能发现只扫
57
+ // `.agents/skills`,内置的 secrets-manager 不会出现在"可用技能"里。放进默认
58
+ // 提示名单让它至少以一行提示出现(不授工具、不放宽权限)。
59
+ "secrets-manager"
60
+ ];
61
+ var asMode = (value) => typeof value === "string" && MODES.includes(value) ? value : null;
62
+ var resolveAgentSkillConfig = (source) => {
63
+ const out = {};
64
+ const skills = source?.skills;
65
+ if (skills && typeof skills === "object" && !Array.isArray(skills)) {
66
+ for (const [rawSlug, rawMode] of Object.entries(skills)) {
67
+ const slug = typeof rawSlug === "string" ? rawSlug.trim() : "";
68
+ const mode = asMode(rawMode);
69
+ if (slug && mode) out[slug] = mode;
70
+ }
71
+ return out;
72
+ }
73
+ for (const slug of asTrimmedNonEmptyStringArray(source?.enabledPacks) ?? []) {
74
+ out[slug] = "required";
75
+ }
76
+ return out;
77
+ };
78
+ var collectAgentSkillConfigIssues = (source) => {
79
+ const issues = [];
80
+ const skills = source?.skills;
81
+ if (skills === void 0 || skills === null) return issues;
82
+ if (typeof skills !== "object" || Array.isArray(skills)) {
83
+ issues.push({ slug: "", value: skills, reason: "invalid-skills-field" });
84
+ return issues;
85
+ }
86
+ for (const [rawSlug, rawMode] of Object.entries(skills)) {
87
+ const slug = rawSlug.trim();
88
+ if (!slug) {
89
+ issues.push({ slug: rawSlug, value: rawMode, reason: "invalid-slug" });
90
+ continue;
91
+ }
92
+ if (!isAgentSkillMode(rawMode)) {
93
+ issues.push({ slug, value: rawMode, reason: "invalid-mode" });
94
+ }
95
+ }
96
+ return issues;
97
+ };
98
+ var resolveAgentRequiredPackIds = (source) => {
99
+ const config = resolveAgentSkillConfig(source);
100
+ return Object.keys(config).filter((slug) => config[slug] === "required");
101
+ };
102
+ var resolveAgentRecommendedSkillNames = (source, lookup) => {
103
+ const config = resolveAgentSkillConfig(source);
104
+ const resolve = lookup ?? defaultSkillTitleLookup;
105
+ const seen = /* @__PURE__ */ new Set();
106
+ const out = [];
107
+ const push = (slug) => {
108
+ const title = resolve(slug)?.title || slug;
109
+ if (seen.has(title)) return;
110
+ seen.add(title);
111
+ out.push(title);
112
+ };
113
+ for (const slug of Object.keys(config)) {
114
+ if (config[slug] !== "recommended") continue;
115
+ push(slug);
116
+ }
117
+ for (const slug of DEFAULT_RECOMMENDED_SKILL_SLUGS) {
118
+ if (Object.hasOwn(config, slug)) continue;
119
+ push(slug);
120
+ }
121
+ return out;
122
+ };
123
+ var defaultSkillTitleLookup = (slug) => {
124
+ const cap = resolveBuiltinCapability(slug);
125
+ if (cap) return { title: cap.title };
126
+ const skill = resolveBuiltinSkillEntry(slug);
127
+ return skill ? { title: skill.title } : null;
128
+ };
129
+ var isAgentSkillDisabled = (source, slug) => resolveAgentSkillConfig(source)[slug] === "disabled";
130
+
131
+ export {
132
+ collectInvalidAgentSkillModes,
133
+ describeAgentSkillModeValue,
134
+ formatInvalidAgentSkillModeMessage,
135
+ isAgentSkillModesFieldShapeValid,
136
+ formatInvalidAgentSkillModesFieldMessage,
137
+ resolveAgentSkillConfig,
138
+ collectAgentSkillConfigIssues,
139
+ resolveAgentRequiredPackIds,
140
+ resolveAgentRecommendedSkillNames,
141
+ isAgentSkillDisabled
142
+ };