nolo-cli 0.213.0 → 0.219.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 (262) hide show
  1. package/README.md +3 -2
  2. package/{_executeModel-CUJLCFWR.js → _executeModel-WW57SJN4.js} +111 -82
  3. package/{accountResolver-4LKIHEKL.js → accountResolver-EK2S4PWF.js} +6 -6
  4. package/{action-DF5UYSJF.js → action-CK64LS6S.js} +12 -11
  5. package/{addContentAction-WERAONNY.js → addContentAction-EQXMFNPR.js} +18 -17
  6. package/{addDialogAgentAction-7VI7YRML.js → addDialogAgentAction-RSDZDASD.js} +21 -20
  7. package/{agentDeleteCommand-XJORXPGU.js → agentDeleteCommand-X2VWEKUA.js} +127 -118
  8. package/{agentEmailCommands-XTYYFR6Z.js → agentEmailCommands-6IE773VW.js} +132 -124
  9. package/{agentFavoriteCommands-EDK743YA.js → agentFavoriteCommands-2LKGKSUD.js} +7 -8
  10. package/{agentGrantCommands-RQWK2TEV.js → agentGrantCommands-QQV4N4JW.js} +5 -5
  11. package/{agentListCommands-OBLRBLHS.js → agentListCommands-5UNM7CGG.js} +155 -92
  12. package/{agentMachineCommands-5FMT3OT5.js → agentMachineCommands-EVWFKK6Q.js} +62 -54
  13. package/{agentProviderCommands-Q5O33MED.js → agentProviderCommands-ZCH37KAL.js} +5 -5
  14. package/{agentPullCommand-6EM3URVK.js → agentPullCommand-XN6ZPBUW.js} +7 -7
  15. package/agentRecordCommands-DX2WE6BH.js +176 -0
  16. package/agentRunCommand-KGOT2AFB.js +206 -0
  17. package/{agentRunControl-TAMHJQSR.js → agentRunControl-QDFW5P2T.js} +30 -15
  18. package/{agentRuntimeLocal-SOO2OPJG.js → agentRuntimeLocal-SD7U2EGY.js} +52 -45
  19. package/{agentSlice-CHR6KOZN.js → agentSlice-ACZGTZVW.js} +20 -19
  20. package/{appDeleteCommands-GUP6P5YE.js → appDeleteCommands-NE3NQQJL.js} +61 -53
  21. package/{appDeployCommands-MH2FX4O5.js → appDeployCommands-2BAHY522.js} +61 -53
  22. package/{appDeployStatusCommands-SUHN3HPJ.js → appDeployStatusCommands-JTW6LZNC.js} +61 -53
  23. package/{appGetCommands-YWDEX6Z4.js → appGetCommands-WKFEJO6A.js} +61 -53
  24. package/{appListCommands-ZQVMLPAY.js → appListCommands-HNAZZLFX.js} +61 -53
  25. package/{authCommand-PWX2ZNUP.js → authCommand-4FDPL7WG.js} +29 -28
  26. package/{authCommands-HV3EAU3V.js → authCommands-GAJ3NIXO.js} +14 -13
  27. package/{builtinSkillRegistry-2QETTQPM.js → builtinSkillRegistry-PXH7EGQB.js} +11 -13
  28. package/{chromeCommands-REEAH4SX.js → chromeCommands-G5UDKVSV.js} +3 -3
  29. package/{chromeOpsCommands-DIVM2K3T.js → chromeOpsCommands-YKX2QX3A.js} +20 -10
  30. package/chunk-2KTUDBG7.js +675 -0
  31. package/{chunk-TCZHTTUU.js → chunk-2OLYKYNY.js} +8 -8
  32. package/{chunk-PYRUW7XN.js → chunk-2VUZSVAS.js} +136 -54
  33. package/{chunk-YB3YZK56.js → chunk-2WZXXAQD.js} +1 -67
  34. package/chunk-2YGBI2XB.js +30 -0
  35. package/chunk-2ZKFCIJJ.js +13 -0
  36. package/{chunk-G2BQWAVT.js → chunk-3ESU44FG.js} +4 -4
  37. package/{chunk-HUBHAQK2.js → chunk-3N4ASIP6.js} +29 -29
  38. package/{chunk-4KB6WQUL.js → chunk-4A2JIXR2.js} +1 -1
  39. package/{chunk-MYOH447Z.js → chunk-4JVNURX4.js} +1 -1
  40. package/{chunk-H7PPIYWP.js → chunk-4NMHE7CX.js} +20 -20
  41. package/{chunk-YDH3FDFQ.js → chunk-5FUN7EG4.js} +1 -1
  42. package/chunk-5OZC7R7Y.js +97 -0
  43. package/chunk-5R63B62U.js +364 -0
  44. package/{chunk-INUFILG6.js → chunk-5RKUPJYL.js} +1 -1
  45. package/{chunk-ZNWI6OVT.js → chunk-652XYZGP.js} +80 -11
  46. package/{chunk-QHPRUL4O.js → chunk-65XXHYZ5.js} +4 -4
  47. package/{chunk-MOIJOHA5.js → chunk-6D7NVU66.js} +36 -25
  48. package/{chunk-CRHOO2ZR.js → chunk-6NKA6RKF.js} +2 -2
  49. package/{chunk-ZC3CMUKU.js → chunk-6OVNSQHN.js} +84 -2
  50. package/{chunk-H2TJUNCH.js → chunk-6RQFZCKH.js} +18 -18
  51. package/{chunk-LLRPJECG.js → chunk-7UH3DGV6.js} +17 -159
  52. package/{chunk-X7SDOJUM.js → chunk-7WPAI5JJ.js} +14 -14
  53. package/{chunk-P5L7CXOC.js → chunk-7Z6EW7AH.js} +3 -2
  54. package/{chunk-VO4WSAVP.js → chunk-AFHOCBSP.js} +3 -3
  55. package/{chunk-HPFCI4SK.js → chunk-AK5O76CC.js} +3 -3
  56. package/{chunk-Y63ZSOR6.js → chunk-AL3TYDIF.js} +1 -1
  57. package/{chunk-ALQ3657A.js → chunk-AMEOV5VZ.js} +32 -12
  58. package/chunk-AVHRSJUH.js +1621 -0
  59. package/{chunk-RLBNLZVC.js → chunk-BGGHA5DV.js} +1 -1
  60. package/{chunk-NBTY7YJF.js → chunk-BR3GT6MR.js} +1 -0
  61. package/{chunk-7RFNTILS.js → chunk-BUDVRYES.js} +2 -2
  62. package/{chunk-SVYO6AO7.js → chunk-BV3FLP2L.js} +41 -1
  63. package/{chunk-RZOV7OMV.js → chunk-C4VAR65S.js} +83 -141
  64. package/{chunk-COFEN36Z.js → chunk-C4WTX5TU.js} +2 -2
  65. package/{chunk-F6UUQOG6.js → chunk-CKT6QUE2.js} +4 -4
  66. package/{chunk-6VLJ6YA7.js → chunk-CXDPIPZ4.js} +9 -9
  67. package/{secretCommands-LXDWOLZ6.js → chunk-D726I5AZ.js} +191 -16
  68. package/{chunk-OQPKUBPB.js → chunk-DJSTBAOU.js} +19 -7
  69. package/chunk-DVQH4BTR.js +1137 -0
  70. package/{chunk-7OCO4TDT.js → chunk-EGXPAWLG.js} +1 -1
  71. package/chunk-EOWLBDY6.js +142 -0
  72. package/chunk-EUCFKKDM.js +247 -0
  73. package/chunk-EWQ3HGNZ.js +90 -0
  74. package/{chunk-7Y4YTDQF.js → chunk-F3TQURKK.js} +281 -159
  75. package/{chunk-YTF4WH7J.js → chunk-FIYSMXHY.js} +1 -1
  76. package/{chunk-75XIDFBW.js → chunk-FJ23FZXF.js} +72 -28
  77. package/{chunk-5MQRBSMW.js → chunk-FRSBYNWI.js} +111 -113
  78. package/{chunk-ZXOUUDCG.js → chunk-FVZW66K4.js} +3657 -233
  79. package/{chunk-YUA6OAH5.js → chunk-G2EJ7NL4.js} +2 -2
  80. package/{chunk-PCLE46CE.js → chunk-GBWGPTA7.js} +2 -1
  81. package/{chunk-R5O4QAWG.js → chunk-GGKNJ42M.js} +11 -77
  82. package/{chunk-TAKB25RM.js → chunk-GIABSSWQ.js} +4 -4
  83. package/{chunk-WRYQ35LQ.js → chunk-GNHMRBYZ.js} +859 -57
  84. package/{chunk-NJLL224W.js → chunk-GVGOEMNV.js} +2 -2
  85. package/{chunk-J2NHJ7WX.js → chunk-H7R3365N.js} +4 -4
  86. package/{chunk-7BT37FK3.js → chunk-HCJFGH6Y.js} +648 -131
  87. package/{chunk-3UKL3HPD.js → chunk-HOCHUZQ7.js} +8 -78
  88. package/{chunk-EHSZD5OI.js → chunk-HXER7YJF.js} +4 -4
  89. package/{chunk-CTPXME7U.js → chunk-IWH5SOU4.js} +29 -6
  90. package/{chunk-INN4LTAJ.js → chunk-IWQAOW2X.js} +2 -2
  91. package/{chunk-RPQXPZZF.js → chunk-J6T25AJ6.js} +908 -13
  92. package/{chunk-KIM6CLW5.js → chunk-JC5XLWZK.js} +42 -15
  93. package/chunk-JVRQ6YVK.js +99 -0
  94. package/{chunk-ZRSNONOB.js → chunk-JWXITTQB.js} +8 -3
  95. package/{chunk-NSAPDIN2.js → chunk-K5FNYHZC.js} +541 -31
  96. package/{chunk-TX5EYMGT.js → chunk-KAVGK4ES.js} +30 -254
  97. package/{chunk-H4UOTUOX.js → chunk-KEN3N2TN.js} +148 -18
  98. package/{chunk-LEC5ALIN.js → chunk-KEPOVMF4.js} +1 -1
  99. package/{chunk-Y6ORVLSS.js → chunk-KN3HEZIQ.js} +1 -1
  100. package/{chunk-UYD5HQ6T.js → chunk-KO63FPG3.js} +5429 -1752
  101. package/{chunk-IXNGOHV5.js → chunk-KOXKKHFE.js} +11 -152
  102. package/{chunk-4VJAC32I.js → chunk-L5I543VB.js} +3 -2
  103. package/{chunk-SM3NSZJV.js → chunk-LE6LGAJE.js} +20 -1
  104. package/chunk-LKA64WH4.js +227 -0
  105. package/{chunk-VL5KOY2C.js → chunk-MK2Q7ZJD.js} +67 -5
  106. package/{chunk-YJAFKXMU.js → chunk-MKQ2UTTX.js} +50 -48
  107. package/chunk-MOMR7NMG.js +226 -0
  108. package/{chunk-4T2WNOY7.js → chunk-N3J4VDGV.js} +33 -22
  109. package/{chunk-AZMYUSVF.js → chunk-N5Z2V73W.js} +1 -1
  110. package/{chunk-6DWMYIUY.js → chunk-N7HVLYOY.js} +14 -9
  111. package/{chunk-7QTZCMKL.js → chunk-O2CYENYJ.js} +1204 -1651
  112. package/{chunk-VNYYOX3V.js → chunk-OB6DVWPF.js} +141 -48
  113. package/{chunk-HRMJUN5J.js → chunk-OGHP3CTL.js} +1 -1
  114. package/{chunk-XJWWBO34.js → chunk-OJKUU3LP.js} +5 -7
  115. package/{chunk-G7MLNNEX.js → chunk-OOF7XDZF.js} +5 -5
  116. package/{chunk-QG4AOSON.js → chunk-OXKUPBAQ.js} +13 -32
  117. package/{chunk-6XIE5ZGI.js → chunk-PDCV7P5W.js} +1 -1
  118. package/{chunk-H5HF7TJA.js → chunk-PFJNLBRU.js} +2 -2
  119. package/{chunk-A7TFUNZO.js → chunk-PPJYZRSQ.js} +6 -2
  120. package/chunk-PVZY6P3S.js +271 -0
  121. package/{chunk-ZL5RAEEB.js → chunk-Q6HOUF4O.js} +1 -1
  122. package/{chunk-FUGMREBO.js → chunk-Q7WP5RPC.js} +5 -5
  123. package/chunk-QHEN7NZ7.js +46 -0
  124. package/{chunk-O2TZF4AI.js → chunk-QLFCTYRH.js} +3 -3
  125. package/{chunk-YGILMZ7N.js → chunk-QVBXJNZ2.js} +1 -1
  126. package/{chunk-KFLT5KAD.js → chunk-QWYFFHCJ.js} +20 -20
  127. package/{chunk-C6KNNXWU.js → chunk-RGQ4UUWZ.js} +25 -2
  128. package/{chunk-OWYYDMGJ.js → chunk-S2NTVGA2.js} +4 -2
  129. package/{chunk-BBJ22CLB.js → chunk-S7SB7L2I.js} +60 -30
  130. package/{chunk-W4S457LU.js → chunk-SASHAZ67.js} +41 -5
  131. package/{chunk-KC4XDTT3.js → chunk-SOF4OWDM.js} +6 -4
  132. package/{chunk-YWSEPJ7C.js → chunk-SRL56PI2.js} +3 -3
  133. package/{chunk-WMTBPBMP.js → chunk-SYQR7FQS.js} +52 -50
  134. package/{chunk-JY5NGFFH.js → chunk-SYTHYBMI.js} +5 -5
  135. package/{chunk-XHQC4PXX.js → chunk-T3O6BLYU.js} +426 -196
  136. package/chunk-TLE77UJ5.js +230 -0
  137. package/{chunk-T43B7LB2.js → chunk-TRWT3EE3.js} +1 -1
  138. package/{chunk-RSHTSUEG.js → chunk-TVFRV3UQ.js} +2060 -602
  139. package/{chunk-4VNS5WPM.js → chunk-U67V476Y.js} +1 -8
  140. package/{chunk-F7CI2ZC5.js → chunk-UAIHKQIA.js} +2 -1
  141. package/{chunk-LOEO7LRC.js → chunk-UJKTI5PG.js} +10 -7
  142. package/{chunk-UHJGXRJ4.js → chunk-UMRI2IRY.js} +3 -3
  143. package/{chunk-WPORQFYN.js → chunk-UVLYNWIE.js} +2 -2
  144. package/{chunk-NOKUNJON.js → chunk-UYOICCYG.js} +29 -19
  145. package/{chunk-GOO6G4PY.js → chunk-VALBGPM6.js} +106 -50
  146. package/{chunk-MDB67IWP.js → chunk-VHPAA6MT.js} +10 -10
  147. package/{chunk-4I7ERB7F.js → chunk-VREDDN25.js} +1 -1
  148. package/{chunk-WYDI6TGM.js → chunk-XFJ4ZPFC.js} +91 -132
  149. package/{chunk-TY3TIUJK.js → chunk-XI2BWJM5.js} +65 -0
  150. package/{chunk-V5Y3R6BT.js → chunk-XWGDCWXY.js} +213 -210
  151. package/{chunk-J5JTMQIA.js → chunk-YFLVRVYK.js} +1 -1
  152. package/{chunk-EYLGAEB4.js → chunk-YGMBIXCF.js} +132 -0
  153. package/chunk-YL3EFYL3.js +199 -0
  154. package/{chunk-MMA3LZ3W.js → chunk-YNIYE47Z.js} +1 -1
  155. package/chunk-YZMNK53S.js +68 -0
  156. package/{chunk-FY7F4Q6X.js → chunk-Z4PCXPUE.js} +2 -2
  157. package/{cliAgentConfigHelpers-WJBZQTLW.js → cliAgentConfigHelpers-PO3MVDME.js} +15 -16
  158. package/{cliAuthorityBrokerClient-PM3U6Q6J.js → cliAuthorityBrokerClient-XHH7MH2P.js} +1 -1
  159. package/{cliAuthorityStoreDriver-TKLXNNTG.js → cliAuthorityStoreDriver-6FE3BJNB.js} +1 -1
  160. package/{cliEnvHelpers-BVYTMUPJ.js → cliEnvHelpers-VPSJ4XWC.js} +3 -3
  161. package/{cliExecutor-BWBF2MTI.js → cliExecutor-4MAX3PZL.js} +2 -2
  162. package/cliLocalAgentRecordReader-Z7CH4K4R.js +90 -0
  163. package/{commandRegistry-W63CYRZJ.js → commandRegistry-SDSYBKMC.js} +105 -97
  164. package/{contentThunks-U7PL5MQD.js → contentThunks-G3TRPEAU.js} +47 -43
  165. package/{cooldownCommands-TIGUHXTD.js → cooldownCommands-X7P5M2V5.js} +5 -4
  166. package/{createAgentAutomationAction-OLBQDD6R.js → createAgentAutomationAction-KHA4MXUJ.js} +51 -49
  167. package/{createDialogAction-SVH6B3SB.js → createDialogAction-KWSBNAPJ.js} +46 -48
  168. package/{createPageAction-F4DIWZ2Z.js → createPageAction-HXKJ7OFG.js} +50 -48
  169. package/{cursorProvider-YGGNMVWX.js → cursorProvider-2RACMEMF.js} +1 -1
  170. package/{db-HUCI5R4G.js → db-CS4ZJQKV.js} +1 -1
  171. package/{dbSlice-BVH2YZPQ.js → dbSlice-ZJPDIFER.js} +17 -16
  172. package/{deleteFile-5YOEKV4U.js → deleteFile-Q3YDB4ML.js} +9 -9
  173. package/{desktopFolderProjects-SFY5EZS3.js → desktopFolderProjects-4POAMVJN.js} +2 -2
  174. package/{dialogCommands-KHIEPY3M.js → dialogCommands-6KQEBHSG.js} +64 -57
  175. package/dialogNotifyCommand-WIZFFEY3.js +36 -0
  176. package/{dialogSlice-ZCTDV2PZ.js → dialogSlice-HXPKFGRL.js} +42 -40
  177. package/{dialogUsageCommand-7KCPYGHG.js → dialogUsageCommand-HTVPR2CX.js} +11 -10
  178. package/{docCreateCommands-DPMZI7G5.js → docCreateCommands-XZOLWBRC.js} +61 -55
  179. package/{docDeleteCommands-IRQQLUBT.js → docDeleteCommands-ZSO4LGWE.js} +63 -57
  180. package/{docReadCommands-LK37XH6L.js → docReadCommands-TTMXCDER.js} +61 -55
  181. package/{docStore-V2KECILA.js → docStore-A2B3GH33.js} +21 -20
  182. package/{docUpdateCommands-O6T3HJHH.js → docUpdateCommands-PRG6WOXL.js} +64 -58
  183. package/{fetchMessages-NR4KNQLO.js → fetchMessages-TQEUZD7H.js} +8 -7
  184. package/{getPricing-2MNMXEVG.js → getPricing-YH3VMSVU.js} +6 -6
  185. package/{handleSendMessageAction-2PE25WM3.js → handleSendMessageAction-NWYG3Q72.js} +194 -302
  186. package/{hostCredentialCreate-S233UMAP.js → hostCredentialCreate-WS6D3EHT.js} +123 -114
  187. package/index.js +29 -29
  188. package/{keys-BEGDOTRL.js → keys-RWF7UCB4.js} +5 -4
  189. package/legacyMigration-TF4SYJCZ.js +19 -0
  190. package/{lib-5KKIBFIT.js → lib-OT5OTXRU.js} +7087 -6664
  191. package/{localDialogRead-7NNDVVF7.js → localDialogRead-SVTPA5GY.js} +3 -3
  192. package/{localFirstLog-DHNOY2NA.js → localFirstLog-OIETGK66.js} +1 -1
  193. package/localRecall-2J6QPOK2.js +15 -0
  194. package/{localRuntimeAdapter-KY6WXNBR.js → localRuntimeAdapter-TFYOA6YE.js} +119 -110
  195. package/{localRuntimeAuthority-OYH4AE4G.js → localRuntimeAuthority-IBJAT62G.js} +1 -1
  196. package/{localRuntimeDb-VBIMCWUC.js → localRuntimeDb-N7KHDXS2.js} +2 -2
  197. package/{machineCommands-Q6HA3IXF.js → machineCommands-WFWV25IR.js} +128 -119
  198. package/{machineInfo-UKPTZO5Y.js → machineInfo-LWHTEBHJ.js} +1 -1
  199. package/machineWsRunDispatch-ZGXC3F2R.js +191 -0
  200. package/{memberThunks-7EDJADWU.js → memberThunks-JRYNONYV.js} +29 -28
  201. package/{memoryCommands-ASCE5STX.js → memoryCommands-5WC3T66U.js} +4 -4
  202. package/models-CXINDUJA.js +9 -0
  203. package/{oauthTokenStore-OEERZFUC.js → oauthTokenStore-RUYNYALS.js} +1 -1
  204. package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-4IC3Y4C6.js} +4 -4
  205. package/overlay-THLKYIWY.js +11 -0
  206. package/package.json +2 -2
  207. package/{pdf-U6KSUEZZ.js → pdf-KE3QI2V7.js} +1 -1
  208. package/{processSpawn-ZU5QFM43.js → processSpawn-6GEO77KV.js} +1 -1
  209. package/{profileConfig-KN3N2BLF.js → profileConfig-KOWK4HOG.js} +1 -1
  210. package/{projectArchive-DRTDIMEV.js → projectArchive-ULJDLUA6.js} +52 -50
  211. package/{providerPresetApply-YXGV6NXB.js → providerPresetApply-SHT2SUVB.js} +19 -12
  212. package/{providerRegistry-S6UL6UNA.js → providerRegistry-TA7EGCVZ.js} +10 -10
  213. package/{read-4V2RMG7N.js → read-Q7GOHGNP.js} +10 -10
  214. package/{readDocTool-BH6ATGQO.js → readDocTool-Z5OQ6422.js} +2 -2
  215. package/{readlineWorkspace-2W4WRCOU.js → readlineWorkspace-LTCV2BFW.js} +7982 -6274
  216. package/{removeDialogAgentAction-LYAZGNKW.js → removeDialogAgentAction-U3F2MNAY.js} +23 -22
  217. package/{runAgentClientLoop-J2VQBS2Z.js → runAgentClientLoop-BVIEQUB3.js} +81 -79
  218. package/{runtimeDoctorCommands-QAI3MBKQ.js → runtimeDoctorCommands-I47JN4HS.js} +12 -12
  219. package/{runtimeModeArgs-2Y7BALTO.js → runtimeModeArgs-X7DL7PUN.js} +1 -1
  220. package/secretCommands-LJXOOYA7.js +24 -0
  221. package/{setDialogExtraReferencesAction-OCRPGPYH.js → setDialogExtraReferencesAction-G3WSJ7EM.js} +22 -21
  222. package/{setPrimaryDialogAgentAction-HFJDQIBU.js → setPrimaryDialogAgentAction-6FHAHZBB.js} +23 -22
  223. package/{settingThunks-RAMHMTGM.js → settingThunks-AXTBX3Q5.js} +97 -88
  224. package/{skillDiscovery-XKHROSH2.js → skillDiscovery-B5V23AXP.js} +4 -4
  225. package/{skillSummaryMarker-42HKSXYY.js → skillSummaryMarker-62UW7HI7.js} +1 -1
  226. package/{slateToRenderMarkdown-Y5IYN73U.js → slateToRenderMarkdown-R3X74MCX.js} +1 -1
  227. package/{slateUtils-NGV2NMKM.js → slateUtils-ESQAJ6RN.js} +1 -1
  228. package/{spaceCommands-KVJZVKVO.js → spaceCommands-IB6FKWIC.js} +61 -53
  229. package/store-JRVN62NM.js +46 -0
  230. package/{streamAgentChatTurn-GHBMJJ6S.js → streamAgentChatTurn-DNYFHBJM.js} +875 -618
  231. package/{switchDialogAgentAction-EBRMW3RA.js → switchDialogAgentAction-UOFIAGPL.js} +21 -20
  232. package/{tableCommands-MP6VFSVT.js → tableCommands-HITDSLHS.js} +10 -10
  233. package/tombstones-FQQMEDOW.js +32 -0
  234. package/{toolApiClient-HGNO53TC.js → toolApiClient-OGQEBQVX.js} +4 -4
  235. package/{tools-EWKCPKMS.js → tools-JVOJ5HC4.js} +75 -74
  236. package/tuiSummaryLlmCaller-7LWYTHLM.js +44 -0
  237. package/{updateCommands-ZQYU6SCI.js → updateCommands-RJVCRSBP.js} +10 -8
  238. package/{updateDialogTitleAction-5GGMBTDF.js → updateDialogTitleAction-Q57BOSXG.js} +48 -46
  239. package/{usageCommand-F4IPVMIZ.js → usageCommand-RVKHEPLU.js} +11 -10
  240. package/{usageRebuildCommand-HAW2AD5N.js → usageRebuildCommand-GRAFOZF2.js} +12 -11
  241. package/userDataMerge-HT2ZVHBJ.js +13 -0
  242. package/{windowsSelfUpdate-257DV2T6.js → windowsSelfUpdate-KERHIAB4.js} +3 -3
  243. package/{workloadLifecycle-4C42SVBD.js → workloadLifecycle-O2I3NZ2Q.js} +6 -6
  244. package/agentRecordCommands-ZQ7SVYGG.js +0 -167
  245. package/agentRunCommand-WS7IGO2W.js +0 -196
  246. package/chunk-3CGG2PAL.js +0 -594
  247. package/chunk-5XBUWM6I.js +0 -89
  248. package/chunk-CJEIOP3E.js +0 -0
  249. package/chunk-EHGEOAHI.js +0 -636
  250. package/chunk-FW6YHHLI.js +0 -842
  251. package/chunk-GPVRUGGY.js +0 -115
  252. package/chunk-HSVBJRF4.js +0 -339
  253. package/chunk-WJZOQR2J.js +0 -151
  254. package/chunk-ZCWRMUWT.js +0 -89
  255. package/dist-M676ULYG.js +0 -7314
  256. package/machineWsRunDispatch-WWJQ6WR3.js +0 -182
  257. package/models-PJBE6JDV.js +0 -9
  258. package/tuiSummaryLlmCaller-ALQYUUWB.js +0 -189
  259. package/{chunk-WACI5I6V.js → chunk-2THCNKE4.js} +3 -3
  260. package/{chunk-2QHFH3DR.js → chunk-47ITIXO7.js} +6 -6
  261. package/{chunk-OQHIVPG4.js → chunk-SNBZZPYH.js} +3 -3
  262. package/{chunk-AETZ7AD6.js → chunk-W6RFEDN4.js} +3 -3
