nolo-cli 0.228.0-alpha.2 → 0.228.1

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 (260) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-VYCHHZVT.js → _executeModel-AKCTHGMP.js} +89 -83
  3. package/{accountResolver-QETKNC7T.js → accountResolver-NGICIMEE.js} +1 -1
  4. package/{action-GDZDXPMB.js → action-C6IQAKN4.js} +8 -5
  5. package/{addContentAction-7RO4AMRI.js → addContentAction-53364YDW.js} +13 -12
  6. package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-U5DD5EN5.js} +16 -15
  7. package/{agentDeleteCommand-QWQKT54A.js → agentDeleteCommand-2E5FAGUO.js} +128 -115
  8. package/{agentEmailCommands-EISMBIRE.js → agentEmailCommands-UGZZAH7E.js} +128 -111
  9. package/{agentListCommands-4WLG32IW.js → agentListCommands-JCTW3J2K.js} +398 -179
  10. package/{agentMachineCommands-DC6NKWTU.js → agentMachineCommands-QPG5ZXF4.js} +58 -47
  11. package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-QLTABYR7.js} +2 -2
  12. package/{agentPullCommand-KHV4EELF.js → agentPullCommand-2EYJ5ENC.js} +1 -1
  13. package/agentRecordCommands-4NTVR6MZ.js +194 -0
  14. package/agentRunCommand-VHF34PYC.js +232 -0
  15. package/{agentRunControl-MBG4U6SL.js → agentRunControl-QYTXUQGY.js} +14 -9
  16. package/{agentRuntimeLocal-HOXKWCYO.js → agentRuntimeLocal-U54AKHXH.js} +58 -43
  17. package/{agentSlice-UG76KEBH.js → agentSlice-4JGDEXWK.js} +14 -13
  18. package/{appDeleteCommands-WWCC6WA5.js → appDeleteCommands-XBE5QJ6P.js} +58 -47
  19. package/{appDeployCommands-AU4IUN33.js → appDeployCommands-QIYLXXGA.js} +58 -47
  20. package/{appDeployStatusCommands-STUW7WXL.js → appDeployStatusCommands-JXS6ZQZZ.js} +58 -47
  21. package/{appGetCommands-BGTLIQ4K.js → appGetCommands-SZS7SJPK.js} +58 -47
  22. package/{appListCommands-CUCPRUXW.js → appListCommands-B3GBJSNV.js} +58 -47
  23. package/{authCommand-OZ2KTP4Z.js → authCommand-V6EOMZX6.js} +25 -19
  24. package/{authCommands-55OGQGCR.js → authCommands-T5FODCEG.js} +12 -6
  25. package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-ZQC3IIO2.js} +8 -7
  26. package/{chromeCommands-G5UDKVSV.js → chromeCommands-O4IIKTBD.js} +384 -7
  27. package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-OFX7ZGKP.js} +3 -3
  28. package/{chunk-DBUR22G5.js → chunk-223KZUJ6.js} +19 -15
  29. package/{chunk-3U44JB3O.js → chunk-2C5VN7NH.js} +1 -1
  30. package/{chunk-PWTNI4N7.js → chunk-2E4BYAUE.js} +22 -0
  31. package/{chunk-L32W3PRP.js → chunk-2FZVXOFX.js} +234 -18
  32. package/{chunk-HBRDSQ3M.js → chunk-2JHGUL5K.js} +3 -2
  33. package/chunk-2SXN7LAY.js +15 -0
  34. package/chunk-3A5NNQCN.js +64 -0
  35. package/chunk-3F2FRLIO.js +372 -0
  36. package/{chunk-DEA37IUY.js → chunk-46FETNLF.js} +2 -2
  37. package/{chunk-ZEVQHCLM.js → chunk-4GYVS4PM.js} +8 -6
  38. package/{chunk-CBUZ6DKA.js → chunk-4YPH5KRA.js} +1 -1
  39. package/chunk-4ZCTKB27.js +31 -0
  40. package/chunk-53W5BXLN.js +340 -0
  41. package/{chunk-7FEP5USX.js → chunk-5AYP5QBB.js} +5 -5
  42. package/{chunk-XAG3FWBE.js → chunk-5ISNPTQH.js} +5 -5
  43. package/{chunk-EVGU5P4U.js → chunk-5P3PPQVP.js} +1 -1
  44. package/{chunk-XSW4EXQV.js → chunk-6BMTKYAO.js} +55 -18
  45. package/chunk-6PAHSSD2.js +33401 -0
  46. package/{chunk-ZOHO6MOF.js → chunk-6RSNVJGO.js} +2 -99
  47. package/{chunk-7JGMNKKG.js → chunk-6SOWMEAY.js} +30 -9
  48. package/{chunk-RG2DGNL6.js → chunk-6VEO7Z3Y.js} +3 -3
  49. package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
  50. package/{chunk-DGYCDA6W.js → chunk-7BIJFGKS.js} +36 -17
  51. package/{chunk-WFDNADFX.js → chunk-7OVOZRZF.js} +8 -8
  52. package/{chunk-WCFFRBL5.js → chunk-7PON4LBY.js} +45 -27
  53. package/{chunk-QRGDJA4B.js → chunk-7WHCIA5V.js} +33 -7
  54. package/{chunk-CMMI3DAT.js → chunk-ADYWV732.js} +59 -30
  55. package/{chunk-QYB23WUH.js → chunk-AIFQKNPP.js} +1 -1
  56. package/{chunk-HGDKT2D6.js → chunk-BPB3T5EU.js} +174 -1
  57. package/{chunk-DUUDXSLX.js → chunk-BZLGPM5B.js} +28 -4
  58. package/{chunk-ATEKLSLR.js → chunk-BZMDWGQQ.js} +14 -9
  59. package/chunk-C5A54QS7.js +108 -0
  60. package/{chunk-S6K5F3KP.js → chunk-CEKRIR22.js} +1 -1
  61. package/{chunk-42OKN2LI.js → chunk-D634SL2Y.js} +9 -107
  62. package/{chunk-DLXMMTGM.js → chunk-DHRPLRIR.js} +1283 -786
  63. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  64. package/{chunk-OBIC6EG7.js → chunk-DNNPARJK.js} +9 -5
  65. package/{chunk-X3E6EHJW.js → chunk-E3LSO6EI.js} +292 -207
  66. package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
  67. package/chunk-EHFBP6IK.js +791 -0
  68. package/chunk-EJQE5HB7.js +21 -0
  69. package/{chunk-VQ5N5GSV.js → chunk-EL5NRJHI.js} +4 -4
  70. package/chunk-EUGTFFO6.js +42 -0
  71. package/{chunk-7BCG67EI.js → chunk-EVHTYVD2.js} +1199 -442
  72. package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
  73. package/{chunk-262R3XNN.js → chunk-FEIVARWR.js} +377 -112
  74. package/{chunk-3VZLEKV2.js → chunk-FLBJ7IJI.js} +14 -14
  75. package/{chunk-EEOOBRA7.js → chunk-FXEPZKNJ.js} +13 -6
  76. package/{chunk-XTJKU3Z4.js → chunk-FYAMUU55.js} +677 -140
  77. package/{chunk-M3OZRQNH.js → chunk-FZANZZ63.js} +1 -1
  78. package/chunk-GAHJLSDO.js +107 -0
  79. package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
  80. package/{chunk-4N6G2CKP.js → chunk-HDKMVYNJ.js} +47 -1
  81. package/chunk-HEVRQGGH.js +106 -0
  82. package/{chunk-BIWI5M4E.js → chunk-HFHJPHFK.js} +1 -1
  83. package/{chunk-R6Z5S5GA.js → chunk-HPDLPEUG.js} +60 -17
  84. package/{chunk-YKY4OVOX.js → chunk-HQUGB2HM.js} +17 -170
  85. package/chunk-IIRJ4P4I.js +24 -0
  86. package/chunk-IVK2KT3H.js +209 -0
  87. package/{chunk-ALAES342.js → chunk-IYLUK67R.js} +9 -5
  88. package/{chunk-N5Z2V73W.js → chunk-J55F3IEZ.js} +1 -1
  89. package/{chunk-S6FDXXZV.js → chunk-J7JRCOIW.js} +2 -2
  90. package/{chunk-OWKNSIXL.js → chunk-JAKRY74O.js} +470 -83
  91. package/{chunk-VS276URX.js → chunk-JCQ3WCQ3.js} +4 -2
  92. package/chunk-JLZJL3WC.js +988 -0
  93. package/{chunk-OBSEKCVK.js → chunk-JPXACKSW.js} +219 -52
  94. package/{chunk-OTKSESZR.js → chunk-KDBDOXOM.js} +138 -54
  95. package/{chunk-VP3BINY7.js → chunk-KDDHQMSH.js} +31 -1
  96. package/{chunk-RBPUNSG5.js → chunk-KG27JIG4.js} +18 -108
  97. package/{chunk-4WVJLODK.js → chunk-KHYSFS3W.js} +88 -7
  98. package/{chunk-TCZ2VJZQ.js → chunk-KKIQAVDR.js} +9 -9
  99. package/{chunk-4JVNURX4.js → chunk-KQHEGELM.js} +68 -16
  100. package/chunk-KXOPLLFP.js +190 -0
  101. package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
  102. package/{chunk-HYLRQDEE.js → chunk-LLUBUHNT.js} +6 -6
  103. package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
  104. package/{chunk-RTHFJZ6M.js → chunk-LVZVSLKO.js} +29 -9
  105. package/{chunk-TI2EPRHE.js → chunk-MNFUKRRU.js} +3 -3
  106. package/chunk-MVOZ22RZ.js +26 -0
  107. package/{chunk-CNMY2XM6.js → chunk-O3A2CHAL.js} +6 -6
  108. package/{chunk-TSPMLCWI.js → chunk-OB4FBZXJ.js} +5 -5
  109. package/{chunk-LYD6C7OU.js → chunk-OJSJJKHF.js} +6 -6
  110. package/{chunk-M4SFKP5L.js → chunk-OKAXQFON.js} +3 -3
  111. package/{chunk-CD3RU7XL.js → chunk-OKH74FML.js} +121 -14
  112. package/{chunk-U2HBB7RS.js → chunk-OOV5JN25.js} +130 -30
  113. package/{chunk-ZH3KXFHS.js → chunk-OOVOAG4Q.js} +1 -1
  114. package/chunk-OQFOE4SJ.js +405 -0
  115. package/{chunk-M3JEW6N6.js → chunk-OYUMJMC5.js} +15 -0
  116. package/chunk-P27E22MA.js +203 -0
  117. package/{chunk-SRCCSTIM.js → chunk-P4R5KXU7.js} +4 -4
  118. package/{chunk-FJ23FZXF.js → chunk-PHREU2KZ.js} +5 -3
  119. package/{chunk-HSSBDZLD.js → chunk-PIVTQRX6.js} +43 -13
  120. package/{chunk-XFXFPUO7.js → chunk-PJL7OJRC.js} +13 -39
  121. package/{chunk-RRDRQOEC.js → chunk-PNLDLUMO.js} +276 -303
  122. package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
  123. package/{chunk-HHFGE2WF.js → chunk-QGFLVQ6E.js} +5 -5
  124. package/{chunk-EGHP7KOY.js → chunk-QONAOHVW.js} +38 -29
  125. package/chunk-R3FZHW4Q.js +103 -0
  126. package/{chunk-ZYKJBRZ3.js → chunk-R3MV2GII.js} +1 -47
  127. package/chunk-R72QWIFO.js +50 -0
  128. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  129. package/{chunk-ILHQ2AXT.js → chunk-RIWKZT7E.js} +36 -8
  130. package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
  131. package/{chunk-45CAVC35.js → chunk-S7H4KTMB.js} +2568 -337
  132. package/{chunk-OJ45MEEI.js → chunk-SA356NGW.js} +1 -1
  133. package/{chunk-F6Z6ZCUV.js → chunk-SCAC3NM5.js} +3 -3
  134. package/{chunk-YVFH2MFB.js → chunk-SLUN7W6S.js} +7 -7
  135. package/chunk-SQL7YNED.js +650 -0
  136. package/chunk-SR4FE5VD.js +9 -0
  137. package/{chunk-HF7BLF3F.js → chunk-SSOR2EDT.js} +107 -104
  138. package/chunk-TRRXYFTR.js +46 -0
  139. package/{chunk-3QIYD3VM.js → chunk-TUOHSUK5.js} +20068 -18402
  140. package/chunk-TYJCIA2O.js +835 -0
  141. package/{chunk-S2NTVGA2.js → chunk-U35UUM5K.js} +2 -1
  142. package/{chunk-GAYNXB6T.js → chunk-U3BUWDUP.js} +1031 -2155
  143. package/{chunk-BP5ZJ6B4.js → chunk-U6QNVOR5.js} +1 -1
  144. package/{chunk-UAIHKQIA.js → chunk-U6RD332P.js} +18 -2
  145. package/chunk-UAF5VQCE.js +77 -0
  146. package/{chunk-TQEKUOTI.js → chunk-UFGUJ2IH.js} +12 -12
  147. package/{chunk-VMJVAJ6W.js → chunk-UP7KBWLE.js} +109 -33
  148. package/{chunk-2X7WFDT6.js → chunk-UUCYUN6Y.js} +1 -1
  149. package/{chunk-5YMA6DDZ.js → chunk-UZKBVQUX.js} +1 -1
  150. package/chunk-V5TI7HJH.js +133 -0
  151. package/{chunk-WFGNWWJI.js → chunk-VH7UO6E5.js} +252 -114
  152. package/{chunk-MNEZUL5S.js → chunk-VJFDG3ZG.js} +63 -94
  153. package/{chunk-G7IUT2V3.js → chunk-WC3J5SL2.js} +635 -350
  154. package/{chunk-HXB4VDGK.js → chunk-WD5547ZF.js} +33 -30
  155. package/chunk-WDWZPASX.js +29 -0
  156. package/{chunk-4ZGPHFLE.js → chunk-WS36XPJD.js} +2 -2
  157. package/{chunk-6QHKRARD.js → chunk-WSLL7VV4.js} +29 -5
  158. package/chunk-XRGBJHZX.js +136 -0
  159. package/{chunk-MZG5CETE.js → chunk-Y2KWJTOZ.js} +4 -4
  160. package/{dialogUsageCommand-W2WCSGKF.js → chunk-Y2TCTNUD.js} +27 -20
  161. package/chunk-YJPK35HB.js +175 -0
  162. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  163. package/{chunk-547ENH5T.js → chunk-YN23INFZ.js} +4 -4
  164. package/{chunk-4QYJPWHH.js → chunk-YXK3GJF5.js} +232 -10
  165. package/{chunk-MJI3UAXN.js → chunk-Z2OWAYMI.js} +77 -51
  166. package/{chunk-7Z6EW7AH.js → chunk-ZTHAJU3O.js} +106 -14
  167. package/{chunk-YFLVRVYK.js → chunk-ZYPXOQS2.js} +1 -1
  168. package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-BXHQ3PXP.js} +9 -9
  169. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
  170. package/cliAuthorityBrokerProcess-5ZFBTHLB.js +22 -0
  171. package/cliLocalAgentRecordReader-47PXMHPH.js +104 -0
  172. package/{commandRegistry-FVYPE2IN.js → commandRegistry-CTMPAQH2.js} +111 -162
  173. package/{contentThunks-GNFPG32S.js → contentThunks-CAHIIZO5.js} +38 -36
  174. package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-WDOI5VD7.js} +3 -3
  175. package/{createAgentAutomationAction-PB4QIFQ4.js → createAgentAutomationAction-M25XZSPD.js} +38 -36
  176. package/{createDialogAction-EVTOPY7A.js → createDialogAction-4SN7FKI7.js} +39 -37
  177. package/{createPageAction-2UYF2IDZ.js → createPageAction-N7QPDN3M.js} +43 -41
  178. package/{db-M7FU2GNK.js → db-VR74ADGC.js} +7 -2
  179. package/{dbSlice-XRUZOGSU.js → dbSlice-RWPSVHBC.js} +12 -11
  180. package/{deleteFile-6URDHYRB.js → deleteFile-ECU6FU5C.js} +15 -7
  181. package/{dialogCommands-6SZD4TYP.js → dialogCommands-BBHWCKDP.js} +69 -53
  182. package/dialogMessageRecord-OAV77LT7.js +7 -0
  183. package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-IASQGEMW.js} +11 -11
  184. package/{dialogSlice-5EQ2A6LY.js → dialogSlice-JI3J22RV.js} +39 -37
  185. package/dialogTraceCommand-EW2KK6A4.js +961 -0
  186. package/dialogUsageCommand-WJ3U6KZU.js +27 -0
  187. package/{docCreateCommands-25E6PGN3.js → docCreateCommands-QSX3X5U4.js} +57 -46
  188. package/{docDeleteCommands-F7ZVGEHW.js → docDeleteCommands-63JBG2HQ.js} +59 -48
  189. package/{docReadCommands-JY2E5XEN.js → docReadCommands-CQFKRQUI.js} +57 -46
  190. package/{docStore-OKKIKLT3.js → docStore-XLBKGGNM.js} +14 -13
  191. package/{docUpdateCommands-OZ4CUSIQ.js → docUpdateCommands-534LUK25.js} +57 -46
  192. package/ebookDownloaderAgentCommand-DYSKF5ZY.js +677 -0
  193. package/fetchMessages-TQEUZD7H.js +1 -1
  194. package/{getPricing-LF5C4XSI.js → getPricing-5BLZRPTM.js} +4 -4
  195. package/{handleSendMessageAction-LNT7SZND.js → handleSendMessageAction-Q2VMEVOR.js} +127 -81
  196. package/{hostCredentialCreate-XUU2CSHI.js → hostCredentialCreate-C57T7YPE.js} +127 -109
  197. package/index.js +23 -11
  198. package/{localDialogRead-CCOCVGAP.js → localDialogRead-BJJT3TF5.js} +1 -1
  199. package/{localRuntimeAdapter-IBSTMSX7.js → localRuntimeAdapter-OALZPFZU.js} +134 -115
  200. package/localRuntimeAuthority-UF2DAQ3F.js +28 -0
  201. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-ZJFGNHML.js} +1 -1
  202. package/{machineCommands-HSQHDHOT.js → machineCommands-N6IVWRZT.js} +262 -325
  203. package/machineWsRunDispatch-PDWYB33B.js +209 -0
  204. package/markdownToSlate-PXYAIBVL.js +8 -0
  205. package/mcpLocalAuthorizeCommand-KYI4EGF5.js +110 -0
  206. package/{memberThunks-7Y3OYSJQ.js → memberThunks-43B7UYC5.js} +21 -16
  207. package/{models-H5NNZRLH.js → models-ZX2BYIMB.js} +2 -2
  208. package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
  209. package/package.json +2 -1
  210. package/{projectArchive-FQO654Z3.js → projectArchive-TJNW5DLM.js} +46 -44
  211. package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-NTJUINI6.js} +36 -17
  212. package/{providerRegistry-ZI2KORJ7.js → providerRegistry-W45SLUV6.js} +6 -6
  213. package/{read-TYMBGEXO.js → read-KG6INYUT.js} +13 -7
  214. package/{readDocTool-SKQVHBLO.js → readDocTool-N3GA52JR.js} +1 -1
  215. package/{readlineWorkspace-7U272DSA.js → readlineWorkspace-PJZJVGA5.js} +7486 -4492
  216. package/rememberExplicit-CPAPONSI.js +15 -0
  217. package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-EEVSOQOJ.js} +18 -17
  218. package/{runAgentClientLoop-AF4JQIJ7.js → runAgentClientLoop-3VC5TCDW.js} +107 -76
  219. package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-V3M3JTUV.js} +14 -11
  220. package/{secretCommands-KZWBZIYS.js → secretCommands-KVVZS7A6.js} +3 -3
  221. package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-DNO5POHA.js} +15 -14
  222. package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-QABBEO4C.js} +18 -17
  223. package/{settingThunks-ZRGWVGZD.js → settingThunks-DVKG4X4S.js} +181 -66
  224. package/{skillDiscovery-BHHPCUHZ.js → skillDiscovery-ZMJH36AK.js} +4 -3
  225. package/{spaceCommands-5VNWMDBE.js → spaceCommands-AGGZXPY3.js} +235 -87
  226. package/{streamAgentChatTurn-YSPEFY4K.js → streamAgentChatTurn-4GTLL2OF.js} +242 -169
  227. package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-KYWJSGOO.js} +16 -15
  228. package/{tableCommands-FTAOCBTX.js → tableCommands-EFA754RE.js} +7 -4
  229. package/{toolApiClient-OGQEBQVX.js → toolApiClient-N5PYW2R3.js} +8 -6
  230. package/{tools-M35PTIFB.js → tools-5AGPOPLW.js} +69 -65
  231. package/{tuiRestart-2IL37YIB.js → tuiRestart-77E7PL4R.js} +11 -10
  232. package/{tuiSummaryLlmCaller-W2QN4VAC.js → tuiSummaryLlmCaller-HROLGN4F.js} +16 -15
  233. package/{updateCommands-CPATDG6J.js → updateCommands-GJGRS6JK.js} +3 -3
  234. package/{updateDialogTitleAction-IMIRJRQQ.js → updateDialogTitleAction-5OSEDGRK.js} +40 -38
  235. package/{usageCommand-2BF74MKF.js → usageCommand-WI6SQOPB.js} +2 -2
  236. package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-WQRLLZAT.js} +3 -3
  237. package/webapi-QVV65DQF.js +2487 -0
  238. package/{windowsSelfUpdate-ZFD6J5HF.js → windowsSelfUpdate-C7LGVWYX.js} +2 -2
  239. package/workContext-Y3ADAPZU.js +14 -0
  240. package/workContextAccess-VU5I4LKZ.js +11 -0
  241. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  242. package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-P2SJVV3S.js} +2 -2
  243. package/agentRecordCommands-IZYUVHME.js +0 -177
  244. package/agentRunCommand-QM7ETUTX.js +0 -209
  245. package/chunk-2YGBI2XB.js +0 -30
  246. package/chunk-5ZMIIR23.js +0 -265
  247. package/chunk-5ZUOVCKT.js +0 -32
  248. package/chunk-62HXNQVV.js +0 -134
  249. package/chunk-FJSNBZXR.js +0 -142
  250. package/chunk-FPBJM2BW.js +0 -689
  251. package/chunk-JQZRSXS5.js +0 -90
  252. package/chunk-P2ZLUIW2.js +0 -795
  253. package/chunk-PPJYZRSQ.js +0 -160
  254. package/chunk-TUSTONB3.js +0 -81
  255. package/chunk-ZXF6D3I6.js +0 -359
  256. package/cliLocalAgentRecordReader-H3HYQRRR.js +0 -91
  257. package/lib-OT5OTXRU.js +0 -21046
  258. package/localRuntimeAuthority-IBJAT62G.js +0 -16
  259. package/machineWsRunDispatch-L6H7J66T.js +0 -192
  260. package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-QYPE3TS3.js";
