nolo-cli 0.226.0-alpha.2 → 0.226.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-IKZGZZXW.js → _executeModel-IZ2MCXHO.js} +89 -83
  3. package/{action-CK64LS6S.js → action-VDEW6WLI.js} +9 -6
  4. package/{addContentAction-EQXMFNPR.js → addContentAction-7YVXHIPQ.js} +15 -14
  5. package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-BX7B47HF.js} +18 -17
  6. package/{agentDeleteCommand-IZY3VF5F.js → agentDeleteCommand-N7ELXPLD.js} +145 -138
  7. package/{agentEmailCommands-YWL567CL.js → agentEmailCommands-OFS477PV.js} +144 -133
  8. package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
  9. package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
  10. package/agentListCommands-IQQHJSXP.js +644 -0
  11. package/{agentMachineCommands-AXJ4A772.js → agentMachineCommands-NS65BEW7.js} +75 -66
  12. package/{agentProviderCommands-7BSJH7TO.js → agentProviderCommands-SS6M6VGY.js} +6 -6
  13. package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-QQQZSC6S.js} +6 -6
  14. package/agentRecordCommands-4VE7CNLC.js +188 -0
  15. package/agentRunCommand-2MUXHKNW.js +223 -0
  16. package/{agentRunControl-DFEEOFC7.js → agentRunControl-55GL6Q3M.js} +23 -15
  17. package/{agentRuntimeLocal-GSTYFEX4.js → agentRuntimeLocal-5DB2P4MU.js} +63 -49
  18. package/{agentSlice-5F5U5X2U.js → agentSlice-5VTAFG43.js} +19 -18
  19. package/{appDeleteCommands-L7HL4AWF.js → appDeleteCommands-EDKUPHJM.js} +67 -58
  20. package/{appDeployCommands-SGSUNFZR.js → appDeployCommands-JO74GW4L.js} +67 -58
  21. package/{appDeployStatusCommands-AAA3XD54.js → appDeployStatusCommands-U77ZUHX7.js} +67 -58
  22. package/{appGetCommands-LN72GAOA.js → appGetCommands-QCMHBYPX.js} +67 -58
  23. package/{appListCommands-IJQQ3VND.js → appListCommands-ZQJYEXI6.js} +67 -58
  24. package/{authCommand-7JXW54U4.js → authCommand-W4KXRZLI.js} +33 -28
  25. package/{authCommands-YDNAIDEY.js → authCommands-6AUYO65N.js} +15 -10
  26. package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-GHE3RD3V.js} +8 -8
  27. package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
  28. package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-TBPM6MR4.js} +6 -6
  29. package/{chunk-7Z6EW7AH.js → chunk-247AAJRK.js} +13 -6
  30. package/{chunk-P2ZLUIW2.js → chunk-2BSLGODA.js} +350 -25
  31. package/{chunk-4HFTBHBF.js → chunk-2N4UBHUU.js} +8 -8
  32. package/chunk-2SXN7LAY.js +15 -0
  33. package/{chunk-GBUDWITV.js → chunk-2T5BHLID.js} +2871 -1565
  34. package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
  35. package/{chunk-VFBVA3U2.js → chunk-3OQFXODL.js} +131 -40
  36. package/{chunk-BGGHA5DV.js → chunk-3ORFJP2Z.js} +1 -1
  37. package/{chunk-E5EIYI34.js → chunk-3UNAGTBW.js} +32 -95
  38. package/{chunk-LM2PS3YS.js → chunk-4F7SWSWO.js} +26 -13
  39. package/{chunk-SBVTHMEG.js → chunk-4FE3IWRE.js} +1 -1
  40. package/{chunk-GOAPXKQU.js → chunk-4UK6UBXF.js} +4 -4
  41. package/{chunk-4JVNURX4.js → chunk-4YFC3DWW.js} +68 -16
  42. package/chunk-4ZCTKB27.js +31 -0
  43. package/chunk-53W5BXLN.js +340 -0
  44. package/{chunk-NEKH3XDV.js → chunk-5GRWWUB4.js} +4 -4
  45. package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
  46. package/{chunk-ZH6MUQEO.js → chunk-6326DRQY.js} +1 -1
  47. package/{chunk-AVHRSJUH.js → chunk-6MQWGA5F.js} +31 -24
  48. package/{chunk-67BE44IS.js → chunk-6MX6S6TE.js} +3 -3
  49. package/chunk-6RSNVJGO.js +279 -0
  50. package/{chunk-L4NFXFFF.js → chunk-6S6CZUXK.js} +42 -33
  51. package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
  52. package/{chunk-JHRQXQ4A.js → chunk-6XLWUNZB.js} +25 -25
  53. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  54. package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
  55. package/{chunk-6J4TTPS2.js → chunk-7AWKDRXG.js} +5 -5
  56. package/{chunk-3KNEE64G.js → chunk-7GTXPS3D.js} +16 -16
  57. package/{chunk-RRVQ446B.js → chunk-7HUHOCIY.js} +147 -162
  58. package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
  59. package/chunk-BEM6LPD2.js +734 -0
  60. package/{chunk-AGP3YSEC.js → chunk-BH7CEVOH.js} +46 -1
  61. package/chunk-BIDSIRTS.js +307 -0
  62. package/{chunk-4AMQZTE7.js → chunk-C4KX626C.js} +15 -15
  63. package/chunk-C5A54QS7.js +108 -0
  64. package/{chunk-BYH3HMUP.js → chunk-CHYYSFFM.js} +6 -6
  65. package/{chunk-VREDDN25.js → chunk-CJTB3OYB.js} +14 -9
  66. package/{chunk-YFLVRVYK.js → chunk-DLT2DN4M.js} +1 -1
  67. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  68. package/{chunk-EOWLBDY6.js → chunk-DOK7GDRU.js} +1 -1
  69. package/{chunk-T3T57NVP.js → chunk-DPAIQLAL.js} +105 -102
  70. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  71. package/{chunk-XN23AUVU.js → chunk-EKXPHL7M.js} +8 -5
  72. package/{chunk-DISQCYPE.js → chunk-ENYTIRIO.js} +6 -6
  73. package/{chunk-2TIQO6TC.js → chunk-ER3P6MBT.js} +206 -308
  74. package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
  75. package/{chunk-JM5C4EUA.js → chunk-F4MCAOWN.js} +6 -6
  76. package/chunk-FDZ2GBWO.js +166 -0
  77. package/{chunk-PMDVQBGA.js → chunk-GAHJLSDO.js} +14 -7
  78. package/{chunk-N5PQJKCY.js → chunk-GES5GIAU.js} +14 -13
  79. package/{chunk-QTMIHVLE.js → chunk-HQVNO7FH.js} +66 -35
  80. package/chunk-HSWEFHFS.js +103 -0
  81. package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
  82. package/{chunk-F7DU25CE.js → chunk-IIG3TT73.js} +460 -123
  83. package/{chunk-AK5O76CC.js → chunk-IZJFTY4R.js} +3 -3
  84. package/{chunk-2VA6TU4I.js → chunk-J25ESVUW.js} +22 -19
  85. package/{chunk-2COEG5ZV.js → chunk-J2XZZXIH.js} +4 -4
  86. package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
  87. package/{chunk-D726I5AZ.js → chunk-JVJ53XCH.js} +2 -2
  88. package/{chunk-TXGQ4O5S.js → chunk-KC2QVCI7.js} +20 -174
  89. package/{chunk-UKS7D2NL.js → chunk-KF2DWSAH.js} +113 -28
  90. package/chunk-KK3FCYZM.js +647 -0
  91. package/{chunk-HHL7WG65.js → chunk-KLD7K5FD.js} +349 -16
  92. package/{chunk-WSJMT3FA.js → chunk-KMW5CRRM.js} +1564 -2955
  93. package/{chunk-N5Z2V73W.js → chunk-LELADM5Q.js} +1 -1
  94. package/{chunk-4NA3YTBC.js → chunk-LMFMV5UC.js} +8 -8
  95. package/{chunk-KZU52OJ5.js → chunk-LZOOUQAZ.js} +6 -6
  96. package/{chunk-VV7TXWOC.js → chunk-M5EA44QU.js} +6 -6
  97. package/{chunk-UYOICCYG.js → chunk-MEDPR36J.js} +64 -89
  98. package/chunk-MFXJY44K.js +133 -0
  99. package/chunk-MVOZ22RZ.js +26 -0
  100. package/{chunk-3QFLXA24.js → chunk-N6EN3HK3.js} +3 -3
  101. package/{chunk-SOF4OWDM.js → chunk-NEG5LYK5.js} +1 -3
  102. package/{chunk-W772FYAQ.js → chunk-ODGSLWLO.js} +593 -370
  103. package/{chunk-OB6DVWPF.js → chunk-OGZE6BZG.js} +331 -99
  104. package/{chunk-KYH7XW3K.js → chunk-OJRTTERA.js} +77 -2
  105. package/{chunk-2VUZSVAS.js → chunk-OKPC4QNX.js} +57 -20
  106. package/{chunk-SOG7OEXX.js → chunk-ONFFUQYM.js} +1 -1
  107. package/{chunk-KNIIRXHF.js → chunk-P244EH4W.js} +46 -8
  108. package/chunk-P27E22MA.js +203 -0
  109. package/{chunk-YDBMZ7FV.js → chunk-PK7VT4ZU.js} +3 -3
  110. package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
  111. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  112. package/{chunk-5RKUPJYL.js → chunk-QLUYDJST.js} +11 -3
  113. package/{chunk-EFX3Q5SM.js → chunk-QUJKDFZW.js} +17 -17
  114. package/{chunk-C4VAR65S.js → chunk-QXUVCIPB.js} +204 -124
  115. package/{chunk-BLSNUIZD.js → chunk-QYNABNNQ.js} +13 -13
  116. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  117. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  118. package/{chunk-KC4SCKXO.js → chunk-RGUWOMXU.js} +1234 -1451
  119. package/{chunk-IZIN2UNJ.js → chunk-RH44TIHX.js} +206 -27
  120. package/{chunk-GNHMRBYZ.js → chunk-RIMFTQMC.js} +282 -58
  121. package/{chunk-VQUWV3YR.js → chunk-S25VJYXV.js} +9 -3
  122. package/{chunk-EJU6WCDH.js → chunk-SBRJOYND.js} +723 -355
  123. package/{chunk-UEKXWO7A.js → chunk-SBRSXY67.js} +18 -7
  124. package/chunk-SR4FE5VD.js +9 -0
  125. package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
  126. package/chunk-T3WSFTBS.js +62 -0
  127. package/{chunk-KEN3N2TN.js → chunk-TB5KTLNB.js} +15 -12
  128. package/{chunk-VP3BINY7.js → chunk-TOK555CQ.js} +31 -1
  129. package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
  130. package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
  131. package/{chunk-GGKNJ42M.js → chunk-UDT4SI37.js} +18 -108
  132. package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
  133. package/{chunk-GVGOEMNV.js → chunk-UQXOORR3.js} +5 -5
  134. package/{chunk-6O5YP6FX.js → chunk-UR7555FE.js} +9 -9
  135. package/{chunk-QLFCTYRH.js → chunk-UWOCASVL.js} +20 -13
  136. package/{chunk-C4WTX5TU.js → chunk-V2V5Q6DU.js} +2 -2
  137. package/{chunk-2ZKFCIJJ.js → chunk-VCU5GV42.js} +1 -1
  138. package/{chunk-FTQWYWUI.js → chunk-VMWY7TUA.js} +1 -1
  139. package/chunk-VNALJT32.js +33394 -0
  140. package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
  141. package/chunk-WBSJAIZP.js +170 -0
  142. package/chunk-WDWZPASX.js +29 -0
  143. package/chunk-WFGNWWJI.js +326 -0
  144. package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
  145. package/chunk-WVOZ35E4.js +1438 -0
  146. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  147. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  148. package/{chunk-GIABSSWQ.js → chunk-XDNXKFWF.js} +6 -6
  149. package/{chunk-GBZ4YKEO.js → chunk-XLN2GD6Z.js} +7 -7
  150. package/{chunk-45LZIYXB.js → chunk-XNEDFWT4.js} +2 -2
  151. package/{chunk-EWPDMS4N.js → chunk-Y22P6ASC.js} +32 -17
  152. package/{chunk-LJSNEV7M.js → chunk-Y3DOUQQQ.js} +8 -8
  153. package/{chunk-KOXKKHFE.js → chunk-Y5EBOURK.js} +10 -5
  154. package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
  155. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  156. package/{chunk-PVZY6P3S.js → chunk-YTEY27GN.js} +2 -2
  157. package/chunk-YUZ2DAIH.js +34 -0
  158. package/chunk-Z6YTCDU4.js +24 -0
  159. package/{chunk-MOMR7NMG.js → chunk-ZCVBIIUE.js} +4 -4
  160. package/{chunk-AZQZ5XPM.js → chunk-ZCZLTJEW.js} +98 -57
  161. package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
  162. package/{cliAgentConfigHelpers-KICKKNYQ.js → cliAgentConfigHelpers-6OFDHJFT.js} +13 -13
  163. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
  164. package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
  165. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  166. package/cliLocalAgentRecordReader-FHIMCBUK.js +102 -0
  167. package/{commandRegistry-6EQXVODF.js → commandRegistry-OKIWAJIS.js} +113 -101
  168. package/{contentThunks-ANUP57QV.js → contentThunks-VF2DCU46.js} +41 -38
  169. package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-QL6DWGVU.js} +4 -4
  170. package/{createAgentAutomationAction-XMUWUDKQ.js → createAgentAutomationAction-BGET7Q6K.js} +41 -38
  171. package/{createDialogAction-43QJIQDH.js → createDialogAction-XYDQZETK.js} +42 -40
  172. package/{createPageAction-SJO7UC3J.js → createPageAction-74S5RO7U.js} +46 -43
  173. package/{db-CS4ZJQKV.js → db-6NRZLEW2.js} +10 -7
  174. package/{dbSlice-ZJPDIFER.js → dbSlice-FI7VNDR5.js} +14 -13
  175. package/{deleteFile-Q3YDB4ML.js → deleteFile-GD62MPZW.js} +10 -7
  176. package/{dialogCommands-V5IYEOQP.js → dialogCommands-Y6DHZUAM.js} +71 -64
  177. package/dialogMessageRecord-OAV77LT7.js +7 -0
  178. package/{dialogNotifyCommand-77B57PL6.js → dialogNotifyCommand-MKXL4NGL.js} +15 -15
  179. package/{dialogSlice-FQ6WOKWJ.js → dialogSlice-XAUKSWZ4.js} +41 -38
  180. package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-BZPKR3DW.js} +6 -6
  181. package/{docCreateCommands-36WS33BK.js → docCreateCommands-PHDFOQBM.js} +66 -57
  182. package/{docDeleteCommands-C4CS4XLF.js → docDeleteCommands-OSHJM67Y.js} +69 -60
  183. package/{docReadCommands-QZMSFMPN.js → docReadCommands-E6QYCFMS.js} +66 -57
  184. package/{docStore-BZ2O7WLF.js → docStore-ZZT2BEBU.js} +16 -15
  185. package/{docUpdateCommands-BYI64HVV.js → docUpdateCommands-DHIOPK2C.js} +66 -57
  186. package/fetchMessages-TQEUZD7H.js +2 -2
  187. package/{getPricing-VNGFM4PN.js → getPricing-RNRITFOP.js} +6 -6
  188. package/{handleSendMessageAction-I5J7QR7K.js → handleSendMessageAction-ARUU6CNF.js} +83 -78
  189. package/{hostCredentialCreate-AVPMK7EQ.js → hostCredentialCreate-SNQT73H4.js} +131 -119
  190. package/index.js +56 -18
  191. package/keys-RWF7UCB4.js +1 -1
  192. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  193. package/{localDialogRead-SVTPA5GY.js → localDialogRead-3T2KMCRC.js} +1 -1
  194. package/{localRuntimeAdapter-S56R76HN.js → localRuntimeAdapter-MHI6Y2IZ.js} +143 -130
  195. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-7DKIT7UH.js} +4 -2
  196. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
  197. package/{machineCommands-77NFB2AE.js → machineCommands-3O6Y27R4.js} +283 -348
  198. package/machineWsRunDispatch-5PFLR5XC.js +203 -0
  199. package/markdownToSlate-KIYM7B3P.js +8 -0
  200. package/mcpLocalAuthorizeCommand-BQCQ2KRJ.js +106 -0
  201. package/{memberThunks-JRYNONYV.js → memberThunks-TU6A6OBV.js} +24 -19
  202. package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
  203. package/{models-H5NNZRLH.js → models-CINY5UZR.js} +2 -2
  204. package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
  205. package/package.json +1 -1
  206. package/{projectArchive-GNOSYH6F.js → projectArchive-X2EVXU3N.js} +47 -44
  207. package/{providerPresetApply-J3WMRPD2.js → providerPresetApply-HUWNV2NI.js} +7 -7
  208. package/{providerRegistry-KJGB5XWS.js → providerRegistry-7FWKDKZJ.js} +7 -7
  209. package/{read-Q7GOHGNP.js → read-QAHEQID5.js} +9 -8
  210. package/{readDocTool-Z5OQ6422.js → readDocTool-KG5DP6EM.js} +1 -1
  211. package/{readlineWorkspace-2PONGBUP.js → readlineWorkspace-SO3APHVP.js} +8125 -6196
  212. package/rememberExplicit-CPAPONSI.js +15 -0
  213. package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-QZCCVK2G.js} +20 -19
  214. package/{runAgentClientLoop-WEXFFHVS.js → runAgentClientLoop-FLHHCOVH.js} +106 -81
  215. package/{runtimeDoctorCommands-UXKXYBW6.js → runtimeDoctorCommands-DN3I52C6.js} +17 -17
  216. package/{secretCommands-LJXOOYA7.js → secretCommands-36BCE3UE.js} +4 -4
  217. package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-PDPTYSEW.js} +17 -16
  218. package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-DOUIPR66.js} +20 -19
  219. package/{settingThunks-AXTBX3Q5.js → settingThunks-MHGGP6UE.js} +186 -67
  220. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
  221. package/{spaceCommands-GUKMDRWN.js → spaceCommands-JH7UYE3K.js} +70 -61
  222. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  223. package/{streamAgentChatTurn-D2WFS5MF.js → streamAgentChatTurn-VDDA2TX6.js} +200 -195
  224. package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-7USK3DAP.js} +18 -17
  225. package/{tableCommands-HITDSLHS.js → tableCommands-UONBFC7L.js} +15 -12
  226. package/{toolApiClient-OGQEBQVX.js → toolApiClient-53YMJ2G6.js} +8 -6
  227. package/{tools-YKE6PQHT.js → tools-MIOCXKMG.js} +72 -68
  228. package/tuiRestart-ET3QISZ5.js +41 -0
  229. package/{tuiSummaryLlmCaller-7WLUKNP2.js → tuiSummaryLlmCaller-MSINBP3M.js} +21 -20
  230. package/{updateCommands-RJVCRSBP.js → updateCommands-5OYND6EF.js} +8 -6
  231. package/{updateDialogTitleAction-D5NCA4FC.js → updateDialogTitleAction-2L4CC4YO.js} +43 -40
  232. package/{usageCommand-YPJ2ZI2F.js → usageCommand-JTKDAG6I.js} +3 -3
  233. package/{usageRebuildCommand-FERQO74C.js → usageRebuildCommand-4TFZCKXM.js} +4 -4
  234. package/webapi-24RZDIIQ.js +2488 -0
  235. package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-HIYNL3VR.js} +2 -2
  236. package/workContext-Y3ADAPZU.js +14 -0
  237. package/workContextAccess-UZHDLBUR.js +11 -0
  238. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  239. package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-ZCSQCHG3.js} +9 -9
  240. package/agentListCommands-YBNOQ5T3.js +0 -991
  241. package/agentRecordCommands-WUUC2CX7.js +0 -177
  242. package/agentRunCommand-W6MDKVLJ.js +0 -208
  243. package/chunk-2THCNKE4.js +0 -147
  244. package/chunk-2WZXXAQD.js +0 -57
  245. package/chunk-5ZMIIR23.js +0 -265
  246. package/chunk-BJF2MHJ3.js +0 -118
  247. package/chunk-KEPOVMF4.js +0 -91
  248. package/chunk-OLMJR6UM.js +0 -357
  249. package/chunk-QVBXJNZ2.js +0 -81
  250. package/chunk-QZI44GWV.js +0 -776
  251. package/cliLocalAgentRecordReader-6FXGFBI3.js +0 -90
  252. package/machineWsRunDispatch-5XWFUJ53.js +0 -192
  253. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
  254. package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
  255. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  256. package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
  257. package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
  258. package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
  259. package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  canonicalizeToolName
