nolo-cli 0.259.0-alpha.1 → 0.261.0-alpha.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 (320) hide show
  1. package/README.md +1 -1
  2. package/{_executeModel-MTM4BJK3.js → _executeModel-PODMRXJJ.js} +97 -83
  3. package/accountResolver-NGICIMEE.js +1 -1
  4. package/{action-C6IQAKN4.js → action-NJTYNXXR.js} +12 -10
  5. package/{addContentAction-53364YDW.js → addContentAction-RUPXLROG.js} +14 -13
  6. package/{addDialogAgentAction-U5DD5EN5.js → addDialogAgentAction-57EJ2UBC.js} +20 -24
  7. package/{agentDeleteCommand-53NN3VSK.js → agentDeleteCommand-DRFCOTYP.js} +185 -147
  8. package/{agentEmailCommands-KOGGIT6I.js → agentEmailCommands-FHENHUBF.js} +143 -127
  9. package/{agentGrantCommands-L6O2HVJI.js → agentGrantCommands-BMVKNYIY.js} +9 -6
  10. package/{agentListCommands-62UYUQDI.js → agentListCommands-W66W5K3V.js} +88 -69
  11. package/{agentMachineCommands-W6TNJXEA.js → agentMachineCommands-C3BUBCXU.js} +69 -60
  12. package/{agentProviderCommands-QLTABYR7.js → agentProviderCommands-VIWKP7DM.js} +11 -8
  13. package/{agentPullCommand-2EYJ5ENC.js → agentPullCommand-5SNSXOY7.js} +10 -7
  14. package/agentRecordCommands-DYMHWTID.js +210 -0
  15. package/agentRun-QVFG3CI4.js +250 -0
  16. package/agentRunCommand-YV4V5HSL.js +248 -0
  17. package/{agentRunControl-LXMADX3N.js → agentRunControl-RGBHKPKJ.js} +19 -12
  18. package/{agentRuntimeLocal-YGNJMQW3.js → agentRuntimeLocal-LVEMOYS2.js} +62 -49
  19. package/{agentSlice-3HHYUQLM.js → agentSlice-OJCM7OUX.js} +15 -18
  20. package/appConfigCommands-ZUXQLE7L.js +417 -0
  21. package/{appDeleteCommands-5COJ6CSG.js → appDeleteCommands-L5UKUMXY.js} +68 -58
  22. package/{appDeployCommands-3JPAT3XO.js → appDeployCommands-KX2BRQUW.js} +74 -59
  23. package/{appDeployStatusCommands-RHZKF3G4.js → appDeployStatusCommands-7LHRSWW7.js} +68 -58
  24. package/{appGetCommands-73DXOAQW.js → appGetCommands-F7SDFCUK.js} +74 -58
  25. package/{appListCommands-HD5LOQ3G.js → appListCommands-U4NJKSMZ.js} +74 -58
  26. package/appMigrateCommands-JAPOLYSW.js +230 -0
  27. package/appSourceCommands-TLXPWXUH.js +279 -0
  28. package/authCommand-AU3GZBZ2.js +65 -0
  29. package/{authCommands-T5FODCEG.js → authCommands-JKBWMUQ4.js} +20 -17
  30. package/{builtinSkillRegistry-EDHD2UHU.js → builtinSkillRegistry-6XUWMAV5.js} +8 -6
  31. package/{chromeOpsCommands-3SSTDFRF.js → chromeOpsCommands-F47WYQWF.js} +68 -18
  32. package/{chunk-5YS6QHGT.js → chunk-2FGFY72B.js} +9 -9
  33. package/{chunk-MJBLXJMP.js → chunk-2I4R6ZRV.js} +12 -9
  34. package/{chunk-FXEPZKNJ.js → chunk-2MIZHEND.js} +506 -64
  35. package/{chunk-TLE77UJ5.js → chunk-2OROOEOQ.js} +0 -1
  36. package/{chunk-6RSNVJGO.js → chunk-2ZBPWX7N.js} +4 -4
  37. package/chunk-35JIFLIG.js +30 -0
  38. package/{chunk-7OVOZRZF.js → chunk-3B7OTHDW.js} +23 -379
  39. package/{chunk-DNNPARJK.js → chunk-3QMN3T6L.js} +50 -37
  40. package/{chunk-DMPZMYH4.js → chunk-3R4AYHJR.js} +13 -1
  41. package/{chunk-XNNBXUEM.js → chunk-3TII7WCF.js} +5 -5
  42. package/{chunk-223KZUJ6.js → chunk-4HZCBA4Q.js} +18 -15
  43. package/{chunk-C5A54QS7.js → chunk-4INJGWE3.js} +18 -5
  44. package/chunk-4IVMDQBA.js +261 -0
  45. package/chunk-4Y6CZ2N4.js +82 -0
  46. package/{chunk-KZ4A7EIV.js → chunk-56OAS5RZ.js} +1 -1
  47. package/{chunk-KQHEGELM.js → chunk-63G7JWEA.js} +16 -6
  48. package/{chunk-4EACJPZI.js → chunk-6BBXJGIQ.js} +51 -42
  49. package/chunk-72VWN4VK.js +51 -0
  50. package/chunk-7LR2IFUH.js +100 -0
  51. package/{chunk-S73EPYNC.js → chunk-7LS5ATRP.js} +20 -6
  52. package/{chunk-XPETQ4MR.js → chunk-7X4BFUJV.js} +24 -10
  53. package/{chunk-KHYSFS3W.js → chunk-A454UXB6.js} +148 -73
  54. package/chunk-A4O76A6V.js +432 -0
  55. package/chunk-AMNZPQCY.js +635 -0
  56. package/{chunk-4MXYCQBS.js → chunk-AQNWWJLH.js} +2 -56
  57. package/{chunk-LHCGKAFO.js → chunk-BKP325XS.js} +184 -112
  58. package/{chunk-PENRYZ4D.js → chunk-BPB3T5EU.js} +4 -7
  59. package/{chunk-U6QNVOR5.js → chunk-BUGLH2A7.js} +130 -6
  60. package/{chunk-2JHGUL5K.js → chunk-BVYHE6QD.js} +2 -2
  61. package/{chunk-KXOPLLFP.js → chunk-CA7LGAHV.js} +69 -9
  62. package/{chunk-2FZVXOFX.js → chunk-CEIWXKHP.js} +112 -200
  63. package/{chunk-Y2TCTNUD.js → chunk-CK2LMTYO.js} +4 -4
  64. package/{chunk-AIFQKNPP.js → chunk-CL33RFD7.js} +1 -1
  65. package/{chunk-57V4PADY.js → chunk-CNYPQYXT.js} +781 -449
  66. package/{chunk-P4R5KXU7.js → chunk-CW6LRDSF.js} +5 -5
  67. package/chunk-D3ONA3FP.js +762 -0
  68. package/{chunk-PIVTQRX6.js → chunk-DDKA6V6X.js} +111 -12
  69. package/chunk-DLXL4NSL.js +1179 -0
  70. package/{chunk-EJQE5HB7.js → chunk-DSBRIUX5.js} +4 -2
  71. package/{chunk-XRGBJHZX.js → chunk-E36V7MPY.js} +9 -5
  72. package/{chunk-4YPH5KRA.js → chunk-EDKMRDET.js} +1 -1
  73. package/{chunk-DBJODIZ6.js → chunk-EQOWWSNQ.js} +19 -27
  74. package/chunk-ER6NTALN.js +34 -0
  75. package/{chunk-L4XST72F.js → chunk-ERCSHBUD.js} +16027 -17392
  76. package/chunk-EUHMI5KG.js +101 -0
  77. package/{chunk-YQLAFJRQ.js → chunk-FBNVJ2TO.js} +1 -1
  78. package/{chunk-Q2EERN52.js → chunk-FF5ZRKW7.js} +12 -7
  79. package/{chunk-6XIE5ZGI.js → chunk-FGFJUFPS.js} +5 -6
  80. package/chunk-FI4DPLR7.js +902 -0
  81. package/{chunk-HDKMVYNJ.js → chunk-FNLT7NKG.js} +7 -11
  82. package/{chunk-JCQ3WCQ3.js → chunk-FOC4TORM.js} +69 -3
  83. package/chunk-FP46RAJQ.js +58 -0
  84. package/{chunk-JPXACKSW.js → chunk-G22P2J7O.js} +30 -81
  85. package/{chunk-7WHCIA5V.js → chunk-G5IAIGGD.js} +3 -8
  86. package/{chunk-FZENZCIA.js → chunk-GEC4CHS2.js} +19 -12
  87. package/chunk-GF4LYNNZ.js +25 -0
  88. package/{chunk-IYLUK67R.js → chunk-GH6SS2DZ.js} +25 -8
  89. package/chunk-HAZ6UVH4.js +368 -0
  90. package/{chunk-OKAXQFON.js → chunk-HB4J5HA6.js} +4 -4
  91. package/{chunk-324FWHUA.js → chunk-HHXF57CL.js} +12 -3
  92. package/chunk-HJTI7RZV.js +94 -0
  93. package/{chunk-HQUGB2HM.js → chunk-HMFKYZKP.js} +62 -50
  94. package/{chunk-Q2MPKE4B.js → chunk-HVRG27HI.js} +76 -26
  95. package/{chunk-46FETNLF.js → chunk-IN4B6Z2D.js} +7 -6
  96. package/chunk-IV6VUVLJ.js +88 -0
  97. package/{chunk-LLUBUHNT.js → chunk-IWWJSSST.js} +5 -9
  98. package/{chunk-7BIJFGKS.js → chunk-J22PFCQN.js} +106 -52
  99. package/chunk-J42X32PV.js +472 -0
  100. package/{chunk-LCBAMY2M.js → chunk-JKVOKKMQ.js} +0 -7
  101. package/{chunk-KT7S7ANZ.js → chunk-JPYOHIHX.js} +9 -9
  102. package/{chunk-R7XWZDOH.js → chunk-JUMQJSQF.js} +1423 -282
  103. package/{chunk-KVMLM5VD.js → chunk-KAHYBAEN.js} +211 -472
  104. package/{chunk-KLMBM6P6.js → chunk-KALCFXQO.js} +2454 -1115
  105. package/chunk-KDDXC2IH.js +148 -0
  106. package/chunk-KGKTN2NX.js +25 -0
  107. package/chunk-KGWE224L.js +246 -0
  108. package/{chunk-OYUMJMC5.js → chunk-KSV6T4AH.js} +6 -1
  109. package/{chunk-P27E22MA.js → chunk-L43DGEPZ.js} +1 -1
  110. package/{chunk-5BIDJVNX.js → chunk-L45P4JTE.js} +180 -31
  111. package/chunk-LHCIIUCX.js +222 -0
  112. package/{chunk-CBIGMWMI.js → chunk-LHJB4BXJ.js} +1 -1
  113. package/{chunk-TRRXYFTR.js → chunk-LOFRSJX2.js} +1 -0
  114. package/{chunk-SQL7YNED.js → chunk-LPXBBC32.js} +71 -5
  115. package/{chunk-BIDSIRTS.js → chunk-LTCZOOAM.js} +11 -17
  116. package/chunk-LUTSMSIL.js +425 -0
  117. package/chunk-LXP53WGF.js +168 -0
  118. package/{chunk-2CT2J3O6.js → chunk-M7VNNPVX.js} +2493 -4055
  119. package/chunk-MDAYRIP7.js +1889 -0
  120. package/{chunk-6B2OBX5B.js → chunk-MMXHIHJZ.js} +15 -47
  121. package/{chunk-HPDLPEUG.js → chunk-MPWQI36J.js} +267 -234
  122. package/chunk-MRACVEPZ.js +7 -0
  123. package/{chunk-ZYPXOQS2.js → chunk-MSFKHPA6.js} +1 -1
  124. package/chunk-NHLLXINQ.js +8 -0
  125. package/{chunk-QXTEEEIN.js → chunk-NJCTPWJU.js} +8 -8
  126. package/chunk-NLS7F5DW.js +1697 -0
  127. package/{chunk-FP37ELBT.js → chunk-NTBTVKKB.js} +17 -25
  128. package/{chunk-JLZJL3WC.js → chunk-O77F26YB.js} +370 -39
  129. package/{chunk-LVZVSLKO.js → chunk-O7ZY6SUK.js} +5 -22
  130. package/{chunk-YN23INFZ.js → chunk-OIOMBPCA.js} +23 -2
  131. package/{chunk-CJOOF4L5.js → chunk-OSZNERNW.js} +17 -14
  132. package/{chunk-JZO7KUF3.js → chunk-P4I55ASV.js} +313 -275
  133. package/{chunk-2C5VN7NH.js → chunk-P4XAHM4B.js} +1 -1
  134. package/chunk-PL5RKESU.js +40 -0
  135. package/chunk-Q5FJJ6XI.js +103 -0
  136. package/{chunk-WS36XPJD.js → chunk-Q5IXZF3S.js} +82 -6
  137. package/{createAgentAutomationAction-GRZ6XY7Q.js → chunk-QKM55LP2.js} +3 -160
  138. package/{chunk-WSLL7VV4.js → chunk-QXWXRBOL.js} +9 -9
  139. package/{chunk-MXA54TQM.js → chunk-QZYQ3Y3G.js} +1 -1
  140. package/{chunk-FE7G6DSP.js → chunk-R72QWIFO.js} +14 -4
  141. package/{chunk-5RGU3J7P.js → chunk-REAE2SZK.js} +0 -1
  142. package/chunk-RF576RYE.js +117 -0
  143. package/chunk-RI7SXDJW.js +1317 -0
  144. package/{chunk-FEIVARWR.js → chunk-RIOAPUGV.js} +238 -25
  145. package/{chunk-BZLGPM5B.js → chunk-RNLKWUVY.js} +7 -12
  146. package/{chunk-J7JRCOIW.js → chunk-RWXHGPWJ.js} +1 -1
  147. package/{chunk-J55F3IEZ.js → chunk-SARJZIGR.js} +1 -1
  148. package/chunk-SJFL32RD.js +356 -0
  149. package/{chunk-6SOWMEAY.js → chunk-SR57FDTX.js} +2 -258
  150. package/{chunk-MPGR4ZNR.js → chunk-SRVLHMES.js} +46 -42
  151. package/{chunk-CEKRIR22.js → chunk-SU4NCTW4.js} +1 -1
  152. package/{chunk-RD3QLZQV.js → chunk-SWJRX4M5.js} +324 -2
  153. package/{chunk-R3TUHCSJ.js → chunk-T3Y2NA4H.js} +8 -3
  154. package/{chunk-53W5BXLN.js → chunk-TCOHWKDM.js} +54 -55
  155. package/{chunk-KWNVPY6M.js → chunk-TJXO66M2.js} +8 -5
  156. package/{chunk-QIGQFON2.js → chunk-TXMFSGRY.js} +1 -1
  157. package/{chunk-ADYWV732.js → chunk-U5PSCTMR.js} +264 -177
  158. package/{chunk-UUCYUN6Y.js → chunk-UB7NV7NN.js} +1 -1
  159. package/{chunk-QGFLVQ6E.js → chunk-UBOTXA3Z.js} +4 -14
  160. package/{chunk-6YX2RAQN.js → chunk-UEZL3RBG.js} +89 -164
  161. package/{chunk-NCFKHYDM.js → chunk-UJL23HBL.js} +774 -119
  162. package/chunk-ULPU4C43.js +1710 -0
  163. package/{chunk-UA3QTA2S.js → chunk-VC3MAT33.js} +4442 -2570
  164. package/{chunk-VNHZJEQN.js → chunk-VCESLFF4.js} +3 -3
  165. package/chunk-VOO3YQQP.js +17157 -0
  166. package/{chunk-Y2GWUBNS.js → chunk-VZDSNDUD.js} +279 -149
  167. package/{chunk-6BMTKYAO.js → chunk-W2Z5E2R7.js} +126 -698
  168. package/{chunk-4ZCTKB27.js → chunk-W5GKF5ZW.js} +1 -0
  169. package/chunk-WEEB2JKA.js +443 -0
  170. package/{chunk-NUHQO3RB.js → chunk-WIVVNJUS.js} +1 -1
  171. package/chunk-WMBJDXMY.js +408 -0
  172. package/chunk-WSQLCWLQ.js +201 -0
  173. package/{chunk-OOVOAG4Q.js → chunk-WY6DMHMG.js} +1 -1
  174. package/{chunk-6K32PBRY.js → chunk-XJW6SLBZ.js} +3 -3
  175. package/{chunk-MNFUKRRU.js → chunk-XKNDVHF5.js} +7 -7
  176. package/{chunk-MHKPUGPD.js → chunk-XREMPMNK.js} +20 -4
  177. package/chunk-XT6C2QZW.js +46 -0
  178. package/chunk-XUDXQT7R.js +790 -0
  179. package/{chunk-ZEZC7IIM.js → chunk-YFSM2366.js} +35 -35
  180. package/{chunk-RIWKZT7E.js → chunk-YRPIUIEQ.js} +11 -9
  181. package/{chunk-U35UUM5K.js → chunk-YVOUSIIA.js} +1 -1
  182. package/{chunk-6VEO7Z3Y.js → chunk-Z27AH6A5.js} +6 -6
  183. package/chunk-Z3KTXWWB.js +76 -0
  184. package/{chunk-UWWOWTW2.js → chunk-Z7EP5HDL.js} +1 -1
  185. package/{chunk-YFEK7ACQ.js → chunk-ZB2E724W.js} +4 -4
  186. package/{chunk-YLAHYLDQ.js → chunk-ZC3CMUKU.js} +2 -89
  187. package/{chunk-5P3PPQVP.js → chunk-ZQAADXSF.js} +1 -1
  188. package/{cliAgentConfigHelpers-BXHQ3PXP.js → cliAgentConfigHelpers-BJJEXHSZ.js} +20 -14
  189. package/{cliAuthorityBrokerClient-TFNXJLXL.js → cliAuthorityBrokerClient-3SKOA7OZ.js} +3 -1
  190. package/cliAuthorityBrokerProcess-VIJEKQSX.js +34 -0
  191. package/{cliEnvHelpers-CNMP3RDX.js → cliEnvHelpers-NDMKN4X2.js} +6 -3
  192. package/{cliExecutor-K6FDZTQ2.js → cliExecutor-Z62UBJ5S.js} +12 -6
  193. package/cliLocalAgentRecordReader-KCZS2MZU.js +113 -0
  194. package/cloudAutomationCommands-2WQUGQSW.js +310 -0
  195. package/{commandRegistry-IFYQLPGM.js → commandRegistry-C64JBZJ3.js} +288 -121
  196. package/{contentThunks-QCFCD2X3.js → contentThunks-G3HEIRXC.js} +45 -43
  197. package/{cooldownCommands-WDOI5VD7.js → cooldownCommands-FPAFS7XG.js} +1 -1
  198. package/createAgentAutomationAction-DSBL3X3A.js +172 -0
  199. package/createDialogAction-OHFUHC53.js +86 -0
  200. package/{createPageAction-QCVBMP4C.js → createPageAction-E6JZSZLU.js} +49 -45
  201. package/{db-VR74ADGC.js → db-KTQ3LL2Q.js} +3 -3
  202. package/{dbSlice-RWPSVHBC.js → dbSlice-U3GPLEL3.js} +21 -16
  203. package/deleteDbKey-DRXKWJX5.js +86 -0
  204. package/{dialogCommands-4IEQUALS.js → dialogCommands-4EX2OTIC.js} +80 -66
  205. package/{dialogMessageRecord-OAV77LT7.js → dialogMessageRecord-2HJTEXQX.js} +1 -1
  206. package/dialogNotifyCommand-4SCE2Z2R.js +44 -0
  207. package/dialogPortabilityCommands-ZSFFHRX4.js +3036 -0
  208. package/{dialogSlice-XFYID6KE.js → dialogSlice-PRZCIJCH.js} +43 -42
  209. package/{dialogTraceCommand-Y67NRFCV.js → dialogTraceCommand-RKB76OVX.js} +84 -70
  210. package/{dialogUsageCommand-WJ3U6KZU.js → dialogUsageCommand-BP7HMRYP.js} +7 -4
  211. package/{docCreateCommands-QLRIWRQE.js → docCreateCommands-JGPNGIZ7.js} +68 -59
  212. package/{docDeleteCommands-XPRYA532.js → docDeleteCommands-XRJTNRDH.js} +68 -59
  213. package/{docReadCommands-EXQI7ETH.js → docReadCommands-6GFO4ARS.js} +67 -58
  214. package/{docStore-MWFUKZL2.js → docStore-QRLIWFTU.js} +16 -17
  215. package/{docUpdateCommands-EFBFQV77.js → docUpdateCommands-W2GXMUXW.js} +68 -59
  216. package/{ebookDownloaderAgentCommand-DYSKF5ZY.js → ebookDownloaderAgentCommand-2DHPGEOQ.js} +14 -17
  217. package/{fetchMessages-TQEUZD7H.js → fetchMessages-RGPIYEPZ.js} +2 -2
  218. package/{getPricing-5BLZRPTM.js → getPricing-BK6CUBAE.js} +8 -4
  219. package/{handleSendMessageAction-GG3TR62X.js → handleSendMessageAction-DHGWURJZ.js} +265 -119
  220. package/{hostCredentialCreate-26S6DDJ5.js → hostCredentialCreate-FPUZ7RMI.js} +138 -122
  221. package/index.js +36 -22
  222. package/{keys-RWF7UCB4.js → keys-FXEGMKSG.js} +2 -2
  223. package/localAutomationCommands-ZMU22RQJ.js +198 -0
  224. package/localAutomationRuntime-MU5FGJ3V.js +60 -0
  225. package/{localDialogRead-BJJT3TF5.js → localDialogRead-W2EVXISA.js} +2 -2
  226. package/{localRuntimeAdapter-VREWZWPC.js → localRuntimeAdapter-YBXQBV4G.js} +136 -119
  227. package/localRuntimeAuthority-LDXMEDO5.js +44 -0
  228. package/{localRuntimeDb-ZJFGNHML.js → localRuntimeDb-6TQZDLNU.js} +1 -1
  229. package/{machineCommands-CL5XK5UC.js → machineCommands-57RTUYRV.js} +251 -357
  230. package/{machineInfo-LWHTEBHJ.js → machineInfo-BJIU3WQ5.js} +4 -2
  231. package/machineWsRunDispatch-VBKV3FFE.js +227 -0
  232. package/{mcpLocalAuthorizeCommand-RBXJDE6J.js → mcpLocalAuthorizeCommand-J76SOJVZ.js} +40 -22
  233. package/mcpLocalManageCommands-USETIMHB.js +212 -0
  234. package/{memberThunks-43B7UYC5.js → memberThunks-7UERUEMI.js} +102 -22
  235. package/{memoryCommands-BC6REPQB.js → memoryCommands-N7NHEE55.js} +25 -34
  236. package/{models-ZX2BYIMB.js → models-TOXYINNM.js} +3 -2
  237. package/{offlineMarxistsAgentCommand-XVXUE6G5.js → offlineMarxistsAgentCommand-WZBJBCPZ.js} +16 -22
  238. package/package.json +3 -3
  239. package/parityCommands-LYDLWSLK.js +613 -0
  240. package/{projectArchive-OC63TWTD.js → projectArchive-KCNQDVWJ.js} +49 -45
  241. package/{providerPresetApply-NTJUINI6.js → providerPresetApply-IRJ56XIZ.js} +12 -16
  242. package/{providerRegistry-W45SLUV6.js → providerRegistry-26PAUYH2.js} +3 -13
  243. package/{read-KG6INYUT.js → read-SPSQ6NLR.js} +11 -10
  244. package/{readDocTool-N3GA52JR.js → readDocTool-ENUL2GNL.js} +5 -1
  245. package/{readlineWorkspace-2NO6D6IZ.js → readlineWorkspace-MKS7TAEF.js} +927 -573
  246. package/{rememberExplicit-CPAPONSI.js → rememberExplicit-7KX4HXQC.js} +4 -4
  247. package/remove-TNNDO635.js +32 -0
  248. package/{removeDialogAgentAction-EEVSOQOJ.js → removeDialogAgentAction-POPUZ3WU.js} +22 -26
  249. package/{runAgentClientLoop-U7V32UTD.js → runAgentClientLoop-KVILXQNI.js} +117 -82
  250. package/{runtimeDoctorCommands-V3M3JTUV.js → runtimeDoctorCommands-4J2DP4LZ.js} +23 -16
  251. package/{secretCommands-KVVZS7A6.js → secretCommands-CSTQYB6T.js} +2 -2
  252. package/{setDialogExtraReferencesAction-DNO5POHA.js → setDialogExtraReferencesAction-35THMVBP.js} +16 -17
  253. package/{setPrimaryDialogAgentAction-QABBEO4C.js → setPrimaryDialogAgentAction-WLXBNIG7.js} +23 -27
  254. package/{settingThunks-DVKG4X4S.js → settingThunks-6Y5U5M5N.js} +170 -497
  255. package/{skillDiscovery-5GEGWJ6N.js → skillDiscovery-IUEZZG2B.js} +3 -3
  256. package/{spaceCommands-7QKXKBDQ.js → spaceCommands-LXNJBO2U.js} +293 -58
  257. package/spacePruneCommand-2ITUFYBM.js +233 -0
  258. package/{store-Z53ICFL3.js → store-WSAVTR32.js} +3 -1
  259. package/{streamAgentChatTurn-UAGFOXNJ.js → streamAgentChatTurn-EY6MFKCA.js} +225 -137
  260. package/{switchDialogAgentAction-KYWJSGOO.js → switchDialogAgentAction-TG6BQRDA.js} +19 -23
  261. package/{tableCommands-EFA754RE.js → tableCommands-35G34R4B.js} +28 -49
  262. package/{toolApiClient-N5PYW2R3.js → toolApiClient-MPQIFYXP.js} +15 -4
  263. package/{tools-2Q2LBDUC.js → tools-CSLTRRUR.js} +73 -63
  264. package/{tuiRestart-4QDWLHYZ.js → tuiRestart-ALR4Q3JM.js} +20 -13
  265. package/tuiSummaryLlmCaller-3Y3JEXJK.js +52 -0
  266. package/{updateCommands-GJGRS6JK.js → updateCommands-GHQVP6Z5.js} +13 -8
  267. package/{updateDialogTitleAction-GGNTTI5L.js → updateDialogTitleAction-LFAWF5EW.js} +57 -58
  268. package/{usageCommand-WI6SQOPB.js → usageCommand-5VKW6T4C.js} +6 -8
  269. package/{usageRebuildCommand-WQRLLZAT.js → usageRebuildCommand-VUQETFMW.js} +11 -15
  270. package/{windowsSelfUpdate-C7LGVWYX.js → windowsSelfUpdate-SXSVXK4X.js} +2 -2
  271. package/workContext-ZAW6VXT7.js +18 -0
  272. package/workContextQueryProjection-CACY5VFE.js +23 -0
  273. package/{workloadLifecycle-DYX5ZMAT.js → workloadLifecycle-P2SJVV3S.js} +1 -1
  274. package/agentFavoriteCommands-7LOP3HUD.js +0 -186
  275. package/agentRecordCommands-TPE7NSZ6.js +0 -194
  276. package/agentRunCommand-DMVGBPLI.js +0 -232
  277. package/authCommand-V6EOMZX6.js +0 -79
  278. package/chunk-2MBTWINN.js +0 -89
  279. package/chunk-523DITKR.js +0 -32
  280. package/chunk-BUDVRYES.js +0 -2213
  281. package/chunk-BZMDWGQQ.js +0 -47
  282. package/chunk-GAHJLSDO.js +0 -107
  283. package/chunk-GYX6XTAI.js +0 -84
  284. package/chunk-HNUWUO75.js +0 -93
  285. package/chunk-HSBHS6KT.js +0 -33401
  286. package/chunk-KG27JIG4.js +0 -136
  287. package/chunk-OB4FBZXJ.js +0 -364
  288. package/chunk-OKH74FML.js +0 -3746
  289. package/chunk-OLZBQWZU.js +0 -6
  290. package/chunk-OOV5JN25.js +0 -1317
  291. package/chunk-OQFOE4SJ.js +0 -405
  292. package/chunk-PXYBUFDB.js +0 -53
  293. package/chunk-R3FZHW4Q.js +0 -103
  294. package/chunk-R3MV2GII.js +0 -106
  295. package/chunk-SCAC3NM5.js +0 -11751
  296. package/chunk-SR4FE5VD.js +0 -9
  297. package/chunk-SYTHYBMI.js +0 -3558
  298. package/chunk-UKZX3NHN.js +0 -48
  299. package/chunk-UVLYNWIE.js +0 -74
  300. package/chunk-VQX5JJNI.js +0 -861
  301. package/chunk-X4O7FJF5.js +0 -160
  302. package/chunk-YJPK35HB.js +0 -175
  303. package/chunk-YNIYE47Z.js +0 -105
  304. package/chunk-Z4PCXPUE.js +0 -127
  305. package/chunk-ZR5IVL4N.js +0 -862
  306. package/chunk-ZTHAJU3O.js +0 -2537
  307. package/cliAuthorityBrokerProcess-5ZFBTHLB.js +0 -22
  308. package/cliLocalAgentRecordReader-34UKRBLY.js +0 -104
  309. package/createDialogAction-ZAJERW62.js +0 -82
  310. package/deleteFile-ECU6FU5C.js +0 -55
  311. package/dialogNotifyCommand-IASQGEMW.js +0 -36
  312. package/localRuntimeAuthority-UF2DAQ3F.js +0 -28
  313. package/machineWsRunDispatch-TBVOYOAH.js +0 -209
  314. package/markdownToSlate-PXYAIBVL.js +0 -8
  315. package/tuiSummaryLlmCaller-HROLGN4F.js +0 -45
  316. package/webapi-QVV65DQF.js +0 -2487
  317. package/workContext-Y3ADAPZU.js +0 -14
  318. package/{chunk-USGHJSGO.js → chunk-GX2MFKF3.js} +3 -3
  319. package/{chunk-PHREU2KZ.js → chunk-WX266G2C.js} +0 -0
  320. package/{chunk-DXWGFL2Z.js → chunk-YY7IGJMN.js} +3 -3