4
4
  import {
5
5
  getActiveDialogKey
6
- } from "./chunk-S2NTVGA2.js";
6
+ } from "./chunk-U35UUM5K.js";
7
7
  import {
8
8
  selectIdentityToken
9
9
  } from "./chunk-PXYBUFDB.js";
@@ -11,8 +11,8 @@ import {
11
11
  compactWhitespace
12
12
  } from "./chunk-DWLEOOGR.js";
13
13
  import {
14
- extractCustomId
15
- } from "./chunk-M2EJHDJP.js";
14
+ splitDialogKeyIdentity
15
+ } from "./chunk-YZMNK53S.js";
16
16
  import {
17
17
  isRecord
18
18
  } from "./chunk-KUG52IAP.js";
@@ -42,6 +42,54 @@ var selectCurrentTokenFromState = (state) => {
42
42
  return typeof token === "string" ? token : null;
43
43
  };
44
44
  var selectCurrentDialogKeyFromState = (_state) => getActiveDialogKey();
45
+ var CONTROL_OR_WHITESPACE_RE = /[\u0000-\u001f\u007f\s]/;
46
+ var hasSuppliedDialogValue = (value) => value != null && (typeof value !== "string" || value.trim().length > 0);
47
+ var normalizeToolDialogId = (value) => {
48
+ if (typeof value !== "string") return null;
49
+ if (/[\u0000-\u001f\u007f]/.test(value)) return null;
50
+ const trimmed = value.trim();
51
+ if (!trimmed || CONTROL_OR_WHITESPACE_RE.test(trimmed)) return null;
52
+ if (trimmed.includes("-msg-")) return null;
53
+ if (trimmed.startsWith("dialog-")) {
54
+ const identity = splitDialogKeyIdentity(trimmed);
55
+ const parsedId = identity?.dialogId?.trim();
56
+ if (!parsedId || CONTROL_OR_WHITESPACE_RE.test(parsedId) || parsedId.includes("-msg-")) {
57
+ return null;
58
+ }
59
+ return parsedId;
60
+ }
61
+ return trimmed;
62
+ };
63
+ var resolveToolDialogId = (thunkApi, options = {}) => {
64
+ if (hasSuppliedDialogValue(options?.dialogId)) {
65
+ return normalizeToolDialogId(options.dialogId);
66
+ }
67
+ if (hasSuppliedDialogValue(options?.dialogKey)) {
68
+ return normalizeToolDialogId(options.dialogKey);
69
+ }
70
+ if (hasSuppliedDialogValue(thunkApi?.extra?.dialogId)) {
71
+ return normalizeToolDialogId(thunkApi.extra.dialogId);
72
+ }
73
+ if (hasSuppliedDialogValue(thunkApi?.extra?.dialogKey)) {
74
+ return normalizeToolDialogId(thunkApi.extra.dialogKey);
75
+ }
76
+ if (hasSuppliedDialogValue(thunkApi?.dialogId)) {
77
+ return normalizeToolDialogId(thunkApi.dialogId);
78
+ }
79
+ if (hasSuppliedDialogValue(thunkApi?.dialogKey)) {
80
+ return normalizeToolDialogId(thunkApi.dialogKey);
81
+ }
82
+ let state;
83
+ try {
84
+ state = typeof thunkApi?.getState === "function" ? thunkApi.getState() : void 0;
85
+ } catch {
86
+ state = void 0;
87
+ }
88
+ if (hasSuppliedDialogValue(state?.dialog?.currentDialogKey)) {
89
+ return normalizeToolDialogId(state.dialog.currentDialogKey);
90
+ }
91
+ return normalizeToolDialogId(selectCurrentDialogKeyFromState(state));
92
+ };
45
93
  var resolveToolBaseUrl = (currentServer) => {
46
94
  const _window = globalThis.window;
47
95
  if (!_window) return (currentServer || "").replace(/\/+$/, "");
@@ -102,18 +150,6 @@ var getToolRequestContext = (thunkApi) => {
102
150
  baseUrl
103
151
  };
104
152
  };
