nolo-cli 0.226.0-alpha.1 → 0.226.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 (259) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-UE2NJPZD.js → _executeModel-IZ2MCXHO.js} +89 -83
  3. package/{action-CK64LS6S.js → action-VDEW6WLI.js} +9 -6
  4. package/{addContentAction-EQXMFNPR.js → addContentAction-7YVXHIPQ.js} +15 -14
  5. package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-BX7B47HF.js} +18 -17
  6. package/{agentDeleteCommand-SOI25WK7.js → agentDeleteCommand-N7ELXPLD.js} +145 -138
  7. package/{agentEmailCommands-UGWQQNKM.js → agentEmailCommands-OFS477PV.js} +144 -133
  8. package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
  9. package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
  10. package/agentListCommands-IQQHJSXP.js +644 -0
  11. package/{agentMachineCommands-M6IKO7XE.js → agentMachineCommands-NS65BEW7.js} +75 -66
  12. package/{agentProviderCommands-7BSJH7TO.js → agentProviderCommands-SS6M6VGY.js} +6 -6
  13. package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-QQQZSC6S.js} +6 -6
  14. package/agentRecordCommands-4VE7CNLC.js +188 -0
  15. package/agentRunCommand-2MUXHKNW.js +223 -0
  16. package/{agentRunControl-DFEEOFC7.js → agentRunControl-55GL6Q3M.js} +23 -15
  17. package/{agentRuntimeLocal-GSTYFEX4.js → agentRuntimeLocal-5DB2P4MU.js} +63 -49
  18. package/{agentSlice-7PTNWEED.js → agentSlice-5VTAFG43.js} +19 -18
  19. package/{appDeleteCommands-L7HL4AWF.js → appDeleteCommands-EDKUPHJM.js} +67 -58
  20. package/{appDeployCommands-SGSUNFZR.js → appDeployCommands-JO74GW4L.js} +67 -58
  21. package/{appDeployStatusCommands-AAA3XD54.js → appDeployStatusCommands-U77ZUHX7.js} +67 -58
  22. package/{appGetCommands-LN72GAOA.js → appGetCommands-QCMHBYPX.js} +67 -58
  23. package/{appListCommands-IJQQ3VND.js → appListCommands-ZQJYEXI6.js} +67 -58
  24. package/{authCommand-7JXW54U4.js → authCommand-W4KXRZLI.js} +33 -28
  25. package/{authCommands-YDNAIDEY.js → authCommands-6AUYO65N.js} +15 -10
  26. package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-GHE3RD3V.js} +8 -8
  27. package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
  28. package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-TBPM6MR4.js} +6 -6
  29. package/{chunk-7Z6EW7AH.js → chunk-247AAJRK.js} +13 -6
  30. package/{chunk-P2ZLUIW2.js → chunk-2BSLGODA.js} +350 -25
  31. package/{chunk-4HFTBHBF.js → chunk-2N4UBHUU.js} +8 -8
  32. package/chunk-2SXN7LAY.js +15 -0
  33. package/{chunk-GSAS72AN.js → chunk-2T5BHLID.js} +2871 -1565
  34. package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
  35. package/{chunk-VFBVA3U2.js → chunk-3OQFXODL.js} +131 -40
  36. package/{chunk-BGGHA5DV.js → chunk-3ORFJP2Z.js} +1 -1
  37. package/{chunk-OWH2BLNU.js → chunk-3UNAGTBW.js} +32 -95
  38. package/{chunk-LM2PS3YS.js → chunk-4F7SWSWO.js} +26 -13
  39. package/{chunk-SBVTHMEG.js → chunk-4FE3IWRE.js} +1 -1
  40. package/{chunk-GOAPXKQU.js → chunk-4UK6UBXF.js} +4 -4
  41. package/{chunk-4JVNURX4.js → chunk-4YFC3DWW.js} +68 -16
  42. package/chunk-4ZCTKB27.js +31 -0
  43. package/chunk-53W5BXLN.js +340 -0
  44. package/{chunk-TD6QCQ5G.js → chunk-5GRWWUB4.js} +4 -4
  45. package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
  46. package/{chunk-ZH6MUQEO.js → chunk-6326DRQY.js} +1 -1
  47. package/{chunk-AVHRSJUH.js → chunk-6MQWGA5F.js} +31 -24
  48. package/{chunk-67BE44IS.js → chunk-6MX6S6TE.js} +3 -3
  49. package/chunk-6RSNVJGO.js +279 -0
  50. package/{chunk-BRW24CTE.js → chunk-6S6CZUXK.js} +42 -33
  51. package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
  52. package/{chunk-CVS5IMJ5.js → chunk-6XLWUNZB.js} +25 -25
  53. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  54. package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
  55. package/{chunk-6J4TTPS2.js → chunk-7AWKDRXG.js} +5 -5
  56. package/{chunk-3KNEE64G.js → chunk-7GTXPS3D.js} +16 -16
  57. package/{chunk-FS3RA7D2.js → chunk-7HUHOCIY.js} +147 -162
  58. package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
  59. package/chunk-BEM6LPD2.js +734 -0
  60. package/{chunk-AGP3YSEC.js → chunk-BH7CEVOH.js} +46 -1
  61. package/chunk-BIDSIRTS.js +307 -0
  62. package/{chunk-VTW7VKZX.js → chunk-C4KX626C.js} +15 -15
  63. package/chunk-C5A54QS7.js +108 -0
  64. package/{chunk-4PMZVBDU.js → chunk-CHYYSFFM.js} +6 -6
  65. package/{chunk-VREDDN25.js → chunk-CJTB3OYB.js} +14 -9
  66. package/{chunk-YFLVRVYK.js → chunk-DLT2DN4M.js} +1 -1
  67. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  68. package/{chunk-EOWLBDY6.js → chunk-DOK7GDRU.js} +1 -1
  69. package/{chunk-5NC6A2RZ.js → chunk-DPAIQLAL.js} +105 -102
  70. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  71. package/{chunk-XN23AUVU.js → chunk-EKXPHL7M.js} +8 -5
  72. package/{chunk-DISQCYPE.js → chunk-ENYTIRIO.js} +6 -6
  73. package/{chunk-2TIQO6TC.js → chunk-ER3P6MBT.js} +206 -308
  74. package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
  75. package/{chunk-JM5C4EUA.js → chunk-F4MCAOWN.js} +6 -6
  76. package/chunk-FDZ2GBWO.js +166 -0
  77. package/{chunk-PMDVQBGA.js → chunk-GAHJLSDO.js} +14 -7
  78. package/{chunk-N5PQJKCY.js → chunk-GES5GIAU.js} +14 -13
  79. package/{chunk-HYHIAM6T.js → chunk-HQVNO7FH.js} +66 -35
  80. package/chunk-HSWEFHFS.js +103 -0
  81. package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
  82. package/{chunk-F7DU25CE.js → chunk-IIG3TT73.js} +460 -123
  83. package/{chunk-AK5O76CC.js → chunk-IZJFTY4R.js} +3 -3
  84. package/{chunk-2VA6TU4I.js → chunk-J25ESVUW.js} +22 -19
  85. package/{chunk-TUIWP2LF.js → chunk-J2XZZXIH.js} +4 -4
  86. package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
  87. package/{chunk-D726I5AZ.js → chunk-JVJ53XCH.js} +2 -2
  88. package/{chunk-TXGQ4O5S.js → chunk-KC2QVCI7.js} +20 -174
  89. package/{chunk-UKS7D2NL.js → chunk-KF2DWSAH.js} +113 -28
  90. package/chunk-KK3FCYZM.js +647 -0
  91. package/{chunk-ZZ4M2I3R.js → chunk-KLD7K5FD.js} +349 -16
  92. package/{chunk-JIADJPUV.js → chunk-KMW5CRRM.js} +1564 -2955
  93. package/{chunk-N5Z2V73W.js → chunk-LELADM5Q.js} +1 -1
  94. package/{chunk-4NA3YTBC.js → chunk-LMFMV5UC.js} +8 -8
  95. package/{chunk-KZU52OJ5.js → chunk-LZOOUQAZ.js} +6 -6
  96. package/{chunk-VV7TXWOC.js → chunk-M5EA44QU.js} +6 -6
  97. package/{chunk-UYOICCYG.js → chunk-MEDPR36J.js} +64 -89
  98. package/chunk-MFXJY44K.js +133 -0
  99. package/chunk-MVOZ22RZ.js +26 -0
  100. package/{chunk-3QFLXA24.js → chunk-N6EN3HK3.js} +3 -3
  101. package/{chunk-SOF4OWDM.js → chunk-NEG5LYK5.js} +1 -3
  102. package/{chunk-HJAO2NAL.js → chunk-ODGSLWLO.js} +593 -370
  103. package/{chunk-OB6DVWPF.js → chunk-OGZE6BZG.js} +331 -99
  104. package/{chunk-KYH7XW3K.js → chunk-OJRTTERA.js} +77 -2
  105. package/{chunk-2VUZSVAS.js → chunk-OKPC4QNX.js} +57 -20
  106. package/{chunk-SOG7OEXX.js → chunk-ONFFUQYM.js} +1 -1
  107. package/{chunk-KNIIRXHF.js → chunk-P244EH4W.js} +46 -8
  108. package/chunk-P27E22MA.js +203 -0
  109. package/{chunk-YDBMZ7FV.js → chunk-PK7VT4ZU.js} +3 -3
  110. package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
  111. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  112. package/{chunk-5RKUPJYL.js → chunk-QLUYDJST.js} +11 -3
  113. package/{chunk-EVPIBQ5I.js → chunk-QUJKDFZW.js} +17 -17
  114. package/{chunk-C4VAR65S.js → chunk-QXUVCIPB.js} +204 -124
  115. package/{chunk-X4OVEYPX.js → chunk-QYNABNNQ.js} +13 -13
  116. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  117. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  118. package/{chunk-KC4SCKXO.js → chunk-RGUWOMXU.js} +1234 -1451
  119. package/{chunk-IZIN2UNJ.js → chunk-RH44TIHX.js} +206 -27
  120. package/{chunk-GNHMRBYZ.js → chunk-RIMFTQMC.js} +282 -58
  121. package/{chunk-VQUWV3YR.js → chunk-S25VJYXV.js} +9 -3
  122. package/{chunk-X7YC2OHB.js → chunk-SBRJOYND.js} +723 -355
  123. package/{chunk-UEKXWO7A.js → chunk-SBRSXY67.js} +18 -7
  124. package/chunk-SR4FE5VD.js +9 -0
  125. package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
  126. package/chunk-T3WSFTBS.js +62 -0
  127. package/{chunk-KEN3N2TN.js → chunk-TB5KTLNB.js} +15 -12
  128. package/{chunk-VP3BINY7.js → chunk-TOK555CQ.js} +31 -1
  129. package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
  130. package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
  131. package/{chunk-GGKNJ42M.js → chunk-UDT4SI37.js} +18 -108
  132. package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
  133. package/{chunk-GVGOEMNV.js → chunk-UQXOORR3.js} +5 -5
  134. package/{chunk-GS4OTYCH.js → chunk-UR7555FE.js} +9 -9
  135. package/{chunk-QLFCTYRH.js → chunk-UWOCASVL.js} +20 -13
  136. package/{chunk-C4WTX5TU.js → chunk-V2V5Q6DU.js} +2 -2
  137. package/{chunk-2ZKFCIJJ.js → chunk-VCU5GV42.js} +1 -1
  138. package/{chunk-FTQWYWUI.js → chunk-VMWY7TUA.js} +1 -1
  139. package/chunk-VNALJT32.js +33394 -0
  140. package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
  141. package/chunk-WBSJAIZP.js +170 -0
  142. package/chunk-WDWZPASX.js +29 -0
  143. package/chunk-WFGNWWJI.js +326 -0
  144. package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
  145. package/chunk-WVOZ35E4.js +1438 -0
  146. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  147. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  148. package/{chunk-GIABSSWQ.js → chunk-XDNXKFWF.js} +6 -6
  149. package/{chunk-GBZ4YKEO.js → chunk-XLN2GD6Z.js} +7 -7
  150. package/{chunk-45LZIYXB.js → chunk-XNEDFWT4.js} +2 -2
  151. package/{chunk-EWPDMS4N.js → chunk-Y22P6ASC.js} +32 -17
  152. package/{chunk-LJSNEV7M.js → chunk-Y3DOUQQQ.js} +8 -8
  153. package/{chunk-KOXKKHFE.js → chunk-Y5EBOURK.js} +10 -5
  154. package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
  155. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  156. package/{chunk-PVZY6P3S.js → chunk-YTEY27GN.js} +2 -2
  157. package/chunk-YUZ2DAIH.js +34 -0
  158. package/chunk-Z6YTCDU4.js +24 -0
  159. package/{chunk-MOMR7NMG.js → chunk-ZCVBIIUE.js} +4 -4
  160. package/{chunk-AZQZ5XPM.js → chunk-ZCZLTJEW.js} +98 -57
  161. package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
  162. package/{cliAgentConfigHelpers-KICKKNYQ.js → cliAgentConfigHelpers-6OFDHJFT.js} +13 -13
  163. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
  164. package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
  165. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  166. package/cliLocalAgentRecordReader-FHIMCBUK.js +102 -0
  167. package/{commandRegistry-XSMTI5PG.js → commandRegistry-OKIWAJIS.js} +113 -101
  168. package/{contentThunks-S4NNC7R2.js → contentThunks-VF2DCU46.js} +41 -38
  169. package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-QL6DWGVU.js} +4 -4
  170. package/{createAgentAutomationAction-TH7ZEACJ.js → createAgentAutomationAction-BGET7Q6K.js} +41 -38
  171. package/{createDialogAction-SYZAYIIQ.js → createDialogAction-XYDQZETK.js} +42 -40
  172. package/{createPageAction-7Y4U6TXO.js → createPageAction-74S5RO7U.js} +46 -43
  173. package/{db-CS4ZJQKV.js → db-6NRZLEW2.js} +10 -7
  174. package/{dbSlice-ZJPDIFER.js → dbSlice-FI7VNDR5.js} +14 -13
  175. package/{deleteFile-Q3YDB4ML.js → deleteFile-GD62MPZW.js} +10 -7
  176. package/{dialogCommands-V5IYEOQP.js → dialogCommands-Y6DHZUAM.js} +71 -64
  177. package/dialogMessageRecord-OAV77LT7.js +7 -0
  178. package/{dialogNotifyCommand-77B57PL6.js → dialogNotifyCommand-MKXL4NGL.js} +15 -15
  179. package/{dialogSlice-O3RHDAWK.js → dialogSlice-XAUKSWZ4.js} +41 -38
  180. package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-BZPKR3DW.js} +6 -6
  181. package/{docCreateCommands-36WS33BK.js → docCreateCommands-PHDFOQBM.js} +66 -57
  182. package/{docDeleteCommands-C4CS4XLF.js → docDeleteCommands-OSHJM67Y.js} +69 -60
  183. package/{docReadCommands-QZMSFMPN.js → docReadCommands-E6QYCFMS.js} +66 -57
  184. package/{docStore-PYNEODAH.js → docStore-ZZT2BEBU.js} +16 -15
  185. package/{docUpdateCommands-BYI64HVV.js → docUpdateCommands-DHIOPK2C.js} +66 -57
  186. package/fetchMessages-TQEUZD7H.js +2 -2
  187. package/{getPricing-VNGFM4PN.js → getPricing-RNRITFOP.js} +6 -6
  188. package/{handleSendMessageAction-Z43FP2E2.js → handleSendMessageAction-ARUU6CNF.js} +83 -78
  189. package/{hostCredentialCreate-Y7YIGKP4.js → hostCredentialCreate-SNQT73H4.js} +131 -119
  190. package/index.js +56 -18
  191. package/keys-RWF7UCB4.js +1 -1
  192. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  193. package/{localDialogRead-SVTPA5GY.js → localDialogRead-3T2KMCRC.js} +1 -1
  194. package/{localRuntimeAdapter-ZLJONQZS.js → localRuntimeAdapter-MHI6Y2IZ.js} +143 -130
  195. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-7DKIT7UH.js} +4 -2
  196. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
  197. package/{machineCommands-4ZLMRIA3.js → machineCommands-3O6Y27R4.js} +283 -348
  198. package/machineWsRunDispatch-5PFLR5XC.js +203 -0
  199. package/markdownToSlate-KIYM7B3P.js +8 -0
  200. package/mcpLocalAuthorizeCommand-BQCQ2KRJ.js +106 -0
  201. package/{memberThunks-JRYNONYV.js → memberThunks-TU6A6OBV.js} +24 -19
  202. package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
  203. package/{models-H5NNZRLH.js → models-CINY5UZR.js} +2 -2
  204. package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
  205. package/package.json +1 -1
  206. package/{projectArchive-JBX6HNK6.js → projectArchive-X2EVXU3N.js} +47 -44
  207. package/{providerPresetApply-J3WMRPD2.js → providerPresetApply-HUWNV2NI.js} +7 -7
  208. package/{providerRegistry-KJGB5XWS.js → providerRegistry-7FWKDKZJ.js} +7 -7
  209. package/{read-Q7GOHGNP.js → read-QAHEQID5.js} +9 -8
  210. package/{readDocTool-Z5OQ6422.js → readDocTool-KG5DP6EM.js} +1 -1
  211. package/{readlineWorkspace-WFPIAAAT.js → readlineWorkspace-SO3APHVP.js} +8125 -6196
  212. package/rememberExplicit-CPAPONSI.js +15 -0
  213. package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-QZCCVK2G.js} +20 -19
  214. package/{runAgentClientLoop-STI5TKDJ.js → runAgentClientLoop-FLHHCOVH.js} +106 -81
  215. package/{runtimeDoctorCommands-UXKXYBW6.js → runtimeDoctorCommands-DN3I52C6.js} +17 -17
  216. package/{secretCommands-LJXOOYA7.js → secretCommands-36BCE3UE.js} +4 -4
  217. package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-PDPTYSEW.js} +17 -16
  218. package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-DOUIPR66.js} +20 -19
  219. package/{settingThunks-AXTBX3Q5.js → settingThunks-MHGGP6UE.js} +186 -67
  220. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
  221. package/{spaceCommands-GUKMDRWN.js → spaceCommands-JH7UYE3K.js} +70 -61
  222. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  223. package/{streamAgentChatTurn-A2WL5OOF.js → streamAgentChatTurn-VDDA2TX6.js} +200 -195
  224. package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-7USK3DAP.js} +18 -17
  225. package/{tableCommands-HITDSLHS.js → tableCommands-UONBFC7L.js} +15 -12
  226. package/{toolApiClient-OGQEBQVX.js → toolApiClient-53YMJ2G6.js} +8 -6
  227. package/{tools-6NU5E6BN.js → tools-MIOCXKMG.js} +72 -68
  228. package/tuiRestart-ET3QISZ5.js +41 -0
  229. package/{tuiSummaryLlmCaller-7WLUKNP2.js → tuiSummaryLlmCaller-MSINBP3M.js} +21 -20
  230. package/{updateCommands-RJVCRSBP.js → updateCommands-5OYND6EF.js} +8 -6
  231. package/{updateDialogTitleAction-VMKU2Y67.js → updateDialogTitleAction-2L4CC4YO.js} +43 -40
  232. package/{usageCommand-YPJ2ZI2F.js → usageCommand-JTKDAG6I.js} +3 -3
  233. package/{usageRebuildCommand-FERQO74C.js → usageRebuildCommand-4TFZCKXM.js} +4 -4
  234. package/webapi-24RZDIIQ.js +2488 -0
  235. package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-HIYNL3VR.js} +2 -2
  236. package/workContext-Y3ADAPZU.js +14 -0
  237. package/workContextAccess-UZHDLBUR.js +11 -0
  238. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  239. package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-ZCSQCHG3.js} +9 -9
  240. package/agentListCommands-YBNOQ5T3.js +0 -991
  241. package/agentRecordCommands-3HL7Z4X6.js +0 -177
  242. package/agentRunCommand-C64A6MPL.js +0 -208
  243. package/chunk-2THCNKE4.js +0 -147
  244. package/chunk-2WZXXAQD.js +0 -57
  245. package/chunk-5ZMIIR23.js +0 -265
  246. package/chunk-652XYZGP.js +0 -352
  247. package/chunk-BJF2MHJ3.js +0 -118
  248. package/chunk-KEPOVMF4.js +0 -91
  249. package/chunk-QVBXJNZ2.js +0 -81
  250. package/chunk-QZI44GWV.js +0 -776
  251. package/cliLocalAgentRecordReader-6FXGFBI3.js +0 -90
  252. package/machineWsRunDispatch-L7Z3ULDF.js +0 -192
  253. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
  254. package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
  255. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  256. package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
  257. package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
  258. package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
  259. package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