@@ -0,0 +1,82 @@
1
+ // packages/ai/agent/dispatchIntent.ts
2
+ var DISPATCH_INTENT_PATTERN = /(派发|派单|派个|派一|派两|派几|派人|子任务|子\s*[aA]gent|多\s*[aA]gent|多个\s*[aA]gent|并行处理|并行派发|并发派发|并行执行|并发执行|分头|会商|独立\s*review|派.{0,4}review|dispatch|delegat|sub[\s-]?agent|sub[\s-]?task|fan[\s-]?out|orchestrat|in parallel|paralleliz|background run)/i;
3
+ var MULTI_EXECUTOR_PATTERN = /(?:(?:两|二|三|四|五|六|七|八|九|十|几|多|数|若干|(?<![0-9])(?:[2-9]|[1-9][0-9]+))\s*(?:个|位|名)\s*(?:助手|agent|assistant|worker|reviewer|专家|子\s*agent)|(?:two|three|four|five|six|several|multiple|these|those|the following|(?<![0-9])(?:[2-9]|[1-9][0-9]+))\s+(?:agents?|assistants?|helpers?|reviewers?|workers?|tasks?|sub-?agents?|sub-?tasks?))/i;
4
+ var COLLAB_ACTION_PATTERN = /(?:分工|同时处理|同时做|同时推进|同时进行|并行|并发|分别|各自|协作|协同|代码审查|审查|review|concurrently|simultaneously|separately|respectively|in parallel)/i;
5
+ var DISPATCH_TOOL_NAMES = /* @__PURE__ */ new Set(["startAgentRun", "controlAgentRun"]);
6
+ var ROUND_BUDGET_WARNING_PREFIX = "[\u7CFB\u7EDF\u63D0\u793A] \u5F53\u524D\u5355\u6B21\u4EFB\u52A1\u7684\u8FDE\u7EED\u5DE5\u5177\u8C03\u7528\u5DF2\u8FBE";
7
+ var OFFLOAD_NUDGE_PREFIX = "[\u7CFB\u7EDF\u63D0\u793A\xB7\u5206\u5DE5\u62A4\u680F]";
8
+ var SUBTASK_SOFT_BUDGET_NOTICE_PREFIXES = [
9
+ "[\u7CFB\u7EDF\u63D0\u793A \xB7 \u5B50\u4EFB\u52A1\u8F6F\u9884\u7B97\u63D0\u9192]",
10
+ "[\u7CFB\u7EDF\u63D0\u793A \xB7 \u5B50\u4EFB\u52A1\u5F3A\u6536\u655B\u63D0\u9192]"
11
+ ];
12
+ var INTERNAL_NOTICE_PREFIXES = [
13
+ ROUND_BUDGET_WARNING_PREFIX,
14
+ OFFLOAD_NUDGE_PREFIX,
15
+ ...SUBTASK_SOFT_BUDGET_NOTICE_PREFIXES
16
+ ];
17
+ function isInternalNoticeText(text) {
18
+ if (typeof text !== "string") return false;
19
+ const trimmed = text.trimStart();
20
+ return INTERNAL_NOTICE_PREFIXES.some((prefix) => trimmed.startsWith(prefix));
21
+ }
22
+ function detectDispatchIntent(text) {
23
+ if (typeof text !== "string" || !text.trim()) return false;
24
+ const intentText = text.replace(
25
+ /(^|[,,。.!!??;;::\n])\s*(?:请\s*)?(?:不要|别|禁止|无需|不需要)\s*(?:(?:并行|并发)?派发|派单|派给\s*(?:助手|agent))(?=\s*(?:[,,。.!!??;;::\n]|$))/gi,
26
+ "$1"
27
+ );
28
+ if (DISPATCH_INTENT_PATTERN.test(intentText)) return true;
29
+ if (/(^|[,,。.!!??;;::\n])\s*(?:(?:现在|改完后)\s*)?(?:请\s*)?派给\s*(?:助手|agent\b)/i.test(intentText)) return true;
30
+ return MULTI_EXECUTOR_PATTERN.test(intentText) && COLLAB_ACTION_PATTERN.test(intentText);
31
+ }
32
+ function isInternalNoticeMessage(msg) {
33
+ if (!msg) return false;
34
+ if (msg.internalNotice === true) return true;
35
+ return isInternalNoticeText(messageText(msg.content));
36
+ }
37
+ function messageText(content) {
38
+ if (typeof content === "string") return content;
39
+ if (Array.isArray(content)) {
40
+ return content.map((part) => typeof part?.text === "string" ? part.text : "").join("\n");
41
+ }
42
+ return "";
43
+ }
44
+ function toolCallName(call) {
45
+ const nested = call?.function?.name;
46
+ if (typeof nested === "string" && nested) return nested;
47
+ const flat = call?.name;
48
+ if (typeof flat === "string" && flat) return flat;
49
+ return "";
50
+ }
51
+ function hasDispatchToolCall(msg) {
52
+ const calls = Array.isArray(msg.tool_calls) ? msg.tool_calls : Array.isArray(msg.toolCalls) ? msg.toolCalls : [];
53
+ if (calls.some((call) => DISPATCH_TOOL_NAMES.has(toolCallName(call)))) {
54
+ return true;
55
+ }
56
+ for (const field of [msg.toolName, msg.name]) {
57
+ if (typeof field === "string" && DISPATCH_TOOL_NAMES.has(field)) return true;
58
+ }
59
+ return false;
60
+ }
61
+ function detectDispatchIntentFromMessages(messages) {
62
+ if (!Array.isArray(messages)) return false;
63
+ for (const msg of messages) {
64
+ if (!msg) continue;
65
+ const text = messageText(msg.content);
66
+ if (!isInternalNoticeMessage(msg)) {
67
+ if (msg.role === "user" && detectDispatchIntent(text)) return true;
68
+ }
69
+ if (hasDispatchToolCall(msg)) return true;
70
+ }
71
+ return false;
72
+ }
73
+
74
+ export {
75
+ ROUND_BUDGET_WARNING_PREFIX,
76
+ OFFLOAD_NUDGE_PREFIX,
77
+ SUBTASK_SOFT_BUDGET_NOTICE_PREFIXES,
78
+ isInternalNoticeText,
79
+ detectDispatchIntent,
80
+ isInternalNoticeMessage,
81
+ detectDispatchIntentFromMessages
82
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  providerSecretKey
3
- } from "./chunk-LVZVSLKO.js";
3
+ } from "./chunk-KGKTN2NX.js";
4
4
 
