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
@@ -1,17 +1,12 @@
1
1
  import {
2
2
  getCurrentSpaceIdRaw,
3
- setCurrentSpaceBoth
4
- } from "./chunk-5XBUWM6I.js";
3
+ setCurrentSpaceBoth,
4
+ setSpaceInitialized
5
+ } from "./chunk-MOMR7NMG.js";
5
6
  import {
6
7
  createSpaceKey,
7
8
  normalizeSpaceId
8
9
  } from "./chunk-UAD2WT54.js";
9
- import {
10
- require_react
11
- } from "./chunk-YDH3FDFQ.js";
12
- import {
13
- toTimestampMs
14
- } from "./chunk-FW6YHHLI.js";
15
10
  import {
16
11
  fetchFromServer,
17
12
  getAllServers
@@ -22,145 +17,18 @@ import {
22
17
  } from "./chunk-PXYBUFDB.js";
23
18
  import {
24
19
  isTombstoneRecord
25
- } from "./chunk-SVYO6AO7.js";
26
- import {
27
- __toESM
28
- } from "./chunk-4VNS5WPM.js";
29
-
30
- // packages/create/space/spaceMembershipStore.ts
31
- var import_react = __toESM(require_react(), 1);
32
- var createInitialState = () => ({
33
- memberSpaces: null,
34
- loading: false,
35
- membershipStatus: "idle",
36
- initialized: false
37
- });
38
- var state = createInitialState();
39
- var listeners = /* @__PURE__ */ new Set();
40
- var version = 0;
41
- var notify = () => {
42
- version += 1;
43
- for (const listener of listeners) {
44
- try {
45
- listener();
46
- } catch {
47
- }
48
- }
49
- };
50
- var getMembershipUpdatedAt = (space) => {
51
- if (!space) return 0;
52
- return toTimestampMs(
53
- space.spaceUpdatedAt ?? space.memberUpdatedAt ?? space.updatedAt ?? space.createdAt ?? space.joinedAt
54
- );
55
- };
56
- function dedupeMemberSpacesById(memberSpaces) {
57
- const membershipMap = /* @__PURE__ */ new Map();
58
- memberSpaces.forEach((space) => {
59
- const prev = membershipMap.get(space.spaceId);
60
- if (!prev || getMembershipUpdatedAt(space) >= getMembershipUpdatedAt(prev)) {
61
- membershipMap.set(space.spaceId, space);
62
- }
63
- });
64
- return Array.from(membershipMap.values());
65
- }
66
- function getAllMemberSpaces() {
67
- const memberSpaces = dedupeMemberSpacesById(state.memberSpaces || []);
68
- return [...memberSpaces].sort((a, b) => {
69
- return getMembershipUpdatedAt(b) - getMembershipUpdatedAt(a);
70
- });
71
- }
72
- function setMemberSpaces(spaces) {
73
- state = {
74
- ...state,
75
- memberSpaces: spaces,
76
- loading: false,
77
- error: void 0,
78
- membershipStatus: "fresh",
79
- initialized: true
80
- };
81
- notify();
82
- }
83
- function setMembershipLoading() {
84
- state = { ...state, loading: true, membershipStatus: "loading" };
85
- notify();
86
- }
87
- function setMembershipRejected(errorMessage, isRemoteUnavailable) {
88
- const membershipStatus = isRemoteUnavailable ? "offline" : state.membershipStatus === "loading" ? "idle" : state.membershipStatus;
89
- state = {
90
- ...state,
91
- loading: false,
92
- error: errorMessage,
93
- membershipStatus
94
- };
95
- notify();
96
- }
97
- function appendRecoveredMemberships(recovered) {
98
- if (!recovered || recovered.length === 0) return;
99
- if (state.memberSpaces === null) {
100
- state = {
101
- ...state,
102
- memberSpaces: dedupeMemberSpacesById(recovered)
103
- };
104
- notify();
105
- return;
106
- }
107
- state = {
108
- ...state,
109
- memberSpaces: dedupeMemberSpacesById([
110
- ...state.memberSpaces,
111
- ...recovered
112
- ]).sort((a, b) => toTimestampMs(b.joinedAt) - toTimestampMs(a.joinedAt))
113
- };
114
- notify();
115
- }
116
- function setSpaceInitialized() {
117
- state = { ...state, initialized: true };
118
- notify();
119
- }
120
- function setMembershipLoaded() {
121
- state = { ...state, loading: false, error: void 0 };
122
- notify();
123
- }
124
- function addMemberSpace(space) {
125
- const existing = state.memberSpaces || [];
126
- state = {
127
- ...state,
128
- memberSpaces: dedupeMemberSpacesById([...existing, space])
129
- };
130
- notify();
131
- }
132
- function removeMemberSpace(spaceId) {
133
- if (!state.memberSpaces) return;
134
- const normalized = normalizeSpaceId(spaceId);
135
- state = {
136
- ...state,
137
- memberSpaces: state.memberSpaces.filter(
138
- (s) => normalizeSpaceId(s.spaceId) !== normalized
139
- )
140
- };
141
- notify();
142
- }
143
- function updateMemberSpaceName(spaceId, name) {
144
- if (!state.memberSpaces || !name) return;
145
- state = {
146
- ...state,
147
- memberSpaces: state.memberSpaces.map(
148
- (space) => space.spaceId === spaceId ? { ...space, spaceName: name } : space
149
- )
150
- };
151
- notify();
152
- }
20
+ } from "./chunk-BV3FLP2L.js";
153
21
 