@@ -2,7 +2,7 @@ import {
2
2
  clipMultilineText,
3
3
  fetchAndSerializeTable,
4
4
  waitForAbortableDelay
5
- } from "./chunk-HUBHAQK2.js";
5
+ } from "./chunk-3N4ASIP6.js";
6
6
  import {
7
7
  isGatewayHttpStatus
8
8
  } from "./chunk-NF64D32W.js";
@@ -12,269 +12,52 @@ import {
12
12
  normalizeNonNegativeMs,
13
13
  parseRetryAfterHeaderMs
14
14
  } from "./chunk-3L2WKC3W.js";
15
- import {
16
- resolvePageReadMarkdown,
17
- slateToSimplifiedMarkdown
18
- } from "./chunk-RLBNLZVC.js";
19
15
  import {
20
16
  extractCategorizedMentions
21
17
  } from "./chunk-AGIM7IMJ.js";
18
+ import {
19
+ resolvePageReadMarkdown,
20
+ slateToSimplifiedMarkdown
21
+ } from "./chunk-BGGHA5DV.js";
22
22
  import {
23
23
  fetchAndCacheMessages
24
- } from "./chunk-ZXOUUDCG.js";
24
+ } from "./chunk-FVZW66K4.js";
25
25
  import {
26
26
  createSpaceKey
27
27
  } from "./chunk-UAD2WT54.js";