105
- var maybeAttachDialogId = (thunkApi, body) => {
106
- if (!isRecord(body)) return body;
107
- if ("dialogId" in body) return body;
108
- const state = thunkApi.getState();
109
- const currentDialogKey = selectCurrentDialogKeyFromState(state);
110
- const dialogId = currentDialogKey ? extractCustomId(currentDialogKey) : null;
111
- if (!dialogId) return body;
112
- return {
113
- ...body,
114
- dialogId
115
- };
116
- };
117
153
  var ToolApiError = class extends Error {
118
154
  status;
119
155
  code;
@@ -149,11 +185,26 @@ var buildToolRequestHeaders = (thunkApi, options = {}) => {
149
185
  if (agentKey && typeof agentKey === "string" && agentKey.trim()) {
150
186
  headers["X-Nolo-Agent-Key"] = agentKey.trim();
151
187
  }
188
+ const dialogId = resolveToolDialogId(thunkApi, options);
189
+ if (dialogId) {
190
+ headers["X-Nolo-Dialog-Id"] = dialogId;
191
+ }
152
192
  if (typeof window !== "undefined" && window.__NOLO_DESKTOP__) {
153
193
  headers["X-Nolo-Desktop-Tool"] = "1";
154
194
  }
155
195
  return headers;
156
196
  };
197
+ var buildToolRequestBody = (thunkApi, body, options) => {
198
+ if (!options.injectDialogId) return body;
199
+ if (!isRecord(body)) return body;
200
+ if ("dialogId" in body) return body;
201
+ const dialogId = resolveToolDialogId(thunkApi, options);
202
+ if (!dialogId) return body;
203
+ return {
204
+ ...body,
205
+ dialogId
206
+ };
207
+ };
157
208
  var buildResponsePreview = (text) => compactWhitespace(text).slice(0, 240);
158
209
  var looksLikeHtmlResponse = (text, contentType) => {
159
210
  if (contentType?.toLowerCase().includes("text/html")) return true;
@@ -171,7 +222,7 @@ async function callToolApi(thunkApi, path, body, options = {}) {
171
222
  method,
172
223
  headers,
173
224
  ...options.signal ? { signal: options.signal } : {},
174
- ...method === "GET" ? {} : { body: JSON.stringify(maybeAttachDialogId(thunkApi, body)) }
225
+ ...method === "GET" ? {} : { body: JSON.stringify(buildToolRequestBody(thunkApi, body, options)) }
175
226
  });
176
227
  const contentType = response.headers.get("content-type");
177
228
  const responseText = await response.text();
@@ -226,6 +277,7 @@ async function callToolApi(thunkApi, path, body, options = {}) {
226
277
  }
227
278
 
228
279
  export {
280
+ resolveToolDialogId,
229
281
  resolveToolBaseUrl,
230
282
  resolveToolApiBaseUrl,
231
283
  getRequestConfig,
@@ -0,0 +1,190 @@
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: "zoho-calendar",
14
+ title: "Zoho Calendar MCP",
15
+ 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\u67E5\u770B\u6216\u521B\u5EFA\u65E5\u7A0B\u3002",
16
+ defaultAuthKind: "none",
17
+ endpointPlaceholder: "https://calendar.zoho.com/mcp/...",
18
+ 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\u53EF\u5199\u64CD\u4F5C\uFF08\u521B\u5EFA/\u4FEE\u6539\u65E5\u7A0B\uFF09\u540C\u6837\u53D7\u6BCF\u6B21\u8C03\u7528\u786E\u8BA4\u95E8\u7EA6\u675F\uFF0C\u5B9E\u9645\u53EF\u5199\u8303\u56F4\u53D6\u51B3\u4E8E\u8BE5 URL \u7ED1\u5B9A\u7684\u8D26\u53F7\u6743\u9650\u3002"
19
+ }),
20
+ Object.freeze({
21
+ id: "home-assistant",
22
+ title: "Home Assistant MCP",
23
+ 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",
24
+ defaultAuthKind: "bearer",
25
+ endpointPlaceholder: "https://ha.example.com/api/mcp",
26
+ 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"
27
+ }),
28
+ Object.freeze({
29
+ id: "github",
30
+ title: "GitHub MCP",
31
+ summary: "\u63A5\u5165 GitHub \u5B98\u65B9\u6258\u7BA1\u7684\u8FDC\u7A0B MCP Server\uFF08\u65E0\u9700\u81EA\u5EFA\uFF09\uFF0C\u53EF\u8BBF\u95EE\u4ED3\u5E93\u3001Issue\u3001PR \u7B49\u8D44\u6E90\uFF0C\u5DE5\u5177\u8C03\u7528\u4ECD\u53D7\u767D\u540D\u5355\u4E0E\u6BCF\u6B21\u8C03\u7528\u786E\u8BA4\u95E8\u7EA6\u675F\u3002",
32
+ defaultAuthKind: "bearer",
33
+ endpointPlaceholder: "https://api.githubcopilot.com/mcp/",
34
+ note: "\u8BF7\u586B\u5199\u4E0A\u65B9\u63D0\u793A\u7684\u5B98\u65B9\u5730\u5740\uFF0C\u5E76\u4F7F\u7528 GitHub \u4E2A\u4EBA\u8BBF\u95EE\u4EE4\u724C\uFF08PAT\uFF09\u4F5C\u4E3A Bearer Token\uFF0C\u6682\u4E0D\u652F\u6301 OAuth\u3002\u53EF\u4F7F\u7528\u7EC6\u7C92\u5EA6 PAT\uFF0C\u4EC5\u6388\u6743\u9700\u8981\u8BBF\u95EE\u7684\u4ED3\u5E93\uFF1B\u53EA\u8BFB\u573A\u666F\u6309\u9700\u6388\u4E88 Contents\u3001Issues\u3001Pull requests \u7B49\u4ED3\u5E93\u6743\u9650\u7684\u53EA\u8BFB\u7EA7\u522B\u3002\u5B9E\u9645\u6743\u9650\u53D6\u51B3\u4E8E PAT \u6388\u4E88\u7684\u4ED3\u5E93\u8303\u56F4\u548C\u6743\u9650\uFF0C\u9884\u8BBE\u4E0D\u4F1A\u628A\u4EE4\u724C\u9650\u5236\u4E3A\u53EA\u8BFB\u3002\u4EE4\u724C\u4FDD\u5B58\u65F6\u4F1A\u52A0\u5BC6\u5B58\u5165\u53D7\u63A7\u5BC6\u6587\u5E93\uFF0C\u4E0D\u4F1A\u4EE5\u660E\u6587\u56DE\u663E\u3002"
35
+ }),
36
+ Object.freeze({
37
+ id: "odoo",
38
+ title: "Odoo MCP\uFF08\u81EA\u6258\u7BA1\uFF09",
39
+ summary: "\u901A\u8FC7\u7B2C\u4E09\u65B9\u5F00\u6E90\u8FDE\u63A5\u5668 erpipe-org/mcp-odoo\uFF0C\u63A5\u5165\u4F60\u81EA\u884C\u90E8\u7F72\u7684 Odoo MCP \u670D\u52A1\u3002",
40
+ defaultAuthKind: "bearer",
41
+ endpointPlaceholder: "https://odoo-mcp.example.com/mcp",
42
+ note: "\u8FDE\u63A5\u5668\u9ED8\u8BA4\u53EA\u76D1\u542C\u672C\u673A\u3002\u5EFA\u8BAE\u5728\u540C\u4E00\u673A\u5668\u4E0A\u7528 HTTPS \u7F51\u5173\u8F6C\u53D1\u5E76\u6821\u9A8C Bearer \u4EE4\u724C\uFF0C\u4E0D\u76F4\u63A5\u516C\u5F00\u8FDE\u63A5\u5668\u7AEF\u53E3\u3002\u6B64\u5904\u586B\u5199\u516C\u7F51 MCP \u7F51\u5173\u5730\u5740\u53CA\u5176\u4EE4\u724C\uFF0C\u4E0D\u662F Odoo \u7F51\u9875\u5730\u5740\u6216 Odoo API Key\u3002"
43
+ })
44
+ ]);
45
+ var failure = (code) => ({ ok: false, error: { code } });
46
+ function sameMcpPlacement(a, b) {
47
+ return a.kind === b.kind && (a.kind !== "machine" || b.kind === "machine" && a.machineId === b.machineId);
48
+ }
49
+ function freezeSchema(value) {
50
+ for (const child of Object.values(value)) if (child && typeof child === "object") freezeSchema(child);
51
+ return Object.freeze(value);
52
+ }
53
+ var text = (maxLength) => ({ type: "string", minLength: 1, maxLength, pattern: "^[^\\u0000-\\u001f\\u007f]+$" });
54
+ var idSchema = { ...text(128), pattern: "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$" };
55
+ var refSchema = { ...text(128), pattern: "^[A-Za-z0-9][A-Za-z0-9_:-]{0,127}$" };
56
+ var revisionSchema = { type: "integer", minimum: 1, maximum: Number.MAX_SAFE_INTEGER };
57
+ var objectSchema = (properties, required = Object.keys(properties)) => ({ type: "object", properties, required, additionalProperties: false });
58
+ var placements = {
59
+ oneOf: [
60
+ { type: "object", required: ["kind"], properties: { kind: { const: "local" } }, additionalProperties: false },
61
+ { type: "object", required: ["kind"], properties: { kind: { const: "server" } }, additionalProperties: false },
62
+ { type: "object", required: ["kind", "machineId"], properties: { kind: { const: "machine" }, machineId: idSchema }, additionalProperties: false }
63
+ ]
64
+ };
65
+ var MCP_CONNECTION_WRITE_SCHEMA = {
66
+ type: "object",
67
+ required: ["schemaVersion", "label", "enabled", "placement", "transport", "auth", "allowedToolNames", "readPolicies"],
68
+ properties: {
69
+ schemaVersion: { const: 1 },
70
+ label: { type: "string", minLength: 1, maxLength: 160, pattern: "^[^:/\\\\\\r\\n]+$" },
71
+ enabled: { type: "boolean" },
72
+ presetId: { enum: MCP_PRESET_SPECS.map((preset) => preset.id) },
73
+ placement: placements,
74
+ allowedToolNames: { type: "array", maxItems: 256, items: text(160) },
75
+ 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 } },
76
+ transport: { type: "object", required: ["kind", "endpointRef"], properties: { kind: { const: "streamable-http" }, endpointRef: refSchema }, additionalProperties: false },
77
+ 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 }] }
78
+ },
79
+ additionalProperties: false
80
+ };
81
+ var MCP_CONNECTION_UPDATE_SCHEMA = freezeSchema(objectSchema({
82
+ connectionId: idSchema,
83
+ expectedRevision: revisionSchema,
84
+ connection: MCP_CONNECTION_WRITE_SCHEMA
85
+ }));
86
+ var MCP_LIST_TOOLS_INPUT_SCHEMA = freezeSchema(objectSchema({
87
+ connectionId: idSchema,
88
+ expectedRevision: revisionSchema,
89
+ cursor: text(2048)
90
+ }, ["connectionId", "expectedRevision"]));
91
+ var MCP_CALL_TOOL_INPUT_SCHEMA = freezeSchema(objectSchema({
92
+ connectionId: idSchema,
93
+ expectedRevision: revisionSchema,
94
+ catalogRevision: idSchema,
95
+ toolName: text(256),
96
+ arguments: { type: "object", additionalProperties: {} }
97
+ }));
98
+ function isRecord(value) {
99
+ if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
100
+ return Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null;
101
+ }
102
+ function matches(schema, value) {
103
+ if (schema.oneOf && schema.oneOf.filter((branch) => matches(branch, value)).length !== 1) return false;
104
+ if (schema.const !== void 0 && value !== schema.const) return false;
105
+ if (schema.enum && (typeof value !== "string" || !schema.enum.includes(value))) return false;
106
+ switch (schema.type) {
107
+ case "string":
108
+ return typeof value === "string" && value.length >= (schema.minLength ?? 0) && value.length <= (schema.maxLength ?? Infinity) && (!schema.pattern || new RegExp(schema.pattern, "u").test(value));
109
+ case "integer":
110
+ return typeof value === "number" && Number.isSafeInteger(value) && value >= (schema.minimum ?? -Infinity) && value <= (schema.maximum ?? Infinity);
111
+ case "boolean":
112
+ return typeof value === "boolean";
113
+ case "array":
114
+ return Array.isArray(value) && value.length <= (schema.maxItems ?? Infinity) && value.every((item) => !schema.items || matches(schema.items, item));
115
+ case "object": {
116
+ if (!isRecord(value) || Object.keys(value).length > (schema.maxProperties ?? Infinity)) return false;
117
+ if (schema.required?.some((key) => !Object.hasOwn(value, key))) return false;
118
+ return Object.entries(value).every(([key, entry]) => {
119
+ if (schema.propertyNames && !matches(schema.propertyNames, key)) return false;
120
+ const property = schema.properties && Object.hasOwn(schema.properties, key) ? schema.properties[key] : schema.additionalProperties;
121
+ return property === void 0 || property === false ? property !== false : matches(property, entry);
122
+ });
123
+ }
124
+ default:
125
+ return true;
126
+ }
127
+ }
128
+ function isBoundedJson(value, depth = 0, budget = { nodes: 0, chars: 0 }) {
129
+ if (++budget.nodes > 1e4 || depth > 32) return false;
130
+ if (typeof value === "string") return (budget.chars += value.length) <= 262144;
131
+ if (value === null || typeof value === "boolean") return true;
132
+ if (typeof value === "number") return Number.isFinite(value);
133
+ if (!Array.isArray(value) && !isRecord(value)) return false;
134
+ return Object.entries(Object.getOwnPropertyDescriptors(value)).every(([key, descriptor]) => {
135
+ if (Array.isArray(value) && key === "length") return true;
136
+ if (["__proto__", "prototype", "constructor"].includes(key) || !Object.hasOwn(descriptor, "value")) return false;
137
+ budget.chars += key.length;
138
+ return budget.chars <= 262144 && isBoundedJson(descriptor.value, depth + 1, budget);
139
+ });
140
+ }
141
+ function parse(schema, value) {
142
+ if (!isBoundedJson(value) || !matches(schema, value)) return failure("invalid_input");
143
+ return { ok: true, value: JSON.parse(JSON.stringify(value)) };
144
+ }
145
+ function parseMcpConnectionWrite(value) {
146
+ const parsed = parse(MCP_CONNECTION_WRITE_SCHEMA, value);
147
+ if (!parsed.ok) {
148
+ if (isRecord(value) && Object.getOwnPropertyDescriptor(value, "schemaVersion")?.value !== void 0 && Object.getOwnPropertyDescriptor(value, "schemaVersion")?.value !== 1) return failure("unsupported_version");
149
+ return parsed;
150
+ }
151
+ const connection = parsed.value;
152
+ 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");
153
+ return parsed;
154
+ }
155
+ function parseMcpListToolsInput(value) {
156
+ return parse(MCP_LIST_TOOLS_INPUT_SCHEMA, value);
157
+ }
158
+ function parseMcpCallToolInput(value) {
159
+ return parse(MCP_CALL_TOOL_INPUT_SCHEMA, value);
160
+ }
161
+ var MCP_LIST_CONNECTIONS_INPUT_SCHEMA = freezeSchema(objectSchema({}, []));
162
+ function toMcpConnectionSummary(connection) {
163
+ return {
164
+ schemaVersion: 1,
165
+ id: connection.id,
166
+ label: connection.label,
167
+ enabled: connection.enabled,
168
+ revision: connection.revision,
169
+ ...connection.presetId ? { presetId: connection.presetId } : {},
170
+ allowedToolNames: [...connection.allowedToolNames],
171
+ readPolicies: structuredClone(connection.readPolicies),
172
+ placement: connection.placement.kind === "machine" ? { kind: "machine", machineId: connection.placement.machineId } : { kind: connection.placement.kind },
173
+ transportKind: connection.transport.kind,
174
+ authKind: connection.auth.kind,
175
+ endpointConfigured: true,
176
+ credentialConfigured: connection.auth.kind === "bearer"
177
+ };
178
+ }
179
+
180
+ export {
181
+ MCP_TOOL_NAMES,
182
+ sameMcpPlacement,
183
+ MCP_LIST_TOOLS_INPUT_SCHEMA,
184
+ MCP_CALL_TOOL_INPUT_SCHEMA,
185
+ parseMcpConnectionWrite,
186
+ parseMcpListToolsInput,
187
+ parseMcpCallToolInput,
188
+ MCP_LIST_CONNECTIONS_INPUT_SCHEMA,
189
+ toMcpConnectionSummary
190
+ };
@@ -1,8 +1,6 @@
1
- // packages/shared/providerSecrets.ts
2
- function providerSecretKey(presetId) {
3
- const normalized = presetId.trim().replace(/[^a-zA-Z0-9]+/g, "_").toUpperCase();
4
- return `${normalized}_KEY`;
5
- }
1
+ import {
2
+ providerSecretKey
3
+ } from "./chunk-LVZVSLKO.js";
6
4
 
