nolo-cli 0.228.0-alpha.2 → 0.228.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-VYCHHZVT.js → _executeModel-GIFVXKDT.js} +88 -83
  3. package/{accountResolver-QETKNC7T.js → accountResolver-NGICIMEE.js} +1 -1
  4. package/{action-GDZDXPMB.js → action-WZTKEF5H.js} +9 -6
  5. package/{addContentAction-7RO4AMRI.js → addContentAction-MLI6GOBV.js} +14 -13
  6. package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-ARGQM22H.js} +17 -16
  7. package/{agentDeleteCommand-QWQKT54A.js → agentDeleteCommand-UF7XVELS.js} +118 -111
  8. package/{agentEmailCommands-EISMBIRE.js → agentEmailCommands-SFHRPQYC.js} +118 -107
  9. package/{agentListCommands-4WLG32IW.js → agentListCommands-IXKBP3W5.js} +208 -177
  10. package/{agentMachineCommands-DC6NKWTU.js → agentMachineCommands-7NX6PWQ6.js} +55 -48
  11. package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-C5T7C5KZ.js} +2 -2
  12. package/{agentPullCommand-KHV4EELF.js → agentPullCommand-4EQZYHU4.js} +1 -1
  13. package/agentRecordCommands-IUNX6XD6.js +188 -0
  14. package/{agentRunCommand-QM7ETUTX.js → agentRunCommand-LCR4XADM.js} +125 -111
  15. package/{agentRunControl-MBG4U6SL.js → agentRunControl-RN2P6AOD.js} +11 -9
  16. package/{agentRuntimeLocal-HOXKWCYO.js → agentRuntimeLocal-LVXPQ7QA.js} +56 -43
  17. package/{agentSlice-UG76KEBH.js → agentSlice-ZGMOH6TE.js} +15 -14
  18. package/{appDeleteCommands-WWCC6WA5.js → appDeleteCommands-BESCJOQM.js} +55 -48
  19. package/{appDeployCommands-AU4IUN33.js → appDeployCommands-LPTR6IOX.js} +55 -48
  20. package/{appDeployStatusCommands-STUW7WXL.js → appDeployStatusCommands-BZ7KZ5RD.js} +55 -48
  21. package/{appGetCommands-BGTLIQ4K.js → appGetCommands-EDWGJV4S.js} +55 -48
  22. package/{appListCommands-CUCPRUXW.js → appListCommands-OPRWYPM6.js} +55 -48
  23. package/{authCommand-OZ2KTP4Z.js → authCommand-3C3RN4OU.js} +25 -19
  24. package/{authCommands-55OGQGCR.js → authCommands-ZMVEDCQD.js} +12 -6
  25. package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-VRCMQ77Q.js} +7 -7
  26. package/{chromeCommands-G5UDKVSV.js → chromeCommands-O4IIKTBD.js} +384 -7
  27. package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-NZITLHWO.js} +3 -3
  28. package/{chunk-VQ5N5GSV.js → chunk-2BKNICGK.js} +4 -4
  29. package/{chunk-QYB23WUH.js → chunk-2FK2KZSL.js} +1 -1
  30. package/chunk-2SXN7LAY.js +15 -0
  31. package/{chunk-3VZLEKV2.js → chunk-3DJJ4CFG.js} +11 -11
  32. package/{chunk-TSPMLCWI.js → chunk-4IQN6FWY.js} +5 -5
  33. package/{chunk-XAG3FWBE.js → chunk-4OXPN3WC.js} +6 -6
  34. package/chunk-4ZCTKB27.js +31 -0
  35. package/chunk-53W5BXLN.js +340 -0
  36. package/{chunk-42OKN2LI.js → chunk-5HUO7SEX.js} +9 -107
  37. package/chunk-6ASGEP5D.js +21 -0
  38. package/{chunk-MJI3UAXN.js → chunk-6CXQ3YNJ.js} +40 -36
  39. package/{chunk-G7IUT2V3.js → chunk-6MTVACLN.js} +365 -64
  40. package/{chunk-ZOHO6MOF.js → chunk-6RSNVJGO.js} +2 -99
  41. package/{chunk-XSW4EXQV.js → chunk-6TVYUQRM.js} +55 -18
  42. package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
  43. package/{chunk-7Z6EW7AH.js → chunk-6XVPMGXK.js} +97 -11
  44. package/{chunk-ALAES342.js → chunk-73PZD7JZ.js} +9 -5
  45. package/{chunk-TCZ2VJZQ.js → chunk-7UVVLYKC.js} +9 -9
  46. package/{chunk-S6FDXXZV.js → chunk-ADOOL3PG.js} +2 -2
  47. package/{chunk-OWKNSIXL.js → chunk-AEZBAFC6.js} +334 -77
  48. package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
  49. package/{chunk-RG2DGNL6.js → chunk-ARFCL53U.js} +5 -5
  50. package/{chunk-SRCCSTIM.js → chunk-AS6L5KSD.js} +4 -4
  51. package/{chunk-WFDNADFX.js → chunk-BAH3BAUZ.js} +8 -8
  52. package/{chunk-N5Z2V73W.js → chunk-BFKJ2RS3.js} +1 -1
  53. package/{chunk-F6Z6ZCUV.js → chunk-BVEDT6DM.js} +3 -3
  54. package/chunk-C5A54QS7.js +108 -0
  55. package/{chunk-CD3RU7XL.js → chunk-CD2DK5JA.js} +120 -14
  56. package/{chunk-BP5ZJ6B4.js → chunk-CD64YXRB.js} +1 -1
  57. package/{chunk-VP3BINY7.js → chunk-CIGCTSBF.js} +31 -1
  58. package/{chunk-TQEKUOTI.js → chunk-CIUZXD5D.js} +12 -12
  59. package/{chunk-EVGU5P4U.js → chunk-CO6E7YK6.js} +1 -1
  60. package/{chunk-VMJVAJ6W.js → chunk-CTIEJRTP.js} +28 -4
  61. package/{chunk-7JGMNKKG.js → chunk-CTWCZKNS.js} +29 -8
  62. package/{chunk-YFLVRVYK.js → chunk-D25ONVOH.js} +1 -1
  63. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  64. package/{chunk-262R3XNN.js → chunk-E5RYFR7E.js} +334 -103
  65. package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
  66. package/{chunk-HSSBDZLD.js → chunk-EDT65EUE.js} +6 -6
  67. package/{chunk-YVFH2MFB.js → chunk-EQZQUQ33.js} +7 -7
  68. package/{chunk-HBRDSQ3M.js → chunk-ESN4WNWU.js} +3 -2
  69. package/{chunk-2YGBI2XB.js → chunk-FE7G6DSP.js} +11 -1
  70. package/{chunk-547ENH5T.js → chunk-FFFKAOJN.js} +4 -4
  71. package/{chunk-5ZUOVCKT.js → chunk-FGHEF6WI.js} +3 -1
  72. package/{chunk-GAYNXB6T.js → chunk-FTWAOKFU.js} +756 -333
  73. package/chunk-GAHJLSDO.js +107 -0
  74. package/{chunk-2X7WFDT6.js → chunk-GX6DITLQ.js} +1 -1
  75. package/{chunk-HXB4VDGK.js → chunk-HCCQEMTK.js} +28 -28
  76. package/{chunk-CMMI3DAT.js → chunk-HZDK56EK.js} +33 -26
  77. package/{chunk-OTKSESZR.js → chunk-IIOSZAJX.js} +4 -4
  78. package/chunk-IIRJ4P4I.js +24 -0
  79. package/{chunk-OJ45MEEI.js → chunk-IJZC2KIJ.js} +1 -1
  80. package/{chunk-MNEZUL5S.js → chunk-ITBX27W6.js} +92 -31
  81. package/{chunk-LYD6C7OU.js → chunk-J2VIGDJN.js} +6 -6
  82. package/{chunk-M3OZRQNH.js → chunk-JEWMQR6J.js} +1 -1
  83. package/{chunk-6QHKRARD.js → chunk-JFRJEPFI.js} +29 -5
  84. package/{chunk-S6K5F3KP.js → chunk-JP2BH4NC.js} +1 -1
  85. package/{chunk-EGHP7KOY.js → chunk-JU7VN4LF.js} +38 -29
  86. package/{chunk-RTHFJZ6M.js → chunk-K26XPZRB.js} +2 -2
  87. package/{chunk-ZYKJBRZ3.js → chunk-K7VIXYTZ.js} +1 -3
  88. package/chunk-KK3FCYZM.js +647 -0
  89. package/chunk-KLAMJNKQ.js +33394 -0
  90. package/{chunk-4JVNURX4.js → chunk-KQHEGELM.js} +68 -16
  91. package/chunk-KXOPLLFP.js +190 -0
  92. package/{chunk-MZG5CETE.js → chunk-KZ5OD2MO.js} +4 -4
  93. package/{chunk-ILHQ2AXT.js → chunk-KZAT2M2V.js} +14 -8
  94. package/chunk-LHCGKAFO.js +739 -0
  95. package/{chunk-HF7BLF3F.js → chunk-LMGFVH65.js} +107 -104
  96. package/{chunk-QRGDJA4B.js → chunk-LTVEOOZL.js} +19 -6
  97. package/{chunk-L32W3PRP.js → chunk-MAA42MMV.js} +233 -17
  98. package/{chunk-ATEKLSLR.js → chunk-MTM4LRVG.js} +14 -9
  99. package/chunk-MVOZ22RZ.js +26 -0
  100. package/{chunk-U2HBB7RS.js → chunk-MYYNZG2M.js} +132 -32
  101. package/{chunk-DBUR22G5.js → chunk-MZVCFV3T.js} +19 -15
  102. package/{chunk-WCFFRBL5.js → chunk-N74XL3NI.js} +9 -9
  103. package/{chunk-VS276URX.js → chunk-NEG5LYK5.js} +1 -1
  104. package/{chunk-RBPUNSG5.js → chunk-OAZP4TSA.js} +18 -108
  105. package/{chunk-4QYJPWHH.js → chunk-ODBYGVO2.js} +232 -10
  106. package/{chunk-M4SFKP5L.js → chunk-OHUYN3YU.js} +3 -3
  107. package/{chunk-HYLRQDEE.js → chunk-OLGFIQN2.js} +6 -6
  108. package/{chunk-M3JEW6N6.js → chunk-OYUMJMC5.js} +15 -0
  109. package/chunk-P27E22MA.js +203 -0
  110. package/{chunk-BIWI5M4E.js → chunk-PBPXXMWZ.js} +1 -1
  111. package/{chunk-OBSEKCVK.js → chunk-PQ63BDV3.js} +210 -51
  112. package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
  113. package/{chunk-XFXFPUO7.js → chunk-QMNVV3YM.js} +10 -37
  114. package/{chunk-CNMY2XM6.js → chunk-R5NRFXGD.js} +5 -5
  115. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  116. package/{chunk-4WVJLODK.js → chunk-RHBD22LV.js} +9 -4
  117. package/{chunk-45CAVC35.js → chunk-RMWDKLBE.js} +1489 -286
  118. package/{chunk-ZEVQHCLM.js → chunk-RR3MB26M.js} +2 -2
  119. package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
  120. package/{chunk-DLXMMTGM.js → chunk-SCMYAGQE.js} +1067 -705
  121. package/{chunk-YKY4OVOX.js → chunk-SPU3L3OR.js} +17 -170
  122. package/chunk-SR4FE5VD.js +9 -0
  123. package/{chunk-DUUDXSLX.js → chunk-SX6AWTNK.js} +28 -4
  124. package/{chunk-ZH3KXFHS.js → chunk-TMRJGSK2.js} +1 -1
  125. package/{chunk-S2NTVGA2.js → chunk-U35UUM5K.js} +2 -1
  126. package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
  127. package/{chunk-UAIHKQIA.js → chunk-U6RD332P.js} +18 -2
  128. package/{chunk-3U44JB3O.js → chunk-UF6J7NXV.js} +1 -1
  129. package/{chunk-5YMA6DDZ.js → chunk-UHW6SCVK.js} +1 -1
  130. package/chunk-UOUMPHS5.js +103 -0
  131. package/{chunk-HHFGE2WF.js → chunk-UPOW5HTG.js} +5 -5
  132. package/{chunk-DEA37IUY.js → chunk-V4IYI3SB.js} +2 -2
  133. package/{chunk-XTJKU3Z4.js → chunk-VKCPKCSS.js} +66 -92
  134. package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
  135. package/{chunk-OBIC6EG7.js → chunk-VUHKG4KS.js} +3 -3
  136. package/{chunk-EEOOBRA7.js → chunk-W3HSD32M.js} +13 -6
  137. package/{chunk-P2ZLUIW2.js → chunk-W6T4FNZP.js} +351 -26
  138. package/chunk-WDWZPASX.js +29 -0
  139. package/{chunk-R6Z5S5GA.js → chunk-WQDTSK5U.js} +51 -14
  140. package/{chunk-X3E6EHJW.js → chunk-X22AUZKL.js} +149 -165
  141. package/{chunk-4ZGPHFLE.js → chunk-X3OZ655T.js} +2 -2
  142. package/{chunk-RRDRQOEC.js → chunk-XCA4WHX5.js} +95 -77
  143. package/{chunk-TI2EPRHE.js → chunk-XJSEST7D.js} +3 -3
  144. package/{chunk-3QIYD3VM.js → chunk-XNTZD4AE.js} +870 -1068
  145. package/chunk-XSRSAU3O.js +133 -0
  146. package/{chunk-7FEP5USX.js → chunk-Y4NPF2UN.js} +3 -3
  147. package/{chunk-FJSNBZXR.js → chunk-YDRRGVT5.js} +1 -1
  148. package/{chunk-7BCG67EI.js → chunk-YFW4H6DL.js} +405 -338
  149. package/{chunk-JQZRSXS5.js → chunk-YGDYYFRX.js} +9 -13
  150. package/{chunk-4N6G2CKP.js → chunk-YHNUDTU4.js} +49 -3
  151. package/chunk-YJPK35HB.js +175 -0
  152. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  153. package/{chunk-FPBJM2BW.js → chunk-Z7KE4K3H.js} +195 -126
  154. package/{chunk-DGYCDA6W.js → chunk-ZM5AZTQG.js} +20 -13
  155. package/{chunk-CBUZ6DKA.js → chunk-ZQ6K57FJ.js} +1 -1
  156. package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-37ZNEY5Y.js} +9 -9
  157. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
  158. package/{cliLocalAgentRecordReader-H3HYQRRR.js → cliLocalAgentRecordReader-MCQVRWBR.js} +58 -47
  159. package/{commandRegistry-FVYPE2IN.js → commandRegistry-NTH5IAN5.js} +104 -92
  160. package/{contentThunks-GNFPG32S.js → contentThunks-SPXTX5U2.js} +38 -36
  161. package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-TIFCHCUN.js} +1 -1
  162. package/{createAgentAutomationAction-PB4QIFQ4.js → createAgentAutomationAction-KUQKCOXB.js} +38 -36
  163. package/{createDialogAction-EVTOPY7A.js → createDialogAction-HJN5U3XS.js} +39 -37
  164. package/{createPageAction-2UYF2IDZ.js → createPageAction-ZAHRDOAU.js} +43 -41
  165. package/{db-M7FU2GNK.js → db-CMUTP3W5.js} +2 -2
  166. package/{dbSlice-XRUZOGSU.js → dbSlice-656PMWR2.js} +13 -12
  167. package/{deleteFile-6URDHYRB.js → deleteFile-ZCQESEEQ.js} +10 -7
  168. package/{dialogCommands-6SZD4TYP.js → dialogCommands-KZTZLWPZ.js} +60 -54
  169. package/dialogMessageRecord-OAV77LT7.js +7 -0
  170. package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-PST75COP.js} +11 -11
  171. package/{dialogSlice-5EQ2A6LY.js → dialogSlice-BXIERQHO.js} +39 -37
  172. package/{dialogUsageCommand-W2WCSGKF.js → dialogUsageCommand-6RW2FY6K.js} +5 -5
  173. package/{docCreateCommands-25E6PGN3.js → docCreateCommands-26HJ5NAY.js} +54 -47
  174. package/{docDeleteCommands-F7ZVGEHW.js → docDeleteCommands-UAOHH5XK.js} +56 -49
  175. package/{docReadCommands-JY2E5XEN.js → docReadCommands-4ADG7YE6.js} +54 -47
  176. package/{docStore-OKKIKLT3.js → docStore-FZ75HWP2.js} +15 -14
  177. package/{docUpdateCommands-OZ4CUSIQ.js → docUpdateCommands-OGFJZENF.js} +54 -47
  178. package/fetchMessages-TQEUZD7H.js +1 -1
  179. package/{getPricing-LF5C4XSI.js → getPricing-FCHYVRJU.js} +4 -4
  180. package/{handleSendMessageAction-LNT7SZND.js → handleSendMessageAction-KP6GGBFY.js} +82 -78
  181. package/{hostCredentialCreate-XUU2CSHI.js → hostCredentialCreate-23TX56G7.js} +117 -105
  182. package/index.js +8 -8
  183. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  184. package/{localDialogRead-CCOCVGAP.js → localDialogRead-CIOTQM5T.js} +1 -1
  185. package/{localRuntimeAdapter-IBSTMSX7.js → localRuntimeAdapter-MTUWOYPN.js} +124 -111
  186. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-TYHQCTZN.js} +5 -3
  187. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-BO7IVWAZ.js} +1 -1
  188. package/{machineCommands-HSQHDHOT.js → machineCommands-4WJUJQHW.js} +241 -321
  189. package/{machineWsRunDispatch-L6H7J66T.js → machineWsRunDispatch-V3U4JM67.js} +113 -102
  190. package/markdownToSlate-KIYM7B3P.js +8 -0
  191. package/mcpLocalAuthorizeCommand-TI656UWC.js +106 -0
  192. package/{memberThunks-7Y3OYSJQ.js → memberThunks-JFYC4Z5L.js} +20 -15
  193. package/{models-H5NNZRLH.js → models-EP7VG6N2.js} +2 -2
  194. package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
  195. package/package.json +1 -1
  196. package/{projectArchive-FQO654Z3.js → projectArchive-NU2Z5HOR.js} +45 -43
  197. package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-4H7YP5D7.js} +6 -6
  198. package/{providerRegistry-ZI2KORJ7.js → providerRegistry-F3UPOTIY.js} +6 -6
  199. package/{read-TYMBGEXO.js → read-BRZHXUJ6.js} +9 -8
  200. package/{readDocTool-SKQVHBLO.js → readDocTool-N7RVFQEE.js} +1 -1
  201. package/{readlineWorkspace-7U272DSA.js → readlineWorkspace-T56MRMS5.js} +6423 -3669
  202. package/rememberExplicit-CPAPONSI.js +15 -0
  203. package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-J7XU7OUX.js} +19 -18
  204. package/{runAgentClientLoop-AF4JQIJ7.js → runAgentClientLoop-O2GRCGRZ.js} +96 -76
  205. package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-RDRJXMXC.js} +8 -8
  206. package/{secretCommands-KZWBZIYS.js → secretCommands-2FEMRUFM.js} +3 -3
  207. package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-Q4V2ZZW2.js} +16 -15
  208. package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-742H5S6T.js} +19 -18
  209. package/{settingThunks-ZRGWVGZD.js → settingThunks-T4FXSV6M.js} +185 -66
  210. package/{skillDiscovery-BHHPCUHZ.js → skillDiscovery-MDDKPTW3.js} +4 -3
  211. package/{spaceCommands-5VNWMDBE.js → spaceCommands-W5TAVFDT.js} +58 -51
  212. package/{streamAgentChatTurn-YSPEFY4K.js → streamAgentChatTurn-OWDJMU5E.js} +234 -177
  213. package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-HLDLHRRA.js} +17 -16
  214. package/{tableCommands-FTAOCBTX.js → tableCommands-44GC4N6J.js} +8 -5
  215. package/{toolApiClient-OGQEBQVX.js → toolApiClient-N5PYW2R3.js} +8 -6
  216. package/{tools-M35PTIFB.js → tools-O7SGGVA3.js} +65 -62
  217. package/{tuiRestart-2IL37YIB.js → tuiRestart-EOGC2BYY.js} +10 -10
  218. package/{tuiSummaryLlmCaller-W2QN4VAC.js → tuiSummaryLlmCaller-TM5BU73J.js} +16 -15
  219. package/{updateCommands-CPATDG6J.js → updateCommands-FBYA5WVG.js} +3 -3
  220. package/{updateDialogTitleAction-IMIRJRQQ.js → updateDialogTitleAction-EXSZGTLL.js} +40 -38
  221. package/{usageCommand-2BF74MKF.js → usageCommand-L4OFWXEU.js} +2 -2
  222. package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-7JR33UHS.js} +3 -3
  223. package/webapi-QVV65DQF.js +2487 -0
  224. package/{windowsSelfUpdate-ZFD6J5HF.js → windowsSelfUpdate-M4V77OUB.js} +2 -2
  225. package/workContext-Y3ADAPZU.js +14 -0
  226. package/workContextAccess-VU5I4LKZ.js +11 -0
  227. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  228. package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-ZCSQCHG3.js} +2 -2
  229. package/agentRecordCommands-IZYUVHME.js +0 -177
  230. package/chunk-5ZMIIR23.js +0 -265
  231. package/chunk-62HXNQVV.js +0 -134
  232. package/chunk-TUSTONB3.js +0 -81
  233. package/chunk-ZXF6D3I6.js +0 -359
  234. package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
  235. /package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