28
28
  import {
29
29
  read
30
- } from "./chunk-FW6YHHLI.js";
30
+ } from "./chunk-AVHRSJUH.js";
31
31
  import {
32
32
  getRuntimeServerContext
33
- } from "./chunk-PYRUW7XN.js";
33
+ } from "./chunk-2VUZSVAS.js";
34
34
  import {
35
- extractRuntimePageCapabilities,
36
- resolveBuiltinSkillPage,
37
- resolveSkillGraphFromRoots
38
- } from "./chunk-WRYQ35LQ.js";
35
+ classifyGenerationError
36
+ } from "./chunk-TLE77UJ5.js";
39
37
  import {
40
38
  isAbortError
41
39
  } from "./chunk-7DPNBQSV.js";
42
40
  import {
43
- wrapHistoricalSummaryWithReplayGuard
44
- } from "./chunk-4VJAC32I.js";
41
+ extractRuntimePageCapabilities,
42
+ resolveBuiltinSkillPage,
43
+ resolveSkillGraphFromRoots
44
+ } from "./chunk-GNHMRBYZ.js";
45
45
  import {
46
46
  extractCustomId
47
47
  } from "./chunk-M2EJHDJP.js";
48
+ import {
49
+ isDialogRecordKey
50
+ } from "./chunk-OJKUU3LP.js";
51
+ import {
52
+ wrapHistoricalSummaryWithReplayGuard
53
+ } from "./chunk-L5I543VB.js";
48
54
  import {
49
55
  estimateTokenCount
50
56
  } from "./chunk-PSCNXBYA.js";