@@ -14,6 +14,16 @@ var authRoutes = {
14
14
  method: "POST",
15
15
  createPath: () => `${API_VERSION}/users/signup`
16
16
  },
17
+ google: {
18
+ start: { path: `${API_VERSION}/users/google/start`, method: "POST", createPath: () => `${API_VERSION}/users/google/start` },
19
+ callback: { path: `${API_VERSION}/users/google/callback`, method: "GET", createPath: () => `${API_VERSION}/users/google/callback` },
20
+ complete: { path: `${API_VERSION}/users/google/complete`, method: "POST", createPath: () => `${API_VERSION}/users/google/complete` },
21
+ bindConfirm: { path: `${API_VERSION}/users/google/bind/confirm`, method: "POST", createPath: () => `${API_VERSION}/users/google/bind/confirm` },
22
+ binding: { path: `${API_VERSION}/users/google/binding`, method: "GET", createPath: () => `${API_VERSION}/users/google/binding` },
23
+ sessionLogout: { path: `${API_VERSION}/users/google/session/logout`, method: "POST", createPath: () => `${API_VERSION}/users/google/session/logout` },
24
+ sessionRevokeStart: { path: `${API_VERSION}/users/google/session-revoke/start`, method: "POST", createPath: () => `${API_VERSION}/users/google/session-revoke/start` },
25
+ sessionRevokeConfirm: { path: `${API_VERSION}/users/google/session-revoke/confirm`, method: "POST", createPath: () => `${API_VERSION}/users/google/session-revoke/confirm` }
26
+ },
17
27
  users: {
18
28
  cliLoginStart: {
19
29
  path: `${API_VERSION}/users/cli-login/start`,
@@ -7,24 +7,24 @@ import {
7
7
  hadToolImages,
8
8
  projectOpenAiToolImages,
9
9
  toolImages
10
- } from "./chunk-E2BESSAW.js";
10
+ } from "./chunk-X4O7FJF5.js";
11
11
  import {
12
12
  getModelContextWindow
13
- } from "./chunk-IZIN2UNJ.js";
13
+ } from "./chunk-RH44TIHX.js";
14
14
  import {
15
15
  isRecord
16
16
  } from "./chunk-KUG52IAP.js";