@@ -7,7 +7,7 @@ import {
7
7
  REQUIRED_CHROME_CONNECTOR_FEATURES,
8
8
  createChromeConnectorClient,
9
9
  resolveUploadRoots
10
- } from "./chunk-UAIHKQIA.js";
10
+ } from "./chunk-U6RD332P.js";
11
11
  import "./chunk-AL3TYDIF.js";
12
12
  import {
13
13
  toErrorMessage
@@ -366,6 +366,14 @@ var notProbedRequest = async () => {
366
366
  function expectedExtensionIdFor(browser, chromeExtensionId) {
367
367
  return browser === "firefox" ? NOLO_FIREFOX_CONNECTOR_EXTENSION_ID : chromeExtensionId;
368
368
  }
369
+ function makeRequestFor(args, sharedOverrideTarget) {
370
+ return (browser) => {
371
+ const perBrowser = args.requestChromeFor?.(browser);
372
+ if (perBrowser) return perBrowser;
373
+ if (!args.requestChrome) return createChromeConnectorClient({ browser }).request;
374
+ return browser === sharedOverrideTarget ? args.requestChrome : notProbedRequest;
375
+ };
376
+ }
369
377
  async function probeBrowserStatuses(args) {
370
378
  const entries = await Promise.all(
371
379
  CONNECTOR_BROWSER_ORDER.map(async (browser) => {
@@ -499,12 +507,7 @@ async function buildChromeConnectorStatus(args = {}) {
499
507
  const extensionManifest = connectorRoot ? readExtensionManifest(connectorRoot) : null;
500
508
  const expectedId = extensionManifest && typeof extensionManifest.key === "string" ? extensionIdFromPublicKey(extensionManifest.key) : NOLO_CHROME_CONNECTOR_EXTENSION_ID;
501
509
  const sharedOverrideTarget = browserTarget ?? "chrome";
502
- const requestFor = (browser) => {
503
- const perBrowser = args.requestChromeFor?.(browser);
504
- if (perBrowser) return perBrowser;
505
- if (!args.requestChrome) return createChromeConnectorClient({ browser }).request;
506
- return browser === sharedOverrideTarget ? args.requestChrome : notProbedRequest;
507
- };
510
+ const requestFor = makeRequestFor(args, sharedOverrideTarget);
508
511
  const browserStatuses = await probeBrowserStatuses({
509
512
  env,
510
513
  chromeExtensionId: expectedId,
@@ -885,19 +888,393 @@ The connector service worker restarts within ~1s; verify with \`nolo chrome stat
885
888
  return 1;
886
889
  }
887
890
  }
891
+ function browserFlagSuffix(browser) {
892
+ return browser === "firefox" ? " --browser firefox" : "";
893
+ }
894
+ async function probeTabsRoundtrip(requestChrome) {
895
+ try {
896
+ const result = await requestChrome("list_tabs", {});
897
+ const tabs = result?.tabs;
898
+ if (!Array.isArray(tabs)) {
899
+ return {
900
+ probed: true,
901
+ count: null,
902
+ error: {
903
+ code: "CHROME_CONNECTOR_BAD_RESPONSE",
904
+ message: "list_tabs returned no tabs array"
905
+ }
906
+ };
907
+ }
908
+ return { probed: true, count: tabs.length };
909
+ } catch (error) {
910
+ return {
911
+ probed: true,
912
+ count: null,
913
+ error: {
914
+ code: error?.code ?? "CHROME_CONNECTOR_ERROR",
915
+ message: toErrorMessage(error)
916
+ }
917
+ };
918
+ }
919
+ }
920
+ function buildNativeHostDoctorCheck(status, target) {
921
+ const label = "Native Messaging host";
922
+ const facts = target.nativeHost;
923
+ if (!status.nativeHost.supported) {
924
+ return {
925
+ id: "native_host",
926
+ label,
927
+ status: "fail",
928
+ summary: `this platform has no supported native host install (${status.nativeHost.platformError ?? "unsupported platform"})`
929
+ };
930
+ }
931
+ if (!status.connectorRoot) {
932
+ return {
933
+ id: "native_host",
934
+ label,
935
+ status: "warn",
936
+ summary: `cannot check: this CLI cannot see a connector checkout${status.connectorRootError ? ` (${status.connectorRootError})` : ""}; set NOLO_CHROME_CONNECTOR_ROOT or run the CLI from a repo checkout`
937
+ };
938
+ }
939
+ if (!facts.manifestPath) {
940
+ return {
941
+ id: "native_host",
942
+ label,
943
+ status: "warn",
944
+ summary: `cannot check: the ${browserLabel(target.browser)} native host paths did not resolve on this platform`
945
+ };
946
+ }
947
+ if (!facts.installed) {
948
+ return {
949
+ id: "native_host",
950
+ label,
951
+ status: "fail",
952
+ summary: `no native messaging host manifest at ${facts.manifestPath} \u2014 ${browserLabel(
953
+ target.browser
954
+ )} has nothing to talk to (a Web Store install never creates it)`
955
+ };
956
+ }
957
+ if (!facts.wrapperPathMatches || !facts.allowedOriginMatches) {
958
+ const problems = [];
959
+ if (!facts.wrapperPathMatches) problems.push("its wrapper path points at another checkout/launcher");
960
+ if (!facts.allowedOriginMatches) {
961
+ problems.push(`its allowed origins do not include extension ${target.expectedExtensionId}`);
962
+ }
963
+ return {
964
+ id: "native_host",
965
+ label,
966
+ status: "warn",
967
+ summary: `${facts.manifestPath} is installed but ${problems.join(" and ")}`
968
+ };
969
+ }
970
+ return {
971
+ id: "native_host",
972
+ label,
973
+ status: "pass",
974
+ summary: `${facts.manifestPath} registered and allows extension ${target.expectedExtensionId}`
975
+ };
976
+ }
977
+ function buildAuthTokenDoctorCheck(status, target) {
978
+ const label = "RPC auth token";
979
+ const path = target.token.path ?? status.token.path;
980
+ if (!status.nativeHost.supported) {
981
+ return {
982
+ id: "auth_token",
983
+ label,
984
+ status: "warn",
985
+ summary: "not applicable: this platform has no supported native host install"
986
+ };
987
+ }
988
+ if (!status.connectorRoot) {
989
+ return {
990
+ id: "auth_token",
991
+ label,
992
+ status: "warn",
993
+ summary: "cannot check: no connector checkout is visible here, so the token file was not inspected (the live RPC probe below is the authority \u2014 a working bridge authenticates fine)"
994
+ };
995
+ }
996
+ if (target.token.present) {
997
+ return {
998
+ id: "auth_token",
999
+ label,
1000
+ status: "pass",
1001
+ summary: `token present${path ? ` at ${path}` : ""}`
1002
+ };
1003
+ }
1004
+ return {
1005
+ id: "auth_token",
1006
+ label,
1007
+ status: "fail",
1008
+ summary: `no connector token${path ? ` at ${path}` : ""} \u2014 the bridge rejects unauthenticated calls`
1009
+ };
1010
+ }
1011
+ function buildRpcBridgeDoctorCheck(target) {
1012
+ const label = "Local RPC bridge";
1013
+ const rpc = target.rpc;
1014
+ if (rpc.online) {
1015
+ return {
1016
+ id: "rpc_bridge",
1017
+ label,
1018
+ status: "pass",
1019
+ summary: `answering on ${target.endpoint} (extension ${rpc.extensionId ?? "unknown"})`
1020
+ };
1021
+ }
1022
+ const code = rpc.error?.code ?? "CHROME_CONNECTOR_ERROR";
1023
+ if (code === "UNAUTHORIZED") {
1024
+ return {
1025
+ id: "rpc_bridge",
1026
+ label,
1027
+ status: "fail",
1028
+ summary: `something answers on ${target.endpoint} but rejects this machine's token (UNAUTHORIZED) \u2014 the token file and the running native host disagree`
1029
+ };
1030
+ }
1031
+ if (code === "CHROME_CONNECTOR_UNAVAILABLE") {
1032
+ return {
1033
+ id: "rpc_bridge",
1034
+ label,
1035
+ status: "warn",
1036
+ summary: `nothing is listening on ${target.endpoint} \u2014 the extension's background service worker is most likely asleep, which is normal, not broken`
1037
+ };
1038
+ }
1039
+ return {
1040
+ id: "rpc_bridge",
1041
+ label,
1042
+ status: "warn",
1043
+ summary: `${code}: ${rpc.error?.message ?? "(no detail)"}`
1044
+ };
1045
+ }
1046
+ function buildHandshakeDoctorCheck(target, browser) {
1047
+ const label = "Extension handshake";
1048
+ const rpc = target.rpc;
1049
+ if (!rpc.online) {
1050
+ return {
1051
+ id: "extension_handshake",
1052
+ label,
1053
+ status: "warn",
1054
+ summary: "cannot verify while the RPC bridge is offline (see rpc_bridge)"
1055
+ };
1056
+ }
1057
+ const recognizedBrowser = rpc.build ?? (rpc.extensionId === target.expectedExtensionId ? target.browser : null);
1058
+ if (recognizedBrowser === null) {
1059
+ return {
1060
+ id: "extension_handshake",
1061
+ label,
1062
+ status: "fail",
1063
+ summary: `the connected extension ${rpc.extensionId ?? "(unknown id)"} is not a recognized Nolo Browser Connector build`
1064
+ };
1065
+ }
1066
+ if (recognizedBrowser !== browser) {
1067
+ return {
1068
+ id: "extension_handshake",
1069
+ label,
1070
+ status: "fail",
1071
+ summary: `the bridge answers as the ${browserLabel(recognizedBrowser)} build, not ${browserLabel(browser)}`
1072
+ };
1073
+ }
1074
+ const expected = expectedFeaturesForBrowser(browser);
1075
+ const missing = expected.filter((feature) => !rpc.features.includes(feature));
1076
+ const problems = [];
1077
+ if (rpc.protocolVersion !== NOLO_CHROME_CONNECTOR_PROTOCOL_VERSION) {
1078
+ problems.push(
1079
+ `protocol ${rpc.protocolVersion ?? "unknown"} (this CLI speaks ${NOLO_CHROME_CONNECTOR_PROTOCOL_VERSION})`
1080
+ );
1081
+ }
1082
+ if (missing.length > 0) problems.push(`missing features ${missing.join(", ")}`);
1083
+ if (problems.length > 0) {
1084
+ return {
1085
+ id: "extension_handshake",
1086
+ label,
1087
+ status: "fail",
1088
+ summary: `${browserLabel(browser)} build ${rpc.extensionId ?? "unknown"} reports ${problems.join("; ")}`
1089
+ };
1090
+ }
1091
+ return {
1092
+ id: "extension_handshake",
1093
+ label,
1094
+ status: "pass",
1095
+ summary: `${browserLabel(browser)} build ${rpc.extensionId ?? "unknown"} speaks protocol ${rpc.protocolVersion} with all ${expected.length} required features`
1096
+ };
1097
+ }
1098
+ function buildDoctorRecoverySteps(args) {
1099
+ const { browser, checks, tabs, ok, requiresExplicitBrowser, rpcUnauthorized } = args;
1100
+ const installCmd = `nolo browser install${browserFlagSuffix(browser)}`;
1101
+ const doctorCmd = `nolo browser doctor${browserFlagSuffix(browser)}`;
1102
+ const reloadCmd = `nolo browser reload${browserFlagSuffix(browser)}`;
1103
+ const browserName = browserLabel(browser);
1104
+ const statusOf = (id) => checks.find((check) => check.id === id)?.status;
1105
+ const extensionsPage = browser === "firefox" ? "about:debugging#/runtime/this-firefox" : "chrome://extensions";
1106
+ const installHint = browser === "firefox" ? `If the extension is not installed yet: install Nolo Browser Connector from https://nolo.chat/downloads, or load the local extension/ directory from ${extensionsPage}.` : `If the extension is not installed yet: install Nolo Browser Connector from the Chrome Web Store, or load the local extension/ directory with Developer mode in ${extensionsPage}.`;
1107
+ const restrictedPages = browser === "firefox" ? "about: pages and the connector's own pages" : "chrome:// pages, the Web Store and extension pages";
1108
+ const wakeHint = `click the \u300CNolo \u6D4F\u89C8\u5668\u8FDE\u63A5\u5668\u300D icon in the browser toolbar to wake the background service worker (icon hidden? open ${extensionsPage}, confirm it is enabled and click Reload)`;
1109
+ if (ok) {
1110
+ const count = tabs.count ?? 0;
1111
+ const steps = [
1112
+ `End-to-end ready: ${browserName} is online and the connector round trip works (${count} controllable ${count === 1 ? "tab" : "tabs"} detected).`
1113
+ ];
1114
+ if (requiresExplicitBrowser) {
1115
+ steps.push(
1116
+ `Both the Chrome and Firefox connectors are online, so every unqualified \`nolo browser <op>\` fails with MULTIPLE_BROWSERS_AVAILABLE \u2014 pass the browser explicitly, e.g. \`nolo browser list-tabs --browser ${browser}\`.`
1117
+ );
1118
+ } else {
1119
+ steps.push("Next: `nolo browser list-tabs` lists the tabs an agent can drive.");
1120
+ }
1121
+ return steps;
1122
+ }
1123
+ if (statusOf("native_host") === "fail" || statusOf("auth_token") === "fail") {
1124
+ const howToWake = browser === "firefox" ? `open ${extensionsPage} and click Reload on the connector` : `open ${extensionsPage}, make sure the extension is enabled and click Reload`;
1125
+ return [
1126
+ `The ${browserName} extension itself is fine \u2014 it needs this machine's native bridge before it can drive your browser (the store package never includes one).`,
1127
+ `1. Run: ${installCmd}`,
1128
+ `2. Click the \u300CNolo \u6D4F\u89C8\u5668\u8FDE\u63A5\u5668\u300D icon in the browser toolbar to wake the local bridge (icon hidden? ${howToWake}).`,
1129
+ `3. Run: ${doctorCmd} to verify.`,
1130
+ installHint
1131
+ ];
1132
+ }
1133
+ if (statusOf("rpc_bridge") !== "pass") {
1134
+ if (rpcUnauthorized) {
1135
+ return [
1136
+ "The native bridge is installed but rejects this machine's token, so nothing can talk to it.",
1137
+ `1. Run: ${installCmd} (rewrites the token and the manifest together).`,
1138
+ "2. Click the \u300CNolo \u6D4F\u89C8\u5668\u8FDE\u63A5\u5668\u300D icon in the browser toolbar to restart the bridge with the new token.",
1139
+ `3. Run: ${doctorCmd} to verify.`
1140
+ ];
1141
+ }
1142
+ return [
1143
+ "Nothing is answering on the local bridge yet \u2014 the connector's background service worker is not awake, which is normal rather than a broken install.",
1144
+ `If the extension is already installed: ${wakeHint}.`,
1145
+ installHint,
1146
+ `Then run: ${doctorCmd} to verify.`
1147
+ ];
1148
+ }
1149
+ if (statusOf("extension_handshake") === "fail") {
1150
+ return [
1151
+ `The bridge is answering, but the running ${browserName} build is not what this CLI expects (older protocol, missing features, or another connector copy answering).`,
1152
+ `1. Run: ${reloadCmd} (restarts the extension worker with the files on disk).`,
1153
+ `2. If that does not help, open ${extensionsPage} and click Reload on the Nolo Browser Connector; remove any second copy of the connector.`,
1154
+ `3. Run: ${doctorCmd} to verify.`
1155
+ ];
1156
+ }
1157
+ return [
1158
+ `Every link up to the extension is ready, but a real tab round trip failed${tabs.error ? ` (${tabs.error.code})` : ""} \u2014 usually no controllable window/tab is open.`,
1159
+ `1. Open a normal https:// page in a regular window (${restrictedPages} cannot be controlled).`,
1160
+ "2. Click the \u300CNolo \u6D4F\u89C8\u5668\u8FDE\u63A5\u5668\u300D icon once to wake the worker.",
1161
+ `3. Run: ${doctorCmd} to verify.`
1162
+ ];
1163
+ }
1164
+ async function buildChromeConnectorDoctorReport(args = {}) {
1165
+ const status = await buildChromeConnectorStatus(args);
1166
+ const browser = status.browsers.explicit ?? status.browsers.autoSelected ?? "chrome";
1167
+ const target = status.browsers[browser];
1168
+ const checks = [
1169
+ buildNativeHostDoctorCheck(status, target),
1170
+ buildAuthTokenDoctorCheck(status, target),
1171
+ buildRpcBridgeDoctorCheck(target),
1172
+ buildHandshakeDoctorCheck(target, browser)
1173
+ ];
1174
+ const handshakeReady = checks.find((check) => check.id === "extension_handshake")?.status === "pass" && target.rpc.online;
1175
+ let tabs;
1176
+ if (!handshakeReady) {
1177
+ tabs = { probed: false, count: null };
1178
+ const blocker = target.rpc.online ? "the extension handshake (extension_handshake)" : "the RPC bridge (rpc_bridge)";
1179
+ checks.push({
1180
+ id: "tabs_roundtrip",
1181
+ label: "Tab round trip (list_tabs)",
1182
+ status: "warn",
1183
+ summary: `not run: ${blocker} is not ready, so no real tab round trip can be attempted yet`
1184
+ });
1185
+ } else {
1186
+ const requestFor = makeRequestFor(args, args.browser ?? "chrome");
1187
+ tabs = await probeTabsRoundtrip(requestFor(browser));
1188
+ checks.push({
1189
+ id: "tabs_roundtrip",
1190
+ label: "Tab round trip (list_tabs)",
1191
+ status: tabs.error ? "fail" : "pass",
1192
+ summary: tabs.error ? `list_tabs failed (${tabs.error.code}: ${tabs.error.message})` : `list_tabs returned ${tabs.count} controllable tab(s)`
1193
+ });
1194
+ }
1195
+ const liveChainOk = ["rpc_bridge", "extension_handshake", "tabs_roundtrip"].every(
1196
+ (id) => checks.find((check) => check.id === id)?.status === "pass"
1197
+ );
1198
+ const ok = liveChainOk && !checks.some((check) => check.status === "fail");
1199
+ return {
1200
+ ok,
1201
+ browser,
1202
+ verifyCommand: `nolo browser doctor${browserFlagSuffix(browser)}`,
1203
+ checks,
1204
+ recoverySteps: buildDoctorRecoverySteps({
1205
+ browser,
1206
+ checks,
1207
+ tabs,
1208
+ ok,
1209
+ requiresExplicitBrowser: status.browsers.requiresExplicitBrowser,
1210
+ rpcUnauthorized: target.rpc.error?.code === "UNAUTHORIZED"
1211
+ }),
1212
+ tabs,
1213
+ status
1214
+ };
1215
+ }
1216
+ function formatChromeConnectorDoctor(report) {
1217
+ const mark = (status) => status === "pass" ? "[pass]" : status === "warn" ? "[warn]" : "[FAIL]";
1218
+ const lines = ["Nolo Browser Connector \u2014 doctor"];
1219
+ lines.push(` browser : ${browserLabel(report.browser)}`);
1220
+ lines.push(` endpoint : ${report.status.browsers[report.browser].endpoint}`);
1221
+ if (report.status.browsers.requiresExplicitBrowser) {
1222
+ lines.push(
1223
+ " note : both Chrome and Firefox connectors are online, so every unqualified `nolo browser <op>` fails with MULTIPLE_BROWSERS_AVAILABLE \u2014 pass --browser chrome or --browser firefox."
1224
+ );
1225
+ }
1226
+ lines.push("Checks:");
1227
+ for (const check of report.checks) {
1228
+ lines.push(` ${mark(check.status)} ${check.id.padEnd(19)}: ${check.summary}`);
1229
+ }
1230
+ lines.push(
1231
+ report.ok ? "Result : end-to-end ready." : "Result : not ready yet \u2014 follow the recovery steps below."
1232
+ );
1233
+ lines.push("Recovery:");
1234
+ for (const step of report.recoverySteps) lines.push(` ${step}`);
1235
+ lines.push(`Verify with : ${report.verifyCommand}`);
1236
+ return `${lines.join("\n")}
1237
+ `;
1238
+ }
1239
+ async function runChromeDoctorCommand(args, deps = {}) {
1240
+ const output = deps.output ?? process.stdout;
1241
+ const browser = readBrowserOption(args);
1242
+ if (browser === null) {
1243
+ output.write('[nolo] Browser connector doctor failed: --browser must be "chrome" or "firefox".\n');
1244
+ return 1;
1245
+ }
1246
+ let report;
1247
+ try {
1248
+ report = await buildChromeConnectorDoctorReport({ ...deps, ...browser ? { browser } : {} });
1249
+ } catch (error) {
1250
+ output.write(`[nolo] Browser connector doctor failed: ${toErrorMessage(error)}
1251
+ `);
1252
+ return 1;
1253
+ }
1254
+ if (args.includes("--json")) {
1255
+ output.write(`${JSON.stringify(report, null, 2)}
1256
+ `);
1257
+ } else {
1258
+ output.write(formatChromeConnectorDoctor(report));
1259
+ }
1260
+ return report.ok ? 0 : 1;
1261
+ }
888
1262
  export {
889
1263
  CLI_CONNECTOR_ROOT_CANDIDATES,
890
1264
  FIREFOX_UNAVAILABLE_FEATURES,
891
1265
  FULL_SUPPORT_CHROME_FEATURES,
1266
+ buildChromeConnectorDoctorReport,
892
1267
  buildChromeConnectorStatus,
893
1268
  compareDeployShas,
894
1269
  detectWorktreeCheckout,
895
1270
  expectedFeaturesForBrowser,
896
1271
  fetchOnlineBuildSha,
1272
+ formatChromeConnectorDoctor,
897
1273
  formatChromeConnectorStatus,
898
1274
  resolveCliConnectorRoot,
899
1275
  resolveConnectorBrowser,
900
1276
  resolveLocalHeadSha,
1277
+ runChromeDoctorCommand,
901
1278
  runChromeInstallCommand,
902
1279
  runChromeReloadCommand,
903
1280
  runChromeStatusCommand
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  requestBrowserShellAction
3
- } from "./chunk-2YGBI2XB.js";
3
+ } from "./chunk-FE7G6DSP.js";
4
4
  import {
5
5
  createChromeConnectorClient,
6
6
  createVerifiedChromeConnectorClient
7
- } from "./chunk-UAIHKQIA.js";
7
+ } from "./chunk-U6RD332P.js";
8
8
  import "./chunk-AL3TYDIF.js";
9
9
  import {
10
10
  readOption
@@ -13,7 +13,7 @@ import "./chunk-OLZBQWZU.js";
13
13
  import "./chunk-LCBAMY2M.js";
14
14
  import {
15
15
  t
16
- } from "./chunk-262R3XNN.js";
16
+ } from "./chunk-E5RYFR7E.js";
17
17
  import {
18
18
  toErrorMessage
19
19
  } from "./chunk-HNMXYYJR.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  buildSkillSummaryMarker
3
3
  } from "./chunk-VF4K2QE6.js";
4
- import {
5
- readDbRecord,
6
- writeAgentRecord
7
- } from "./chunk-TQEKUOTI.js";
8
4
  import {
9
5
  createSpaceKey
10
6
  } from "./chunk-UAD2WT54.js";
7
+ import {
8
+ readDbRecord,
9
+ writeAgentRecord
10
+ } from "./chunk-CIUZXD5D.js";
11
11
  import {
12
12
  parseUserIdFromAuthToken,
13
13
  readOption,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  describeAttachmentForModel
3
- } from "./chunk-QRGDJA4B.js";
3
+ } from "./chunk-LTVEOOZL.js";
4
4
 
5
5
  // packages/ai/attachments/projectUserPart.ts
6
6
  var isRecord = (value) => typeof value === "object" && value !== null;
@@ -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
+ };
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  markdownToSlate
3
- } from "./chunk-FJ23FZXF.js";
3
+ } from "./chunk-VIYVRPMJ.js";
4
+ import {
5
+ buildSkillSummaryMarker
6
+ } from "./chunk-VF4K2QE6.js";
4
7
  import {
5
8
  createEmptyParagraph,
6
9
  splitSlateTitleAndBody
@@ -8,28 +11,25 @@ import {
8
11
  import {
9
12
  slateToRenderMarkdown
10
13
  } from "./chunk-63W5N6P3.js";
11
- import {
12
- buildSkillSummaryMarker
13
- } from "./chunk-VF4K2QE6.js";
14
14
  import {
15
15
  addContentToSpace,
16
16
  resolveCreationSpaceId
17
- } from "./chunk-HXB4VDGK.js";
18
- import {
19
- getCurrentSpaceId
20
- } from "./chunk-547ENH5T.js";
17
+ } from "./chunk-HCCQEMTK.js";
21
18
  import {
22
19
  runtime_default
23
- } from "./chunk-7BCG67EI.js";
20
+ } from "./chunk-YFW4H6DL.js";
21
+ import {
22
+ getCurrentSpaceId
23
+ } from "./chunk-FFFKAOJN.js";
24
24
  import {
25
25
  write
26
- } from "./chunk-CMMI3DAT.js";
26
+ } from "./chunk-HZDK56EK.js";
27
27
  import {
28
28
  selectIdentityUserId
29
29
  } from "./chunk-PXYBUFDB.js";