5
5
  // packages/ai/agent/providerSecrets.ts
6
6
  var STORAGE_KEY = "nolo-local-secrets";
@@ -3,10 +3,14 @@ import {
3
3
  } from "./chunk-QYPE3TS3.js";
4
4
  import {
5
5
  getActiveDialogKey
6
- } from "./chunk-U35UUM5K.js";
6
+ } from "./chunk-YVOUSIIA.js";
7
7
  import {
8
+ getRuntimeServerSnapshot,
8
9
  selectIdentityToken
9
- } from "./chunk-PXYBUFDB.js";
10
+ } from "./chunk-SWJRX4M5.js";
11
+ import {
12
+ googleSessionServer
13
+ } from "./chunk-FNLT7NKG.js";
10
14
  import {
11
15
  compactWhitespace
12
16
  } from "./chunk-DWLEOOGR.js";
@@ -36,7 +40,6 @@ var resolveDesktopSafeServer = (value) => {
36
40
  if (!getIsDesktopApp()) return value || MAIN_SERVER;
37
41
  return isLocalServerUrl(value) ? MAIN_SERVER : value || MAIN_SERVER;
38
42
  };
39
- var selectCurrentServerFromState = (state) => resolveDesktopSafeServer(state?.settings?.currentServer);
40
43
  var selectCurrentTokenFromState = (state) => {
41
44
  const token = selectIdentityToken(state);
42
45
  return typeof token === "string" ? token : null;
@@ -93,7 +96,11 @@ var resolveToolDialogId = (thunkApi, options = {}) => {
93
96
  var resolveToolBaseUrl = (currentServer) => {
94
97
  const _window = globalThis.window;
95
98
  if (!_window) return (currentServer || "").replace(/\/+$/, "");
96
- const fallbackLocal = _window.location.origin;
99
+ const origin = _window.location?.origin;
100
+ if (!getIsDesktopApp() && typeof origin === "string" && /^https?:\/\//.test(origin)) {
101
+ return origin.replace(/\/+$/, "");
102
+ }
103
+ const fallbackLocal = typeof origin === "string" ? origin.replace(/\/+$/, "") : "";
97
104
  if (!currentServer) return fallbackLocal;
98
105
  return currentServer.replace(/\/+$/, "");
99
106
  };
@@ -129,8 +136,11 @@ var resolveToolApiBaseUrl = (currentServer, path) => {
129
136
  };
130
137
  var getRequestConfig = (thunkApi) => {
131
138
  const state = thunkApi.getState();
132
- const currentServer = selectCurrentServerFromState(state);
133
139
  const token = selectCurrentTokenFromState(state);
140
+ const currentServer = thunkApi.serverBase ?? (() => {
141
+ const server = getRuntimeServerSnapshot(state).currentServer;
142
+ return googleSessionServer(token, server) ?? resolveDesktopSafeServer(server);
143
+ })();
134
144
  if (!currentServer) throw new Error("\u65E0\u6CD5\u83B7\u53D6\u5F53\u524D\u670D\u52A1\u5668\u5730\u5740\u3002");
135
145
  return { currentServer, token };
136
146
  };
@@ -222,7 +232,7 @@ async function callToolApi(thunkApi, path, body, options = {}) {
222
232
  method,
223
233
  headers,
224
234
  ...options.signal ? { signal: options.signal } : {},
225
- ...method === "GET" ? {} : { body: JSON.stringify(buildToolRequestBody(thunkApi, body, options)) }
235
+ ...method === "GET" || method === "DELETE" && Object.keys(body ?? {}).length === 0 ? {} : { body: JSON.stringify(buildToolRequestBody(thunkApi, body, options)) }
226
236
  });
227
237
  const contentType = response.headers.get("content-type");
228
238
  const responseText = await response.text();
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-QXTEEEIN.js";
8
+ } from "./chunk-NJCTPWJU.js";
9
9
  import {
10
10
  CONFIRMATION_INPUT_KEYS,
11
11
  INVALID_TOOL_ARGS_REPLACEMENT,
@@ -15,11 +15,11 @@ import {
15
15
  reportToolExecutionErrorInBackground,
16
16
  sanitizeOutboundMessages,
17
17
  stripModelToolArgs
18
- } from "./chunk-MPGR4ZNR.js";
18
+ } from "./chunk-SRVLHMES.js";
19
19
  import {
20
20
  findToolExecutor,
21
21
  toolDefinitionsByName
22
- } from "./chunk-KLMBM6P6.js";
22
+ } from "./chunk-KALCFXQO.js";
23
23
  import {
24
24
  createSSEParser,
25
25
  createToolRunId,
@@ -28,7 +28,7 @@ import {
28
28
  toolRunSetPending,
29
29
  toolRunStarted,
30
30
  toolRunSucceeded
31
- } from "./chunk-VQX5JJNI.js";
31
+ } from "./chunk-ULPU4C43.js";
32
32
  import {
33
33
  addToolMessage,
34
34
  messageStreamEnd,
@@ -36,34 +36,32 @@ import {
36
36
  toast,
37
37
  toolResultNeedsUserConfirmation,
38
38
  updateToolMessage
39
- } from "./chunk-2CT2J3O6.js";
39
+ } from "./chunk-M7VNNPVX.js";
40
40
  import {
41
41
  streamAgentChatTurn
42
- } from "./chunk-JZO7KUF3.js";
42
+ } from "./chunk-P4I55ASV.js";
43
43
  import {
44
44
  getCurrentSpaceId
45
- } from "./chunk-YN23INFZ.js";
45
+ } from "./chunk-OIOMBPCA.js";
46
46
  import {
47
- selectCurrentServer
48
- } from "./chunk-BZMDWGQQ.js";
47
+ createAsyncThunk
48
+ } from "./chunk-AMNZPQCY.js";
49
49
  import {
50
50
  write
51
- } from "./chunk-ADYWV732.js";
51
+ } from "./chunk-U5PSCTMR.js";
52
+ import {
53
+ getRequestConfig
54
+ } from "./chunk-63G7JWEA.js";
52
55
  import {
53
56
  addActiveController,
54
57
  getActiveDialogKey,
55
58
  removeActiveController,
56
59
  tokenUsageLiveUpdate
57
- } from "./chunk-U35UUM5K.js";
58
- import {
59
- require_react
60
- } from "./chunk-RD3QLZQV.js";
61
- import {
62
- createAsyncThunk
63
- } from "./chunk-ZTHAJU3O.js";
60
+ } from "./chunk-YVOUSIIA.js";
64
61
  import {
62
+ require_react,
65
63
  selectIdentityToken
66
- } from "./chunk-PXYBUFDB.js";
64
+ } from "./chunk-SWJRX4M5.js";
67
65
  import {
68
66
  classifyOutboundErrorCategory,
69
67
  createOutboundDiagnosticCall,
@@ -71,7 +69,7 @@ import {
71
69
  projectUserPartForModel,
72
70
  resolveOutboundDiagnosticSink,
73
71
  resolveOutboundWire
74
- } from "./chunk-AIFQKNPP.js";
72
+ } from "./chunk-CL33RFD7.js";
75
73
  import {
76
74
  accumulateToolCallDelta,
77
75
  createThinkParserState,
@@ -83,30 +81,33 @@ import {
83
81
  } from "./chunk-56GBUMO5.js";
84
82
  import {
85
83
  normalizeChatCompletionsBodyForProvider
86
- } from "./chunk-FXEPZKNJ.js";
84
+ } from "./chunk-2MIZHEND.js";
87
85
  import {
88
86
  classifyApiError,
89
87
  classifyGenerationError,
90
88
  extractErrorDiagnostics
91
- } from "./chunk-TLE77UJ5.js";
89
+ } from "./chunk-2OROOEOQ.js";
92
90
  import {
93
91
  LIST_AGENTS_OUTPUT_BUDGET,
94
92
  isCompleteInstructionOutput,
95
93
  sanitizeToolOutputText,
96
94
  scrubSecrets
97
- } from "./chunk-QIGQFON2.js";
95
+ } from "./chunk-TXMFSGRY.js";
98
96
  import {
99
97
  EMPTY_ASSISTANT_REPAIR_PROMPT
100
- } from "./chunk-7WHCIA5V.js";
98
+ } from "./chunk-G5IAIGGD.js";
101
99
  import {
102
100
  getModelInfo
103
- } from "./chunk-2FZVXOFX.js";
101
+ } from "./chunk-CEIWXKHP.js";
104
102
  import {
105
103
  isAbortError
106
104
  } from "./chunk-7DPNBQSV.js";