17
+ import {
18
+ asOptionalTrimmedString
19
+ } from "./chunk-G3SUCT4W.js";
17
20
  import {
18
21
  PLATFORM_HOSTED_KIMI_K3_MODEL,
19
22
  isFireworksKimiModel,
20
23
  isNoloHostedProvider
21
- } from "./chunk-OBSEKCVK.js";
24
+ } from "./chunk-U4VSBDO5.js";
22
25
  import {
23
26
  asTrimmedLowercaseString
24
27
  } from "./chunk-QSJ3HFEF.js";
25
- import {
26
- asOptionalTrimmedString
27
- } from "./chunk-G3SUCT4W.js";
28
28
 
29
29
  // packages/integrations/openai/responsesHelpers.ts
30
30
  var RESPONSES_TOP_LEVEL_SCHEMA_KEYS = ["anyOf", "oneOf", "allOf", "enum", "not"];
@@ -0,0 +1,166 @@
1
+ // packages/agent-runtime/mcpConnectionSpecs.ts
2
+ var MCP_TOOL_NAMES = Object.freeze(["listMcpConnections", "listMcpTools", "callMcpTool"]);
3
+ var MCP_PRESET_SPECS = Object.freeze([
4
+ Object.freeze({
5
+ id: "zoho-mail",
6
+ title: "Zoho Mail MCP",
7
+ summary: "\u63A5\u5165 Zoho \u5B98\u65B9\u4E3A\u4F60\u8D26\u53F7\u751F\u6210\u7684\u4E13\u5C5E MCP HTTPS \u670D\u52A1\u5730\u5740\uFF0C\u5728\u53D7\u63A7\u5DE5\u5177\u767D\u540D\u5355\u4E0E\u786E\u8BA4\u95E8\u4E0B\u8BFB\u53D6\u6216\u68C0\u7D22\u90AE\u4EF6\u3002",
8
+ defaultAuthKind: "none",
9
+ endpointPlaceholder: "https://mail.zoho.com/mcp/...",
10
+ note: "Zoho \u751F\u6210\u7684\u4E13\u5C5E Server URL \u5185\u542B\u8BBF\u95EE\u5BC6\u94A5\uFF0C\u4FDD\u5B58\u65F6\u5C06\u76F4\u63A5\u52A0\u5BC6\u5B58\u5165\u53D7\u63A7\u5BC6\u6587\u5E93\uFF0C\u4E0D\u4F1A\u4EE5\u660E\u6587\u56DE\u663E\u3002"
11
+ }),
12
+ Object.freeze({
13
+ id: "home-assistant",
14
+ title: "Home Assistant MCP",
15
+ summary: "\u63A5\u5165\u516C\u7F51 HTTPS \u53EF\u8FBE\u7684 Home Assistant \u5B98\u65B9 MCP Server\uFF08\u5982 /api/mcp\uFF09\uFF0C\u7ECF\u6BCF\u6B21\u8C03\u7528\u786E\u8BA4\u540E\u67E5\u770B\u6216\u63A7\u5236\u5B9E\u4F53\u3002",
16
+ defaultAuthKind: "bearer",
17
+ endpointPlaceholder: "https://ha.example.com/api/mcp",
18
+ note: "\u670D\u52A1\u7AEF\u8FDE\u63A5\u4EC5\u8BBF\u95EE\u516C\u7F51 HTTPS\uFF08\u81EA\u52A8\u62E6\u622A\u5185\u7F51/\u79C1\u7F51\u5730\u5740\uFF09\uFF0C\u9700\u63D0\u4F9B\u957F\u671F\u8BBF\u95EE\u4EE4\u724C\uFF08Bearer Token\uFF09\u3002"
19
+ })
20
+ ]);
21
+ var failure = (code) => ({ ok: false, error: { code } });
22
+ function sameMcpPlacement(a, b) {
23
+ return a.kind === b.kind && (a.kind !== "machine" || b.kind === "machine" && a.machineId === b.machineId);
24
+ }
25
+ function freezeSchema(value) {
26
+ for (const child of Object.values(value)) if (child && typeof child === "object") freezeSchema(child);
27
+ return Object.freeze(value);
28
+ }
29
+ var text = (maxLength) => ({ type: "string", minLength: 1, maxLength, pattern: "^[^\\u0000-\\u001f\\u007f]+$" });
30
+ var idSchema = { ...text(128), pattern: "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$" };
31
+ var refSchema = { ...text(128), pattern: "^[A-Za-z0-9][A-Za-z0-9_:-]{0,127}$" };
32
+ var revisionSchema = { type: "integer", minimum: 1, maximum: Number.MAX_SAFE_INTEGER };
33
+ var objectSchema = (properties, required = Object.keys(properties)) => ({ type: "object", properties, required, additionalProperties: false });
34
+ var placements = {
35
+ oneOf: [
36
+ { type: "object", required: ["kind"], properties: { kind: { const: "local" } }, additionalProperties: false },
37
+ { type: "object", required: ["kind"], properties: { kind: { const: "server" } }, additionalProperties: false },
38
+ { type: "object", required: ["kind", "machineId"], properties: { kind: { const: "machine" }, machineId: idSchema }, additionalProperties: false }
39
+ ]
40
+ };
41
+ var MCP_CONNECTION_WRITE_SCHEMA = {
42
+ type: "object",
43
+ required: ["schemaVersion", "label", "enabled", "placement", "transport", "auth", "allowedToolNames", "readPolicies"],
44
+ properties: {
45
+ schemaVersion: { const: 1 },
46
+ label: { type: "string", minLength: 1, maxLength: 160, pattern: "^[^:/\\\\\\r\\n]+$" },
47
+ enabled: { type: "boolean" },
48
+ presetId: { enum: ["zoho-mail", "home-assistant"] },
49
+ placement: placements,
50
+ allowedToolNames: { type: "array", maxItems: 256, items: text(160) },
51
+ readPolicies: { type: "array", maxItems: 256, items: { type: "object", required: ["toolName", "arguments"], properties: { toolName: text(160), arguments: { type: "object", maxProperties: 128, additionalProperties: { type: "array", maxItems: 256 } } }, additionalProperties: false } },
52
+ transport: { type: "object", required: ["kind", "endpointRef"], properties: { kind: { const: "streamable-http" }, endpointRef: refSchema }, additionalProperties: false },
53
+ auth: { oneOf: [{ type: "object", required: ["kind"], properties: { kind: { const: "oauth" } }, additionalProperties: false }, { type: "object", required: ["kind"], properties: { kind: { const: "none" } }, additionalProperties: false }, { type: "object", required: ["kind", "credentialRef"], properties: { kind: { const: "bearer" }, credentialRef: refSchema }, additionalProperties: false }] }
54
+ },
55
+ additionalProperties: false
56
+ };
57
+ var MCP_CONNECTION_UPDATE_SCHEMA = freezeSchema(objectSchema({
58
+ connectionId: idSchema,
59
+ expectedRevision: revisionSchema,
60
+ connection: MCP_CONNECTION_WRITE_SCHEMA
61
+ }));
62
+ var MCP_LIST_TOOLS_INPUT_SCHEMA = freezeSchema(objectSchema({
63
+ connectionId: idSchema,
64
+ expectedRevision: revisionSchema,
65
+ cursor: text(2048)
66
+ }, ["connectionId", "expectedRevision"]));
67
+ var MCP_CALL_TOOL_INPUT_SCHEMA = freezeSchema(objectSchema({
68
+ connectionId: idSchema,
69
+ expectedRevision: revisionSchema,
70
+ catalogRevision: idSchema,
71
+ toolName: text(256),
72
+ arguments: { type: "object", additionalProperties: {} }
73
+ }));
74
+ function isRecord(value) {
75
+ if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
76
+ return Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null;
77
+ }
78
+ function matches(schema, value) {
79
+ if (schema.oneOf && schema.oneOf.filter((branch) => matches(branch, value)).length !== 1) return false;
80
+ if (schema.const !== void 0 && value !== schema.const) return false;
81
+ if (schema.enum && (typeof value !== "string" || !schema.enum.includes(value))) return false;
82
+ switch (schema.type) {
83
+ case "string":
84
+ return typeof value === "string" && value.length >= (schema.minLength ?? 0) && value.length <= (schema.maxLength ?? Infinity) && (!schema.pattern || new RegExp(schema.pattern, "u").test(value));
85
+ case "integer":
86
+ return typeof value === "number" && Number.isSafeInteger(value) && value >= (schema.minimum ?? -Infinity) && value <= (schema.maximum ?? Infinity);
87
+ case "boolean":
88
+ return typeof value === "boolean";
89
+ case "array":
90
+ return Array.isArray(value) && value.length <= (schema.maxItems ?? Infinity) && value.every((item) => !schema.items || matches(schema.items, item));
91
+ case "object": {
92
+ if (!isRecord(value) || Object.keys(value).length > (schema.maxProperties ?? Infinity)) return false;
93
+ if (schema.required?.some((key) => !Object.hasOwn(value, key))) return false;
94
+ return Object.entries(value).every(([key, entry]) => {
95
+ if (schema.propertyNames && !matches(schema.propertyNames, key)) return false;
96
+ const property = schema.properties && Object.hasOwn(schema.properties, key) ? schema.properties[key] : schema.additionalProperties;
97
+ return property === void 0 || property === false ? property !== false : matches(property, entry);
98
+ });
99
+ }
100
+ default:
101
+ return true;
102
+ }
103
+ }
104
+ function isBoundedJson(value, depth = 0, budget = { nodes: 0, chars: 0 }) {
105
+ if (++budget.nodes > 1e4 || depth > 32) return false;
106
+ if (typeof value === "string") return (budget.chars += value.length) <= 262144;
107
+ if (value === null || typeof value === "boolean") return true;
108
+ if (typeof value === "number") return Number.isFinite(value);
109
+ if (!Array.isArray(value) && !isRecord(value)) return false;
110
+ return Object.entries(Object.getOwnPropertyDescriptors(value)).every(([key, descriptor]) => {
111
+ if (Array.isArray(value) && key === "length") return true;
112
+ if (["__proto__", "prototype", "constructor"].includes(key) || !Object.hasOwn(descriptor, "value")) return false;
113
+ budget.chars += key.length;
114
+ return budget.chars <= 262144 && isBoundedJson(descriptor.value, depth + 1, budget);
115
+ });
116
+ }
117
+ function parse(schema, value) {
118
+ if (!isBoundedJson(value) || !matches(schema, value)) return failure("invalid_input");
119
+ return { ok: true, value: JSON.parse(JSON.stringify(value)) };
120
+ }
121
+ function parseMcpConnectionWrite(value) {
122
+ const parsed = parse(MCP_CONNECTION_WRITE_SCHEMA, value);
123
+ if (!parsed.ok) {
124
+ if (isRecord(value) && Object.getOwnPropertyDescriptor(value, "schemaVersion")?.value !== void 0 && Object.getOwnPropertyDescriptor(value, "schemaVersion")?.value !== 1) return failure("unsupported_version");
125
+ return parsed;
126
+ }
127
+ const connection = parsed.value;
128
+ if (new Set(connection.allowedToolNames).size !== connection.allowedToolNames.length || new Set(connection.readPolicies.map((p) => p.toolName)).size !== connection.readPolicies.length || connection.readPolicies.some((p) => !connection.allowedToolNames.includes(p.toolName))) return failure("invalid_input");
129
+ return parsed;
130
+ }
131
+ function parseMcpListToolsInput(value) {
132
+ return parse(MCP_LIST_TOOLS_INPUT_SCHEMA, value);
133
+ }
134
+ function parseMcpCallToolInput(value) {
135
+ return parse(MCP_CALL_TOOL_INPUT_SCHEMA, value);
136
+ }
137
+ var MCP_LIST_CONNECTIONS_INPUT_SCHEMA = freezeSchema(objectSchema({}, []));
138
+ function toMcpConnectionSummary(connection) {
139
+ return {
140
+ schemaVersion: 1,
141
+ id: connection.id,
142
+ label: connection.label,
143
+ enabled: connection.enabled,
144
+ revision: connection.revision,
145
+ ...connection.presetId ? { presetId: connection.presetId } : {},
146
+ allowedToolNames: [...connection.allowedToolNames],
147
+ readPolicies: structuredClone(connection.readPolicies),
148
+ placement: connection.placement.kind === "machine" ? { kind: "machine", machineId: connection.placement.machineId } : { kind: connection.placement.kind },
149
+ transportKind: connection.transport.kind,
150
+ authKind: connection.auth.kind,
151
+ endpointConfigured: true,
152
+ credentialConfigured: connection.auth.kind === "bearer"
153
+ };
154
+ }
155
+
156
+ export {
157
+ MCP_TOOL_NAMES,
158
+ sameMcpPlacement,
159
+ MCP_LIST_TOOLS_INPUT_SCHEMA,
160
+ MCP_CALL_TOOL_INPUT_SCHEMA,
161
+ parseMcpConnectionWrite,
162
+ parseMcpListToolsInput,
163
+ parseMcpCallToolInput,
164
+ MCP_LIST_CONNECTIONS_INPUT_SCHEMA,
165
+ toMcpConnectionSummary
166
+ };
@@ -1,13 +1,16 @@
1
- import {
2
- loadMemoryVNextCatalog
3
- } from "./chunk-XI2BWJM5.js";
4
1
  import {
5
2
  recallMemoryVNextLocal
6
3
  } from "./chunk-4D4QD7FT.js";