3
- } from "./chunk-6OVNSQHN.js";
3
+ } from "./chunk-YLAHYLDQ.js";
4
4
 
5
5
  // packages/ai/tools/toolExecutionSemantics.ts
6
6
  var UNKNOWN_TOOL_EXECUTION_CONTRACT = {
@@ -38,6 +38,34 @@ var serverConfirmedHandoffStep = () => ({
38
38
  durableWebForeground: false
39
39
  });
40
40
  var TOOL_EXECUTION_CONTRACT = Object.freeze({
41
+ listPlugins: serverPureRead(false),
42
+ configurePlugin: serverPureRead(false),
43
+ diagnosePlugin: serverPureRead(false),
44
+ setPluginEnabled: {
45
+ replay: "unsafe",
46
+ sideEffects: "mutation",
47
+ locality: "server",
48
+ interaction: "none",
49
+ concurrency: "exclusive",
50
+ durableWebForeground: false
51
+ },
52
+ listMcpConnections: serverPureRead(false),
53
+ listMcpTools: {
54
+ replay: "unsafe",
55
+ sideEffects: "observable",
56
+ locality: "server",
57
+ interaction: "none",
58
+ concurrency: "exclusive",
59
+ durableWebForeground: false
60
+ },
61
+ callMcpTool: {
62
+ replay: "unsafe",
63
+ sideEffects: "unknown",
64
+ locality: "server",
65
+ interaction: "confirm",
66
+ concurrency: "exclusive",
67
+ durableWebForeground: false
68
+ },
41
69
  // Proven durable network reads. They execute on the server but touch external
42
70
  // systems, so replay/cost semantics are intentionally not called "pure".
43
71
  exa_search: serverExternalRead("read-only"),
@@ -125,6 +153,14 @@ var TOOL_EXECUTION_CONTRACT = Object.freeze({
125
153
  concurrency: "safe",
126
154
  durableWebForeground: false
127
155
  },
156
+ searchFiles: {
157
+ replay: "idempotent",
158
+ sideEffects: "none",
159
+ locality: "device",
160
+ interaction: "none",
161
+ concurrency: "safe",
162
+ durableWebForeground: false
163
+ },
128
164
  createDoc: {
129
165
  replay: "unsafe",
130
166
  sideEffects: "mutation",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  resolveBuiltinCapability,
3
3
  resolveBuiltinSkillEntry
4
- } from "./chunk-GNHMRBYZ.js";
4
+ } from "./chunk-RIMFTQMC.js";
5
5
  import {
6
6
  asTrimmedNonEmptyStringArray
7
7
  } from "./chunk-I42VC5KR.js";
@@ -1,57 +1,47 @@
1
- import {
2
- DEFAULT_AUTO_APPROVED_SELF_UPDATE_FIELDS,
3
- DEFAULT_USER_PREFERENCE_PROFILE,
4
- normalizeAgentUpdateFieldList,
5
- normalizePolicyLevelSetting,
6
- normalizeSystemBuiltinSkills,
7
- normalizeTonePresetSetting,
8
- resolveUserEnabledSkills
9
- } from "./chunk-GGKNJ42M.js";
10
1
  import {
11
2
  isSkillSummaryMarker
12
3
  } from "./chunk-VF4K2QE6.js";
13
4
  import {
14
5
  setDialogExtraReferencesAction
15
- } from "./chunk-GIABSSWQ.js";
6
+ } from "./chunk-XDNXKFWF.js";
16
7
  import {
17
8
  fetchAndCacheTableRows
18
- } from "./chunk-JHRQXQ4A.js";
19
- import {
20
- getActiveDialogKey
21
- } from "./chunk-S2NTVGA2.js";
9
+ } from "./chunk-6XLWUNZB.js";
22
10
  import {
23
- require_react
24
- } from "./chunk-5FUN7EG4.js";
11
+ resolveDialogRuntimeAgentKey
12
+ } from "./chunk-ODGSLWLO.js";
25
13
  import {
26
14
  createSpaceKey
27
15
  } from "./chunk-UAD2WT54.js";