7
5
  // packages/ai/agent/providerSecrets.ts
8
6
  var STORAGE_KEY = "nolo-local-secrets";
@@ -1,23 +1,23 @@
1
- import {
2
- getActiveDialogKey
3
- } from "./chunk-S2NTVGA2.js";
4
1
  import {
5
2
  require_formatISO
6
3
  } from "./chunk-UVLYNWIE.js";
7
4
  import {
8
5
  patch,
9
6
  selectById
10
- } from "./chunk-CMMI3DAT.js";
7
+ } from "./chunk-ADYWV732.js";
8
+ import {
9
+ getActiveDialogKey
10
+ } from "./chunk-U35UUM5K.js";
11
11
  import {
12
12
  __toESM
13
13
  } from "./chunk-U67V476Y.js";
14
14
 
15
15
  // packages/chat/dialog/actions/setDialogExtraReferencesAction.ts
16
16
  var import_formatISO = __toESM(require_formatISO());
17
- var setDialogExtraReferencesAction = async (extraReferences, thunkApi) => {
17
+ var setDialogExtraReferencesAction = async (extraReferences, thunkApi, dialogKey) => {
18
18
  const { dispatch, getState } = thunkApi;
19
19
  const state = getState();
20
- const currentDialogKey = getActiveDialogKey();
20
+ const currentDialogKey = dialogKey === void 0 ? getActiveDialogKey() : dialogKey;
21
21
  if (!currentDialogKey) {
22
22
  throw new Error("No current dialog selected");
23
23
  }
@@ -854,6 +854,7 @@ export {
854
854
  extractQuotaSnapshot,
855
855
  formatQuotaSummary,
856
856
  DEFAULT_PROVIDER_RETRY_MS,
857
+ isSubscriptionPeriodWindow,
857
858
  shouldClearCooldownFromQuota,
858
859
  isAgentUnavailableNow,
859
860
  resolveAgentAvailability,
@@ -4,7 +4,7 @@ import {
4
4
  resolvePlatformHostedCredentialProvider,
5
5
  resolvePlatformProxyChatGatewayEndpoint,
6
6
  resolvePlatformResponsesEndpoint
7
- } from "./chunk-HBRDSQ3M.js";
7
+ } from "./chunk-2JHGUL5K.js";
8
8
  import {
9
9
  asTrimmedString
10
10
  } from "./chunk-3EUW3WEO.js";
@@ -21,7 +21,7 @@ import {
21
21
  CLIENT_VERSION_TOO_OLD_CODE,
22
22
  buildClientVersionGateErrorDetail,
23
23
  evaluatePlatformHostedClientVersionGate
24
- } from "./chunk-OBSEKCVK.js";
24
+ } from "./chunk-JPXACKSW.js";
25
25
  import {
26
26
  asTrimmedLowercaseString
27
27
  } from "./chunk-QSJ3HFEF.js";
@@ -38,6 +38,22 @@ function pickAgentRuntimeInferenceOptions(agentConfig) {
38
38
  };
39
39
  }