7
4
  import {
8
5
  DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET,
9
6
  buildMemoryOverlay
10
- } from "./chunk-EUCFKKDM.js";
7
+ } from "./chunk-PVFYPUIM.js";
8
+ import {
9
+ isWorkContextState
10
+ } from "./chunk-C5A54QS7.js";
11
+ import {
12
+ loadMemoryVNextCatalog
13
+ } from "./chunk-324FWHUA.js";
11
14
  import {
12
15
  createMemoryKey
13
16
  } from "./chunk-SYTHYBMI.js";
@@ -56,7 +59,7 @@ var buildSynthesizedStateItem = (state, entity, ownerType, ownerId) => ({
56
59
  async function resolvePureVNextRuntime(input) {
57
60
  const { db, owners, userInput } = input;
58
61
  if (owners.length === 0 || !userInput.trim()) {
59
- return { selectedItems: [], promptBlock: null, recalledStateCount: 0 };
62
+ return { selectedItems: [], promptBlock: buildMemoryOverlay([], { injectionEmit: input.injectionEmit }), recalledStateCount: 0 };
60
63
  }
61
64
  const ownerIds = owners.map((o) => `${o.ownerType}:${encodeURIComponent(o.ownerId)}`);
62
65
  const catalogs = await Promise.all(
@@ -67,7 +70,9 @@ async function resolvePureVNextRuntime(input) {
67
70
  for (let i = 0; i < owners.length; i++) {
68
71
  const owner = owners[i];
69
72
  const catalog = catalogs[i];
70
- const currentStates = catalog.states.filter((s) => !s.retiredAt && s.text.trim());
73
+ const currentStates = catalog.states.filter(
74
+ (s) => !s.retiredAt && s.text.trim() && !isWorkContextState(s)
75
+ );
71
76
  const hits = recallMemoryVNextLocal({
72
77
  query: userInput,
73
78
  entities: catalog.entities,
@@ -83,7 +88,9 @@ async function resolvePureVNextRuntime(input) {
83
88
  );
84
89
  }
85
90
  }
86
- const promptBlock = selectedItems.length === 0 ? null : buildMemoryOverlay(selectedItems, {
91
+ const promptBlock = buildMemoryOverlay(selectedItems, {
92
+ sources: new Map(selectedItems.map((item) => [item, "vnext"])),
93
+ injectionEmit: input.injectionEmit,
87
94
  maxTokens: input.maxTokens ?? DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET
88
95
  });
89
96
  return {
@@ -1,27 +1,28 @@
1
- import {
2
- buildLocalAgentLookupKeys
3
- } from "./chunk-2ZKFCIJJ.js";
4
- import {
5
- LOCAL_CODEX_AGENT_ID,
6
- LOCAL_CODEX_AGENT_KEY
7
- } from "./chunk-BR3GT6MR.js";
8
1
  import {
9
2
  applyPublicAgentCatalogOverride
10
- } from "./chunk-GOAPXKQU.js";
3
+ } from "./chunk-4UK6UBXF.js";
11
4
  import {
12
5
  applyBuiltinAgentRuntimeOverride,
13
6
  resolveBuiltinPlatformAgentConfig
14
- } from "./chunk-JVRQ6YVK.js";
7
+ } from "./chunk-JBWXPACD.js";
15
8
  import {
16
- localDialogMessageRecordToRuntimeMessage
17
- } from "./chunk-KC4SCKXO.js";
9
+ buildLocalAgentLookupKeys
10
+ } from "./chunk-VCU5GV42.js";
11
+ import {
12
+ localDialogMessageRecordToRuntimeMessage,
13
+ orderDialogHistory
14
+ } from "./chunk-RGUWOMXU.js";
18
15
  import {
19
16
  resolveAgentRuntimeConfigFromRecord
20
- } from "./chunk-UEKXWO7A.js";
17
+ } from "./chunk-SBRSXY67.js";
21
18
  import {
22
19
  dialogMessagePrefix,
23
20
  dialogMessageRange
24
21
  } from "./chunk-OJKUU3LP.js";
22
+ import {
23
+ LOCAL_CODEX_AGENT_ID,
24
+ LOCAL_CODEX_AGENT_KEY
25
+ } from "./chunk-BR3GT6MR.js";
25
26
 
26
27
  // packages/cli/client/cliLocalAgentRecordReader.ts
27
28
  function resolveBuiltinLocalCliAgentConfig(agentRef, userId) {
@@ -86,7 +87,7 @@ async function readDialogMessages(args) {
86
87
  const message = localDialogMessageRecordToRuntimeMessage(entry.record);
87
88
  if (message) messages.push({ ...message, cliMessageId: entry.messageId });
88
89
  }
89
- return messages;
90
+ return orderDialogHistory(messages);
90
91
  }
91
92
 
92
93
  export {
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-TUIWP2LF.js";
8
+ } from "./chunk-J2XZZXIH.js";
9
9
  import {
10
10
  CONFIRMATION_INPUT_KEYS,
11
11
  INVALID_TOOL_ARGS_REPLACEMENT,
@@ -14,11 +14,11 @@ import {
14
14
  performFetchRequest,
15
15
  sanitizeOutboundMessages,
16
16
  stripModelToolArgs
17
- } from "./chunk-OWH2BLNU.js";
17
+ } from "./chunk-3UNAGTBW.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-X7YC2OHB.js";
21
+ } from "./chunk-SBRJOYND.js";
22
22
  import {
23
23
  createSSEParser,
24
24
  createToolRunId,
@@ -27,7 +27,7 @@ import {
27
27
  toolRunSetPending,
28
28
  toolRunStarted,
29
29
  toolRunSucceeded
30
- } from "./chunk-5NC6A2RZ.js";
30
+ } from "./chunk-DPAIQLAL.js";
31
31
  import {
32
32
  addToolMessage,
33
33
  messageStreamEnd,
@@ -35,31 +35,31 @@ import {
35
35
  toast,
36
36
  toolResultNeedsUserConfirmation,
37
37
  updateToolMessage
38
- } from "./chunk-HJAO2NAL.js";
38
+ } from "./chunk-ODGSLWLO.js";
39
39
  import {
40
40
  streamAgentChatTurn
41
- } from "./chunk-X4OVEYPX.js";
41
+ } from "./chunk-QYNABNNQ.js";
42
42
  import {
43
43
  getCurrentSpaceId
44
- } from "./chunk-MOMR7NMG.js";
44
+ } from "./chunk-ZCVBIIUE.js";
45
+ import {
46
+ write
47
+ } from "./chunk-6MQWGA5F.js";
45
48
  import {
46
49
  addActiveController,
47
50
  getActiveDialogKey,
48
51
  removeActiveController,
49
52
  tokenUsageLiveUpdate
50
- } from "./chunk-S2NTVGA2.js";
53
+ } from "./chunk-I2OYPD3Y.js";
51
54
  import {
52
55
  require_react
53
- } from "./chunk-5FUN7EG4.js";
56
+ } from "./chunk-RD3QLZQV.js";
54
57
  import {
55
58
  selectCurrentServer
56
- } from "./chunk-VREDDN25.js";
57
- import {
58
- write
59
- } from "./chunk-AVHRSJUH.js";
59
+ } from "./chunk-CJTB3OYB.js";
60
60
  import {
61
61
  createAsyncThunk
62
- } from "./chunk-7Z6EW7AH.js";
62
+ } from "./chunk-247AAJRK.js";
63
63
  import {
64
64
  selectIdentityToken
65
65
  } from "./chunk-PXYBUFDB.js";