28
16
  import {
29
17
  selectById
30
- } from "./chunk-AVHRSJUH.js";
18
+ } from "./chunk-6MQWGA5F.js";
19
+ import {
20
+ require_react
21
+ } from "./chunk-RD3QLZQV.js";
31
22
  import {
32
23
  selectRuntimeSnapshot
33
- } from "./chunk-2VUZSVAS.js";
24
+ } from "./chunk-OKPC4QNX.js";
34
25
  import {
35
- createAsyncThunk,
36
- createSelector
37
- } from "./chunk-7Z6EW7AH.js";
26
+ createAsyncThunk
27
+ } from "./chunk-247AAJRK.js";
38
28
  import {
39
29
  selectIdentityUserId
40
30
  } from "./chunk-PXYBUFDB.js";
41
31
  import {
42
32
  isAgentSkillDisabled
43
- } from "./chunk-EOWLBDY6.js";
33
+ } from "./chunk-DOK7GDRU.js";
44
34
  import {
45
- DEFAULT_SYSTEM_AGENT_CAPABILITIES,
46
35
  listBuiltinSkills,
47
36
  resolveBuiltinSkillByName
48
- } from "./chunk-GNHMRBYZ.js";
37
+ } from "./chunk-RIMFTQMC.js";
49
38
  import {
50
39
  parseSkillDocProtocol
51
- } from "./chunk-W6RFEDN4.js";
40
+ } from "./chunk-AETZ7AD6.js";
52
41
  import {
53
- asTrimmedNonEmptyStringArray
54
- } from "./chunk-I42VC5KR.js";
42
+ isDialogRecordKeyForId,
43
+ parseDialogKey
44
+ } from "./chunk-OJKUU3LP.js";
55
45
  import {
56
46
  toErrorMessage
57
47
  } from "./chunk-HNMXYYJR.js";