51
- import {
52
- isDialogRecordKey
53
- } from "./chunk-XJWWBO34.js";
54
57
  import {
55
58
  asTrimmedString
56
59
  } from "./chunk-3EUW3WEO.js";
57
60
 
58
- // packages/ai/chat/errorDiagnostics.ts
59
- var record = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
60
- function httpOrigin(value) {
61
- if (typeof value !== "string") return void 0;
62
- try {
63
- const url = new URL(value);
64
- return url.protocol === "http:" || url.protocol === "https:" ? url.origin : void 0;
65
- } catch {
66
- return void 0;
67
- }
68
- }
69
- var identifier = (value, max = 160) => typeof value === "string" && value.length <= max && /^[a-zA-Z0-9][a-zA-Z0-9._:/-]*$/.test(value) && !value.includes("://") && !/^(sk-|Bearer|AIza)/i.test(value) ? value : void 0;
70
- function sanitizeErrorDiagnostics(value) {
71
- const input = record(value);
72
- const out = {};
73
- for (const key of ["requestId", "provider", "model", "code"]) {
74
- const safe = identifier(input[key], key === "code" ? 80 : 160);
75
- if (safe) out[key] = safe;
76
- }
77
- if (typeof input.releaseSha === "string" && /^[a-fA-F0-9]{7,64}$/.test(input.releaseSha)) out.releaseSha = input.releaseSha;
78
- const origin = httpOrigin(input.requestOrigin);
79
- if (origin) out.requestOrigin = origin;
80
- if (["found", "not_found", "invalid_record", "lookup_error", "not_requested"].includes(input.lookupStatus)) out.lookupStatus = input.lookupStatus;
81
- if (typeof input.status === "number" && Number.isInteger(input.status) && input.status >= 100 && input.status <= 599) out.status = input.status;
82
- if (["config_protocol", "empty", "policy", "quota", "transient"].includes(input.category)) out.category = input.category;
83
- return Object.keys(out).length ? out : void 0;
84
- }
85
- function extractErrorDiagnostics(value, status) {
86
- const envelope = record(value);
87
- const error = record(envelope.error ?? value);
88
- const diagnostics = record(record(error.details).diagnostics);
89
- return sanitizeErrorDiagnostics({ ...diagnostics, code: error.code, status: status ?? error.status });
90
- }
91
-
92
- // packages/ai/chat/parseApiError.ts
93
- var CONTEXT_OVERFLOW_ACTIONS = [
94
- "compact-and-retry",
95
- "new-dialog",
96
- "switch-model",
97
- "retry"
98
- ];
99
- var CONTEXT_TOO_LARGE_ACTIONS = [
100
- "new-dialog",
101
- "switch-model",
102
- "retry"
103
- ];
104
- var truncateErrorMessage = (message, maxChars = 320) => message.length <= maxChars ? message : `${message.slice(0, maxChars)}\u2026`;
105
- var isContextOverflowText = (message) => /maximum context|context (length|window|overflow|limit)|context_length_exceed\w*|requested about .*tokens|too many tokens|prompt is too long|exceeds? (the )?(model|max)/i.test(
106
- message
107
- );
108
- var isQuotaExhaustedError = (status, ...texts) => status === 402 || /insufficient[_\s-]?(?:quota|balance|credits)|余额不足|wallet\s+balance\s+is\s+insufficient|payment[_ ]required/i.test(
109
- texts.filter((t) => typeof t === "string").join(" ")
110
- );
111
- var QUOTA_EXHAUSTED_MESSAGE = "\u4F59\u989D\u6216\u914D\u989D\u5DF2\u8017\u5C3D\uFF0C\u672C\u6B21\u8BF7\u6C42\u672A\u88AB\u53D7\u7406\u3002\u8BF7\u5728 console \u7684 Billing \u9875\u9762\u5145\u503C\u540E\u91CD\u8BD5\uFF1B\u76F4\u63A5\u91CD\u53D1\u540C\u4E00\u8BF7\u6C42\u4E0D\u4F1A\u89E3\u51B3\u6B64\u95EE\u9898\u3002";
112
- function classifyApiError(input) {
113
- const { status, message, body, code } = input;
114
- const errorMessage = message;
115
- let defaultMessage = `\u72B6\u6001\u7801 ${status} ${input.statusText ?? ""}`;
116
- switch (status) {
117
- case 400:
118
- if (isContextOverflowText(errorMessage) || isContextOverflowText(body) || code === "UPSTREAM_400") {
119
- return {
120
- kind: "context_overflow",
121
- message: "\u4E0A\u4E0B\u6587\u8FC7\u957F\uFF1A\u672C\u8F6E\u6D88\u606F\u6216\u5DE5\u5177\u7ED3\u679C\u592A\u5927\u3002\u8BF7\u7F29\u5C0F\u8303\u56F4\uFF0C\u6216\u5148\u8BFB\u53D6\u66F4\u5C0F\u7247\u6BB5\u540E\u518D\u7EE7\u7EED\u3002",
122
- code,
123
- status,
124
- retryable: true,
125
- actions: [...CONTEXT_OVERFLOW_ACTIONS]
126
- };
127
- }
128
- if (code === "MISSING_PROVIDER_API_KEY") {
129
- return {
130
- kind: "generic",
131
- message: truncateErrorMessage(errorMessage),
132
- code,
133
- status,
134
- retryable: false
135
- };
136
- }
137
- if (errorMessage && errorMessage !== defaultMessage) {
138
- return {
139
- kind: "generic",
140
- message: `\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF: ${truncateErrorMessage(errorMessage)}`,
141
- code,
142
- status,
143
- retryable: false
144
- };
145
- }
146
- return { kind: "generic", message: "\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u8F93\u5165", code, status, retryable: false };
147
- case 413:
148
- return {
149
- kind: "context_too_large",
150
- message: "\u8BF7\u6C42\u5185\u5BB9\u8FC7\u5927\uFF1A\u8BF7\u51CF\u5C11\u4E00\u6B21\u53D1\u9001\u7684\u6D88\u606F\u3001\u6587\u4EF6\u6216\u5DE5\u5177\u7ED3\u679C\u3002",
151
- code,
152
- status,
153
- retryable: true,
154
- actions: [...CONTEXT_TOO_LARGE_ACTIONS]
155
- };
156
- case 401:
157
- return {
158
- kind: "auth",
159
- message: code === "AUTH_TOKEN_EXPIRED" ? "\u767B\u5F55\u72B6\u6001\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u5148\u767B\u51FA\u540E\u91CD\u65B0\u767B\u5F55" : code === "AUTH_ACCOUNT_INVALID" ? "\u8D26\u6237\u65E0\u6548\u6216\u5DF2\u88AB\u505C\u7528\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458" : code === "AUTH_NO_TOKEN" ? "\u672A\u68C0\u6D4B\u5230\u767B\u5F55\u72B6\u6001\uFF0C\u8BF7\u5148\u767B\u5F55" : code === "AUTH_INVALID_TOKEN" ? "\u767B\u5F55\u51ED\u8BC1\u65E0\u6548\uFF0C\u8BF7\u5148\u767B\u51FA\u540E\u91CD\u65B0\u767B\u5F55" : code === "AUTH_TOKEN_NOT_ACTIVE" ? "\u4EE4\u724C\u5C1A\u672A\u751F\u6548\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5" : errorMessage && errorMessage !== `\u72B6\u6001\u7801 401 Unauthorized` ? `\u8BA4\u8BC1\u9519\u8BEF: ${truncateErrorMessage(errorMessage)}` : "\u8EAB\u4EFD\u9A8C\u8BC1\u5931\u8D25\uFF0C\u8BF7\u5148\u767B\u51FA\u540E\u91CD\u65B0\u767B\u5F55",
160
- code,
161
- status,
162
- retryable: true,
163
- actions: ["retry"]
164
- };
165
- case 503:
166
- return {
167
- kind: "server",
168
- message: errorMessage && errorMessage !== `\u72B6\u6001\u7801 503 Service Unavailable` ? truncateErrorMessage(errorMessage) : "\u670D\u52A1\u6682\u65F6\u4E0D\u53EF\u7528\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",
169
- code,
170
- status,
171
- retryable: true,
172
- actions: ["retry"]
173
- };
174
- case 504:
175
- return {
176
- kind: "timeout",
177
- message: "\u8BF7\u6C42\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",
178
- code,
179
- status,
180
- retryable: true,
181
- actions: ["retry"]
182
- };
183
- // 402 Payment Required(LithosAI/OpenAI 兼容网关的余额耗尽)。此前无 case,
184
- // 落进 default(generic + retryable:true + 重试按钮),误导用户重发。
185
- case 402:
186
- return {
187
- kind: "quota",
188
- message: QUOTA_EXHAUSTED_MESSAGE,
189
- code,
190
- status,
191
- // 余额耗尽重发无效:上游亦带 x-should-retry:false。
192
- retryable: false
193
- };
194
- default:
195
- if (isQuotaExhaustedError(status, errorMessage, body, code)) {
196
- return {
197
- kind: "quota",
198
- message: QUOTA_EXHAUSTED_MESSAGE,
199
- code,
200
- status,
201
- retryable: false
202
- };
203
- }
204
- return {
205
- kind: "generic",
206
- message: `API\u8BF7\u6C42\u5931\u8D25: ${truncateErrorMessage(errorMessage)}`,
207
- code,
208
- status,
209
- retryable: true,
210
- actions: ["retry"]
211
- };
212
- }
213
- }
214
- async function parseApiErrorInfo(response) {
215
- const errorBody = await response.text();
216
- let errorMessage = `\u72B6\u6001\u7801 ${response.status} ${response.statusText}`;
217
- let errorCode = `E${response.status}`;
218
- try {
219
- const errorJson = JSON.parse(errorBody);
220
- errorMessage = errorJson?.error?.message || errorJson?.message || errorJson?.msg || errorBody || errorMessage;
221
- errorCode = errorJson?.error?.code || errorJson?.code || errorCode;
222
- } catch (_e) {
223
- if (errorBody) {
224
- errorMessage = errorBody;
225
- }
226
- }
227
- return classifyApiError({
228
- status: response.status,
229
- statusText: response.statusText,
230
- message: errorMessage,
231
- body: errorBody,
232
- code: errorCode
233
- });
234
- }
235
- async function parseApiError(response) {
236
- return (await parseApiErrorInfo(response)).message;
237
- }
238
- var UPSTREAM_AUTH_FAILURE_MESSAGE = "\u4E0A\u6E38\u9274\u6743\u5931\u8D25\uFF08401/403\uFF09\u3002\u82E5\u4F7F\u7528\u5E73\u53F0\u6258\u7BA1\u6A21\u578B\uFF0C\u8FD9\u662F\u5E73\u53F0\u4FA7\u51ED\u636E\u95EE\u9898\u3001\u4E0D\u662F\u4F60\u7684\u914D\u7F6E\u95EE\u9898\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF1B\u82E5\u4F7F\u7528\u81EA\u5DF1\u7684 API Key\uFF0C\u8BF7\u68C0\u67E5\u8BE5 Key \u662F\u5426\u6709\u6548\u3002\u91CD\u590D\u53D1\u9001\u4E0D\u4F1A\u89E3\u51B3\u6B64\u95EE\u9898\u3002";
239
- function classifyGenerationError(data, status) {
240
- const error = data?.error ?? data;
241
- const upstreamStatus = error?.status ?? data?.status;
242
- if (status === void 0 && typeof upstreamStatus === "number") status = upstreamStatus;
243
- const rawCode = error?.code ?? data?.code;
244
- const code = typeof rawCode === "string" && /^[a-zA-Z0-9_.:-]{1,80}$/.test(rawCode) && !/^(sk-|Bearer|AIza)/i.test(rawCode) ? rawCode : void 0;
245
- const message = typeof error?.message === "string" ? error.message : typeof error?.msg === "string" ? error.msg : typeof data === "string" ? data : "";
246
- const evidence = `${code ?? ""} ${message}`;
247
- let category = "config_protocol";
248
- if (/content[_ -]filter|content[_ -]policy|safety[_ -](?:violation|blocked)|policy[_ -]violation|prohibited[_ -]content/i.test(evidence)) {
249
- category = "policy";
250
- } else if (isQuotaExhaustedError(status ?? 0, evidence, code)) {
251
- category = "quota";
252
- } else if (/thought_signature|reasoning_effort|not supported|invalid[_ -](?:request|argument)|authentication|api[_ -]key/i.test(evidence) || status === 401 || status === 403) {
253
- category = "config_protocol";
254
- } else if (code === "EMPTY_RESPONSE" || /空响应|empty response/i.test(message)) {
255
- category = "empty";
256
- } else if (status === 408 || status === 429 || status !== void 0 && status >= 500 || /timeout|timed out|秒内没有返回新内容|network|fetch failed|failed to fetch|ECONNRESET|ECONNREFUSED|EPIPE|socket hang up|connection (?:reset|closed)|rate[_ -]limit|overloaded|temporarily unavailable|internal_server_error|service_unavailable/i.test(evidence)) {
257
- category = "transient";
258
- }
259
- const authFailure = status === 401 || status === 403 || /authentication|unauthori[sz]ed|forbidden|invalid[_ -]api[_ -]key|api[_ -]key (?:invalid|revoked)/i.test(
260
- evidence
261
- );
262
- const messages = {
263
- config_protocol: authFailure ? UPSTREAM_AUTH_FAILURE_MESSAGE : "\u6A21\u578B\u914D\u7F6E\u6216\u5DE5\u5177\u901A\u4FE1\u4E0D\u517C\u5BB9\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u68C0\u67E5\u914D\u7F6E\uFF1B\u91CD\u590D\u53D1\u9001\u4E0D\u4F1A\u89E3\u51B3\u6B64\u95EE\u9898\u3002",
264
- empty: "\u6A21\u578B\u8FD4\u56DE\u4E86\u7A7A\u54CD\u5E94\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u68C0\u67E5\u670D\u52A1\u54CD\u5E94\u3002",
265
- policy: "\u670D\u52A1\u5546\u7684\u5185\u5BB9\u5B89\u5168\u89C4\u5219\u963B\u6B62\u4E86\u672C\u6B21\u8BF7\u6C42\u3002\u8BF7\u68C0\u67E5\u8BF7\u6C42\u662F\u5426\u7B26\u5408\u5176\u89C4\u5219\uFF1B\u4E0D\u4F1A\u81EA\u52A8\u91CD\u8BD5\u6216\u6539\u5199\u5185\u5BB9\u3002",
266
- quota: QUOTA_EXHAUSTED_MESSAGE,
267
- transient: "\u6A21\u578B\u670D\u52A1\u6682\u65F6\u4E0D\u53EF\u7528\u3002\u4F60\u53EF\u4EE5\u7A0D\u540E\u624B\u52A8\u91CD\u8BD5\u540C\u4E00\u6A21\u578B\uFF08\u65B0\u8BF7\u6C42\u53EF\u80FD\u4EA7\u751F\u8D39\u7528\uFF09\u3002"
268
- };
269
- return {
270
- category,
271
- message: messages[category],
272
- retryable: category === "transient",
273
- actions: category === "transient" ? ["retry"] : [],
274
- diagnostic: { ...extractErrorDiagnostics(data, status) }
275
- };
276
- }
277
-
278
61
  // packages/ai/chat/serverProxyRetry.ts