@@ -70,7 +70,7 @@ import {
70
70
  projectUserPartForModel,
71
71
  resolveOutboundDiagnosticSink,
72
72
  resolveOutboundWire
73
- } from "./chunk-SOG7OEXX.js";
73
+ } from "./chunk-ONFFUQYM.js";
74
74
  import {
75
75
  accumulateToolCallDelta,
76
76
  createThinkParserState,
@@ -82,24 +82,27 @@ import {
82
82
  } from "./chunk-56GBUMO5.js";
83
83
  import {
84
84
  normalizeChatCompletionsBodyForProvider
85
- } from "./chunk-JM5C4EUA.js";
85
+ } from "./chunk-F4MCAOWN.js";
86
86
  import {
87
87
  classifyApiError,
88
88
  classifyGenerationError,
89
89
  extractErrorDiagnostics
90
90
  } from "./chunk-TLE77UJ5.js";
91
+ import {
92
+ LIST_AGENTS_OUTPUT_BUDGET,
93
+ isCompleteInstructionOutput,
94
+ sanitizeToolOutputText,
95
+ scrubSecrets
96
+ } from "./chunk-WFGNWWJI.js";
91
97
  import {
92
98
  EMPTY_ASSISTANT_REPAIR_PROMPT
93
- } from "./chunk-LM2PS3YS.js";
99
+ } from "./chunk-4F7SWSWO.js";
94
100
  import {
95
101
  getModelInfo
96
- } from "./chunk-IZIN2UNJ.js";
102
+ } from "./chunk-RH44TIHX.js";
97
103
  import {
98
104
  isAbortError
99
105
  } from "./chunk-7DPNBQSV.js";
