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
@@ -8,38 +8,41 @@ import {
8
8
  noloUploadRequest,
9
9
  noloWriteRequest,
10
10
  syncWithServers
11
- } from "./chunk-P5L7CXOC.js";
11
+ } from "./chunk-7Z6EW7AH.js";
12
12
  import {
13
13
  getAllServers,
14
14
  getIsDesktopApp
15
- } from "./chunk-AGP3YSEC.js";
15
+ } from "./chunk-4N6G2CKP.js";
16
16
  import {
17
17
  selectIdentityToken,
18
18
  selectIdentityUser,
19
19
  selectIdentityUserId
20
20
  } from "./chunk-PXYBUFDB.js";
21
21
  import {
22
- isRecord
23
- } from "./chunk-KUG52IAP.js";
22
+ isTombstoneRecord
23
+ } from "./chunk-BV3FLP2L.js";
24
+ import {
25
+ asOptionalPositiveFiniteNumber
26
+ } from "./chunk-U6VC4MU4.js";
24
27
  import {
25
28
  SERVERS,
26
29
  normalizeKnownServerOrigin
27
30
  } from "./chunk-LCBAMY2M.js";
28
- import {
29
- isLocalServerUrl
30
- } from "./chunk-4SN6J65J.js";
31
- import {
32
- normalizeServerOrigin
33
- } from "./chunk-CF7PE763.js";
34
- import {
35
- asOptionalPositiveFiniteNumber
36
- } from "./chunk-U6VC4MU4.js";
37
31
  import {
38
32
  asTrimmedString
39
33
  } from "./chunk-3EUW3WEO.js";
34
+ import {
35
+ isRecord
36
+ } from "./chunk-KUG52IAP.js";
40
37
  import {
41
38
  asOptionalTrimmedString
42
39
  } from "./chunk-G3SUCT4W.js";
40
+ import {
41
+ isLocalServerUrl
42
+ } from "./chunk-4SN6J65J.js";
43
+ import {
44
+ normalizeServerOrigin
45
+ } from "./chunk-CF7PE763.js";
43
46
 
44
47
  // packages/app/stateViews/runtime.ts
45
48
  var selectCurrentToken = (state) => {
@@ -184,8 +187,16 @@ var parseOwnerUserIdFromDbKey = (dbKey, options = {}) => {
184
187
  }
185
188
  return null;
186
189
  }