40
40
 
41
+ // packages/shared/providerSecrets.ts
42
+ function providerSecretKey(presetId) {
43
+ const normalized = presetId.trim().replace(/[^a-zA-Z0-9]+/g, "_").toUpperCase();
44
+ return `${normalized}_KEY`;
45
+ }
46
+ function isAgentCredentialShared(agent) {
47
+ return agent?.credentialSynced === true;
48
+ }
49
+ function resolveOutboundProxyApiKey(credential) {
50
+ const apiKey = asOptionalTrimmedString(credential.apiKey);
51
+ if (apiKey && !isAgentCredentialShared(credential)) {
52
+ throw new Error("\u672A\u6388\u6743\u5C06\u6B64\u5BC6\u94A5\u53D1\u9001\u5230 nolo \u4EE3\u7406\u3002\u8BF7\u4F7F\u7528\u672C\u673A\u76F4\u8FDE\uFF0C\u6216\u542F\u7528\u8DE8\u8BBE\u5907\u5171\u4EAB\u540E\u91CD\u8BD5\u3002");
53
+ }
54
+ return apiKey;
55
+ }
56
+
41
57
  // packages/agent-runtime/providerResolution.ts
42
58
  function resolvePlatformProviderEndpoint(agentConfig) {
43
59
  const customProviderUrl = agentConfig.customProviderUrl?.trim();
@@ -223,7 +239,7 @@ async function buildProviderExecutionPlan(args) {
223
239
  const credentialRef2 = agentConfig.credentialRef?.trim();
224
240
  const apiKeyRef = agentConfig.apiKeyRef?.trim();
225
241
  if (args.credentialBroker) {
226
- const brokerRefs = [credentialRef2, apiKeyRef].filter(
242
+ const brokerRefs = [credentialRef2, ...!credentialRef2 || !apiKeyRef?.startsWith("provider-key:") ? [apiKeyRef] : []].filter(
227
243
  (ref) => Boolean(ref)
228
244
  );
229
245
  for (const ref of brokerRefs) {
@@ -234,7 +250,7 @@ async function buildProviderExecutionPlan(args) {
234
250
  }
235
251
  }
236
252
  }
237
- if (!apiKey2 && agentConfig.credentialSynced && args.syncFetcher && credentialRef2) {
253
+ if (!apiKey2 && isAgentCredentialShared(agentConfig) && args.syncFetcher && credentialRef2) {
238
254
  let synced = null;
239
255
  try {
240
256
  synced = await args.syncFetcher(credentialRef2);
@@ -249,7 +265,7 @@ async function buildProviderExecutionPlan(args) {
249
265
  apiKey2 = trimmed;
250
266
  }
251
267
  }
252
- if (!apiKey2 && apiKeyRef && apiKeyRef.startsWith("provider-key:") && args.syncFetcher) {
268
+ if (!apiKey2 && isAgentCredentialShared(agentConfig) && !credentialRef2 && apiKeyRef?.startsWith("provider-key:") && args.syncFetcher) {
253
269
  try {
254
270
  const shared = await args.syncFetcher(apiKeyRef);
255
271
  const trimmed = asTrimmedString(shared);
@@ -264,12 +280,12 @@ async function buildProviderExecutionPlan(args) {
264
280
  }
265
281
  }
266
282
  if (!apiKey2 && apiKeyRef && args.apiKeyRefResolver) {
267
- const resolved = await args.apiKeyRefResolver(apiKeyRef);
283
+ const resolved = apiKeyRef.startsWith("provider-key:") ? null : await args.apiKeyRefResolver(apiKeyRef);
268
284
  if (resolved) {
269
285
  apiKey2 = resolved;
270
286
  } else if (!agentConfig.apiKey?.trim() && !agentConfig.apiKeyFromAgentKey?.trim()) {
271
- const isApiKeyRef = apiKeyRef.startsWith("api-key:");
272
- const hint = isApiKeyRef ? agentConfig.credentialSynced ? `Local credential for "${apiKeyRef}" not found. It is synced to your account \u2014 run this agent once on a device that has the key, or re-enter it in agent settings.` : `Local credential for "${apiKeyRef}" not found. Re-enter the API key in agent settings, or enable cross-device sync.` : `OAuth credential for "${apiKeyRef}" not found locally. Run \`nolo auth ${apiKeyRef}\` (and \`--sync-to-server\` for server-side agent runs).`;
287
+ const isApiKeyRef = /^(api-key|provider-key):/.test(apiKeyRef);
288
+ const hint = isApiKeyRef ? isAgentCredentialShared(agentConfig) ? `Local credential for "${apiKeyRef}" not found. It is synced to your account \u2014 run this agent once on a device that has the key, or re-enter it in agent settings.` : `Local credential for "${apiKeyRef}" not found. Re-enter the API key in agent settings, or enable cross-device sync.` : `OAuth credential for "${apiKeyRef}" not found locally. Run \`nolo auth ${apiKeyRef}\` (and \`--sync-to-server\` for server-side agent runs).`;
273
289
  throw new Error(hint);
274
290
  }
275
291
  }
@@ -293,6 +309,7 @@ async function buildProviderExecutionPlan(args) {
293
309
  agentKey: agentConfig.key,
294
310
  ...agentConfig.apiSource ? { apiSource: agentConfig.apiSource } : {},
295
311
  ...apiKey2 ? { apiKey: apiKey2 } : {},
312
+ ...isAgentCredentialShared(agentConfig) ? { credentialSynced: true } : {},
296
313
  ...apiKeyHeader ? { apiKeyHeader } : {}
297
314
  };
298
315
  }
@@ -351,7 +368,7 @@ async function buildProviderExecutionPlan(args) {
351
368
  apiKey = fromBroker;
352
369
  }
353
370
  }
354
- if (!apiKey && agentConfig.credentialSynced && args.syncFetcher && credentialRef) {
371
+ if (!apiKey && isAgentCredentialShared(agentConfig) && args.syncFetcher && credentialRef) {
355
372
  let synced = null;
356
373
  try {
357
374
  synced = await args.syncFetcher(credentialRef);
@@ -382,6 +399,9 @@ async function buildProviderExecutionPlan(args) {
382
399
  }
383
400
 
384
401
  export {
402
+ providerSecretKey,
403
+ isAgentCredentialShared,
404
+ resolveOutboundProxyApiKey,
385
405
  pickAgentRuntimeInferenceOptions,
386
406
  trimTrailingSlash,
387
407
  resolvePlatformServerUrl,
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  selectCurrentServer,
3
3
  selectRemoteServers
4
- } from "./chunk-ATEKLSLR.js";
4
+ } from "./chunk-BZMDWGQQ.js";
5
5
  import {
6
6
  noloDeleteRequest,
7
7
  noloWriteRequest
8
- } from "./chunk-7Z6EW7AH.js";
8
+ } from "./chunk-ZTHAJU3O.js";
9
9
  import {
10
10
  normalizeTimeFields
11
- } from "./chunk-4N6G2CKP.js";
11
+ } from "./chunk-HDKMVYNJ.js";
12
12
  import {
13
13
  selectIdentityUser,
14
14
  selectIdentityUserId
@@ -0,0 +1,26 @@
1
+ // packages/ai/memory/topicKey.ts
2
+ var TOPIC_KEY_MAX_LENGTH = 128;
3
+ var TOPIC_KEY_PATTERN = /^[a-z0-9](?:[a-z0-9._:-]{0,127})$/;
4
+ function normalizeTopicKey(raw) {
5
+ if (raw === void 0 || raw === null) return void 0;
6
+ if (typeof raw !== "string") {
7
+ throw new Error("rememberMemory: topicKey must be a string");
8
+ }
9
+ const normalized = raw.trim().toLowerCase();
10
+ if (!normalized) return void 0;
11
+ if (normalized.length > TOPIC_KEY_MAX_LENGTH) {
12
+ throw new Error(
13
+ `rememberMemory: topicKey must be <= ${TOPIC_KEY_MAX_LENGTH} characters`
14
+ );
15
+ }
16
+ if (!TOPIC_KEY_PATTERN.test(normalized)) {
17
+ throw new Error(
18
+ "rememberMemory: topicKey must start with [a-z0-9] and only contain [a-z0-9._:-]"
19
+ );
20
+ }
21
+ return normalized;
22
+ }
23
+
24
+ export {
25
+ normalizeTopicKey
26
+ };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  refreshSubscriptionQuotas
3
- } from "./chunk-TUSTONB3.js";
3
+ } from "./chunk-P27E22MA.js";
4
4
  import {
5
5
  getReadableCliDb
6
- } from "./chunk-YFLVRVYK.js";
6
+ } from "./chunk-ZYPXOQS2.js";
7
7
  import {
8
8
  clearCliLocalRuntimePreparedAgentCache
9
- } from "./chunk-DLXMMTGM.js";
9
+ } from "./chunk-DHRPLRIR.js";
10
10
  import {
11
11
  readCredentialAvailability
12
- } from "./chunk-WWTSEBDF.js";
12
+ } from "./chunk-GIXWVN2W.js";
13
13
  import {
14
14
  BIGMODEL_PROVIDER_TARGET,
15
15
  buildCredentialUseGrant,
@@ -25,7 +25,7 @@ import {
25
25
  resolveAgentRecordFromHybridStore,
26
26
  sanitizeAgentRecordForCliOutput,
27
27
  writeAgentRecord
28
- } from "./chunk-TQEKUOTI.js";
28
+ } from "./chunk-UFGUJ2IH.js";
29
29
  import {
30
30
  resolveCliAgentKeyInput
31
31
  } from "./chunk-BR3GT6MR.js";
@@ -256,7 +256,7 @@ async function runAgentCreateCommand(args, deps = {}) {
256
256
  let verifyResult;
257
257
  if (parsed.verify) {
258
258
  try {
259
- const { verifyCustomProvider } = await import("./agentProviderCommands-STI3DQ6A.js");
259
+ const { verifyCustomProvider } = await import("./agentProviderCommands-QLTABYR7.js");
260
260
  const rec = built.nextRecord;
261
261
  const verifyCredentialRef = typeof rec.credentialRef === "string" && rec.credentialRef.trim() ? rec.credentialRef.trim() : "";
262
262
  if (verifyCredentialRef) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  authRoutes
3
- } from "./chunk-M3JEW6N6.js";
3
+ } from "./chunk-OYUMJMC5.js";
4
4
  import {
5
5
  BUILTIN_DIALOG_LLM_FALLBACK_MODEL,
6
6
  BUILTIN_SUMMARY_LLM_CONFIG
@@ -10,7 +10,7 @@ import {
10
10
  canUsePlatformChatProvider,
11
11
  parsePlatformChatCompletionResponse,
12
12
  resolvePlatformChatProviderConfig
13
- } from "./chunk-HSSBDZLD.js";
13
+ } from "./chunk-PIVTQRX6.js";
14
14
  import {
15
15
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
16
16
  classifySummaryError,
@@ -18,7 +18,7 @@ import {
18
18
  isTruncatedCompletion,
19
19
  selectSummaryRoute,
20
20
  summaryCompletionTokens
21
- } from "./chunk-L32W3PRP.js";
21
+ } from "./chunk-2FZVXOFX.js";
22
22
  import {
23
23
  isAbortError
24
24
  } from "./chunk-7DPNBQSV.js";
@@ -28,10 +28,10 @@ import {
28
28
  import {
29
29
  resolvePlatformAuthToken,
30
30
  resolvePlatformServerUrl
31
- } from "./chunk-RTHFJZ6M.js";
31
+ } from "./chunk-LVZVSLKO.js";
32
32
  import {
33
33
  PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL
34
- } from "./chunk-OBSEKCVK.js";
34
+ } from "./chunk-JPXACKSW.js";
35
35
 
36
36
  // packages/core/accountSession/fetchAccountProfile.ts
37
37
  async function fetchAccountProfile(input) {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  require_formatISO
3
3
  } from "./chunk-UVLYNWIE.js";
4
- import {
5
- require_react
6
- } from "./chunk-5FUN7EG4.js";
7
4
  import {
8
5
  patch,
9
6
  readAndWait
10
- } from "./chunk-CMMI3DAT.js";
7
+ } from "./chunk-ADYWV732.js";
8
+ import {
9
+ require_react
10
+ } from "./chunk-RD3QLZQV.js";
11
11
  import {
12
12
  toErrorMessage
13
13
  } from "./chunk-HNMXYYJR.js";