100
- import {
101
- extractCustomId
102
- } from "./chunk-M2EJHDJP.js";
103
106
  import {
104
107
  toTrimmedString
105
108
  } from "./chunk-SYTHYBMI.js";
@@ -107,6 +110,9 @@ import {
107
110
  createDialogMessageKeyAndId,
108
111
  dialogMessageKey
109
112
  } from "./chunk-OJKUU3LP.js";
113
+ import {
114
+ extractCustomId
115
+ } from "./chunk-M2EJHDJP.js";
110
116
  import {
111
117
  getPublicImageAgentMode
112
118
  } from "./chunk-VIDPVFP3.js";
@@ -118,7 +124,7 @@ import {
118
124
  } from "./chunk-3EUW3WEO.js";
119
125
  import {
120
126
  getApiEndpoint
121
- } from "./chunk-KYH7XW3K.js";
127
+ } from "./chunk-OJRTTERA.js";
122
128
  import {
123
129
  isRecord
124
130
  } from "./chunk-KUG52IAP.js";
@@ -130,6 +136,12 @@ import {
130
136
  } from "./chunk-U67V476Y.js";
131
137
 
132
138
  // packages/integrations/openai/filterAndCleanMessages.ts
139
+ function serializeAgentRunMessages(messages) {
140
+ return messages.map((message) => {
141
+ const metadata = message.tool_result_metadata;
142
+ return message.role === "tool" && isCompleteInstructionOutput(message.name, metadata, typeof message.content === "string" ? message.content : "") ? { ...message, tool_result_metadata: { projectInstruction: true } } : message;
143
+ });
144
+ }
133
145
  var isValidMessagePart = (part) => {
134
146
  if (!part || typeof part !== "object") return false;
135
147
  if (part.type === "text") return typeof part.text === "string";
@@ -141,12 +153,19 @@ var isValidMessagePart = (part) => {
141
153
  };
142
154
  var extractContent = (msg) => {
143
155
  if (msg.role === "tool") {
156
+ const budget = (msg.name ?? msg.toolName ?? msg.toolPayload?.toolName) === "listAgents" ? LIST_AGENTS_OUTPUT_BUDGET : void 0;
157
+ const metadata = msg.tool_result_metadata ?? msg.metadata;
144
158
  const llmContext = asTrimmedString(msg.toolPayload?.llmContext);
145
- if (llmContext) return clipHeadAndTail(llmContext, { toolCallId: extractToolCallId(msg) ?? void 0 }).content;
159
+ if (isCompleteInstructionOutput(extractName(msg), metadata, typeof msg.content === "string" ? msg.content : "")) {
160
+ const safe = scrubSecrets(sanitizeToolOutputText(llmContext || String(msg.content ?? ""))).cleaned;
161
+ if (isCompleteInstructionOutput(extractName(msg), metadata, safe)) return safe;
162
+ return clipHeadAndTail(safe, { toolCallId: extractToolCallId(msg) ?? void 0 }).content;
163
+ }
164
+ if (llmContext) return clipHeadAndTail(llmContext, { toolCallId: extractToolCallId(msg) ?? void 0, ...budget ? { maxTotalBytes: budget } : {} }).content;
146
165
  const summary = asTrimmedString(msg.toolPayload?.summary);
147
- if (summary) return clipHeadAndTail(summary, { toolCallId: extractToolCallId(msg) ?? void 0 }).content;
148
- if (typeof msg.content === "string") return clipHeadAndTail(msg.content, { toolCallId: extractToolCallId(msg) ?? void 0 }).content;
149
- if (msg.content != null) return clipHeadAndTail(JSON.stringify(msg.content), { toolCallId: extractToolCallId(msg) ?? void 0 }).content;
166
+ if (summary) return clipHeadAndTail(summary, { toolCallId: extractToolCallId(msg) ?? void 0, ...budget ? { maxTotalBytes: budget } : {} }).content;
167
+ if (typeof msg.content === "string") return clipHeadAndTail(msg.content, { toolCallId: extractToolCallId(msg) ?? void 0, ...budget ? { maxTotalBytes: budget } : {} }).content;
168
+ if (msg.content != null) return clipHeadAndTail(JSON.stringify(msg.content), { toolCallId: extractToolCallId(msg) ?? void 0, ...budget ? { maxTotalBytes: budget } : {} }).content;
150
169
  return null;
151
170
  }
152
171
  if (typeof msg.content === "string") return msg.content;
@@ -232,6 +251,10 @@ var toOpenAIMessage = (rawMsg) => {
232
251
  if (reasoningContent) cleaned.reasoning_content = reasoningContent;
233
252
  }
234
253
  if (role === "tool") {
254
+ const metadata = msg.tool_result_metadata ?? msg.metadata;
255
+ if (isCompleteInstructionOutput(name, metadata, typeof content === "string" ? content : "")) {
256
+ Object.defineProperty(cleaned, "tool_result_metadata", { value: metadata, enumerable: false });
257
+ }
235
258
  const toolCallId = extractToolCallId(msg);
236
259
  if (toolCallId) cleaned.tool_call_id = toolCallId;
237
260
  if (!cleaned.tool_call_id) {
@@ -693,8 +716,11 @@ var processToolData = createAsyncThunk(
693
716
  parentMessageId,
694
717
  toolRunId,
695
718
  agentKey,
719
+ effectiveModel: args.effectiveModel,
720
+ runKind: "interactive",
696
721
  // 定档信号:这里是前台对话流式路径,来源恒为 chat;对话 id 用于数历史搜索。
697
722
  ...args.dialogId ? { dialogId: args.dialogId } : {},
723
+ ...args.userMessageId ? { userMessageId: args.userMessageId } : {},
698
724
  origin: "chat"
699
725
  });
700
726
  const rawData = toolResult?.rawData ?? toolResult;
@@ -740,10 +766,8 @@ var processToolData = createAsyncThunk(
740
766
  const structured = getToolResultErrorData(e);
741
767
  const confirmationKey = structured?.code ? CONFIRMATION_INPUT_KEYS[structured.code] : void 0;
742
768
  if (confirmationKey) {
743
- const confirmedInput = {
744
- ...executionToolArgs ?? {},
745
- [confirmationKey]: true
746
- };
769
+ const confirmedInput = structured?.code === "knowledge_capture_requires_confirmation" ? structured?.rawData?.confirmationInput : { ...executionToolArgs ?? {}, [confirmationKey]: true };
770
+ if (!confirmedInput) throw e;
747
771
  const summary2 = typeof structured?.displayData === "string" && structured.displayData.trim() || `\u26A0\uFE0F ${canonicalName} \u9700\u8981\u786E\u8BA4\u540E\u6267\u884C`;
748
772
  toolRunStarted({
749
773
  id: toolRunId,
@@ -873,7 +897,9 @@ var handleToolCalls = createAsyncThunk(
873
897
  parentMessageId: messageId,
874
898
  toolRunId,
875
899
  agentKey: agentConfig.dbKey,
876
- dialogId
900
+ effectiveModel: agentConfig.model,
901
+ dialogId,
902
+ userMessageId: args.userMessageId
877
903
  })
878
904
  ).unwrap();
879
905
  const toolName = result.toolName;
@@ -1564,7 +1590,8 @@ async function processAccumulatedToolCalls(state, ctx) {
1564
1590
  agentConfig: ctx.agentConfig,
1565
1591
  messageId: ctx.messageId,
1566
1592
  dialogId: ctx.dialogId,
1567
- dialogKey: ctx.dialogKey
1593
+ dialogKey: ctx.dialogKey,
1594
+ userMessageId: ctx.userMessageId
1568
1595
  })
1569
1596
  ).unwrap();
1570
1597
  const nextState = {
@@ -1627,7 +1654,8 @@ async function handleStreamCompletion(state, ctx, finalizeCtx) {
1627
1654
  agentConfig: ctx.agentConfig,
1628
1655
  dialogId: ctx.dialogId,
1629
1656
  dialogKey: ctx.dialogKey,
1630
- messageId: ctx.messageId
1657
+ messageId: ctx.messageId,
1658
+ userMessageId: ctx.userMessageId
1631
1659
  });
1632
1660
  let next = toolResult.state;
1633
1661
  hasHandedOff ||= toolResult.hasHandedOff;
@@ -1649,7 +1677,8 @@ var sendOpenAICompletionsRequest = async ({
1649
1677
  disableToolsForThisRequest = false,
1650
1678
  quickChatPerfStartedAt,
1651
1679
  streamThrottlerOptions,
1652
- outboundDiagnostics
1680
+ outboundDiagnostics,
1681
+ userMessageId
1653
1682
  }) => {
1654
1683
  const { dispatch, getState, signal: thunkSignal } = thunkApi;
1655
1684
  const dialogId = extractCustomId(dialogKey);
@@ -1935,7 +1964,8 @@ var sendOpenAICompletionsRequest = async ({
1935
1964
  dialogId,
1936
1965
  dialogKey: finalizeCtx.dialogKey,
1937
1966
  messageId,
1938
- agentConfig
1967
+ agentConfig,
1968
+ userMessageId
1939
1969
  },
1940
1970
  finalizeCtx
1941
1971
  );
@@ -2093,6 +2123,7 @@ ${errorText}`
2093
2123
  };
2094
2124
 
2095
2125
  export {
2126
+ serializeAgentRunMessages,
2096
2127
  filterAndCleanMessages,
2097
2128
  persistToolMessages,
2098
2129
  deliverHtmlArtifactToolResult,