@@ -150,46 +140,73 @@ function waitForAbortableDelay(ms, signal) {
150
140
  });
151
141
  }
152
142
 
153
- // packages/app/settings/fieldSelectors.ts
154
- var selectMaxExecutionTime = (state) => state.settings.maxExecutionTime;
155
- var selectGlobalPrompt = (state) => state.settings.globalPrompt;
156
- var selectEnabledSkills = createSelector(
157
- [
158
- (state) => Boolean(
159
- state.settings && Object.prototype.hasOwnProperty.call(state.settings, "enabledSkills")
160
- ),
161
- (state) => state.settings?.enabledSkills,
162
- (state) => state.settings?.enabledPromptSkills
163
- ],
164
- (hasOwnEnabledSkills, enabledSkills, enabledPromptSkills) => {
165
- const preferences = hasOwnEnabledSkills ? { enabledSkills, enabledPromptSkills } : { enabledPromptSkills };
166
- return resolveUserEnabledSkills(preferences);
143
+ // packages/ai/tools/memoryToolContext.ts
144
+ var trimmed = (value) => typeof value === "string" && value.trim() ? value.trim() : void 0;
145
+ function findLoadedDialogs(state, dialogId, exactKey) {
146
+ const entities = state?.db?.entities;
147
+ if (!entities || typeof entities !== "object") return [];
148
+ const matches = [];
149
+ for (const key of Object.keys(entities)) {
150
+ if (!isDialogRecordKeyForId(key, dialogId)) continue;
151
+ const record = entities[key];
152
+ if (!record || trimmed(record.id) !== dialogId) continue;
153
+ if (exactKey && key !== exactKey) continue;
154
+ matches.push({ key, record });
167
155
  }
168
- );
169
- var selectUserTonePreset = (state) => normalizeTonePresetSetting(state.settings.userTonePreset);
170
- var selectKnowledgeCaptureLevel = (state) => normalizePolicyLevelSetting(
171
- state.settings.knowledgeCaptureLevel,
172
- DEFAULT_USER_PREFERENCE_PROFILE.knowledgeCaptureLevel
173
- );
174
- var selectSpaceContextLevel = (state) => state.settings.enableReadCurrentSpace === false ? 1 : normalizePolicyLevelSetting(
175
- state.settings.spaceContextLevel,
176
- DEFAULT_USER_PREFERENCE_PROFILE.spaceContextLevel
177
- );
178
- var selectAutoApproveSelfUpdateFields = createSelector(
179
- [(state) => state.settings.autoApproveSelfUpdateFields],
180
- (fields) => normalizeAgentUpdateFieldList(
181
- fields,
182
- DEFAULT_AUTO_APPROVED_SELF_UPDATE_FIELDS
183
- )
184
- );
185
- var selectAiRecentContentLimit = (state) => state.settings.aiRecentContentLimit ?? 50;
186
- var selectSystemBuiltinSkills = createSelector(
187
- [(state) => state.settings.systemBuiltinSkills],
188
- (systemBuiltinSkills) => normalizeSystemBuiltinSkills(
189
- systemBuiltinSkills,
190
- DEFAULT_SYSTEM_AGENT_CAPABILITIES
191
- )
192
- );
156
+ return matches;
157
+ }
158
+ function resolveMemoryToolContext(state, context) {
159
+ return resolveToolAttributionContext(state, context);
160
+ }
161
+ function resolveToolAttributionContext(state, context, options) {
162
+ const UNRESOLVED = options?.errorLabel ?? "\u65E0\u6CD5\u786E\u5B9A\u8BB0\u5FC6\u5F52\u5C5E";
163
+ const agentKey = trimmed(context?.agentKey);
164
+ if (options?.requireAgentKey && !agentKey) {
165
+ throw new Error(`${UNRESOLVED}\uFF1A\u6267\u884C\u4E0A\u4E0B\u6587\u7F3A\u5C11 agentKey\uFF0C\u4E0D\u4F1A\u4ECE\u5F53\u524D\u5BF9\u8BDD\u63A8\u65AD\u3002`);
166
+ }
167
+ const contextDialogId = trimmed(context?.dialogId);
168
+ const contextDialogKey = trimmed(context?.dialogKey);
169
+ let keyIdentity = null;
170
+ if (contextDialogKey) {
171
+ keyIdentity = parseDialogKey(contextDialogKey);
172
+ if (!keyIdentity) {
173
+ throw new Error(
174
+ `${UNRESOLVED}\uFF1A\u6267\u884C\u4E0A\u4E0B\u6587\u91CC\u7684\u5BF9\u8BDD\u952E ${contextDialogKey} \u4E0D\u662F\u53EF\u89E3\u6790\u7684 dialog-<owner>-<id>\uFF0C\u4E0D\u4F1A\u6309 id \u731C\u5F52\u5C5E\u3002`
175
+ );
176
+ }
177
+ if (contextDialogId && keyIdentity.dialogId !== contextDialogId) {
178
+ throw new Error(
179
+ `${UNRESOLVED}\uFF1A\u6267\u884C\u4E0A\u4E0B\u6587\u81EA\u76F8\u77DB\u76FE\u2014\u2014\u5BF9\u8BDD\u952E ${contextDialogKey} \u6307\u5411 ${keyIdentity.dialogId}\uFF0C\u4F46 dialogId \u662F ${contextDialogId}\u3002`
180
+ );
181
+ }
182
+ }
183
+ const dialogId = keyIdentity?.dialogId ?? contextDialogId;
184
+ if (!dialogId) {
185
+ throw new Error(
186
+ `${UNRESOLVED}\uFF1A\u672C\u6B21\u5DE5\u5177\u8C03\u7528\u7F3A\u5C11\u6240\u5C5E\u5BF9\u8BDD\uFF08dialogId\uFF09\uFF0C\u4E0D\u4F1A\u6539\u7528\u5F53\u524D\u6253\u5F00\u7684\u5BF9\u8BDD\u6216\u89C6\u56FE Space\u3002`
187
+ );
188
+ }
189
+ const matches = findLoadedDialogs(state, dialogId, contextDialogKey);
190
+ if (matches.length === 0) {
191
+ throw new Error(
192
+ `${UNRESOLVED}\uFF1A\u5BF9\u8BDD ${dialogId} \u672A\u52A0\u8F7D\uFF0C\u65E0\u6CD5\u786E\u8BA4\u5B83\u7684 Space \u5F52\u5C5E\u3002`
193
+ );
194
+ }
195
+ if (matches.length > 1) {
196
+ throw new Error(
197
+ `${UNRESOLVED}\uFF1A\u52A0\u8F7D\u4E2D\u6709 ${matches.length} \u4E2A\u540C id \u7684\u5BF9\u8BDD\uFF08${matches.map((m) => m.key).join(" / ")}\uFF09\uFF0C\u4EC5\u51ED dialogId \u65E0\u6CD5\u786E\u5B9A\u5F52\u5C5E\uFF1B\u6267\u884C\u4E0A\u4E0B\u6587\u9700\u8981\u63D0\u4F9B\u5B8C\u6574\u5BF9\u8BDD\u952E\u3002`
198
+ );
199
+ }
200
+ const [dialog] = matches;
201
+ return {
202
+ dialogId,
203
+ agentKey: resolveDialogRuntimeAgentKey(
204
+ dialog.record,
205
+ agentKey
206
+ ),
207
+ spaceId: trimmed(dialog.record.spaceId)
208
+ };
209
+ }
193
210
 
194
211
  // packages/ai/tools/loadSkillTool.ts
195
212
  var loadSkillFunctionSchema = {
@@ -323,23 +340,7 @@ async function listSkillCandidates(thunkApi) {
323
340
  }
324
341
  return candidates;
325
342
  }
326
- var resolveCurrentAgentKeyForSkillGate = (thunkApi) => {
327
- try {
328
- const state = thunkApi?.getState?.();
329
- if (!state) return null;
330
- const currentDialogKey = getActiveDialogKey();
331
- if (!currentDialogKey) return null;
332
- const dialogConfig = selectById(
333
- state,
334
- currentDialogKey
335
- );
336
- return asTrimmedNonEmptyStringArray(dialogConfig?.cybots)[0] ?? null;
337
- } catch {
338
- return null;
339
- }
340
- };
341
- var readCurrentAgentSkillSource = async (thunkApi) => {
342
- const agentKey = resolveCurrentAgentKeyForSkillGate(thunkApi);
343
+ var readCurrentAgentSkillSource = async (thunkApi, agentKey) => {
343
344
  if (!agentKey) return null;
344
345
  const db = thunkApi?.extra?.db;
345
346
  if (!db) return null;
@@ -364,6 +365,14 @@ async function loadSkillFunc(args, thunkApi, context) {
364
365
  }
365
366
  let requestedName = asTrimmedString(exact ? source === "space" ? args.dbKey : args.slug : args?.name);
366
367
  if (!requestedName) throw new Error("loadSkill \u9700\u8981\u63D0\u4F9B name\u3002");
368
+ const state = thunkApi.getState();
369
+ const attribution = resolveToolAttributionContext(state, context, {
370
+ requireAgentKey: false,
371
+ errorLabel: "loadSkill: \u65E0\u6CD5\u786E\u5B9A\u5F52\u5C5E"
372
+ });
373
+ const dialogKey = context?.dialogKey?.trim() || Object.keys(state.db.entities).find(
374
+ (key) => isDialogRecordKeyForId(key, attribution.dialogId) && state.db.entities[key]?.id?.trim() === attribution.dialogId
375
+ );
367
376
  const candidates = await listSkillCandidates(thunkApi);
368
377
  let resolution;
369
378
  if (!exact) {
@@ -380,7 +389,7 @@ async function loadSkillFunc(args, thunkApi, context) {
380
389
  const builtinEntry = resolution?.kind === "builtin" ? resolution.entry : null;
381
390
  const resolvedSlug = builtinEntry?.slug ?? matched?.skillId ?? null;
382
391
  if (resolvedSlug) {
383
- const agentSkillSource = await readCurrentAgentSkillSource(thunkApi);
392
+ const agentSkillSource = await readCurrentAgentSkillSource(thunkApi, attribution.agentKey);
384
393
  if (agentSkillSource && isAgentSkillDisabled(agentSkillSource, resolvedSlug)) {
385
394
  return {
386
395
  rawData: {
@@ -397,7 +406,7 @@ async function loadSkillFunc(args, thunkApi, context) {
397
406
  const body2 = builtinEntry.content;
398
407
  const dbKey = builtinEntry.slug;
399
408
  if (context?.skipSkillReferencePersist !== true) {
400
- await persistLoadedSkillReference(thunkApi, dbKey, requestedName);
409
+ await persistLoadedSkillReference(thunkApi, dialogKey, dbKey, requestedName);
401
410
  }
402
411
  return {
403
412
  rawData: {
@@ -437,7 +446,7 @@ ${body2}`
437
446
  }
438
447
  const body = extractSkillBody(page);
439
448
  if (context?.skipSkillReferencePersist !== true) {
440
- await persistLoadedSkillReference(thunkApi, matched.dbKey, requestedName);
449
+ await persistLoadedSkillReference(thunkApi, dialogKey, matched.dbKey, requestedName);
441
450
  }
442
451
  return {
443
452
  rawData: {
@@ -451,10 +460,9 @@ ${body2}`
451
460
  ${body}`
452
461
  };
453
462
  }
454
- async function persistLoadedSkillReference(thunkApi, dbKey, name) {
463
+ async function persistLoadedSkillReference(thunkApi, currentDialogKey, dbKey, name) {
455
464
  try {
456
465
  const state = thunkApi?.getState?.();
457
- const currentDialogKey = getActiveDialogKey();
458
466
  if (!state || !currentDialogKey) return;
459
467
  const dialogConfig = selectById(
460
468
  state,
@@ -468,7 +476,7 @@ async function persistLoadedSkillReference(thunkApi, dbKey, name) {
468
476
  title: name,
469
477
  type: "instruction"
470
478
  };
471
- await setDialogExtraReferencesAction([...existing, newRef], thunkApi);
479
+ await setDialogExtraReferencesAction([...existing, newRef], thunkApi, currentDialogKey);
472
480
  } catch {
473
481
  }
474
482
  }
@@ -607,10 +615,10 @@ ${block.question.choices.map((item) => `- ${item.label}${item.detail ? ` \u2014
607
615
 
608
616
  // packages/core/clipMultilineText.ts
609
617
  function clipMultilineText(value, max) {
610
- const trimmed = value.trim();
611
- if (trimmed.length <= max) return trimmed;
612
- return `${trimmed.slice(0, max)}
613
- ...[truncated ${trimmed.length - max} chars]`;
618
+ const trimmed2 = value.trim();
619
+ if (trimmed2.length <= max) return trimmed2;
620
+ return `${trimmed2.slice(0, max)}
621
+ ...[truncated ${trimmed2.length - max} chars]`;
614
622
  }
615
623
 
616
624
  // packages/render/table/utils/tableSerialization.ts
@@ -783,7 +791,7 @@ var executeToolRun = createAsyncThunk(
783
791
  if (!executionInput) {
784
792
  throw new Error(`ToolRun ${id} has no input to execute with.`);
785
793
  }
786
- const { findToolExecutor } = await import("./tools-YKE6PQHT.js");
794
+ const { findToolExecutor } = await import("./tools-MIOCXKMG.js");
787
795
  const { executor } = findToolExecutor(run.toolName);
788
796
  toolRunStarted({
789
797
  id: run.id,
@@ -807,7 +815,7 @@ var executeToolRun = createAsyncThunk(
807
815
  const latestState = thunkApi.getState();
808
816
  const userId = selectIdentityUserId(latestState);
809
817
  if (userId) {
810
- const { fetchUserSpaceMemberships } = await import("./memberThunks-JRYNONYV.js");
818
+ const { fetchUserSpaceMemberships } = await import("./memberThunks-TU6A6OBV.js");
811
819
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
812
820
  }
813
821
  }
@@ -837,13 +845,6 @@ export {
837
845
  waitForAbortableDelay,
838
846
  clipMultilineText,
839
847
  fetchAndSerializeTable,
840
- selectMaxExecutionTime,
841
- selectGlobalPrompt,
842
- selectUserTonePreset,
843
- selectKnowledgeCaptureLevel,
844
- selectSpaceContextLevel,
845
- selectAutoApproveSelfUpdateFields,
846
- selectAiRecentContentLimit,
847
848
  ToolResultError,
848
849
  getToolResultErrorData,
849
850
  createToolRunId,
@@ -853,6 +854,8 @@ export {
853
854
  toolRunUpdated,
854
855
  toolRunFailed,
855
856
  getAllToolRuns,
857
+ resolveMemoryToolContext,
858
+ resolveToolAttributionContext,
856
859
  loadSkillFunctionSchema,
857
860
  loadSkillFunc
858
861
  };
@@ -4,9 +4,18 @@ import {
4
4
  normalizeNonNegativeMs,
5
5
  parseRetryAfterHeaderMs
6
6
  } from "./chunk-3L2WKC3W.js";
7
+ import {
8
+ dialogMessageKey
9
+ } from "./chunk-OJKUU3LP.js";
7
10
  import {
8
11
  toErrorMessage
9
12
  } from "./chunk-HNMXYYJR.js";
13
+ import {
14
+ asOptionalFiniteNumber
15
+ } from "./chunk-WWC7I6TA.js";
16
+ import {
17
+ asOptionalTrimmedString
18
+ } from "./chunk-G3SUCT4W.js";
10
19
  import {
11
20
  isLoopbackHostname
12
21
  } from "./chunk-4SN6J65J.js";
@@ -124,7 +133,86 @@ async function fetchWithTransientRetry(fetchImpl, input, init, options = {}) {
124
133
  throw lastError;
125
134
  }
126
135
 
136
+ // packages/core/chat/dialogAttachmentCleanup.ts
137
+ var FILE_CONTENT_RE = /(?:https?:\/\/[^/"'\s]+)?\/api\/v1\/db\/file\/content\/([^?#"'\s)]+)/g;
138
+ function extractFileContentIds(value) {
139
+ const ids = /* @__PURE__ */ new Set();
140
+ const visit = (input) => {
141
+ if (typeof input === "string") {
142
+ for (const match of input.matchAll(FILE_CONTENT_RE)) {
143
+ const fileId = decodeURIComponent(match[1] ?? "").trim();
144
+ if (fileId) ids.add(fileId);
145
+ }
146
+ return;
147
+ }
148
+ if (Array.isArray(input)) {
149
+ for (const item of input) visit(item);
150
+ return;
151
+ }
152
+ if (input && typeof input === "object") {
153
+ for (const item of Object.values(input)) visit(item);
154
+ }
155
+ };
156
+ visit(value);
157
+ return [...ids];
158
+ }
159
+ function messageDbKey(dialogId, message) {
160
+ const dbKey = asOptionalTrimmedString(message.dbKey);
161
+ if (dbKey) return dbKey;
162
+ const id = asOptionalTrimmedString(message.id);
163
+ if (id) return dialogMessageKey(dialogId, id);
164
+ return null;
165
+ }
166
+ function asText(value) {
167
+ return asOptionalTrimmedString(value) ?? null;
168
+ }
169
+ function buildDialogAttachmentPlan(args) {
170
+ const messageKeys = new Set(
171
+ args.messages.map((message) => messageDbKey(args.dialogId, message)).filter((key) => Boolean(key))
172
+ );
173
+ const referencedFileIds = [
174
+ ...new Set(args.messages.flatMap((message) => extractFileContentIds(message)))
175
+ ];
176
+ const candidates = referencedFileIds.map((fileId) => {
177
+ const metadata = args.metadataByFileId[fileId];
178
+ const ownerType = asText(metadata?.ownerType);
179
+ const ownerId = asText(metadata?.ownerId);
180
+ const ownerDbKey = asText(metadata?.ownerDbKey);
181
+ const fileDbKey = asText(metadata?.dbKey);
182
+ const source = asText(metadata?.source);
183
+ const ownedByDialog = ownerType === "dialog" && ownerId === args.dialogId;
184
+ const ownedByMessage = Boolean(ownerDbKey && messageKeys.has(ownerDbKey));
185
+ const userOwnedReferenced = args.includeUserOwnedReferenced === true && Boolean(args.ownerId) && ownerType === "user" && ownerId === args.ownerId;
186
+ const canDelete = Boolean(fileDbKey && (ownedByDialog || ownedByMessage || userOwnedReferenced));
187
+ return {
188
+ fileId,
189
+ fileDbKey,
190
+ size: asOptionalFiniteNumber(metadata?.size) ?? null,
191
+ ownerType,
192
+ ownerId,
193
+ ownerDbKey,
194
+ source,
195
+ status: canDelete ? "delete" : "retain",
196
+ reason: canDelete ? ownedByMessage ? "ownerDbKey matches a message in this dialog" : userOwnedReferenced ? "user-owned file is referenced by this dialog and explicit referenced-attachment deletion is enabled" : "ownerType/ownerId matches this dialog" : fileDbKey ? "file ownership is not exclusive to this dialog" : "file metadata not found"
197
+ };
198
+ });
199
+ const deleteCandidates = candidates.filter((candidate) => candidate.status === "delete");
200
+ const retainedCandidates = candidates.filter((candidate) => candidate.status === "retain");
201
+ return {
202
+ dialogId: args.dialogId,
203
+ messageCount: args.messages.length,
204
+ referencedFileIds,
205
+ candidates,
206
+ deleteCandidates,
207
+ retainedCandidates,
208
+ bytesToDelete: deleteCandidates.reduce((sum, candidate) => sum + (candidate.size ?? 0), 0),
209
+ metadataReadFailures: args.metadataReadFailures ?? []
210
+ };
211
+ }
212
+
127
213
  export {
128
214
  isTransientFetchError,
129
- fetchWithTransientRetry
215
+ fetchWithTransientRetry,
216
+ extractFileContentIds,
217
+ buildDialogAttachmentPlan
130
218
  };
@@ -1,13 +1,13 @@
1
+ import {
2
+ deriveCredentialGroup
3
+ } from "./chunk-WVOZ35E4.js";
1
4
  import {
2
5
  listUserRecordsFromServers,
3
6
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-FTQWYWUI.js";
7
+ } from "./chunk-VMWY7TUA.js";
5
8
  import {
6
9
  agentRecordHasConfiguredCredential
7
- } from "./chunk-2VA6TU4I.js";
8
- import {
9
- deriveCredentialGroup
10
- } from "./chunk-QZI44GWV.js";
10
+ } from "./chunk-J25ESVUW.js";
11
11
  import {
12
12
  isTombstoneRecord
13
13
  } from "./chunk-BV3FLP2L.js";
@@ -110,6 +110,9 @@ function parseAgentListArgs(args) {
110
110
  // --verbose 拿回完整字段集排障。
111
111
  verbose: args.includes("--verbose"),
112
112
  compact: args.includes("--compact"),
113
+ fragmentOffset: readArgValue(args, "--fragment-offset"),
114
+ fragmentAgentKey: readArgValue(args, "--fragment-agent-key"),
115
+ fragmentDigest: readArgValue(args, "--fragment-digest"),
113
116
  limit: readArgValue(args, "--limit") ?? void 0,
114
117
  offset: readArgValue(args, "--offset") ?? void 0
115
118
  };
@@ -5,21 +5,21 @@ import {
5
5
  ANTIGRAVITY_CLOUD_CODE_BASE_URL,
6
6
  isAntigravityCloudCodeBaseUrl,
7
7
  isAntigravityOAuthAgent
8
- } from "./chunk-EWPDMS4N.js";
8
+ } from "./chunk-Y22P6ASC.js";
9
9
  import {
10
10
  isOpenAiResponsesModel,
11
11
  resolvePlatformChatCompletionsEndpoint,
12
12
  resolvePlatformResponsesEndpoint
13
- } from "./chunk-45LZIYXB.js";
13
+ } from "./chunk-XNEDFWT4.js";
14
14
  import {
15
15
  findModelConfig
16
- } from "./chunk-KYH7XW3K.js";
17
- import {
18
- asTrimmedLowercaseString
19
- } from "./chunk-QSJ3HFEF.js";
16
+ } from "./chunk-OJRTTERA.js";
20
17
  import {
21
18
  asOptionalTrimmedString
22
19
  } from "./chunk-G3SUCT4W.js";
20
+ import {
21
+ asTrimmedLowercaseString
22
+ } from "./chunk-QSJ3HFEF.js";
23
23
 
24
24
  // packages/agent-runtime/agentCallPlan.ts
25
25
  var CODEX_RESPONSES_URL = "https://chatgpt.com/backend-api/codex/responses";