105
+ import {
106
+ toErrorMessage
107
+ } from "./chunk-HNMXYYJR.js";
107
108
  import {
108
109
  toTrimmedString
109
- } from "./chunk-SYTHYBMI.js";
110
+ } from "./chunk-DLXL4NSL.js";
110
111
  import {
111
112
  createDialogMessageKeyAndId,
112
113
  dialogMessageKey
@@ -117,18 +118,15 @@ import {
117
118
  import {
118
119
  extractCustomId
119
120
  } from "./chunk-M2EJHDJP.js";
120
- import {
121
- getPublicImageAgentMode
122
- } from "./chunk-VIDPVFP3.js";
123
- import {
124
- toErrorMessage
125
- } from "./chunk-HNMXYYJR.js";
126
121
  import {
127
122
  asTrimmedString
128
123
  } from "./chunk-3EUW3WEO.js";
124
+ import {
125
+ getPublicImageAgentMode
126
+ } from "./chunk-VIDPVFP3.js";
129
127
  import {
130
128
  getApiEndpoint
131
- } from "./chunk-OKH74FML.js";
129
+ } from "./chunk-RI7SXDJW.js";
132
130
  import {
133
131
  isRecord
134
132
  } from "./chunk-KUG52IAP.js";
@@ -606,6 +604,7 @@ var processToolData = createAsyncThunk(
606
604
  async (args, thunkApi) => {
607
605
  const { toolCall, parentMessageId, toolRunId, agentKey } = args;
608
606
  const { dispatch, rejectWithValue } = thunkApi;
607
+ const toolThunkApi = { ...thunkApi, serverBase: args.serverBase, runtimeServers: args.runtimeServers };
609
608
  const func = toolCall.function;
610
609
  if (!func || !func.name) {
611
610
  throw new Error(
@@ -649,7 +648,7 @@ var processToolData = createAsyncThunk(
649
648
  try {
650
649
  toolRunSetPending({ id: toolRunId });
651
650
  const previewExecutor = def?.previewExecutor;
652
- const previewResult = previewExecutor ? await previewExecutor(executionToolArgs, thunkApi, { parentMessageId }) : {
651
+ const previewResult = previewExecutor ? await previewExecutor(executionToolArgs, toolThunkApi, { parentMessageId }) : {
653
652
  rawData: {
654
653
  previewOnly: true,
655
654
  toolName: canonicalName,
@@ -719,7 +718,7 @@ var processToolData = createAsyncThunk(
719
718
  let executorThrew = false;
720
719
  try {
721
720
  try {
722
- toolResult = await found.executor(executionToolArgs, thunkApi, {
721
+ toolResult = await found.executor(executionToolArgs, toolThunkApi, {
723
722
  parentMessageId,
724
723
  toolRunId,
725
724
  agentKey,
@@ -728,6 +727,7 @@ var processToolData = createAsyncThunk(
728
727
  // 定档信号:这里是前台对话流式路径,来源恒为 chat;对话 id 用于数历史搜索。
729
728
  ...args.dialogId ? { dialogId: args.dialogId } : {},
730
729
  ...args.userMessageId ? { userMessageId: args.userMessageId } : {},
730
+ ...canonicalName === "openAIGptImageGenerate" ? { currentReferenceImageUrls: args.currentReferenceImageUrls } : {},
731
731
  origin: "chat"
732
732
  });
733
733
  } catch (executorError) {
@@ -816,7 +816,7 @@ var processToolData = createAsyncThunk(
816
816
  }
817
817
  if (executorThrew) {
818
818
  reportToolExecutionErrorInBackground({
819
- thunkApi,
819
+ thunkApi: toolThunkApi,
820
820
  dialogId: args.dialogId,
821
821
  callId: toolCallId,
822
822
  toolName: canonicalName,
@@ -919,7 +919,10 @@ var handleToolCalls = createAsyncThunk(
919
919
  agentKey: agentConfig.dbKey,
920
920
  effectiveModel: agentConfig.model,
921
921
  dialogId,
922
- userMessageId: args.userMessageId
922
+ userMessageId: args.userMessageId,
923
+ currentReferenceImageUrls: args.currentReferenceImageUrls,
924
+ serverBase: args.serverBase,
925
+ runtimeServers: args.runtimeServers
923
926
  })
924
927
  ).unwrap();
925
928
  const toolName = result.toolName;
@@ -1611,7 +1614,9 @@ async function processAccumulatedToolCalls(state, ctx) {
1611
1614
  messageId: ctx.messageId,
1612
1615
  dialogId: ctx.dialogId,
1613
1616
  dialogKey: ctx.dialogKey,
1614
- userMessageId: ctx.userMessageId
1617
+ userMessageId: ctx.userMessageId,
1618
+ serverBase: ctx.serverBase,
1619
+ runtimeServers: ctx.runtimeServers
1615
1620
  })
1616
1621
  ).unwrap();
1617
1622
  const nextState = {
@@ -1675,7 +1680,9 @@ async function handleStreamCompletion(state, ctx, finalizeCtx) {
1675
1680
  dialogId: ctx.dialogId,
1676
1681
  dialogKey: ctx.dialogKey,
1677
1682
  messageId: ctx.messageId,
1678
- userMessageId: ctx.userMessageId
1683
+ userMessageId: ctx.userMessageId,
1684
+ serverBase: ctx.serverBase,
1685
+ runtimeServers: ctx.runtimeServers
1679
1686
  });
1680
1687
  let next = toolResult.state;
1681
1688
  hasHandedOff ||= toolResult.hasHandedOff;
@@ -1721,7 +1728,7 @@ var sendOpenAICompletionsRequest = async ({
1721
1728
  buildFinalCompletionsRequestBody(bodyData, agentConfig, disableToolsForThisRequest),
1722
1729
  {
1723
1730
  shouldInline: shouldInlineImageUrlsForAgent(agentConfig),
1724
- serverUrl: selectCurrentServer(getState()),
1731
+ serverUrl: getRequestConfig(thunkApi).currentServer,
1725
1732
  signal
1726
1733
  }
1727
1734
  );
@@ -1826,7 +1833,7 @@ var sendOpenAICompletionsRequest = async ({
1826
1833
  agentConfig,
1827
1834
  api,
1828
1835
  bodyData: requestBody,
1829
- currentServer: selectCurrentServer(getState()),
1836
+ currentServer: getRequestConfig(thunkApi).currentServer,
1830
1837
  signal,
1831
1838
  token,
1832
1839
  dialogId,
@@ -1956,7 +1963,7 @@ var sendOpenAICompletionsRequest = async ({
1956
1963
  agentConfig,
1957
1964
  api,
1958
1965
  bodyData: repairRequestBody,
1959
- currentServer: selectCurrentServer(getState()),
1966
+ currentServer: getRequestConfig(thunkApi).currentServer,
1960
1967
  signal,
1961
1968
  token,
1962
1969
  dialogId
@@ -1987,7 +1994,9 @@ var sendOpenAICompletionsRequest = async ({
1987
1994
  dialogKey: finalizeCtx.dialogKey,
1988
1995
  messageId,
1989
1996
  agentConfig,
1990
- userMessageId
1997
+ userMessageId,
1998
+ serverBase: thunkApi.serverBase,
1999
+ runtimeServers: thunkApi.runtimeServers
1991
2000
  },
1992
2001
  finalizeCtx
1993
2002
  );
@@ -0,0 +1,51 @@
1
+ import {
2
+ Base64
3
+ } from "./chunk-IV6VUVLJ.js";
4
+
5
+ // packages/core/crypto.ts
6
+ import nacl from "tweetnacl";
7
+
8
+ // packages/core/authToken.ts
9
+ var parseToken = (token) => {
10
+ try {
11
+ const [payloadBase64] = token.split(".");
12
+ return JSON.parse(Base64.decode(payloadBase64));
13
+ } catch {
14
+ return null;
15
+ }
16
+ };
17
+ function parseAuthTokenPayloads(token) {
18
+ const trimmed = token.trim();
19
+ if (!trimmed) return [];
20
+ const rawParts = trimmed.split(".");
21
+ const candidates = rawParts.length >= 3 ? [rawParts[1], rawParts[0]] : [rawParts[0]];
22
+ const out = [];
23
+ for (const part of candidates) {
24
+ if (!part) continue;
25
+ try {
26
+ const parsed = JSON.parse(Base64.decode(part));
27
+ if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
28
+ out.push(parsed);
29
+ }
30
+ } catch {
31
+ }
32
+ }
33
+ return out;
34
+ }
35
+ function parseAuthTokenUserId(token, options) {
36
+ for (const payload of parseAuthTokenPayloads(token)) {
37
+ if (typeof payload.userId === "string" && payload.userId.trim()) {
38
+ return payload.userId.trim();
39
+ }
40
+ if (options?.allowSub && typeof payload.sub === "string" && payload.sub.trim()) {
41
+ return payload.sub.trim();
42
+ }
43
+ }
44
+ return "";
45
+ }
46
+
47
+ export {
48
+ parseToken,
49
+ parseAuthTokenPayloads,
50
+ parseAuthTokenUserId
51
+ };
@@ -0,0 +1,100 @@
1
+ import {
2
+ array,
3
+ literal,
4
+ looseObject,
5
+ minLength,
6
+ object,
7
+ optional,
8
+ picklist,
9
+ pipe,
10
+ record,
11
+ string,
12
+ transform,
13
+ trim
14
+ } from "./chunk-FI4DPLR7.js";
15
+
16
+ // packages/ai/agent/createAgentSchema.ts
17
+ var DEFAULT_REASONING_EFFORT = "medium";
18
+ var REASONING_EFFORT_OPTIONS = [
19
+ "none",
20
+ "minimal",
21
+ "low",
22
+ "medium",
23
+ "high",
24
+ "xhigh",
25
+ "max",
26
+ "ultra"
27
+ ];
28
+ var PROVIDER_REASONING_EFFORT_VALUES = {
29
+ openai: ["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"],
30
+ openrouter: ["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"],
31
+ deepseek: ["low", "high", "max"],
32
+ // nolo (Ollama Cloud) 支持 DeepSeek/Kimi/GLM 等 thinking 模型,
33
+ // reasoning_effort 通过 OpenAI 兼容端点透传到 Ollama Cloud。
34
+ nolo: ["low", "high", "max"],
35
+ xai: ["low", "medium", "high"],
36
+ grok: ["low", "medium", "high"],
37
+ // none:关闭思考;必须保留,否则上游 clamp 会把 none 抬成 low,
38
+ // kimi-code proxy 的 none/off → thinking.disabled 分支永远接不到。
39
+ kimi: ["none", "low", "high", "max"],
40
+ moonshot: ["none", "low", "high", "max"],
41
+ // Qwen 用 enable_thinking (bool) 而非 reasoning_effort → 隐藏下拉
42
+ qwen: [],
43
+ // MiniMax M3: 接受这些值但所有非 none 效果相同
44
+ minimax: ["none", "low", "medium", "high"],
45
+ // Cursor: 推理强度在模型名后缀 (如 -high),不走独立参数
46
+ cursor: [],
47
+ // MiMo: 保守默认
48
+ mimo: ["low", "medium", "high"],
49
+ // CommandCode Provider API 透传 reasoning_effort(low/medium/high/xhigh/max),
50
+ // 端点按各模型支持的子集自动 clamp(见 commandcode.ai/docs/provider-api)。
51
+ commandcode: ["low", "medium", "high", "xhigh", "max"],
52
+ // 阶跃星辰(StepFun)推理模型(step-3.5-flash-2603 / step-3.7-flash 等)支持 low / medium / high
53
+ stepfun: ["none", "low", "medium", "high"],
54
+ // LithosAI 推理云:上游为 DeepSeek,文档 reasoning_effort 取值 low / high / max
55
+ // (low/high 已实测被接受;medium/xhigh 未验证,不列出)。
56
+ lithosai: ["low", "high", "max"]
57
+ };
58
+ var greetingMenuItemSchema = object({
59
+ id: pipe(string(), minLength(1)),
60
+ label: pipe(string(), minLength(1)),
61
+ userMessage: optional(string())
62
+ });
63
+ var greetingConfigSchema = object({
64
+ text: optional(pipe(string(), trim())),
65
+ menu: optional(array(greetingMenuItemSchema))
66
+ });
67
+ var runtimeToolPolicySchema = looseObject({
68
+ version: optional(literal(1)),
69
+ agentTools: optional(array(string())),
70
+ runtimeTools: optional(array(string())),
71
+ workspace: optional(
72
+ object({
73
+ mode: optional(picklist(["none", "current", "lease"])),
74
+ writableRoots: optional(array(string())),
75
+ cwd: optional(string())
76
+ })
77
+ ),
78
+ shell: optional(record(string(), string())),
79
+ isolation: optional(record(string(), string())),
80
+ git: optional(record(string(), string())),
81
+ budget: optional(record(string(), string())),
82
+ audit: optional(record(string(), string()))
83
+ });
84
+ var referenceItemSchema = pipe(
85
+ object({
86
+ dbKey: string(),
87
+ title: string(),
88
+ type: picklist(["knowledge", "instruction", "page"])
89
+ }),
90
+ transform((data) => ({
91
+ ...data,
92
+ type: data.type === "page" ? "knowledge" : data.type
93
+ }))
94
+ );
95
+
96
+ export {
97
+ DEFAULT_REASONING_EFFORT,
98
+ REASONING_EFFORT_OPTIONS,
99
+ PROVIDER_REASONING_EFFORT_VALUES
100
+ };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  buildCliProcessEnv,
3
3
  resolveLaunchableCodexCommand
4
- } from "./chunk-ZEZC7IIM.js";
4
+ } from "./chunk-YFSM2366.js";
5
5
 
6
- // packages/connector-experimental/machineInfo.ts
6
+ // packages/connector/machineInfo.ts
7
7
  import { existsSync as existsSync2, readFileSync, writeFileSync, mkdirSync } from "node:fs";
8
8
  import { dirname, join as join2 } from "node:path";
9
9
  import { arch, hostname, homedir, platform } from "node:os";
10
10
  import { randomUUID } from "node:crypto";
11
11
 
12
- // packages/connector-experimental/capabilities.ts
12
+ // packages/connector/capabilities.ts
13
13
  import { spawnSync } from "node:child_process";
14
14
  import { existsSync } from "node:fs";
15
15
  import { join } from "node:path";
@@ -66,12 +66,25 @@ function detectRuntimeCapabilities(options = {}) {
66
66
  return capabilities;
67
67
  }
68
68
 
69
- // packages/connector-experimental/machineInfo.ts
69
+ // packages/connector/machineInfo.ts
70
70
  var CONNECTOR_VERSION = "0.1.0-experimental";
71
- function defaultMachineIdPath() {
72
- const noloHome = process.env.NOLO_HOME?.trim();
71
+ function machineIdPath(env = process.env) {
72
+ const noloHome = env.NOLO_HOME?.trim();
73
73
  return noloHome ? join2(noloHome, "machine-id") : join2(homedir(), ".nolo", "machine-id");
74
74
  }
75
+ function defaultMachineIdPath() {
76
+ return machineIdPath();
77
+ }
78
+ var MACHINE_ID_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._:@+#-]{0,127}$/;
79
+ function readExistingMachineId(env = process.env, path = machineIdPath(env)) {
80
+ try {
81
+ if (!existsSync2(path)) return void 0;
82
+ const existing = readFileSync(path, "utf8").trim();
83
+ return MACHINE_ID_PATTERN.test(existing) ? existing : void 0;
84
+ } catch {
85
+ return void 0;
86
+ }
87
+ }
75
88
  function resolveMachineId(path = defaultMachineIdPath()) {
76
89
  try {
77
90
  if (existsSync2(path)) {
@@ -101,6 +114,7 @@ function detectMachineInfo(overrides) {
101
114
  }
102
115
 
103
116
  export {
117
+ readExistingMachineId,
104
118
  resolveMachineId,
105
119
  detectMachineInfo
106
120
  };