279
62
  var DEFAULT_SERVER_PROXY_RETRY_AFTER_MS = 1500;
280
63
  var MAX_SERVER_PROXY_RETRIES = 2;
@@ -464,12 +247,12 @@ var resolveReferenceAssets = async (references, dispatch) => {
464
247
  }
465
248
  const resolvedSkillLinks = await resolveSkillGraphFromRoots({
466
249
  roots: [
467
- ...Array.from(hardSkillKeys).map((identifier2) => ({ identifier: identifier2, mode: "required" })),
468
- ...Array.from(softSkillKeys).map((identifier2) => ({ identifier: identifier2, mode: "recommended" }))
250
+ ...Array.from(hardSkillKeys).map((identifier) => ({ identifier, mode: "required" })),
251
+ ...Array.from(softSkillKeys).map((identifier) => ({ identifier, mode: "recommended" }))
469
252
  ],
470
- loadPage: async (identifier2) => {
471
- const loaded = await loadContentsByKeys([identifier2], dispatch, contentByKey);
472
- return loaded.get(identifier2) ?? null;
253
+ loadPage: async (identifier) => {
254
+ const loaded = await loadContentsByKeys([identifier], dispatch, contentByKey);
255
+ return loaded.get(identifier) ?? null;
473
256
  },
474
257
  contentByKey
475
258
  });
@@ -532,12 +315,12 @@ var resolveToolsFromKeys = async (keys, dispatch, preloaded) => {
532
315
  }
533
316
  const resolvedSkillLinks = await resolveSkillGraphFromRoots({
534
317
  roots: [
535
- ...Array.from(hardSkillKeys).map((identifier2) => ({ identifier: identifier2, mode: "required" })),
536
- ...Array.from(softSkillKeys).map((identifier2) => ({ identifier: identifier2, mode: "recommended" }))
318
+ ...Array.from(hardSkillKeys).map((identifier) => ({ identifier, mode: "required" })),
319
+ ...Array.from(softSkillKeys).map((identifier) => ({ identifier, mode: "recommended" }))
537
320
  ],
538
- loadPage: async (identifier2) => {
539
- const loaded = await loadContentsByKeys([identifier2], dispatch, contentByKey);
540
- return loaded.get(identifier2) ?? null;
321
+ loadPage: async (identifier) => {
322
+ const loaded = await loadContentsByKeys([identifier], dispatch, contentByKey);
323
+ return loaded.get(identifier) ?? null;
541
324
  },
542
325
  contentByKey
543
326
  });
@@ -900,13 +683,6 @@ var fetchReferenceContents = async (references, dispatch, options = { format: "s
900
683
  };
901
684
 
902
685
  export {
903
- extractErrorDiagnostics,
904
- CONTEXT_OVERFLOW_ACTIONS,
905
- CONTEXT_TOO_LARGE_ACTIONS,
906
- isContextOverflowText,
907
- classifyApiError,
908
- parseApiError,
909
- classifyGenerationError,
910
686
  performServerProxyFetchWithRetry,
911
687
  fetchReferenceContents,
912
688
  mergeReferences,
@@ -4,9 +4,6 @@ import {
4
4
  import {
5
5
  isRecord
6
6
  } from "./chunk-KUG52IAP.js";
7
- import {
8
- resolveNoloStateDir
9
- } from "./chunk-6UBGXX2W.js";
10
7
  import {
11
8
  asOptionalPositiveFiniteNumber
12
9
  } from "./chunk-U6VC4MU4.js";
@@ -16,6 +13,9 @@ import {
16
13
  import {
17
14
  asOptionalTrimmedString
18
15
  } from "./chunk-G3SUCT4W.js";
16
+ import {
17
+ resolveNoloStateDir
18
+ } from "./chunk-6UBGXX2W.js";
19
19
 
20
20
  // packages/agent-runtime/processTask.ts
21
21
  var PROCESS_TASK_TERMINAL_STATUSES = [
@@ -435,8 +435,9 @@ function getProcessRegistry() {
435
435
  }
436
436
 
437
437
  // packages/agent-runtime/workspaceShell.ts
438
+ import { AsyncLocalStorage } from "node:async_hooks";
438
439
  import { createWriteStream, mkdirSync as mkdirSync2, rmSync } from "node:fs";
439
- import { dirname, join as join3, resolve } from "node:path";
440
+ import { dirname, join as join3, resolve as resolve2 } from "node:path";
440
441
  import { spawn as spawnChildProcess } from "node:child_process";
441
442
  import { randomUUID as randomUUID2 } from "node:crypto";
442
443
  import { tmpdir } from "node:os";
@@ -594,9 +595,9 @@ function spawnToWebStreams(options) {
594
595
  env: options.env,
595
596
  stdio: ["ignore", "pipe", "pipe"]
596
597
  });
597
- const exited = new Promise((resolve2) => {
598
- child.on("exit", (code) => resolve2(code ?? 1));
599
- child.on("error", () => resolve2(127));
598
+ const exited = new Promise((resolve3) => {
599
+ child.on("exit", (code) => resolve3(code ?? 1));
600
+ child.on("error", () => resolve3(127));
600
601
  });
601
602
  const toWeb = (stream) => {
602
603
  if (!stream) return null;
@@ -691,6 +692,11 @@ function findWindowsPowerShellAlias(options = {}) {
691
692
  return null;
692
693
  }
693
694
 
695
+ // packages/agent-runtime/processTaskResult.ts
696
+ import { openSync, readSync, closeSync } from "node:fs";
697
+ import { isAbsolute as isAbsolute2, resolve } from "node:path";
698
+ import { StringDecoder } from "node:string_decoder";
699
+
694
700
  // packages/agent-runtime/toolSpillStore.ts
695
701
  import { createHash, randomUUID } from "node:crypto";
696
702
  import { constants, copyFileSync, createReadStream, existsSync as existsSync2, mkdirSync, readdirSync as readdirSync2, renameSync, statSync as statSync3, unlinkSync, utimesSync, writeFileSync } from "node:fs";
@@ -722,11 +728,11 @@ function countLines(text) {
722
728
  var SPILL_PUBLICATION_GRACE_MS = 6e4;
723
729
  async function hashFileStreaming(path) {
724
730
  const hash = createHash("sha256");
725
- await new Promise((resolve2, reject) => {
731
+ await new Promise((resolve3, reject) => {
726
732
  const stream = createReadStream(path);
727
733
  stream.on("data", (chunk) => hash.update(chunk));
728
734
  stream.on("error", reject);
729
- stream.on("end", () => resolve2());
735
+ stream.on("end", () => resolve3());
730
736
  });
731
737
  return hash.digest("hex");
732
738
  }
@@ -952,6 +958,41 @@ function formatToolOverflowMarker(args) {
952
958
  `;
953
959
  }
954
960
 
961
+ // packages/agent-runtime/toolOutputSpillProjection.ts
962
+ var TOOL_OUTPUT_SPILL_BYTES = 30 * 1024;
963
+ var TOOL_OUTPUT_SPILL_LINES = 800;
964
+ var HEAD_LINES = 30;
965
+ var TAIL_LINES = 50;
966
+ var PREVIEW_CHARS = 12 * 1024;
967
+ var MARKER = /\[Omitted \d+ lines \([\d.]+ KB\)\. Full output saved to [^\n]+\]/;
968
+ function isSpilledToolOutput(text) {
969
+ return MARKER.test(text) && text.length <= PREVIEW_CHARS * 2 + 2048;
970
+ }
971
+ function formatSpilledToolOutput(args) {
972
+ const headLines = args.head.split("\n").slice(0, HEAD_LINES);
973
+ const tailLines = args.tail.split("\n").slice(-TAIL_LINES);
974
+ const head = headLines.join("\n").slice(0, PREVIEW_CHARS);
975
+ const tail = tailLines.join("\n").slice(-PREVIEW_CHARS);
976
+ const omitted = Math.max(0, args.totalLines - headLines.length - tailLines.length);
977
+ return `${head}
978
+
979
+ [Omitted ${omitted} lines (${(args.byteLength / 1024).toFixed(1)} KB). Full output saved to ${args.displayPath}]
980
+
981
+ ${tail}`;
982
+ }
983
+ function spillLargeToolOutput(content, toolName, workspaceRoot) {
984
+ if (isSpilledToolOutput(content)) return content;
985
+ const byteLength = Buffer.byteLength(content);
986
+ const totalLines = countLines(content);
987
+ if (byteLength <= TOOL_OUTPUT_SPILL_BYTES && totalLines <= TOOL_OUTPUT_SPILL_LINES) return content;
988
+ try {
989
+ const spill = spillToolOutput({ content, toolName, workspaceRoot });
990
+ return formatSpilledToolOutput({ head: content, tail: content, totalLines, byteLength, displayPath: spill.displayPath });
991
+ } catch {
992
+ return content;
993
+ }
994
+ }
995
+
955
996
  // packages/agent-runtime/processTaskResult.ts
956
997
  var PROCESS_RESULT_CAPSULE_TAIL_CHARS = 4e3;
957
998
  var PROCESS_RESULT_CAPSULE_SPILL_THRESHOLD_CHARS = 2e4;
@@ -959,6 +1000,27 @@ function tailText(value, maxChars) {
959
1000
  if (value.length <= maxChars) return { text: value, truncated: false };
960
1001
  return { text: value.slice(-maxChars), truncated: true };
961
1002
  }
1003
+ function reuseStreamSpill(text, workspaceRoot) {
1004
+ const displayPath = /Full output saved to ([^\n]+?)\]/.exec(text)?.[1];
1005
+ if (!displayPath) return void 0;
1006
+ const path = isAbsolute2(displayPath) ? displayPath : workspaceRoot ? resolve(workspaceRoot, displayPath) : void 0;
1007
+ if (!path) return void 0;
1008
+ const fd = openSync(path, "r");
1009
+ try {
1010
+ const buffer = Buffer.alloc(64 * 1024);
1011
+ const decoder = new StringDecoder("utf8");
1012
+ let totalChars = 0, newlines = 0;
1013
+ const count = (chunk) => {
1014
+ totalChars += chunk.length;
1015
+ for (let i = chunk.indexOf("\n"); i >= 0; i = chunk.indexOf("\n", i + 1)) newlines++;
1016
+ };
1017
+ for (let bytes; (bytes = readSync(fd, buffer, 0, buffer.length, null)) > 0; ) count(decoder.write(buffer.subarray(0, bytes)));
1018
+ count(decoder.end());
1019
+ return { displayPath, totalChars, totalLines: totalChars ? newlines + 1 : 0 };
1020
+ } finally {
1021
+ closeSync(fd);
1022
+ }
1023
+ }
962
1024
  function formatCapsuleStream(name, value) {
963
1025
  return value.trim() ? `${name}:
964
1026
  ${value.replace(/\n+$/, "")}` : "";
@@ -980,10 +1042,33 @@ function buildProcessTaskResultCapsule(args) {
980
1042
  const stderrTail = tailText(stderrTailSource, tailChars);
981
1043
  const inlineSize = stdout.length + stderr.length;
982
1044
  const inlineTruncated = stdoutTail.truncated || stderrTail.truncated;
983
- const truncated = inlineTruncated || ringEvicted || Boolean(captureError);
1045
+ const truncated = inlineTruncated || ringEvicted || Boolean(captureError) || isSpilledToolOutput(stdout) || isSpilledToolOutput(stderr);
984
1046
  const shouldSpill = truncated || inlineSize > spillThresholdChars;
985
1047
  let spill;
986
- if (shouldSpill) {
1048
+ let streamSpills;
1049
+ if (isSpilledToolOutput(stdout) || isSpilledToolOutput(stderr)) {
1050
+ streamSpills = {};
1051
+ for (const [name, text] of [["stdout", stdout], ["stderr", stderr]]) {
1052
+ if (!text) continue;
1053
+ try {
1054
+ if (isSpilledToolOutput(text)) {
1055
+ streamSpills[name] = reuseStreamSpill(text, args.workspaceRoot);
1056
+ } else {
1057
+ const result = spillToolOutput({ content: text, toolName: "execShell", workspaceRoot: args.workspaceRoot });
1058
+ streamSpills[name] = { displayPath: result.displayPath, totalChars: result.totalChars, totalLines: result.totalLines };
1059
+ }
1060
+ } catch {
1061
+ }
1062
+ }
1063
+ const primary = streamSpills.stdout ?? streamSpills.stderr;
1064
+ if (primary) {
1065
+ spill = {
1066
+ displayPath: primary.displayPath,
1067
+ totalChars: (streamSpills.stdout?.totalChars ?? 0) + (streamSpills.stderr?.totalChars ?? 0),
1068
+ totalLines: (streamSpills.stdout?.totalLines ?? 0) + (streamSpills.stderr?.totalLines ?? 0)
1069
+ };
1070
+ }
1071
+ } else if (shouldSpill) {
987
1072
  try {
988
1073
  const result = spillToolOutput({
989
1074
  content: [
@@ -1011,11 +1096,16 @@ function buildProcessTaskResultCapsule(args) {
1011
1096
  ...durationMs !== void 0 ? { durationMs } : {},
1012
1097
  ...captureError ? { captureError } : {},
1013
1098
  truncated,
1014
- ...spill ? { spill } : {}
1099
+ ...spill ? { spill } : {},
1100
+ ...streamSpills ? { streamSpills } : {}
1015
1101
  };
1016
1102
  }
1017
1103
 
1018
1104
  // packages/agent-runtime/workspaceShell.ts
1105
+ var shellChildEnvironment = new AsyncLocalStorage();
1106
+ function withShellChildEnvironment(env, run) {
1107
+ return shellChildEnvironment.run(env, run);
1108
+ }
1019
1109
  var EXEC_SHELL_TIMEOUT_ENV = "NOLO_EXEC_SHELL_TIMEOUT_MS";
1020
1110
  var EXEC_SHELL_DETACH_ENV = "NOLO_EXEC_SHELL_DETACH_MS";
1021
1111
  var DEFAULT_EXEC_SHELL_DETACH_MS = 12e4;
@@ -1310,19 +1400,33 @@ function resolveDetachMs(override) {
1310
1400
  return parsed === void 0 ? DEFAULT_EXEC_SHELL_DETACH_MS : parsed;
1311
1401
  }
1312
1402
  function truncateToolOutput(value, limit = 2e4, options) {
1403
+ if (isSpilledToolOutput(value)) return value;
1313
1404
  if (value.length <= limit) return value;
1314
1405
  let spillNote = "";
1406
+ let spillPathOnly = "";
1315
1407
  try {
1316
1408
  const spill = spillToolOutput({
1317
1409
  content: value,
1318
1410
  toolName: options?.toolName ?? "execShell",
1319
1411
  workspaceRoot: options?.workspaceRoot
1320
1412
  });
1321
- spillNote = `; spillFile=${spill.displayPath}; totalLines=${spill.totalLines}`;
1413
+ spillNote = `; spillFile=${spill.displayPath}; totalLines=${spill.totalLines}; hint=read a range, not the whole spill (readFile lines=A-B or sed -n 'A,Bp'); a full read re-injects ${spill.totalChars} chars`;
1414
+ spillPathOnly = `; spillFile=${spill.displayPath}`;
1322
1415
  } catch {
1323
1416
  }
1324
1417
  const approxMarkerLen = 40 + spillNote.length;
1325
- if (limit <= approxMarkerLen) return value.slice(0, limit);
1418
+ if (limit <= approxMarkerLen) {
1419
+ const notice = `[... truncated ${value.length} chars]`;
1420
+ const withFullNote = `[... truncated ${value.length} chars${spillNote} ...]`;
1421
+ if (withFullNote.length <= limit) return withFullNote;
1422
+ const withPath = `[... truncated ${value.length} chars${spillPathOnly} ...]`;
1423
+ if (withPath.length <= limit) return withPath;
1424
+ if (notice.length <= limit) {
1425
+ const pathOmitted = " [... path omitted]";
1426
+ return notice.length + pathOmitted.length <= limit ? notice + pathOmitted : notice;
1427
+ }
1428
+ return limit <= 0 ? "" : "\u2026";
1429
+ }
1326
1430
  const remaining = limit - approxMarkerLen;
1327
1431
  const headSize = Math.floor(remaining * 0.3);
1328
1432
  const tailSize = remaining - headSize;
@@ -1352,6 +1456,9 @@ function readNodeStream(stream, maxBytesOrOptions = DEFAULT_MAX_STREAM_BUFFER_BY
1352
1456
  return new Promise((resolveStream, rejectStream) => {
1353
1457
  const chunks = [];
1354
1458
  let totalBytes = 0;
1459
+ let observedBytes = 0;
1460
+ let observedLines = 1;
1461
+ let tail = Buffer.alloc(0);
1355
1462
  let settled = false;
1356
1463
  let captureResolved = false;
1357
1464
  const resolveCapture = (text) => {
@@ -1481,6 +1588,16 @@ function readNodeStream(stream, maxBytesOrOptions = DEFAULT_MAX_STREAM_BUFFER_BY
1481
1588
  await settleSpillRetention();
1482
1589
  if (captureResolved) return;
1483
1590
  let text = baseText;
1591
+ if (truncatedNow && spillRetainedPath && sourceEnded && options.maxLines !== void 0) {
1592
+ resolveCapture(formatSpilledToolOutput({
1593
+ head: baseText,
1594
+ tail: tail.toString("utf8"),
1595
+ totalLines: observedLines,
1596
+ byteLength: observedBytes,
1597
+ displayPath: spillRetainedPath
1598
+ }));
1599
+ return;
1600
+ }
1484
1601
  if (truncatedNow) {
1485
1602
  const notes = [`output exceeded ${formatLimit} buffer limit`];
1486
1603
  if (spillRetainedPath && sourceEnded) {
@@ -1548,11 +1665,16 @@ function readNodeStream(stream, maxBytesOrOptions = DEFAULT_MAX_STREAM_BUFFER_BY
1548
1665
  stream.on("data", (chunk) => {
1549
1666
  if (settled) return;
1550
1667
  const buf = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
1668
+ observedBytes += buf.length;
1669
+ for (const byte of buf) if (byte === 10) observedLines++;
1670
+ if (options.maxLines !== void 0) {
1671
+ tail = Buffer.concat([tail, buf.subarray(Math.max(0, buf.length - maxBytes))]).subarray(-maxBytes);
1672
+ }
1551
1673
  if (truncated) {
1552
1674
  writeToSink(buf);
1553
1675
  return;
1554
1676
  }
1555
- if (totalBytes + buf.length >= maxBytes) {
1677
+ if (totalBytes + buf.length >= maxBytes || observedLines > (options.maxLines ?? Infinity)) {
1556
1678
  const remaining = Math.max(0, maxBytes - totalBytes);
1557
1679
  const headChunks = chunks.slice();
1558
1680
  if (remaining > 0) {
@@ -1644,7 +1766,8 @@ async function runWorkspaceCommand(args) {
1644
1766
  ];
1645
1767
  const spawnedAt = Date.now();
1646
1768
  const proc = spawnChildProcess(command[0] ?? "", command.slice(1), {
1647
- cwd: resolve(args.workspaceRoot),
1769
+ cwd: resolve2(args.workspaceRoot),
1770
+ env: { ...process.env, ...shellChildEnvironment.getStore() },
1648
1771
  stdio: [
1649
1772
  args.stdin === void 0 ? "ignore" : "pipe",
1650
1773
  "pipe",
@@ -1704,6 +1827,8 @@ async function runWorkspaceCommand(args) {
1704
1827
  let stderrIncomplete;
1705
1828
  const stdoutCapture = stdoutPromiseResult(
1706
1829
  readNodeStream(proc.stdout, {
1830
+ maxBytes: TOOL_OUTPUT_SPILL_BYTES,
1831
+ maxLines: TOOL_OUTPUT_SPILL_LINES,
1707
1832
  spillPath: join3(tmpdir(), `nolo-stream-${randomUUID2()}.log`),
1708
1833
  spillRetention: "promote",
1709
1834
  spillWorkspaceRoot: args.workspaceRoot
@@ -1716,6 +1841,8 @@ async function runWorkspaceCommand(args) {
1716
1841
  ).then((result) => ({ ...result, error: result.error || stdoutIncomplete }));
1717
1842
  const stderrCapture = stdoutPromiseResult(
1718
1843
  readNodeStream(proc.stderr, {
1844
+ maxBytes: TOOL_OUTPUT_SPILL_BYTES,
1845
+ maxLines: TOOL_OUTPUT_SPILL_LINES,
1719
1846
  spillPath: join3(tmpdir(), `nolo-stream-${randomUUID2()}-stderr.log`),
1720
1847
  spillRetention: "promote",
1721
1848
  spillWorkspaceRoot: args.workspaceRoot
@@ -1955,8 +2082,6 @@ ${stderr.trim()}` : "",
1955
2082
  }
1956
2083
 
1957
2084
  export {
1958
- spillToolOutput,
1959
- formatToolOverflowMarker,
1960
2085
  resolveExecutableOnPath,
1961
2086
  createGlob,
1962
2087
  spawnToWebStreams,
@@ -1964,7 +2089,12 @@ export {
1964
2089
  reportedTaskStatus,
1965
2090
  toProcessTaskView,
1966
2091
  getProcessRegistry,
2092
+ spillToolOutput,
2093
+ formatToolOverflowMarker,
2094
+ isSpilledToolOutput,
2095
+ spillLargeToolOutput,
1967
2096
  buildProcessTaskResultCapsule,
2097
+ withShellChildEnvironment,
1968
2098
  extractActivity,
1969
2099
  findPowerShellExecutable,
1970
2100
  buildWorkspaceShellPlan,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  dialogMessageKey
3
- } from "./chunk-XJWWBO34.js";
3
+ } from "./chunk-OJKUU3LP.js";
4
4
  import {
5
5
  asOptionalFiniteNumber
6
6
  } from "./chunk-WWC7I6TA.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BUILTIN_NOLO_AGENT_KEY
3
- } from "./chunk-LOEO7LRC.js";
3
+ } from "./chunk-UJKTI5PG.js";
4
4
 
5
5
  // packages/core/init.ts
6
6
  var nolotusId = "0e95801d90";