187
- if (parts[0] === "dialog" && parts[2] === "msg") {
188
- return null;
190
+ if (prefix === "dialog") {
191
+ const messageSeparator = normalized.lastIndexOf("-msg-");
192
+ if (messageSeparator !== -1) {
193
+ const dialogPrefix = normalized.slice("dialog-".length, messageSeparator);
194
+ const candidateOwner2 = resolveCandidateOwnerFromKeyRemainder(
195
+ dialogPrefix,
196
+ options.candidateOwnerUserIds
197
+ );
198
+ return candidateOwner2 && dialogPrefix.length > candidateOwner2.length + 1 ? candidateOwner2 : null;
199
+ }
189
200
  }
190
201
  const ownerAndRest = normalized.slice(prefix.length + 1);
191
202
  const candidateOwner = resolveCandidateOwnerFromKeyRemainder(
@@ -200,6 +211,48 @@ var parseOwnerUserIdFromDbKey = (dbKey, options = {}) => {
200
211
  return ownerUserId;
201
212
  };
202
213
 
214
+ // packages/database/authority/deviceLocal.ts
215
+ var DEVICE_LOCAL_OWNER_ID = "local";
216
+ var DEVICE_LOCAL_DB_KEY_PREFIXES = [
217
+ "dialog-local-",
218
+ "agent-local-"
219
+ ];
220
+ var clean = (value) => asOptionalTrimmedString(value) ?? null;
221
+ var isDeviceLocalOwnerId = (userId) => clean(userId) === DEVICE_LOCAL_OWNER_ID;
222
+ var resolveEffectiveSpaceActorId = (accountUserId) => {
223
+ const cleaned = clean(accountUserId);
224
+ if (!cleaned || isDeviceLocalOwnerId(cleaned)) {
225
+ return DEVICE_LOCAL_OWNER_ID;
226
+ }
227
+ return cleaned;
228
+ };
229
+ var isDeviceLocalSpaceMembership = (membership) => isDeviceLocalOwnerId(membership?.userId);
230
+ var isDeviceLocalSpaceBody = (space) => isDeviceLocalOwnerId(space?.userId) || isDeviceLocalOwnerId(space?.ownerId);
231
+ var isDeviceLocalDbKey = (dbKey) => {
232
+ const key = clean(dbKey);
233
+ if (!key) return false;
234
+ for (const prefix of DEVICE_LOCAL_DB_KEY_PREFIXES) {
235
+ if (key.startsWith(prefix)) return true;
236
+ }
237
+ return parseOwnerUserIdFromDbKey(key, {
238
+ candidateOwnerUserIds: [DEVICE_LOCAL_OWNER_ID]
239
+ }) === DEVICE_LOCAL_OWNER_ID;
240
+ };
241
+ var resolveRecordOwnerUserId = (record) => {
242
+ if (!record) return null;
243
+ const explicit = clean(record.userId);
244
+ if (explicit) return explicit;
245
+ if (isDeviceLocalDbKey(record.dbKey) || isDeviceLocalDbKey(record.id)) {
246
+ return DEVICE_LOCAL_OWNER_ID;
247
+ }
248
+ const fromKey = parseOwnerUserIdFromDbKey(clean(record.dbKey) ?? "", {
249
+ candidateOwnerUserIds: [DEVICE_LOCAL_OWNER_ID]
250
+ }) ?? parseOwnerUserIdFromDbKey(clean(record.id) ?? "", {
251
+ candidateOwnerUserIds: [DEVICE_LOCAL_OWNER_ID]
252
+ });
253
+ return fromKey;
254
+ };
255
+
203
256
  // packages/database/authority/userAuthorityRegistry.ts
204
257
  var normalizeAuthorityServerOrigin = (value) => {
205
258
  const normalized = normalizeServerOrigin(value);
@@ -285,6 +338,23 @@ var partitionReadServers = ({
285
338
  };
286
339
  };
287
340
  var compareRemoteRecordsByComparableTime = (left, right) => toComparableTimestamp(left) - toComparableTimestamp(right);
341
+ var isPageRecord = (record) => {
342
+ if (!record || typeof record !== "object") return false;
343
+ if (typeof record.type === "string") return record.type === "page";
344
+ return typeof record.dbKey === "string" && record.dbKey.startsWith("page-");
345
+ };
346
+ var hasRecordBodyPayload = (record) => {
347
+ if (!record || typeof record !== "object") return false;
348
+ if (Array.isArray(record.slateData)) return true;
349
+ return typeof record.content === "string";
350
+ };
351
+ var shouldPreferRemoteBodyOverLocalProjection = (localData, remoteData) => {
352
+ if (!isPageRecord(localData) || !isPageRecord(remoteData)) return false;
353
+ if (isTombstoneRecord(localData) || isTombstoneRecord(remoteData)) return false;
354
+ if (!hasRecordBodyPayload(remoteData)) return false;
355
+ if (hasRecordBodyPayload(localData)) return false;
356
+ return compareRemoteRecordsByComparableTime(localData, remoteData) <= 0;
357
+ };
288
358
  var pickBestSettledRemoteRecord = ({
289
359
  settledResults,
290
360
  isBetterCandidate
@@ -306,6 +376,7 @@ var shouldReplaceLocalWithRemoteRecord = ({
306
376
  }) => {
307
377
  if (!remoteData || typeof remoteData !== "object") return false;
308
378
  if (!localData || typeof localData !== "object") return true;
379
+ if (shouldPreferRemoteBodyOverLocalProjection(localData, remoteData)) return true;
309
380
  return isRemoteNewer(remoteData, localData);
310
381
  };
311
382
  var shouldReplicateLocalRecord = ({
@@ -360,53 +431,13 @@ var planServersForTenant = (allServers, currentServer, tenantId) => {
360
431
  return Array.from(set);
361
432
  };
362
433
 
363
- // packages/database/authority/deviceLocal.ts
364
- var DEVICE_LOCAL_OWNER_ID = "local";
365
- var DEVICE_LOCAL_DB_KEY_PREFIXES = [
366
- "dialog-local-",
367
- "agent-local-"
368
- ];
369
- var clean = (value) => asOptionalTrimmedString(value) ?? null;
370
- var isDeviceLocalOwnerId = (userId) => clean(userId) === DEVICE_LOCAL_OWNER_ID;
371
- var resolveEffectiveSpaceActorId = (accountUserId) => {
372
- const cleaned = clean(accountUserId);
373
- if (!cleaned || isDeviceLocalOwnerId(cleaned)) {
374
- return DEVICE_LOCAL_OWNER_ID;
375
- }
376
- return cleaned;
377
- };
378
- var isDeviceLocalSpaceMembership = (membership) => isDeviceLocalOwnerId(membership?.userId);
379
- var isDeviceLocalSpaceBody = (space) => isDeviceLocalOwnerId(space?.userId) || isDeviceLocalOwnerId(space?.ownerId);
380
- var isDeviceLocalDbKey = (dbKey) => {
381
- const key = clean(dbKey);
382
- if (!key) return false;
383
- for (const prefix of DEVICE_LOCAL_DB_KEY_PREFIXES) {
384
- if (key.startsWith(prefix)) return true;
385
- }
386
- return parseOwnerUserIdFromDbKey(key, {
387
- candidateOwnerUserIds: [DEVICE_LOCAL_OWNER_ID]
388
- }) === DEVICE_LOCAL_OWNER_ID;
389
- };
390
- var resolveRecordOwnerUserId = (record) => {
391
- if (!record) return null;
392
- const explicit = clean(record.userId);
393
- if (explicit) return explicit;
394
- if (isDeviceLocalDbKey(record.dbKey) || isDeviceLocalDbKey(record.id)) {
395
- return DEVICE_LOCAL_OWNER_ID;
396
- }
397
- const fromKey = parseOwnerUserIdFromDbKey(clean(record.dbKey) ?? "", {
398
- candidateOwnerUserIds: [DEVICE_LOCAL_OWNER_ID]
399
- }) ?? parseOwnerUserIdFromDbKey(clean(record.id) ?? "", {
400
- candidateOwnerUserIds: [DEVICE_LOCAL_OWNER_ID]
401
- });
402
- return fromKey;
403
- };
404
-
405
434
  // packages/database/actions/writeAck.ts
435
+ var DEFAULT_WRITE_ACK_TIMEOUT_MS = 1500;
406
436
  var ACK_ENTRY_RETENTION_MS = 1e4;
407
437
  var ACK_ENTRY_MAX = 256;
408
438
  var replicationTargetKey = (server) => normalizeKnownServerOrigin(server) ?? normalizeServerOrigin(server);
409
439
  var ackEntries = /* @__PURE__ */ new Map();
440
+ var nowMs = () => typeof performance !== "undefined" ? performance.now() : Date.now();
410
441
  var sweepAckEntries = () => {
411
442
  const wallClock = Date.now();
412
443
  for (const [key, entry] of ackEntries) {
@@ -475,6 +506,54 @@ var beginWriteAck = (dbKey) => {
475
506
  markAborted: () => entry.settle("aborted")
476
507
  };
477
508
  };
509
+ var waitForWriteAck = async (dbKey, options = {}) => {
510
+ const timeoutMs = options.timeoutMs ?? DEFAULT_WRITE_ACK_TIMEOUT_MS;
511
+ const entry = ackEntries.get(dbKey);
512
+ if (!entry) {
513
+ return {
514
+ outcome: { status: "unknown" },
515
+ timedOut: false,
516
+ waitedMs: 0,
517
+ waitTarget: "none"
518
+ };
519
+ }
520
+ const targetKey = replicationTargetKey(options.targetServer);
521
+ let ack = entry.promise;
522
+ let waitTarget = "primary";
523
+ if (targetKey) {
524
+ const targetAck = entry.targetAcks.get(targetKey);
525
+ if (targetAck) {
526
+ ack = targetAck;
527
+ waitTarget = "run-target";
528
+ } else if (entry.planRegistered) {
529
+ waitTarget = "primary-fallback";
530
+ console.warn(
531
+ `[WriteAck] run target ${targetKey} is not in this write's replication plan [${entry.servers.join(
532
+ ", "
533
+ )}] for ${dbKey}; waiting on primary ${entry.primaryTargetKey ?? "unknown"} instead`
534
+ );
535
+ }
536
+ }
537
+ const startedAt = nowMs();
538
+ let timer;
539
+ const raced = await Promise.race([
540
+ ack,
541
+ new Promise((resolve) => {
542
+ timer = setTimeout(() => resolve(null), Math.max(0, timeoutMs));
543
+ })
544
+ ]);
545
+ if (timer !== void 0) clearTimeout(timer);
546
+ const waitedMs = nowMs() - startedAt;
547
+ if (raced === null) {
548
+ return {
549
+ outcome: { status: "pending" },
550
+ timedOut: true,
551
+ waitedMs,
552
+ waitTarget
553
+ };
554
+ }
555
+ return { outcome: { status: raced }, timedOut: false, waitedMs, waitTarget };
556
+ };
478
557
 
479
558
  // packages/database/actions/replication.ts
480
559
  var isReadonlyPublicRecordKey = (dbKey) => dbKey.startsWith("agent-pub-");
@@ -851,10 +930,13 @@ export {
851
930
  isDeviceLocalSpaceMembership,
852
931
  isDeviceLocalSpaceBody,
853
932
  resolveRecordOwnerUserId,
933
+ resolveUserAuthorityServer,
854
934
  resolveRecordAuthority,
855
935
  beginWriteAck,
936
+ waitForWriteAck,
856
937
  partitionReadServers,
857
938
  compareRemoteRecordsByComparableTime,
939
+ shouldPreferRemoteBodyOverLocalProjection,
858
940
  pickBestSettledRemoteRecord,
859
941
  shouldReplaceLocalWithRemoteRecord,
860
942
  shouldReplicateLocalRecord,
@@ -7,10 +7,10 @@ import {
7
7
  } from "./chunk-ATNTHIZI.js";
8
8
 
9
9
  // packages/ai/agent/cliExecutor.ts
10
- import { exec, spawn as spawn2 } from "child_process";
10
+ import { execFile, spawn as spawn2 } from "child_process";
11
11
  import { randomUUID as randomUUID2 } from "node:crypto";
12
- import { mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
13
- import { isAbsolute, join, resolve } from "node:path";
12
+ import { existsSync, mkdtempSync, readFileSync, realpathSync, rmSync, writeFileSync } from "node:fs";
13
+ import { isAbsolute, join, relative, resolve } from "node:path";
14
14
  import { tmpdir } from "node:os";
15
15
  import { StringDecoder } from "node:string_decoder";
16
16
 
@@ -607,7 +607,52 @@ function supportsModel(provider) {
607
607
  return provider !== "codex";
608
608
  }
609
609
  function supportsReasoningEffort(provider) {
610
- return provider === "claude" || provider === "copilot" || provider === "qoder" || provider === "opencode" || provider === "grok";
610
+ return provider === "claude" || provider === "copilot" || provider === "qoder" || provider === "opencode" || provider === "grok" || // agy 1.5.9 支持 --effort low|medium|high|xhigh|max(无 ultra,见 mapAgyEffort)
611
+ provider === "agy";
612
+ }
613
+ function mapAgyEffort(effort) {
614
+ return effort === "ultra" ? "max" : effort;
615
+ }
616
+ function normalizeAgyUsage(raw) {
617
+ if (!raw || typeof raw !== "object") return void 0;
618
+ const u = raw;
619
+ const num = (value) => typeof value === "number" && Number.isFinite(value) ? value : void 0;
620
+ const input = num(u.input_tokens);
621
+ const output = num(u.output_tokens);
622
+ const total = num(u.total_tokens);
623
+ const cacheRead = num(u.cache_read_tokens);
624
+ if (input === void 0 && output === void 0 && total === void 0 && cacheRead === void 0) {
625
+ return void 0;
626
+ }
627
+ return {
628
+ ...input !== void 0 ? { input_tokens: input } : {},
629
+ ...output !== void 0 ? { output_tokens: output } : {},
630
+ ...total !== void 0 ? { total_tokens: total } : {},
631
+ ...cacheRead !== void 0 ? { cache_read_input_tokens: cacheRead } : {}
632
+ };
633
+ }
634
+ function parseAgyJsonResult(raw) {
635
+ let last;
636
+ for (const line of raw.split("\n")) {
637
+ const trimmed = line.trim();
638
+ if (!trimmed.startsWith("{")) continue;
639
+ let parsed;
640
+ try {
641
+ parsed = JSON.parse(trimmed);
642
+ } catch {
643
+ continue;
644
+ }
645
+ if (!parsed || typeof parsed !== "object") continue;
646
+ const obj = parsed;
647
+ const response = typeof obj.response === "string" ? obj.response : void 0;
648
+ const usage = normalizeAgyUsage(obj.usage);
649
+ if (response === void 0 && usage === void 0) continue;
650
+ last = {
651
+ ...response !== void 0 ? { response } : {},
652
+ ...usage ? { usage } : {}
653
+ };
654
+ }
655
+ return last;
611
656
  }
612
657
  function shouldPassClaudeModel(options) {
613
658
  return (options.env?.NOLO_CLAUDE_CLI_ALLOW_MODEL ?? process.env.NOLO_CLAUDE_CLI_ALLOW_MODEL) === "1";
@@ -772,22 +817,24 @@ function executeCopilot(prompt, options) {
772
817
  } = options;
773
818
  return new Promise((resolve2, reject) => {
774
819
  const args = [
775
- "NO_COLOR=1",
776
- "gh copilot --",
777
- `-p ${JSON.stringify(prompt)}`,
820
+ "copilot",
821
+ "--",
822
+ "-p",
823
+ prompt,
778
824
  "--silent",
779
825
  "--disable-builtin-mcps",
780
- "--stream off",
826
+ "--stream",
827
+ "off",
781
828
  "--no-color"
782
829
  ];
783
- if (model) args.push(`--model ${model}`);
784
- if (reasoningEffort) args.push(`--reasoning-effort ${reasoningEffort}`);
830
+ if (model) args.push("--model", model);
831
+ if (reasoningEffort) args.push("--reasoning-effort", reasoningEffort);
785
832
  if (yolo) args.push("--yolo");
786
- const cmd = args.join(" ");
787
833
  const start = Date.now();
788
- exec(
789
- cmd,
790
- { timeout, cwd, env: buildCliProcessEnv(options.env) },
834
+ execFile(
835
+ "gh",
836
+ args,
837
+ { timeout, cwd, env: { ...buildCliProcessEnv(options.env), NO_COLOR: "1" } },
791
838
  (error, stdout, stderr) => {
792
839
  if (error) {
793
840
  if (error.killed && error.signal === "SIGTERM") {
@@ -843,6 +890,35 @@ function parseGeminiStreamJson(stdout) {
843
890
  }
844
891
  return parts.join("");
845
892
  }
893
+ function resolveGeminiCommand(env, platform = process.platform) {
894
+ if (platform !== "win32") return { command: "gemini", args: [] };
895
+ const path = Object.entries(env).find(([key]) => key.toLowerCase() === "path")?.[1] ?? "";
896
+ for (const directory of path.split(";")) {
897
+ if (!directory || !isAbsolute(directory)) continue;
898
+ if (existsSync(join(directory, "gemini.exe"))) {
899
+ return { command: join(directory, "gemini.exe"), args: [] };
900
+ }
901
+ if (!existsSync(join(directory, "gemini.cmd"))) continue;
902
+ try {
903
+ const root = realpathSync(join(directory, "node_modules", "@google", "gemini-cli"));
904
+ const manifest = JSON.parse(readFileSync(join(root, "package.json"), "utf8"));
905
+ const bin = typeof manifest.bin === "string" ? manifest.bin : manifest.bin?.gemini;
906
+ if (manifest.name !== "@google/gemini-cli" || typeof bin !== "string" || !bin) {
907
+ throw new Error("missing package bin");
908
+ }
909
+ const entry = realpathSync(resolve(root, bin));
910
+ const withinPackage = relative(root, entry);
911
+ if (withinPackage.startsWith("..") || isAbsolute(withinPackage) || !/\.[cm]?js$/i.test(entry)) {
912
+ throw new Error("package bin is not a contained JavaScript entry");
913
+ }
914
+ const node = join(directory, "node.exe");
915
+ return { command: existsSync(node) ? node : "node", args: [entry] };
916
+ } catch (error) {
917
+ throw new Error(`Gemini npm entry could not be resolved: ${String(error)}`);
918
+ }
919
+ }
920
+ return { command: "gemini", args: [] };
921
+ }
846
922
  function executeGemini(prompt, options) {
847
923
  const {
848
924
  model = "gemini-3.8-flash",
@@ -852,20 +928,22 @@ function executeGemini(prompt, options) {
852
928
  } = options;
853
929
  return new Promise((resolve2, reject) => {
854
930
  const args = [
855
- "NO_COLOR=1",
856
- "NODE_OPTIONS='--no-deprecation'",
857
- "gemini",
858
- `-p ${JSON.stringify(prompt)}`,
859
- "--output-format stream-json",
860
- `-m ${JSON.stringify(model)}`
931
+ "-p",
932
+ prompt,
933
+ "--output-format",
934
+ "stream-json",
935
+ "-m",
936
+ model
861
937
  ];
862
938
  if (yolo) args.push("--yolo");
863
- args.push("-e none");
864
- const cmd = args.join(" ");
939
+ args.push("-e", "none");
865
940
  const start = Date.now();
866
- exec(
867
- cmd,
868
- { timeout, cwd, env: buildCliProcessEnv(options.env) },
941
+ const env = { ...buildCliProcessEnv(options.env), NO_COLOR: "1", NODE_OPTIONS: "--no-deprecation" };
942
+ const launcher = resolveGeminiCommand(env);
943
+ execFile(
944
+ launcher.command,
945
+ [...launcher.args, ...args],
946
+ { timeout, cwd, env },
869
947
  (error, stdout, stderr) => {
870
948
  if (error) {
871
949
  if (error.killed && error.signal === "SIGTERM") {
@@ -1155,7 +1233,8 @@ function executeAgy(prompt, options) {
1155
1233
  const {
1156
1234
  timeout = DEFAULT_AGY_TIMEOUT_MS,
1157
1235
  cwd = process.cwd(),
1158
- yolo = true
1236
+ yolo = true,
1237
+ reasoningEffort
1159
1238
  } = options;
1160
1239
  return new Promise((resolve2, reject) => {
1161
1240
  const args = [
@@ -1163,10 +1242,13 @@ function executeAgy(prompt, options) {
1163
1242
  cwd,
1164
1243
  "--print",
1165
1244
  prompt,
1245
+ "--output-format",
1246
+ "json",
1166
1247
  "--print-timeout",
1167
1248
  formatCliTimeout(timeout)
1168
1249
  ];
1169
1250
  if (options.model) args.push("--model", options.model);
1251
+ if (reasoningEffort) args.push("--effort", mapAgyEffort(reasoningEffort));
1170
1252
  if (yolo) {
1171
1253
  args.push("--dangerously-skip-permissions");
1172
1254
  }
@@ -1224,10 +1306,12 @@ function executeAgy(prompt, options) {
1224
1306
  stderr: ${stderrText}`));
1225
1307
  return;
1226
1308
  }
1309
+ const parsed = parseAgyJsonResult(stdoutText);
1227
1310
  resolve2({
1228
- text: stdoutText.trim(),
1311
+ text: (parsed?.response ?? stdoutText).trim(),
1229
1312
  raw: stdoutText,
1230
- elapsed: Date.now() - start
1313
+ elapsed: Date.now() - start,
1314
+ ...parsed?.usage ? { usage: parsed.usage } : {}
1231
1315
  });
1232
1316
  });
1233
1317
  proc.on("error", (err) => {
@@ -1245,6 +1329,7 @@ function executeAgyStreaming(prompt, options) {
1245
1329
  timeout = DEFAULT_AGY_TIMEOUT_MS,
1246
1330
  yolo = true,
1247
1331
  model,
1332
+ reasoningEffort,
1248
1333
  onChunk
1249
1334
  } = options;
1250
1335
  return new Promise((resolve2, reject) => {
@@ -1258,6 +1343,7 @@ function executeAgyStreaming(prompt, options) {
1258
1343
  formatCliTimeout(timeout)
1259
1344
  ];
1260
1345
  if (model) args.push("--model", model);
1346
+ if (reasoningEffort) args.push("--effort", mapAgyEffort(reasoningEffort));
1261
1347
  if (yolo) args.push("--dangerously-skip-permissions");
1262
1348
  const start = Date.now();
1263
1349
  const proc = spawnCliProcess("agy", args, {
@@ -1271,6 +1357,7 @@ function executeAgyStreaming(prompt, options) {
1271
1357
  const stderr = createUtf8Collector();
1272
1358
  let pending = "";
1273
1359
  let answer = "";
1360
+ let agyUsage;
1274
1361
  let settled = false;
1275
1362
  let timer;
1276
1363
  let detachAbort = () => {
@@ -1303,6 +1390,9 @@ function executeAgyStreaming(prompt, options) {
1303
1390
  } catch {
1304
1391
  return;
1305
1392
  }
1393
+ const usageSource = event?.event === "result" ? event.result?.usage : event?.event === "step_update" ? event.step_update?.usage : void 0;
1394
+ const normalizedUsage = normalizeAgyUsage(usageSource);
1395
+ if (normalizedUsage) agyUsage = normalizedUsage;
1306
1396
  if (event?.event !== "step_update" || event.step_update?.step_type !== "agent_response" || typeof event.step_update.text_delta !== "string") return;
1307
1397
  const delta = event.step_update.text_delta;
1308
1398
  if (!delta) return;
@@ -1336,7 +1426,12 @@ function executeAgyStreaming(prompt, options) {
1336
1426
  stderr: ${stderrText}`)));
1337
1427
  return;
1338
1428
  }
1339
- finish(() => resolve2({ text: answer.trim(), raw, elapsed: Date.now() - start }));
1429
+ finish(() => resolve2({
1430
+ text: answer.trim(),
1431
+ raw,
1432
+ elapsed: Date.now() - start,
1433
+ ...agyUsage ? { usage: agyUsage } : {}
1434
+ }));
1340
1435
  });
1341
1436
  proc.on("error", (error) => fail(error));
1342
1437
  });
@@ -2111,6 +2206,7 @@ export {
2111
2206
  isBufferedCliStreamingProvider,
2112
2207
  CLI_PROBE_BINARIES,
2113
2208
  materializeCliImageInputs,
2209
+ resolveGeminiCommand,
2114
2210
  executeCli,
2115
2211
  startCliSession,
2116
2212
  getCliSession,
@@ -1,16 +1,12 @@
1
1
  import {
2
- resolveBuiltinCapability,
3
- resolveBuiltinSkillEntry
4
- } from "./chunk-WRYQ35LQ.js";
2
+ WORKFLOW_GUIDANCE_SKILL_SLUGS
3
+ } from "./chunk-G7IUT2V3.js";
5
4
  import {
6
5
  noloAgentId
7
- } from "./chunk-Y6ORVLSS.js";
6
+ } from "./chunk-EVGU5P4U.js";
8
7
  import {
9
8
  normalizeServerOrigin
10
9
  } from "./chunk-CF7PE763.js";
11
- import {
12
- asTrimmedNonEmptyStringArray
13
- } from "./chunk-I42VC5KR.js";
14
10
 
15
11
  // packages/ai/policy/types.ts
16
12
  var DEFAULT_AGENT_BASE_POLICY = {
@@ -84,71 +80,6 @@ var normalizeSystemBuiltinSkills = (value, defaults) => {
84
80
  return result;
85
81
  };
86
82
 
87
- // packages/ai/tools/agentSkillConfig.ts
88
- var MODES = [
89
- "required",
90
- "recommended",
91
- "disabled"
92
- ];
93
- var DEFAULT_RECOMMENDED_SKILL_SLUGS = [
94
- "worktree-isolation",
95
- "systematic-investigation",
96
- "show-me",
97
- // 凭据管理:仓库已有 nolo secret(set/list/run/bind),但技能发现只扫
98
- // `.agents/skills`,内置的 secrets-manager 不会出现在"可用技能"里。放进默认
99
- // 提示名单让它至少以一行提示出现(不授工具、不放宽权限)。
100
- "secrets-manager"
101
- ];
102
- var asMode = (value) => typeof value === "string" && MODES.includes(value) ? value : null;
103
- var resolveAgentSkillConfig = (source) => {
104
- const out = {};
105
- const skills = source?.skills;
106
- if (skills && typeof skills === "object" && !Array.isArray(skills)) {
107
- for (const [rawSlug, rawMode] of Object.entries(skills)) {
108
- const slug = typeof rawSlug === "string" ? rawSlug.trim() : "";
109
- const mode = asMode(rawMode);
110
- if (slug && mode) out[slug] = mode;
111
- }
112
- return out;
113
- }
114
- for (const slug of asTrimmedNonEmptyStringArray(source?.enabledPacks) ?? []) {
115
- out[slug] = "required";
116
- }
117
- return out;
118
- };
119
- var resolveAgentRequiredPackIds = (source) => {
120
- const config = resolveAgentSkillConfig(source);
121
- return Object.keys(config).filter((slug) => config[slug] === "required");
122
- };
123
- var resolveAgentRecommendedSkillNames = (source, lookup) => {
124
- const config = resolveAgentSkillConfig(source);
125
- const resolve = lookup ?? defaultSkillTitleLookup;
126
- const seen = /* @__PURE__ */ new Set();
127
- const out = [];
128
- const push = (slug) => {
129
- const title = resolve(slug)?.title || slug;
130
- if (seen.has(title)) return;
131
- seen.add(title);
132
- out.push(title);
133
- };
134
- for (const slug of Object.keys(config)) {
135
- if (config[slug] !== "recommended") continue;
136
- push(slug);
137
- }
138
- for (const slug of DEFAULT_RECOMMENDED_SKILL_SLUGS) {
139
- if (Object.hasOwn(config, slug)) continue;
140
- push(slug);
141
- }
142
- return out;
143
- };
144
- var defaultSkillTitleLookup = (slug) => {
145
- const cap = resolveBuiltinCapability(slug);
146
- if (cap) return { title: cap.title };
147
- const skill = resolveBuiltinSkillEntry(slug);
148
- return skill ? { title: skill.title } : null;
149
- };
150
- var isAgentSkillDisabled = (source, slug) => resolveAgentSkillConfig(source)[slug] === "disabled";
151
-
152
83
  // packages/ai/skills/userPromptSkills.ts
153
84
  var RECOMMENDED_PROMPT_SKILL_SLUGS = ["ub-mode"];
154
85
  var ALLOWED_PROMPT_SKILL_SLUGS = new Set(
@@ -174,6 +105,10 @@ function normalizeEnabledPromptSkills(value) {
174
105
  }
175
106
 
176
107
  // packages/ai/skills/userSkills.ts
108
+ var NEW_ACCOUNT_DEFAULT_WORKFLOW_SKILLS = WORKFLOW_GUIDANCE_SKILL_SLUGS;
109
+ function isAccountOnDemandWorkflowSkill(slug) {
110
+ return typeof slug === "string" && NEW_ACCOUNT_DEFAULT_WORKFLOW_SKILLS.some((candidate) => candidate === slug.trim());
111
+ }
177
112
  var SUPPORTED_USER_SKILL_SLUGS = [
178
113
  "ub-mode",
179
114
  "auto-review",
@@ -187,7 +122,9 @@ var SUPPORTED_USER_SKILL_SLUGS = [
187
122
  "code-planning",
188
123
  "coding",
189
124
  "coding-review",
190
- "android-adb"
125
+ "android-adb",
126
+ "stock-quotes",
127
+ ...NEW_ACCOUNT_DEFAULT_WORKFLOW_SKILLS
191
128
  ];
192
129
  var SUPPORTED_USER_SKILL_SLUG_SET = new Set(
193
130
  SUPPORTED_USER_SKILL_SLUGS
@@ -268,10 +205,6 @@ var normalizeAgentUpdateFieldList = (value, fallback = DEFAULT_AUTO_APPROVED_SEL
268
205
  };
269
206
 
270
207
  export {
271
- resolveAgentSkillConfig,
272
- resolveAgentRequiredPackIds,
273
- resolveAgentRecommendedSkillNames,
274
- isAgentSkillDisabled,
275
208
  DEFAULT_AGENT_BASE_POLICY,
276
209
  DEFAULT_USER_PREFERENCE_PROFILE,
277
210
  AGENT_UPDATE_FIELD_NAMES,
@@ -287,6 +220,7 @@ export {
287
220
  omitKeys,
288
221
  normalizeSystemBuiltinSkills,
289
222
  normalizeEnabledPromptSkills,
223
+ isAccountOnDemandWorkflowSkill,
290
224
  normalizeEnabledSkills,
291
225
  resolveUserEnabledSkills
292
226
  };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  selectCurrentServer
3
- } from "./chunk-4I7ERB7F.js";
3
+ } from "./chunk-ATEKLSLR.js";
4
4
  import {
5
5
  patch
6
- } from "./chunk-FW6YHHLI.js";
6
+ } from "./chunk-CMMI3DAT.js";
7
7
  import {
8
8
  getIsDesktopApp
9
- } from "./chunk-AGP3YSEC.js";
9
+ } from "./chunk-4N6G2CKP.js";
10
10
  import {
11
11
  selectIdentityToken
12
12
  } from "./chunk-PXYBUFDB.js";