@@ -335,7 +335,7 @@ async function saveDocState(arg, { dispatch, getState }) {
335
335
  ).unwrap();
336
336
  if (dbSpaceId) {
337
337
  try {
338
- const { updateContentTitle } = await import("./contentThunks-GNFPG32S.js");
338
+ const { updateContentTitle } = await import("./contentThunks-CAHIIZO5.js");
339
339
  await dispatch(
340
340
  updateContentTitle({
341
341
  spaceId: dbSpaceId,
@@ -378,7 +378,7 @@ async function saveDocState(arg, { dispatch, getState }) {
378
378
  }
379
379
  }
380
380
  async function createDocState(args, thunkApi) {
381
- const { createPageAction } = await import("./createPageAction-2UYF2IDZ.js");
381
+ const { createPageAction } = await import("./createPageAction-N7QPDN3M.js");
382
382
  return createPageAction(args, thunkApi);
383
383
  }
384
384
  function subscribe(listener) {
@@ -1,6 +1,3 @@
1
- import {
2
- resolveLocalUserId
3
- } from "./chunk-HHFGE2WF.js";
4
1
  import {
5
2
  resolveNoloHome
6
3
  } from "./chunk-GLKOYSRU.js";
@@ -8,6 +5,9 @@ import {
8
5
  isSupportedDialogId,
9
6
  splitDialogKeyIdentity
10
7
  } from "./chunk-YZMNK53S.js";
8
+ import {
9
+ resolveLocalUserId
10
+ } from "./chunk-QGFLVQ6E.js";
11
11
  import {
12
12
  toErrorMessage
13
13
  } from "./chunk-HNMXYYJR.js";