30
30
  import {
31
31
  parseSkillDocProtocol
32
- } from "./chunk-W6RFEDN4.js";
32
+ } from "./chunk-AETZ7AD6.js";
33
33
  import {
34
34
  createPageKey
35
35
  } from "./chunk-SYTHYBMI.js";
@@ -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-EDT65EUE.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-MAA42MMV.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-K26XPZRB.js";
32
32
  import {
33
33
  PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL
34
- } from "./chunk-OBSEKCVK.js";
34
+ } from "./chunk-PQ63BDV3.js";
35
35
 
36
36
  // packages/core/accountSession/fetchAccountProfile.ts
37
37
  async function fetchAccountProfile(input) {
@@ -1,10 +1,10 @@
1
- import {
2
- resolveAgentImageInputSupport
3
- } from "./chunk-DUUDXSLX.js";
4
1
  import {
5
2
  TOOL_HAD_IMAGES,
6
3
  hadToolImages
7
4
  } from "./chunk-X4O7FJF5.js";
5
+ import {
6
+ resolveAgentImageInputSupport
7
+ } from "./chunk-SX6AWTNK.js";
8
8
  import {
9
9
  isCompleteInstructionOutput,
10
10
  sanitizeToolOutputText,
@@ -13,12 +13,12 @@ import {
13
13
  import {
14
14
  asTrimmedString
15
15
  } from "./chunk-3EUW3WEO.js";
16
- import {
17
- isRecord
18
- } from "./chunk-KUG52IAP.js";
19
16
  import {
20
17
  asOptionalFiniteNumber
21
18
  } from "./chunk-WWC7I6TA.js";
19
+ import {
20
+ isRecord
21
+ } from "./chunk-KUG52IAP.js";
22
22
  import {
23
23
  asOptionalTrimmedString
24
24
  } from "./chunk-G3SUCT4W.js";
@@ -0,0 +1,31 @@
1
+ // packages/agent-runtime/dialogMessageRecord.ts
2
+ function dialogMessageRecordToAgentRuntimeMessage(record) {
3
+ if (!record || typeof record !== "object") return null;
4
+ if (record.role !== "user" && record.role !== "assistant" && record.role !== "tool") return null;
5
+ return {
6
+ ...typeof record.id === "string" ? { id: record.id } : {},
7
+ role: record.role,
8
+ ...Number.isFinite(record.metadata?.cliHistoryOrder) ? { cliHistoryOrder: record.metadata.cliHistoryOrder } : {},
9
+ content: record.content ?? "",
10
+ ...record.contextReference !== void 0 ? { context_reference: record.contextReference } : {},
11
+ ...typeof record.reasoning_content === "string" ? { reasoning_content: record.reasoning_content } : {},
12
+ ...typeof record.toolCallId === "string" ? { tool_call_id: record.toolCallId } : {},
13
+ ...Array.isArray(record.tool_calls) ? { tool_calls: record.tool_calls } : {},
14
+ ...record.toolPayload !== void 0 ? { toolPayload: record.toolPayload } : {},
15
+ ...typeof record.toolName === "string" ? { toolName: record.toolName } : {},
16
+ // 写侧(dialogWritePlan)把 tool_result_metadata 以 `metadata` 字段落库;
17
+ // 回读必须还原,否则跨 turn 投影丢失 metadata 后缀,同一 tool 消息的字节
18
+ // 在 turn 边界漂移 → provider 前缀缓存断裂(stable projection 契约,
19
+ // 见 docs/plans/2026-09-05-tool-output-cache-stability.md)。
20
+ ...record.metadata && typeof record.metadata === "object" ? { tool_result_metadata: record.metadata } : {},
21
+ ...(() => {
22
+ const raw = record.createdAt;
23
+ const ms = typeof raw === "number" ? raw : typeof raw === "string" ? Date.parse(raw) : NaN;
24
+ return Number.isFinite(ms) ? { createdAt: ms } : {};
25
+ })()
26
+ };
27
+ }
28
+
29
+ export {
30
+ dialogMessageRecordToAgentRuntimeMessage
31
+ };