154
22
  // packages/create/space/spaceAccess.ts
155
- var resolveSpaceRemoteServers = (state2) => {
156
- const currentServer = typeof state2?.settings?.currentServer === "string" ? state2.settings.currentServer : void 0;
157
- const syncServers = Array.isArray(state2?.settings?.syncServers) ? state2.settings.syncServers : void 0;
23
+ var resolveSpaceRemoteServers = (state) => {
24
+ const currentServer = typeof state?.settings?.currentServer === "string" ? state.settings.currentServer : void 0;
25
+ const syncServers = Array.isArray(state?.settings?.syncServers) ? state.settings.syncServers : void 0;
158
26
  return getAllServers(currentServer, syncServers);
159
27
  };
160
- var selectSpaceRemoteAuth = (state2) => ({
161
- token: selectIdentityToken(state2) ?? null,
162
- userId: selectIdentityUserId(state2) ?? null,
163
- servers: resolveSpaceRemoteServers(state2)
28
+ var selectSpaceRemoteAuth = (state) => ({
29
+ token: selectIdentityToken(state) ?? null,
30
+ userId: selectIdentityUserId(state) ?? null,
31
+ servers: resolveSpaceRemoteServers(state)
164
32
  });
165
33
  var spaceListsUser = (spaceData, userId) => {
166
34
  if (!spaceData || isTombstoneRecord(spaceData)) return false;
@@ -288,14 +156,5 @@ export {
288
156
  fetchRemoteUserSpaceMemberships,
289
157
  fetchRemoteSpace,
290
158
  fetchAuthoritativeRemoteSpace,
291
- getAllMemberSpaces,
292
- setMemberSpaces,
293
- setMembershipLoading,
294
- setMembershipRejected,
295
- appendRecoveredMemberships,
296
- setMembershipLoaded,
297
- addMemberSpace,
298
- removeMemberSpace,
299
- updateMemberSpaceName,
300
159
  applyFetchSpaceFulfilled
301
160
  };
@@ -43,7 +43,7 @@ var normalizeLocale = (value) => {
43
43
  return language;
44
44
  };
45
45
  var resolveUserResponseLanguage = (input = {}) => {
46
- const raw = asLocale(input.responseLanguage) || asLocale(input.language) || asLocale(input.fallbackLanguage) || "en-US";
46
+ const raw = asLocale(input.language) || "en-US";
47
47
  const locale = normalizeLocale(raw);
48
48
  return {
49
49
  locale,
@@ -80,7 +80,8 @@ var MEMORY_USE_GUIDANCE = `--- \u8BB0\u5FC6\u4F7F\u7528\u65B9\u5F0F ---
80
80
  - \u8BB0\u5FC6\u542B\u7528\u6237\u8EAB\u4EFD/\u79F0\u547C/\u5173\u7CFB/\u957F\u671F\u504F\u597D/\u9879\u76EE\u80CC\u666F\u65F6\uFF0C\u76F8\u5173\u5904\u81EA\u7136\u4F53\u73B0\uFF08\u5F00\u573A\u79F0\u547C\u3001\u4E0A\u4E0B\u6587\u786E\u8BA4\u3001\u56DE\u7B54\u7ED3\u6784\u3001\u53D6\u820D\u6807\u51C6\uFF09\uFF0C\u4E0D\u8981\u6BCF\u53E5\u673A\u68B0\u79F0\u547C\u7528\u6237\u3002
81
81
  - \u201C\u4E0A\u6B21/\u7EE7\u7EED/\u8FD9\u4E2A\u9879\u76EE\u201D\u7B49\u6307\u4EE3\u4F18\u5148\u6309\u5F53\u524D dialog/space/project/agent/sourceDialog \u7B49 KV \u8DEF\u5F84\u548C\u65F6\u95F4\u7EBF\u5B9A\u4F4D\uFF0C\u4E0D\u8981\u53EA\u6309\u8BED\u4E49\u76F8\u4F3C\u5EA6\u635E\u4E00\u6761\u3002
82
82
  - \u63A8\u65AD\u578B\u8BB0\u5FC6\uFF08inferred\uFF09\u53EA\u7528\u4E8E\u628A\u63E1\u8BED\u6C14\u3001\u72B6\u6001\u548C\u672A\u5B8C\u6210\u4E8B\u9879\uFF0C\u4E0D\u8981\u8BF4\u6210\u201C\u4F60\u660E\u786E\u544A\u8BC9\u8FC7\u6211\u201D\u6216\u5F53\u6210\u7528\u6237\u5DF2\u6388\u6743\u4FDD\u5B58\u7684\u4E8B\u5B9E\uFF1B\u51B2\u7A81\u6216\u573A\u666F\u4E0D\u660E\u65F6\u8BF4\u660E\u4F9D\u636E\u6216\u7B80\u77ED\u786E\u8BA4\uFF0C\u4E0D\u8981\u786C\u5957\u3002
83
- - \u7F6E\u4FE1\u5EA6\uFF08verified/stated/inferred\uFF09\u3001\u53EC\u56DE\u4E0A\u4E0B\u6587\u8981\u6C42\u4E0E\u964D\u6743/\u5220\u9664\u8FB9\u754C\u4EE5\u8BB0\u5FC6\u5DE5\u5177\uFF08rememberMemory / queryMemory / deleteMemory\uFF09schema \u4E3A\u51C6\u3002`;
83
+ - \u7F6E\u4FE1\u5EA6\uFF08verified/stated/inferred\uFF09\u3001\u53EC\u56DE\u4E0A\u4E0B\u6587\u8981\u6C42\u4E0E\u964D\u6743/\u5220\u9664\u8FB9\u754C\u4EE5\u8BB0\u5FC6\u5DE5\u5177\uFF08rememberMemory / queryMemory / deleteMemory\uFF09schema \u4E3A\u51C6\u3002
84
+ - \u7528\u6237\u660E\u786E\u8868\u8FBE**\u8DE8\u4F1A\u8BDD**\u7684\u6253\u6270\u5F3A\u5EA6\u504F\u597D\u65F6\uFF08\u5982\u300C\u4EE5\u540E\u90FD\u53EA\u62A5\u7ED3\u679C\u300D\u300C\u6BCF\u6B21\u90FD\u7ED9\u6211\u770B\u8BE6\u7EC6\u8FC7\u7A0B\u300D\uFF0C\u800C\u975E\u4E00\u6B21\u4EFB\u52A1\u91CC\u7684\u300C\u8FD9\u6B21\u522B\u70E6\u6211\u300D\uFF09\uFF0C\u7528 rememberMemory \u8BB0\u4E3A\u7528\u6237\u504F\u597D\uFF1B\u4E4B\u540E\u6309\u5B83\u8C03\u6574 ignore / FYI / important \u7684\u8BE6\u7565\u3002\u8BB0\u5FC6\u504F\u597D\u7EDD\u4E0D\u80FD\u53D6\u6D88 decision / blocked / failed \u4E09\u7C7B\u5FC5\u987B\u62A5\u7684\u5185\u5BB9\u3002`;
84
85
 
85
86
  export {
86
87
  buildUserResponseLanguageContext,
@@ -10,7 +10,7 @@ import {
10
10
  resolvePlatformEffectiveModel,
11
11
  toCnyCredits,
12
12
  zaiModels
13
- } from "./chunk-GOO6G4PY.js";
13
+ } from "./chunk-VALBGPM6.js";
14
14
 
15
15
  // packages/integrations/qwen/models.ts
16
16
  var qwenModels = [
@@ -2939,6 +2939,25 @@ var xaiModels = [
2939
2939
 
2940
2940
  // packages/ai/llm/fireworks.ts
2941
2941
  var fireworksModels = [
2942
+ {
2943
+ // 2026-11-04:Kimi 三条历史 id 统一指向这里。Fireworks 真实 id 为 kimi-k3
2944
+ // (https://app.fireworks.ai/models/fireworks/kimi-k3);价格沿用平台 Kimi K3 目录价。
2945
+ name: "accounts/fireworks/models/kimi-k3",
2946
+ displayName: "MoonshotAI: Kimi K3",
2947
+ hasVision: true,
2948
+ price: { input: 24, output: 120, cachingRead: 2.4 },
2949
+ contextWindow: 256e3,
2950
+ supportsTool: true
2951
+ },
2952
+ {
2953
+ // 2026-11-04:minimax-m3 记录迁移到这里。Fireworks 真实 id 为 minimax-m3p1-flash
2954
+ name: "accounts/fireworks/models/minimax-m3p1-flash",
2955
+ displayName: "MiniMax: MiniMax M3.1 Flash",
2956
+ hasVision: true,
2957
+ price: { input: 0.6, output: 2.4, cachingRead: 0.06 },
2958
+ contextWindow: 512e3,
2959
+ supportsTool: true
2960
+ },
2942
2961
  {
2943
2962
  name: "accounts/fireworks/models/minimax-m3",
2944
2963
  displayName: "MiniMax: MiniMax M3",
@@ -0,0 +1,227 @@
1
+ import {
2
+ canonicalizeToolName
3
+ } from "./chunk-6OVNSQHN.js";
4
+
5
+ // packages/ai/tools/toolExecutionSemantics.ts
6
+ var UNKNOWN_TOOL_EXECUTION_CONTRACT = {
7
+ replay: "unknown",
8
+ sideEffects: "unknown",
9
+ locality: "unknown",
10
+ interaction: "unknown",
11
+ concurrency: "exclusive",
12
+ durableWebForeground: false
13
+ };
14
+ var serverPureRead = (durableWebForeground) => ({
15
+ replay: "pure",
16
+ sideEffects: "none",
17
+ locality: "server",
18
+ interaction: "none",
19
+ concurrency: "safe",
20
+ durableWebForeground
21
+ });
22
+ var serverExternalRead = (durableWebForeground) => ({
23
+ // Repeating the request should not mutate the target resource, but may spend
24
+ // provider quota/money and may observe newer remote state; it is not pure.
25
+ replay: "idempotent",
26
+ sideEffects: "observable",
27
+ locality: "server",
28
+ interaction: "none",
29
+ concurrency: "safe",
30
+ durableWebForeground
31
+ });
32
+ var serverConfirmedHandoffStep = () => ({
33
+ replay: "unsafe",
34
+ sideEffects: "observable",
35
+ locality: "server",
36
+ interaction: "handoff",
37
+ concurrency: "exclusive",
38
+ durableWebForeground: false
39
+ });
40
+ var TOOL_EXECUTION_CONTRACT = Object.freeze({
41
+ // Proven durable network reads. They execute on the server but touch external
42
+ // systems, so replay/cost semantics are intentionally not called "pure".
43
+ exa_search: serverExternalRead("read-only"),
44
+ fetchWebpage: serverExternalRead("read-only"),
45
+ // Proven durable server-hosted workspace reads/queries.
46
+ searchDialogMessages: serverPureRead("read-only"),
47
+ listDialogs: serverPureRead("read-only"),
48
+ readDialog: serverPureRead("read-only"),
49
+ queryDialogsBySubjectRef: serverPureRead("read-only"),
50
+ listAgents: serverPureRead("read-only"),
51
+ readAgent: serverPureRead("read-only"),
52
+ listSpaces: serverPureRead("read-only"),
53
+ readSpace: serverPureRead("read-only"),
54
+ readDoc: serverPureRead("read-only"),
55
+ readSkillDoc: serverPureRead("read-only"),
56
+ listTables: serverPureRead("read-only"),
57
+ queryTableRows: serverPureRead("read-only"),
58
+ list_cloud_resources: serverPureRead("read-only"),
59
+ cloud_probe: serverPureRead("read-only"),
60
+ // Audited execution against an owned cloud resource. Same class as execShell
61
+ // (arbitrary command, not replayable), except the executor itself runs on the
62
+ // server through the authorization/capability/audit gate. Never read-only.
63
+ cloud_exec: {
64
+ replay: "unsafe",
65
+ sideEffects: "mutation",
66
+ locality: "server",
67
+ interaction: "none",
68
+ concurrency: "exclusive",
69
+ durableWebForeground: false
70
+ },
71
+ // Read-only presentation payload. Actions remain inert; this adds no submit or
72
+ // open-app authority to server-owned projection.
73
+ show_interaction: {
74
+ replay: "pure",
75
+ sideEffects: "none",
76
+ locality: "server",
77
+ interaction: "none",
78
+ concurrency: "safe",
79
+ durableWebForeground: "read-only"
80
+ },
81
+ // Durable interactive boundary: the current execution ends and a later user
82
+ // choice starts a new execution. It is intentionally not modeled as a read.
83
+ ask_user: {
84
+ replay: "unsafe",
85
+ sideEffects: "observable",
86
+ locality: "server",
87
+ interaction: "blocking",
88
+ concurrency: "exclusive",
89
+ durableWebForeground: "interactive"
90
+ },
91
+ // Confirmed human hand-off boundary for the media step family. These tools
92
+ // do not start work needing authorization: they return
93
+ // `{ status: "requires_confirmation", ... }` and the run must stop and wait
94
+ // for the user. Registered explicitly (rather than inferred from any status)
95
+ // so a random tool echoing the same status never pauses the run, and kept out
96
+ // of the durable Web foreground plane on purpose (media ServerTool admission
97
+ // is owned elsewhere).
98
+ transcribe: serverConfirmedHandoffStep(),
99
+ translate: serverConfirmedHandoffStep(),
100
+ exportDocument: serverConfirmedHandoffStep(),
101
+ readArtifact: serverConfirmedHandoffStep(),
102
+ // Representative explicitly non-durable execution classes. These entries
103
+ // make the reason machine-readable; unlisted tools remain UNKNOWN.
104
+ execShell: {
105
+ replay: "unsafe",
106
+ sideEffects: "mutation",
107
+ locality: "workspace",
108
+ interaction: "none",
109
+ concurrency: "exclusive",
110
+ durableWebForeground: false
111
+ },
112
+ readFile: {
113
+ replay: "idempotent",
114
+ sideEffects: "none",
115
+ locality: "device",
116
+ interaction: "none",
117
+ concurrency: "safe",
118
+ durableWebForeground: false
119
+ },
120
+ globFiles: {
121
+ replay: "idempotent",
122
+ sideEffects: "none",
123
+ locality: "device",
124
+ interaction: "none",
125
+ concurrency: "safe",
126
+ durableWebForeground: false
127
+ },
128
+ createDoc: {
129
+ replay: "unsafe",
130
+ sideEffects: "mutation",
131
+ locality: "server",
132
+ interaction: "none",
133
+ concurrency: "exclusive",
134
+ durableWebForeground: false
135
+ },
136
+ updateDoc: {
137
+ replay: "unsafe",
138
+ sideEffects: "mutation",
139
+ locality: "server",
140
+ interaction: "none",
141
+ concurrency: "exclusive",
142
+ durableWebForeground: false
143
+ },
144
+ createHtmlArtifact: {
145
+ replay: "unsafe",
146
+ sideEffects: "mutation",
147
+ locality: "server",
148
+ interaction: "none",
149
+ concurrency: "exclusive",
150
+ durableWebForeground: "mutating"
151
+ },
152
+ readHtmlArtifact: serverPureRead("read-only"),
153
+ updateHtmlArtifact: {
154
+ replay: "unsafe",
155
+ sideEffects: "mutation",
156
+ locality: "server",
157
+ interaction: "none",
158
+ concurrency: "exclusive",
159
+ durableWebForeground: "mutating"
160
+ },
161
+ deleteDialogs: {
162
+ replay: "unsafe",
163
+ sideEffects: "mutation",
164
+ locality: "server",
165
+ interaction: "confirm",
166
+ concurrency: "exclusive",
167
+ durableWebForeground: false
168
+ },
169
+ loadSkill: {
170
+ replay: "unsafe",
171
+ sideEffects: "observable",
172
+ locality: "server",
173
+ interaction: "none",
174
+ concurrency: "exclusive",
175
+ durableWebForeground: false
176
+ }
177
+ });
178
+ function resolveToolExecutionContract(toolName) {
179
+ if (typeof toolName !== "string" || !toolName.trim()) {
180
+ return UNKNOWN_TOOL_EXECUTION_CONTRACT;
181
+ }
182
+ const canonicalName = canonicalizeToolName(toolName);
183
+ return TOOL_EXECUTION_CONTRACT[canonicalName] ?? UNKNOWN_TOOL_EXECUTION_CONTRACT;
184
+ }
185
+ function collectDurableWebToolNames(durableClass) {
186
+ return new Set(
187
+ Object.entries(TOOL_EXECUTION_CONTRACT).filter(([, contract]) => contract.durableWebForeground === durableClass).map(([name]) => name)
188
+ );
189
+ }
190
+ var DURABLE_WEB_FOREGROUND_READ_ONLY_TOOL_NAMES = collectDurableWebToolNames("read-only");
191
+ var DURABLE_WEB_FOREGROUND_INTERACTIVE_TOOL_NAMES = collectDurableWebToolNames("interactive");
192
+ var DURABLE_WEB_FOREGROUND_MUTATING_TOOL_NAMES = collectDurableWebToolNames("mutating");
193
+ var DURABLE_WEB_FOREGROUND_TOOL_NAMES = /* @__PURE__ */ new Set([
194
+ ...DURABLE_WEB_FOREGROUND_READ_ONLY_TOOL_NAMES,
195
+ ...DURABLE_WEB_FOREGROUND_INTERACTIVE_TOOL_NAMES,
196
+ ...DURABLE_WEB_FOREGROUND_MUTATING_TOOL_NAMES
197
+ ]);
198
+ var CONFIRMED_HANDOFF_TOOL_NAMES = new Set(
199
+ Object.entries(TOOL_EXECUTION_CONTRACT).filter(([, contract]) => contract.interaction === "handoff").map(([name]) => name)
200
+ );
201
+ function hasProvenServerReadOnlySemantics(toolName) {
202
+ const contract = resolveToolExecutionContract(toolName);
203
+ return contract.durableWebForeground === "read-only" && (contract.replay === "pure" || contract.replay === "idempotent") && (contract.sideEffects === "none" || contract.sideEffects === "observable") && contract.locality === "server" && contract.interaction === "none";
204
+ }
205
+ function hasProvenServerMutatingSemantics(toolName) {
206
+ const contract = resolveToolExecutionContract(toolName);
207
+ return contract.durableWebForeground === "mutating" && (contract.replay === "unsafe" || contract.replay === "deduplicated") && contract.sideEffects === "mutation" && contract.locality === "server" && contract.interaction === "none";
208
+ }
209
+ function hasProvenDurableWebForegroundSemantics(toolName) {
210
+ const contract = resolveToolExecutionContract(toolName);
211
+ if (contract.durableWebForeground === "read-only") {
212
+ return hasProvenServerReadOnlySemantics(toolName);
213
+ }
214
+ if (contract.durableWebForeground === "interactive") {
215
+ return contract.locality === "server" && contract.interaction === "blocking" && contract.sideEffects === "observable";
216
+ }
217
+ if (contract.durableWebForeground === "mutating") {
218
+ return hasProvenServerMutatingSemantics(toolName);
219
+ }
220
+ return false;
221
+ }
222
+
223
+ export {
224
+ resolveToolExecutionContract,
225
+ DURABLE_WEB_FOREGROUND_TOOL_NAMES,
226
+ hasProvenDurableWebForegroundSemantics
227
+ };
@@ -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";
@@ -1155,7 +1200,8 @@ function executeAgy(prompt, options) {
1155
1200
  const {
1156
1201
  timeout = DEFAULT_AGY_TIMEOUT_MS,
1157
1202
  cwd = process.cwd(),
1158
- yolo = true
1203
+ yolo = true,
1204
+ reasoningEffort
1159
1205
  } = options;
1160
1206
  return new Promise((resolve2, reject) => {
1161
1207
  const args = [
@@ -1163,10 +1209,13 @@ function executeAgy(prompt, options) {
1163
1209
  cwd,
1164
1210
  "--print",
1165
1211
  prompt,
1212
+ "--output-format",
1213
+ "json",
1166
1214
  "--print-timeout",
1167
1215
  formatCliTimeout(timeout)
1168
1216
  ];
1169
1217
  if (options.model) args.push("--model", options.model);
1218
+ if (reasoningEffort) args.push("--effort", mapAgyEffort(reasoningEffort));
1170
1219
  if (yolo) {
1171
1220
  args.push("--dangerously-skip-permissions");
1172
1221
  }
@@ -1224,10 +1273,12 @@ function executeAgy(prompt, options) {
1224
1273
  stderr: ${stderrText}`));
1225
1274
  return;
1226
1275
  }
1276
+ const parsed = parseAgyJsonResult(stdoutText);
1227
1277
  resolve2({
1228
- text: stdoutText.trim(),
1278
+ text: (parsed?.response ?? stdoutText).trim(),
1229
1279
  raw: stdoutText,
1230
- elapsed: Date.now() - start
1280
+ elapsed: Date.now() - start,
1281
+ ...parsed?.usage ? { usage: parsed.usage } : {}
1231
1282
  });
1232
1283
  });
1233
1284
  proc.on("error", (err) => {
@@ -1245,6 +1296,7 @@ function executeAgyStreaming(prompt, options) {
1245
1296
  timeout = DEFAULT_AGY_TIMEOUT_MS,
1246
1297
  yolo = true,
1247
1298
  model,
1299
+ reasoningEffort,
1248
1300
  onChunk
1249
1301
  } = options;
1250
1302
  return new Promise((resolve2, reject) => {
@@ -1258,6 +1310,7 @@ function executeAgyStreaming(prompt, options) {
1258
1310
  formatCliTimeout(timeout)
1259
1311
  ];
1260
1312
  if (model) args.push("--model", model);
1313
+ if (reasoningEffort) args.push("--effort", mapAgyEffort(reasoningEffort));
1261
1314
  if (yolo) args.push("--dangerously-skip-permissions");
1262
1315
  const start = Date.now();
1263
1316
  const proc = spawnCliProcess("agy", args, {
@@ -1271,6 +1324,7 @@ function executeAgyStreaming(prompt, options) {
1271
1324
  const stderr = createUtf8Collector();
1272
1325
  let pending = "";
1273
1326
  let answer = "";
1327
+ let agyUsage;
1274
1328
  let settled = false;
1275
1329
  let timer;
1276
1330
  let detachAbort = () => {
@@ -1303,6 +1357,9 @@ function executeAgyStreaming(prompt, options) {
1303
1357
  } catch {
1304
1358
  return;
1305
1359
  }
1360
+ const usageSource = event?.event === "result" ? event.result?.usage : event?.event === "step_update" ? event.step_update?.usage : void 0;
1361
+ const normalizedUsage = normalizeAgyUsage(usageSource);
1362
+ if (normalizedUsage) agyUsage = normalizedUsage;
1306
1363
  if (event?.event !== "step_update" || event.step_update?.step_type !== "agent_response" || typeof event.step_update.text_delta !== "string") return;
1307
1364
  const delta = event.step_update.text_delta;
1308
1365
  if (!delta) return;
@@ -1336,7 +1393,12 @@ function executeAgyStreaming(prompt, options) {
1336
1393
  stderr: ${stderrText}`)));
1337
1394
  return;
1338
1395
  }
1339
- finish(() => resolve2({ text: answer.trim(), raw, elapsed: Date.now() - start }));
1396
+ finish(() => resolve2({
1397
+ text: answer.trim(),
1398
+ raw,
1399
+ elapsed: Date.now() - start,
1400
+ ...agyUsage ? { usage: agyUsage } : {}
1401
+ }));
1340
1402
  });
1341
1403
  proc.on("error", (error) => fail(error));
1342
1404
  });