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
@@ -2,23 +2,26 @@ import {
2
2
  normalizeTimingMs
3
3
  } from "./chunk-H57T64RA.js";
4
4
  import {
5
- isAbortError
6
- } from "./chunk-7DPNBQSV.js";
5
+ sha256Hex
6
+ } from "./chunk-SR4FE5VD.js";
7
7
  import {
8
8
  estimateTokenCount
9
9
  } from "./chunk-PSCNXBYA.js";
10
+ import {
11
+ isAbortError
12
+ } from "./chunk-7DPNBQSV.js";
10
13
  import {
11
14
  asTrimmedNonEmptyStringArray
12
15
  } from "./chunk-I42VC5KR.js";
13
16
  import {
14
17
  ALL_MODELS
15
- } from "./chunk-62HXNQVV.js";
16
- import {
17
- MODEL_LOOKUP_MAP
18
- } from "./chunk-CD3RU7XL.js";
18
+ } from "./chunk-EJQE5HB7.js";
19
19
  import {
20
20
  asOptionalFiniteNumber
21
21
  } from "./chunk-WWC7I6TA.js";
22
+ import {
23
+ MODEL_LOOKUP_MAP
24
+ } from "./chunk-OKH74FML.js";
22
25
  import {
23
26
  asOptionalTrimmedString
24
27
  } from "./chunk-G3SUCT4W.js";
@@ -26,7 +29,7 @@ import {
26
29
  PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
27
30
  isPlatformManagedProvider,
28
31
  resolvePlatformEffectiveModel
29
- } from "./chunk-OBSEKCVK.js";
32
+ } from "./chunk-JPXACKSW.js";
30
33
 
31
34
  // packages/core/chat/messageContentSerialize.ts
32
35
  var serializeMessageContent = (content, imagePlaceholder = "[\u56FE\u7247]") => {
@@ -321,12 +324,6 @@ async function runSummaryWithContract(args) {
321
324
  return execute("current");
322
325
  }
323
326
 
324
- // packages/core/sha256.ts
325
- import SHA256 from "crypto-js/sha256.js";
326
- function sha256Hex(text) {
327
- return SHA256(text).toString();
328
- }
329
-
330
327
  // packages/ai/context/toolOutputCap.ts
331
328
  var TOOL_OUTPUT_CAP_WINDOW_RATIO = 0.12;
332
329
  var TOOL_OUTPUT_CAP_MIN_TOKENS = 4e3;
@@ -648,7 +645,7 @@ var COMPACTION_SUMMARY_SYSTEM_PROMPT = `\u4F60\u662F\u5BF9\u8BDD\u4E0A\u4E0B\u65
648
645
  - \u300C\u5361\u70B9\u4E0E\u9700\u7528\u6237\u51B3\u5B9A\u300D\uFF1A\u963B\u585E\u9879\u5361\u5728\u54EA\u3001\u9700\u8981\u7528\u6237\u63D0\u4F9B\u4EC0\u4E48\uFF08\u6388\u6743 / \u51ED\u636E / \u51B3\u5B9A\uFF09\uFF0C\u5199\u6E05\u695A\uFF0C\u4E0D\u5F97\u542B\u7CCA\u3002
649
646
  - \u300C\u8F93\u5165\u672A\u8986\u76D6\u300D\uFF1A\u538B\u7F29\u8303\u56F4\u5185\u67E5\u4E0D\u5230\u7684\u5173\u952E\u4FE1\u606F\uFF08\u5982\u521D\u59CB\u539F\u8BDD\u3001\u6307\u5B9A id\uFF09\uFF0C\u5FC5\u987B\u5199"\u8F93\u5165\u4E2D\u672A\u89C1"\uFF0C\u7981\u6B62\u8111\u8865\u3002
650
647
  3) \u5BF9\u8BDD\u8FDB\u5C55\u4E0E\u5F85\u529E\u4EE5\u7B2C\u4E00\u4EBA\u79F0\u7EED\u4F5C\u7B14\u8BB0\u7684\u53E3\u543B\u5199\uFF08"\u6211\u505A\u4E86\u2026""\u7528\u6237\u8981\u6C42\u2026""\u4E0B\u4E00\u6B65\u6211\u9700\u8981\u2026"\uFF09\uFF0C\u4E0D\u8981\u5199\u6210\u7B2C\u4E09\u65B9\u89C2\u5BDF\u62A5\u544A\u3002\u5148\u6781\u7B80\u6982\u62EC\u65E7\u4E0A\u4E0B\u6587\uFF0C\u518D\u66F4\u8BE6\u7EC6\u8BB0\u5F55\u6700\u8FD1\u8FDB\u5C55\u3001\u7ED3\u8BBA\u3001\u5206\u6B67\u4E0E\u4E0B\u4E00\u6B65\u3002\u5BF9\u4E8E\u58F0\u79F0\u5DF2\u5B8C\u6210\u4F46\u5C1A\u672A\u9A8C\u8BC1\u7684\u5DE5\u4F5C\uFF08\u5982\u5DE5\u5177\u8C03\u7528\u8FD4\u56DE\u6210\u529F\u4F46\u7ED3\u679C\u672A\u4EBA\u5DE5\u786E\u8BA4\uFF09\uFF0C\u660E\u786E\u6807\u6CE8"\uFF08\u5F85\u9A8C\u8BC1\uFF09"\u2014\u2014\u4E0D\u8981\u9ED8\u8BA4\u4FE1\u4EFB\u5DE5\u5177\u8FD4\u56DE\u503C\u3002
651
- 4) \u6587\u4EF6\u64CD\u4F5C\u6E05\u5355\uFF1A\u6309\u8BFB\u53D6\u3001\u5199\u5165\u3001\u7F16\u8F91\u5217\u51FA\u8DEF\u5F84\uFF08\u5982: - \u8BFB\u53D6: path/to/file\uFF1B\u672A\u6D89\u53CA\u5219\u5199"\u65E0"\uFF09\u3002\u6709\u957F\u5EA6\u7EA6\u675F\u65F6\u5408\u5E76\u65E7\u64CD\u4F5C\uFF0C\u7701\u7565\u65E0\u5173\u8BFB\u53D6\u3002
648
+ 4) \u6587\u4EF6\u64CD\u4F5C\u6E05\u5355\uFF1A**\u4F18\u5148\u5217\u51FA\u5199\u5165\u3001\u7F16\u8F91\u8FC7\u7684\u6587\u4EF6\u8DEF\u5F84**\uFF1B\u8BFB\u53D6\u7C7B\u53EA\u4FDD\u7559\u5173\u952E\u771F\u503C/\u5165\u53E3\u8DEF\u5F84\uFF0C\u4EE5\u53CA\u540E\u7EED\u7EED\u4F5C\u4ECD\u9700\u5F15\u7528\u7684\u8DEF\u5F84\uFF0C\u96F6\u788E\u3001\u4E00\u6B21\u6027\u7684\u53EA\u8BFB\u63A2\u7D22\u8DEF\u5F84\u4E00\u5F8B\u7701\u7565\uFF08\u5982: - \u5199\u5165: path/to/file\uFF1B\u672A\u6D89\u53CA\u5219\u5199"\u65E0"\uFF09\u3002\u6709\u957F\u5EA6\u7EA6\u675F\u65F6\u5408\u5E76\u65E7\u64CD\u4F5C\uFF0C\u7701\u7565\u65E0\u5173\u8BFB\u53D6\u3002
652
649
  5) \u5FFD\u7565\u5BD2\u6684\u3001\u91CD\u590D\u5C1D\u8BD5\u548C\u65E0\u4EF7\u503C\u5E9F\u8BDD\uFF1B**\u5DF2\u653E\u5F03\u7684\u65B9\u6848/\u5C1D\u8BD5**\u53EF\u4EE5\u7701\u7565\uFF0C\u4F46\u7528\u6237\u5F53\u521D\u7684\u610F\u56FE\u4E0E\u7406\u7531\u4E0D\u53EF\u7701\u7565\uFF08\u89C1\u7B2C 2 \u6761\uFF09\u3002
653
650
  6) \u4E0D\u8981\u7F16\u9020\u672A\u51FA\u73B0\u7684\u4FE1\u606F\uFF1B\u4E0D\u8981\u5F00\u573A\u767D\u3001\u7ED3\u675F\u8BED\u3001markdown \u4EE3\u7801\u5757\u6216\u989D\u5916\u7AE0\u8282\uFF1B\u4E0D\u8981\u8C03\u7528\u4EFB\u4F55\u5DE5\u5177\u3002`;
654
651
  function formatMessageContentFallback(msg) {
@@ -753,6 +750,73 @@ var DECLARATION_RESERVE = 40;
753
750
  var USER_MESSAGE_MAX_DEMAND = 600;
754
751
  var SUMMARY_USER_SHARE = 0.2;
755
752
  var DECLARATION_SPLIT_COST = 20;
753
+ function interruptedBatchMarker(declared, returned) {
754
+ const scope = "[\u672C\u6BB5\u5386\u53F2\u8303\u56F4\u5185";
755
+ return returned === 0 ? `${scope}\uFF0C\u8BE5\u5DE5\u5177\u6279\u6B21\u5728\u540E\u7EED\u7528\u6237\u6D88\u606F\u524D\u6CA1\u6709\u8BB0\u5F55\u5230\u7ED3\u679C\uFF0C\u6309\u4E2D\u65AD\u5904\u7406\uFF1A\u58F0\u660E\u8FC7\u7684\u8C03\u7528\u4E0D\u8BA1\u4E3A\u5DF2\u5B8C\u6210\u3002]` : `${scope}\uFF0C\u8BE5\u5DE5\u5177\u6279\u6B21\u58F0\u660E\u4E86 ${declared} \u4E2A\u8C03\u7528\uFF0C\u53EA\u8BB0\u5F55\u4E86 ${returned} \u4E2A\u7ED3\u679C\uFF1B\u672A\u8BB0\u5F55\u7ED3\u679C\u7684\u8C03\u7528\u6309\u4E2D\u65AD\u5904\u7406\uFF0C\u4E0D\u8BA1\u4E3A\u5DF2\u5B8C\u6210\u3002]`;
756
+ }
757
+ function projectInterruptedHistoricalBatches(source) {
758
+ const resultIndices = /* @__PURE__ */ new Map();
759
+ source.forEach((msg, index) => {
760
+ const resultId = msg.role === "tool" ? msg.tool_call_id : void 0;
761
+ if (typeof resultId !== "string" || !resultId) return;
762
+ const existing = resultIndices.get(resultId);
763
+ if (existing) existing.push(index);
764
+ else resultIndices.set(resultId, [index]);
765
+ });
766
+ return source.map((msg, index) => {
767
+ if (msg.role !== "assistant" || !msg.tool_calls?.length) return msg;
768
+ const declared = msg.tool_calls.map((call) => call?.id);
769
+ if (declared.some((id) => typeof id !== "string" || !id) || new Set(declared).size !== declared.length) return msg;
770
+ const declaredIds = declared;
771
+ let cursor = index + 1;
772
+ const returned = [];
773
+ while (cursor < source.length && source[cursor].role === "tool") {
774
+ const resultId = source[cursor].tool_call_id;
775
+ if (typeof resultId !== "string" || !resultId || !declaredIds.includes(resultId) || returned.includes(resultId)) return msg;
776
+ returned.push(resultId);
777
+ cursor++;
778
+ }
779
+ if (source[cursor]?.role !== "user") return msg;
780
+ if (returned.length === declaredIds.length) return msg;
781
+ const returnedSet = new Set(returned);
782
+ const ambiguous = declaredIds.some((id) => !returnedSet.has(id) && (resultIndices.get(id) ?? []).some((at) => at < index + 1 || at > cursor - 1));
783
+ if (ambiguous) return msg;
784
+ const keptCalls = msg.tool_calls.filter((call) => returnedSet.has(call.id));
785
+ const { tool_calls: _declaredCalls, ...rest } = msg;
786
+ const text = serializeMessageContent(msg.content);
787
+ const marker = interruptedBatchMarker(declaredIds.length, returned.length);
788
+ return {
789
+ ...rest,
790
+ ...keptCalls.length ? { tool_calls: keptCalls } : {},
791
+ content: text ? `${text}
792
+ ${marker}` : marker
793
+ };
794
+ });
795
+ }
796
+ function buildHistoricalCompactionRequest(args) {
797
+ const source = args.msgsToCompress;
798
+ const projected = projectInterruptedHistoricalBatches(source);
799
+ const bounded = buildBoundedCompactionRequest({ ...args, msgsToCompress: projected });
800
+ if (bounded.status !== "ready") return bounded;
801
+ const sourceIndexById = /* @__PURE__ */ new Map();
802
+ source.forEach((msg, index) => {
803
+ if (!sourceIndexById.has(msg.id)) sourceIndexById.set(msg.id, index);
804
+ });
805
+ const coveredMessages = bounded.coveredMessages.map((msg) => {
806
+ const index = sourceIndexById.get(msg.id);
807
+ if (index === void 0) {
808
+ throw new Error(`historical compaction coverage returned an unknown message id: ${msg.id}`);
809
+ }
810
+ return source[index];
811
+ });
812
+ const isOrderedPrefix = !bounded.partial && coveredMessages.length === source.length && coveredMessages.every((msg, position) => msg === source[position]);
813
+ if (!isOrderedPrefix) {
814
+ throw new Error(
815
+ `historical compaction coverage is no longer an ordered 1:1 prefix of the source (covered ${coveredMessages.length} of ${source.length}, partial=${bounded.partial})`
816
+ );
817
+ }
818
+ return { ...bounded, coveredMessages };
819
+ }
756
820
  function buildBoundedCompactionRequest(args) {
757
821
  const { msgsToCompress: msgs, previousSummary, contextWindow } = args;
758
822
  const windowValid = Number.isFinite(contextWindow) && contextWindow > 0;
@@ -1174,6 +1238,156 @@ function buildSummarySourceDiagnostics(messages, anchor) {
1174
1238
  }
1175
1239
  return rows;
1176
1240
  }
1241
+ var MAX_SUMMARY_SOURCE_SEGMENTS = 16;
1242
+ function buildSummarySourceSegments(messages, anchor) {
1243
+ if (!anchor) return [];
1244
+ let end = messages.findIndex((message) => message.id === anchor);
1245
+ if (end === -1) {
1246
+ const legacy = /^local-(0|[1-9]\d*)$/.exec(anchor);
1247
+ if (legacy) {
1248
+ const index = Number(legacy[1]);
1249
+ if (Number.isSafeInteger(index) && index < messages.length) {
1250
+ end = index;
1251
+ }
1252
+ }
1253
+ }
1254
+ if (end < 0) return [];
1255
+ const totalCount = end + 1;
1256
+ const width = Math.max(1, Math.ceil(totalCount / MAX_SUMMARY_SOURCE_SEGMENTS));
1257
+ const segments = [];
1258
+ for (let start = 0; start < totalCount; start += width) {
1259
+ const segEnd = Math.min(end, start + width - 1);
1260
+ const group = messages.slice(start, segEnd + 1);
1261
+ const roleCounts = /* @__PURE__ */ new Map();
1262
+ for (const message of group) {
1263
+ const role = typeof message.role === "string" && message.role ? message.role : "unknown";
1264
+ roleCounts.set(role, (roleCounts.get(role) ?? 0) + 1);
1265
+ }
1266
+ const roles = Array.from(roleCounts.entries()).map(([role, count]) => `${role}:${count}`).join(",");
1267
+ const canonical = group.map((message, offset) => ({
1268
+ id: `local-${start + offset}`,
1269
+ role: message.role,
1270
+ content: message.content ?? "",
1271
+ ...Array.isArray(message.tool_calls) ? { tool_calls: message.tool_calls } : {}
1272
+ }));
1273
+ const hash = sha256Hex(JSON.stringify(canonical)).slice(0, 16);
1274
+ segments.push({
1275
+ start,
1276
+ end: segEnd,
1277
+ count: group.length,
1278
+ roles,
1279
+ hash
1280
+ });
1281
+ }
1282
+ return segments;
1283
+ }
1284
+ function diffSummarySourceSegments(savedSegments, currentSegments) {
1285
+ const saved = Array.isArray(savedSegments) ? savedSegments : [];
1286
+ const current = Array.isArray(currentSegments) ? currentSegments : [];
1287
+ const savedTotalCount = saved.reduce(
1288
+ (sum, seg) => sum + (typeof seg?.count === "number" && Number.isFinite(seg.count) ? seg.count : 0),
1289
+ 0
1290
+ );
1291
+ const currentTotalCount = current.reduce(
1292
+ (sum, seg) => sum + (typeof seg?.count === "number" && Number.isFinite(seg.count) ? seg.count : 0),
1293
+ 0
1294
+ );
1295
+ if (saved.length === 0) {
1296
+ return {
1297
+ matched: false,
1298
+ reason: "legacy_no_segments",
1299
+ firstMismatchIndex: null,
1300
+ savedSegmentCount: 0,
1301
+ currentSegmentCount: current.length,
1302
+ savedTotalCount: 0,
1303
+ currentTotalCount,
1304
+ savedSegment: null,
1305
+ currentSegment: null
1306
+ };
1307
+ }
1308
+ if (current.length === 0) {
1309
+ return {
1310
+ matched: false,
1311
+ reason: "anchor_missing",
1312
+ firstMismatchIndex: null,
1313
+ savedSegmentCount: saved.length,
1314
+ currentSegmentCount: 0,
1315
+ savedTotalCount,
1316
+ currentTotalCount: 0,
1317
+ savedSegment: saved[0] ?? null,
1318
+ currentSegment: null
1319
+ };
1320
+ }
1321
+ const minLen = Math.min(saved.length, current.length);
1322
+ let firstDiff = null;
1323
+ for (let i = 0; i < minLen; i++) {
1324
+ const s = saved[i];
1325
+ const c = current[i];
1326
+ if (!s || !c || s.start !== c.start || s.end !== c.end || s.count !== c.count || s.roles !== c.roles || s.hash !== c.hash) {
1327
+ firstDiff = i;
1328
+ break;
1329
+ }
1330
+ }
1331
+ if (savedTotalCount !== currentTotalCount || saved.length !== current.length) {
1332
+ const idx = firstDiff ?? minLen;
1333
+ return {
1334
+ matched: false,
1335
+ reason: "count_changed",
1336
+ firstMismatchIndex: idx,
1337
+ savedSegmentCount: saved.length,
1338
+ currentSegmentCount: current.length,
1339
+ savedTotalCount,
1340
+ currentTotalCount,
1341
+ savedSegment: saved[idx] ?? null,
1342
+ currentSegment: current[idx] ?? null
1343
+ };
1344
+ }
1345
+ if (firstDiff !== null) {
1346
+ const s = saved[firstDiff] ?? null;
1347
+ const c = current[firstDiff] ?? null;
1348
+ const boundsChanged = !s || !c || s.start !== c.start || s.end !== c.end || s.count !== c.count;
1349
+ return {
1350
+ matched: false,
1351
+ reason: boundsChanged ? "count_changed" : "segment_hash_changed",
1352
+ firstMismatchIndex: firstDiff,
1353
+ savedSegmentCount: saved.length,
1354
+ currentSegmentCount: current.length,
1355
+ savedTotalCount,
1356
+ currentTotalCount,
1357
+ savedSegment: s,
1358
+ currentSegment: c
1359
+ };
1360
+ }
1361
+ return {
1362
+ matched: true,
1363
+ reason: "matched",
1364
+ firstMismatchIndex: null,
1365
+ savedSegmentCount: saved.length,
1366
+ currentSegmentCount: current.length,
1367
+ savedTotalCount,
1368
+ currentTotalCount,
1369
+ savedSegment: null,
1370
+ currentSegment: null
1371
+ };
1372
+ }
1373
+ function sanitizeSummarySourceSegments(raw) {
1374
+ if (!Array.isArray(raw) || raw.length === 0) return void 0;
1375
+ const sanitized = [];
1376
+ for (const item of raw.slice(0, MAX_SUMMARY_SOURCE_SEGMENTS)) {
1377
+ if (!item || typeof item !== "object") continue;
1378
+ const candidate = item;
1379
+ const start = candidate.start;
1380
+ const end = candidate.end;
1381
+ const count = candidate.count;
1382
+ const roles = candidate.roles;
1383
+ const hash = candidate.hash;
1384
+ if (typeof start !== "number" || !Number.isSafeInteger(start) || start < 0 || typeof end !== "number" || !Number.isSafeInteger(end) || end < start || typeof count !== "number" || !Number.isSafeInteger(count) || count < 1 || typeof roles !== "string" || roles.length === 0 || roles.length > 128 || /[\r\n\0]/.test(roles) || typeof hash !== "string" || !/^[0-9a-f]{16}$/.test(hash)) {
1385
+ continue;
1386
+ }
1387
+ sanitized.push({ start, end, count, roles, hash });
1388
+ }
1389
+ return sanitized.length > 0 ? sanitized : void 0;
1390
+ }
1177
1391
 
1178
1392
  // packages/ai/llm/getModelContextWindow.ts
1179
1393
  var DEFAULT_CONTEXT_WINDOW = 256e3;
@@ -1181,7 +1395,7 @@ var QWEN_3_6_CONTEXT_WINDOW = 262144;
1181
1395
  var GLM_5_2_CONTEXT_WINDOW = 1e6;
1182
1396
  var GPT_6_1_SOL_CONTEXT_WINDOW = 5e5;
1183
1397
  var GPT_6_1_SOL_PATTERN = /(^|\/)gpt-6\.1[- ]sol(?![a-z])/;
1184
- var GPT_6_1_PINNED_PATTERN = /(^|\/)gpt-6\.1[- ](sol|terra)(?![a-z0-9])/;
1398
+ var GPT_6_1_PINNED_PATTERN = /(^|\/)gpt-(?:6\.1[- ](sol|terra)|6\.2[- ](sol|astra))(?![a-z0-9])/;
1185
1399
  var GPT_272K_PINNED_PATTERN = /(^|\/)(gpt-6[- ](astra|luna|sol)|gpt-5\.6[- ](sol|terra|luna))(?![a-z0-9])/;
1186
1400
  var GPT_272K_CONTEXT_WINDOW = 272e3;
1187
1401
  function channelPinnedContextWindow(normalizedName) {
@@ -1401,12 +1615,14 @@ export {
1401
1615
  summaryCompletionTokens,
1402
1616
  selectSummaryRoute,
1403
1617
  runSummaryWithContract,
1404
- sha256Hex,
1405
1618
  COMPACTION_SUMMARY_SCHEMA_VERSION,
1406
1619
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
1407
- buildBoundedCompactionRequest,
1620
+ buildHistoricalCompactionRequest,
1408
1621
  buildCompactionMetricsFromPlan,
1409
1622
  formatCompactionMetricsLog,
1410
1623
  computeSummarySourceMetadata,
1411
- buildSummarySourceDiagnostics
1624
+ buildSummarySourceDiagnostics,
1625
+ buildSummarySourceSegments,
1626
+ diffSummarySourceSegments,
1627
+ sanitizeSummarySourceSegments
1412
1628
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getModelConfig
3
- } from "./chunk-CD3RU7XL.js";
3
+ } from "./chunk-OKH74FML.js";
4
4
  import {
5
5
  isPlatformHostedDeepseekModel,
6
6
  isPlatformHostedOpenAIImageModel,
7
7
  resolvePlatformHostedRouting
8
- } from "./chunk-OBSEKCVK.js";
8
+ } from "./chunk-JPXACKSW.js";
9
9
  import {
10
10
  asTrimmedLowercaseString
11
11
  } from "./chunk-QSJ3HFEF.js";
@@ -101,6 +101,7 @@ function resolvePlatformHostedCredentialProvider(provider, model) {
101
101
  }
102
102
 
103
103
  export {
104
+ OPENAI_RESPONSES_ENDPOINT,
104
105
  isOpenAiResponsesModel,
105
106
  resolvePlatformResponsesEndpoint,
106
107
  resolvePlatformChatCompletionsEndpoint,
@@ -0,0 +1,15 @@
1
+ // packages/agent-runtime/staleReplayGuard.ts
2
+ var wrapHistoricalSummaryWithReplayGuard = (summary) => {
3
+ const trimmed = summary.trim();
4
+ if (!trimmed) return "";
5
+ return [
6
+ "\u3010\u5386\u53F2\u53C2\u8003\uFF0C\u975E\u6D3B\u6307\u4EE4\u3011\u4EE5\u4E0B\u4E3A\u51BB\u7ED3\u6458\u8981\uFF1A\u5176\u4E2D\u7684**\u52A8\u4F5C\u6307\u4EE4**\u3001\u53C2\u6570\u4E0E skill \u8C03\u7528\u9ED8\u8BA4\u5DF2\u7ECF\u505A\u8FC7\uFF0C\u4E0D\u8981\u91CD\u653E\uFF08\u91CD\u590D\u5EFA\u5206\u652F/issue/\u4EFB\u52A1\u5C31\u662F\u91CD\u653E\uFF09\u3002",
7
+ "\u4F46**\u7528\u6237\u7684\u76EE\u6807\u4E0E\u610F\u56FE\u4ECD\u7136\u6709\u6548**\uFF1A\u5B83\u89E3\u91CA\u4E86\u8FD9\u6BB5\u5BF9\u8BDD\u4E3A\u4EC0\u4E48\u8981\u505A\u8FD9\u4E9B\u4E8B\uFF1B\u9047\u5230\u76F8\u5173\u8BDD\u9898\u65F6\u5148\u6309\u5B83\u7406\u89E3\u4E0A\u4E0B\u6587\uFF0C\u4E0D\u8981\u5F53\u6210\u5DF2\u8FC7\u671F\u7684\u80CC\u666F\u3002",
8
+ `\u6458\u8981\u4E2D\u6807\u6CE8\u300C\uFF08\u5F85\u9A8C\u8BC1\uFF09\u300D\u7684\u9879\u9700\u590D\u6838\u786E\u8BA4\uFF1B\u672A\u5B8C\u6210\u5F85\u529E\u548C\u300C\u4E0B\u4E00\u6B65\u300D\u9700\u7EE7\u7EED\u63A8\u8FDB\u2014\u2014\u8FD9\u4E9B\u662F\u7EED\u4F5C\u65B9\u5411\uFF0C\u4E0D\u662F\u91CD\u653E\u6307\u4EE4\u3002`,
9
+ trimmed
10
+ ].join("\n");
11
+ };
12
+
13
+ export {
14
+ wrapHistoricalSummaryWithReplayGuard
15
+ };
@@ -0,0 +1,64 @@
1
+ // packages/cli/cliAuthorityBrokerTls.ts
2
+ import { createHash, randomUUID } from "node:crypto";
3
+ import { link, lstat, mkdir, readFile, realpath, unlink, writeFile } from "node:fs/promises";
4
+ import { homedir } from "node:os";
5
+ import { dirname, join } from "node:path";
6
+ async function loadCliAuthorityBrokerTls(metadataPath) {
7
+ const runDirectory = dirname(metadataPath);
8
+ await mkdir(runDirectory, { recursive: true });
9
+ if (process.getuid) {
10
+ const uid = process.getuid();
11
+ for (let ancestor = await realpath(runDirectory); ; ancestor = dirname(ancestor)) {
12
+ const stat2 = await lstat(ancestor);
13
+ if (stat2.uid !== uid && stat2.uid !== 0 || stat2.mode & 18 && !(stat2.mode & 512)) {
14
+ throw new Error("Authority broker identity path must be protected from other local users");
15
+ }
16
+ if (ancestor === dirname(ancestor)) break;
17
+ }
18
+ }
19
+ const directory = process.platform === "win32" ? join(
20
+ process.env.LOCALAPPDATA || join(homedir(), "AppData", "Local"),
21
+ "Nolo",
22
+ "authority-identity",
23
+ createHash("sha256").update((await realpath(runDirectory)).toLowerCase()).digest("hex")
24
+ ) : join(runDirectory, "authority-identity");
25
+ await mkdir(directory, { recursive: true, mode: 448 });
26
+ const stat = await lstat(directory);
27
+ if (!stat.isDirectory() || process.getuid && (stat.uid !== process.getuid() || stat.mode & 63)) {
28
+ throw new Error("Authority broker identity directory must be private to the current user");
29
+ }
30
+ const identityPath = join(directory, "identity.json");
31
+ async function readIdentity() {
32
+ const identityStat = await lstat(identityPath);
33
+ if (!identityStat.isFile() || process.getuid && (identityStat.uid !== process.getuid() || identityStat.mode & 63)) {
34
+ throw new Error("Authority broker identity file must be private to the current user");
35
+ }
36
+ return JSON.parse(await readFile(identityPath, "utf8"));
37
+ }
38
+ let identity;
39
+ try {
40
+ identity = await readIdentity();
41
+ } catch (error) {
42
+ if (error.code !== "ENOENT") throw error;
43
+ const { generate } = await import("selfsigned");
44
+ const certificate = await generate([{ name: "commonName", value: "localhost" }], {
45
+ algorithm: "sha256",
46
+ notAfterDate: /* @__PURE__ */ new Date("2099-01-01")
47
+ });
48
+ const temporary = join(directory, randomUUID());
49
+ await writeFile(temporary, JSON.stringify({ cert: certificate.cert, key: certificate.private }), { mode: 384, flag: "wx" });
50
+ try {
51
+ await link(temporary, identityPath);
52
+ } catch (linkError) {
53
+ if (linkError.code !== "EEXIST") throw linkError;
54
+ } finally {
55
+ await unlink(temporary);
56
+ }
57
+ identity = await readIdentity();
58
+ }
59
+ return { ...identity, ca: identity.cert, minVersion: "TLSv1.3" };
60
+ }
61
+
62
+ export {
63
+ loadCliAuthorityBrokerTls
64
+ };