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,7 +2,7 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-TQEKUOTI.js";
5
+ } from "./chunk-UFGUJ2IH.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-GBWGPTA7.js";
@@ -0,0 +1,107 @@
1
+ import {
2
+ recallMemoryVNextLocal
3
+ } from "./chunk-4D4QD7FT.js";
4
+ import {
5
+ DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET,
6
+ buildMemoryOverlay
7
+ } from "./chunk-PVFYPUIM.js";
8
+ import {
9
+ isWorkContextState
10
+ } from "./chunk-C5A54QS7.js";
11
+ import {
12
+ loadMemoryVNextCatalog
13
+ } from "./chunk-324FWHUA.js";
14
+ import {
15
+ createMemoryKey
16
+ } from "./chunk-SYTHYBMI.js";
17
+
18
+ // packages/ai/memory/storeShared.ts
19
+ var retrievalCountOf = (item) => item.activationCount ?? 0;
20
+ var touchMemoryItemsInDb = async (db, items, now = (/* @__PURE__ */ new Date()).toISOString()) => {
21
+ if (items.length === 0) return;
22
+ const batch = db.batch();
23
+ for (const item of items) {
24
+ batch.put(createMemoryKey(item.ownerType, item.ownerId, item.id), {
25
+ ...item,
26
+ // retrieval bookkeeping on legacy storage names — see doc comment above
27
+ lastActivatedAt: now,
28
+ activationCount: retrievalCountOf(item) + 1
29
+ });
30
+ }
31
+ await batch.write();
32
+ };
33
+
34
+ // packages/ai/memory/remember.ts
35
+ var RESIDENT_MAX_CONTENT_CHARS = 240;
36
+
37
+ // packages/ai/memory/vnext/pureVNextRuntime.ts
38
+ function deriveStateResident(state, ownerType) {
39
+ if (ownerType !== "user") return false;
40
+ if (state.text.trim().length > RESIDENT_MAX_CONTENT_CHARS) return false;
41
+ return state.facet === "preference" || state.facet === "style";
42
+ }
43
+ var buildSynthesizedStateItem = (state, entity, ownerType, ownerId) => ({
44
+ id: `vnext-state-${state.id}`,
45
+ ownerType,
46
+ ownerId,
47
+ visibility: "private",
48
+ subjectType: "user",
49
+ subjectId: ownerId,
50
+ kind: "semantic",
51
+ content: state.text.trim(),
52
+ createdAt: state.createdAt,
53
+ lastActivatedAt: state.createdAt,
54
+ activationCount: 1,
55
+ importance: 0.9,
56
+ confidence: 0.9,
57
+ resident: deriveStateResident(state, ownerType)
58
+ });
59
+ async function resolvePureVNextRuntime(input) {
60
+ const { db, owners, userInput } = input;
61
+ if (owners.length === 0 || !userInput.trim()) {
62
+ return { selectedItems: [], promptBlock: buildMemoryOverlay([], { injectionEmit: input.injectionEmit }), recalledStateCount: 0 };
63
+ }
64
+ const ownerIds = owners.map((o) => `${o.ownerType}:${encodeURIComponent(o.ownerId)}`);
65
+ const catalogs = await Promise.all(
66
+ ownerIds.map((ownerId) => loadMemoryVNextCatalog(db, ownerId))
67
+ );
68
+ const selectedItems = [];
69
+ const seenStateKeys = /* @__PURE__ */ new Set();
70
+ for (let i = 0; i < owners.length; i++) {
71
+ const owner = owners[i];
72
+ const catalog = catalogs[i];
73
+ const currentStates = catalog.states.filter(
74
+ (s) => !s.retiredAt && s.text.trim() && !isWorkContextState(s)
75
+ );
76
+ const hits = recallMemoryVNextLocal({
77
+ query: userInput,
78
+ entities: catalog.entities,
79
+ states: currentStates
80
+ });
81
+ const entityById = new Map(catalog.entities.map((e) => [e.id, e]));
82
+ for (const hit of hits) {
83
+ const stateKey = `${hit.state.ownerId}\0${hit.state.id}`;
84
+ if (seenStateKeys.has(stateKey)) continue;
85
+ seenStateKeys.add(stateKey);
86
+ selectedItems.push(
87
+ buildSynthesizedStateItem(hit.state, entityById.get(hit.state.entityId), owner.ownerType, owner.ownerId)
88
+ );
89
+ }
90
+ }
91
+ const promptBlock = buildMemoryOverlay(selectedItems, {
92
+ sources: new Map(selectedItems.map((item) => [item, "vnext"])),
93
+ injectionEmit: input.injectionEmit,
94
+ maxTokens: input.maxTokens ?? DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET
95
+ });
96
+ return {
97
+ selectedItems,
98
+ promptBlock,
99
+ recalledStateCount: selectedItems.length
100
+ };
101
+ }
102
+
103
+ export {
104
+ touchMemoryItemsInDb,
105
+ deriveStateResident,
106
+ resolvePureVNextRuntime
107
+ };
@@ -2,7 +2,7 @@ import {
2
2
  mergeAvailabilityDeadline,
3
3
  resolveCredentialCandidateKeys,
4
4
  resolveCredentialKeyWithFallback
5
- } from "./chunk-QJTZ76CP.js";
5
+ } from "./chunk-LS5KAVFQ.js";
6
6
 
7
7
  // packages/agent-runtime/credentialAvailability.ts
8
8
  import { homedir } from "node:os";
@@ -1,3 +1,7 @@
1
+ import {
2
+ gBase64,
3
+ isExternalSessionKind
4
+ } from "./chunk-YJPK35HB.js";
1
5
  import {
2
6
  createClientLogger
3
7
  } from "./chunk-QQ56R7KS.js";
@@ -7,6 +11,9 @@ import {
7
11
  import {
8
12
  isLevelNotFoundError
9
13
  } from "./chunk-OW765XBU.js";
14
+ import {
15
+ isPublicBuiltinPlatformAgentKey
16
+ } from "./chunk-RIWKZT7E.js";
10
17
  import {
11
18
  API_ENDPOINTS,
12
19
  NOLO_CLUSTER_SERVERS,
@@ -18,6 +25,39 @@ import {
18
25
  normalizeServerOrigin
19
26
  } from "./chunk-CF7PE763.js";
20
27
 
28
+ // packages/core/googleSessionScope.ts
29
+ function isGoogleAuthoritySession(token) {
30
+ if (typeof token !== "string") return false;
31
+ try {
32
+ return isExternalSessionKind(JSON.parse(gBase64.decode(token.split(".")[0])).authKind);
33
+ } catch {
34
+ return false;
35
+ }
36
+ }
37
+ function googleSessionServer(token, configuredServer) {
38
+ if (!isGoogleAuthoritySession(token)) return void 0;
39
+ const origin = typeof window !== "undefined" ? window.location?.origin : void 0;
40
+ if (typeof origin !== "string" || !/^https?:\/\//.test(origin)) return "";
41
+ return normalizeServerOrigin(origin);
42
+ }
43
+ function scopeGoogleSessionServers(token, configuredServer, servers) {
44
+ const server = googleSessionServer(token, configuredServer);
45
+ return server === void 0 ? servers : server ? [server] : [];
46
+ }
47
+ function googleSessionRequestToken(token, target, allowAnonymousPublic = false) {
48
+ if (!isGoogleAuthoritySession(token)) return token;
49
+ const authority = googleSessionServer(token);
50
+ let origin;
51
+ try {
52
+ origin = new URL(target).origin;
53
+ } catch {
54
+ throw new Error("google_session_origin_blocked");
55
+ }
56
+ if (authority && origin === authority) return token;
57
+ if (allowAnonymousPublic) return void 0;
58
+ throw new Error("google_session_origin_blocked");
59
+ }
60
+
21
61
  // packages/app/utils/env.ts
22
62
  var processEnv = typeof process !== "undefined" ? process.env : void 0;
23
63
  var reactNativeDev = typeof globalThis !== "undefined" && "__DEV__" in globalThis ? globalThis.__DEV__ : void 0;
@@ -124,6 +164,7 @@ var createReadTimeoutError = (server, dbKey) => {
124
164
  };
125
165
  var isReadTimeoutError = (error) => error instanceof Error && error.name === READ_TIMEOUT_ERROR_NAME;
126
166
  var fetchFromServer = async (server, dbKey, token, signal) => {
167
+ const requestToken = googleSessionRequestToken(token, server, isPublicBuiltinPlatformAgentKey(dbKey));
127
168
  if (signal?.aborted) {
128
169
  throw new DOMException("Aborted", "AbortError");
129
170
  }
@@ -140,9 +181,10 @@ var fetchFromServer = async (server, dbKey, token, signal) => {
140
181
  `${server}${buildReadUrl(dbKey)}`,
141
182
  {
142
183
  signal: controller.signal,
184
+ ...isGoogleAuthoritySession(token) || !token ? { credentials: "omit", redirect: "error" } : {},
143
185
  headers: {
144
186
  "Content-Type": "application/json",
145
- ...token && { Authorization: `Bearer ${token}` }
187
+ ...requestToken && { Authorization: `Bearer ${requestToken}` }
146
188
  }
147
189
  }
148
190
  );
@@ -173,6 +215,10 @@ var normalizeTimeFields = (data) => ({
173
215
  });
174
216
 
175
217
  export {
218
+ isGoogleAuthoritySession,
219
+ googleSessionServer,
220
+ scopeGoogleSessionServers,
221
+ googleSessionRequestToken,
176
222
  isDevelopment,
177
223
  getIsDesktopApp,
178
224
  logger,
@@ -0,0 +1,106 @@
1
+ // packages/ai/agent/dispatchSelectionPolicy.ts
2
+ var DISPATCH_TIER_RANK = { easy: 0, normal: 1, complex: 2, extreme: 3 };
3
+ var MODEL_TIERS = [
4
+ {
5
+ tier: "extreme",
6
+ models: ["Claude Fable 5.1/5.2\u3001Opus 5.5", "GPT-6/6.2 Astra", "Gemini 4 Neon/Carbon"],
7
+ pattern: /^(?:gpt-6(?:[.-]2)?-astra|claude-(?:fable-5[.-][12]|opus-5[.-]5)|gemini-4-(?:neon|carbon))(?:$|[-@])/
8
+ },
9
+ {
10
+ tier: "complex",
11
+ models: [
12
+ "GPT-5.6/6/6.1/6.2 Sol\u30015.6/6.1 Terra",
13
+ "Claude Sonnet 5.5",
14
+ "Gemini 4 Hydrogen/Argon\u30012.5 Pro",
15
+ "Kimi K3/K3.1 Pro",
16
+ "DeepSeek V4 Pro"
17
+ ],
18
+ pattern: /^(?:gpt-(?:(?:5[.-]6|6(?:[.-][12])?)-sol|(?:5[.-]6|6[.-]1)-terra)|gemini-(?:4-(?:hydrogen|argon)|2[.-]5-pro)|claude-sonnet-5[.-]5|kimi-k3(?:[.-]1-pro)?|k3(?:-256k)?|deepseek-v4-pro)(?:$|[-@])/
19
+ },
20
+ {
21
+ tier: "normal",
22
+ models: [
23
+ "Claude Haiku 4.5/5.5",
24
+ "DeepSeek Flash\uFF08\u5404\u4EE3\uFF09",
25
+ "GLM 5.3/Flash",
26
+ "MiMo V2.6 Pro",
27
+ "Grok 4.6/4.7",
28
+ "Gemini 3.6-3.8 Flash",
29
+ "LongCat 2.5"
30
+ ],
31
+ pattern: /^(?:claude-haiku-[45][.-]5|deepseek-(?:[a-z0-9.-]+-)?flash|glm-5[.-]3|mimo-v2[.-]6-pro|grok-4[.-][67]|gemini-3[.-][678]-flash|longcat-2[.-]5)(?:$|[-@])/
32
+ },
33
+ {
34
+ tier: "easy",
35
+ models: ["MiniMax M3.1 Flash", "GPT-5.6/6 Luna"],
36
+ pattern: /^(?:minimax-m3[.-]1-flash|gpt-(?:5[.-]6|6)-luna)(?:$|[-@])/
37
+ }
38
+ ];
39
+ var MODEL_TIER_GUIDANCE = MODEL_TIERS.map(
40
+ ({ tier, models }) => `${tier}: ${models.join("\u3001")}`
41
+ ).join("\n");
42
+ var DIFFICULTY_GRADING_ORDER = `- **\u5148\u5224\u6863\u518D\u9009\u6A21\u578B**\uFF08\u89C4\u5212\u590D\u6742\u2260\u6267\u884C\u590D\u6742\uFF09\uFF1A\u5148\u5B9A\u5B50\u4EFB\u52A1 difficulty \u518D\u9009\u8BE5\u6863\u80DC\u4EFB\u6A21\u578B\uFF1B\u91CD\u8981\u5EA6\u3001\u6587\u4EF6\u6570\u3001\u8017\u65F6\u3001\u53D1\u5E03\u5B89\u5168\u76EE\u5F55\u4E0D\u5347\u6863\uFF0C\u300C\u66F4\u7A33\u59A5/\u66F4\u5B89\u5168/\u72EC\u7ACB review\u300D\u4E0D\u662F\u5347\u6863\u7406\u7531\uFF0C\u9009\u8DB3\u591F\u80DC\u4EFB\u7684\u6700\u4F4E\u6863\uFF0C\u4E0D\u4E3A\u964D\u6863\u62C6\u788E\u3002`;
43
+ var DIFFICULTY_GRADING_TIERS = ` - \u56DB\u6863\uFF1Aeasy\uFF1D\u6839\u56E0\u4E0E\u505A\u6CD5\u660E\u786E\u3001\u5C40\u90E8\u53EF\u9A8C\uFF1Bnormal\uFF1D\u6309\u65E2\u5B9A\u5951\u7EA6\u5B9E\u73B0/\u9A8C\u8BC1\u6216\u5C40\u90E8\u5B9A\u4F4D\uFF1Bcomplex\uFF1D\u591A\u6839\u56E0\u3001\u8DE8\u72B6\u6001\u6216\u5E76\u53D1\u517C\u5BB9\u53D6\u820D\uFF1Bextreme\uFF1D\u67B6\u6784\u672A\u5B9A\u6216\u5B89\u5168/\u5B8C\u6574\u6027\u91CD\u5927\u53D6\u820D\u3002\u5347\u6863\u987B\u6307\u51FA\u672C\u5757\u672A\u51B3\u70B9\uFF0C\u4E0D\u6309\u9879\u76EE\u6574\u4F53\u5B9A\u6863\u3002\u5B9E\u73B0\u4E0E\u590D\u5BA1\u91CD\u5224\uFF0C\u4E0D\u7EE7\u627F\u89C4\u5212\u6863\u3002`;
44
+ function resolveModelTier(model) {
45
+ if (typeof model !== "string") return "unknown";
46
+ const id = model.trim().toLowerCase().split("/").at(-1).replace(/\s+/g, "-");
47
+ if (id.includes("-image") || id.startsWith("nano-banana")) return "unknown";
48
+ return MODEL_TIERS.find(({ pattern }) => pattern.test(id))?.tier ?? "unknown";
49
+ }
50
+ function normalizeDispatchDifficulty(value) {
51
+ if (value === "easy" || value === "\u7B80\u5355") return "easy";
52
+ if (value === "complex" || value === "\u590D\u6742") return "complex";
53
+ if (value === "extreme" || value === "\u6781\u7AEF\u590D\u6742" || value === "\u6781\u5176\u590D\u6742")
54
+ return "extreme";
55
+ return "normal";
56
+ }
57
+ function normalizeSelectionReason(value) {
58
+ if (typeof value !== "string") return void 0;
59
+ const trimmed = value.trim();
60
+ return trimmed.length > 0 ? trimmed : void 0;
61
+ }
62
+ function requiresSelectionReason(difficulty, modelTier) {
63
+ return modelTier !== "unknown" && DISPATCH_TIER_RANK[modelTier] - DISPATCH_TIER_RANK[difficulty] >= 2;
64
+ }
65
+ function checkDispatchSelection(input) {
66
+ const dimension = input.dimension === "design_frontend" || input.dimension === "writing" ? input.dimension : "general";
67
+ const difficulty = normalizeDispatchDifficulty(input.difficulty);
68
+ const modelTier = resolveModelTier(input.model);
69
+ const status = modelTier === "unknown" ? "unknown" : modelTier === difficulty ? "matched" : "mismatch";
70
+ const selectionReason = normalizeSelectionReason(input.selectionReason);
71
+ const message = status === "matched" ? void 0 : status === "unknown" ? "\u6A21\u578B\u6863\u4F4D\u672A\u77E5\uFF1B\u6309\u9886\u57DF\u4E0E\u53EF\u7528\u6027\u5224\u65AD\uFF0C\u4E0D\u963B\u65AD\uFF0C\u5DF2\u542F\u52A8\u52FF\u81EA\u52A8\u91CD\u6D3E\u3002" : selectionReason ? "\u6863\u4F4D\u4E0E\u96BE\u5EA6\u4E0D\u4E00\u81F4\uFF1B\u5DF2\u7ED9\u51FA\u8DE8\u6863\u7406\u7531\uFF0C\u4E0D\u963B\u65AD\uFF0C\u5DF2\u542F\u52A8\u52FF\u81EA\u52A8\u91CD\u6D3E\u3002" : requiresSelectionReason(difficulty, modelTier) ? "\u6A21\u578B\u9AD8\u51FA\u4EFB\u52A1\u96BE\u5EA6\u81F3\u5C11\u4E24\u6863\uFF1B\u542F\u52A8\u524D\u9700\u5728 selectionReason \u8BF4\u660E\u7406\u7531\u3002" : "\u6863\u4F4D\u4E0E\u96BE\u5EA6\u4E0D\u4E00\u81F4\uFF1B\u4E0D\u963B\u65AD\uFF0C\u5DF2\u542F\u52A8\u52FF\u81EA\u52A8\u91CD\u6D3E\u3002";
72
+ return {
73
+ dimension,
74
+ difficulty,
75
+ modelTier,
76
+ status,
77
+ ...message ? { message } : {},
78
+ ...selectionReason ? { selectionReason } : {}
79
+ };
80
+ }
81
+ function checkDispatchSelectionAdmission(input) {
82
+ const check = checkDispatchSelection(input);
83
+ if (!requiresSelectionReason(check.difficulty, check.modelTier) || check.selectionReason)
84
+ return { ok: true, check };
85
+ const error = {
86
+ code: "selection_reason_required",
87
+ message: `\u8DE8\u6863\u9009\u62E9\u7F3A\u5C11 selectionReason\uFF1A\u6A21\u578B\u6863\u4F4D ${check.modelTier} \u9AD8\u51FA\u4EFB\u52A1\u96BE\u5EA6 ${check.difficulty} \u81F3\u5C11\u4E24\u6863\uFF0C\u8BF7\u8865\u5145\u672C\u6B21\u8DE8\u6863\u7684\u5177\u4F53\u7406\u7531\u540E\u518D\u542F\u52A8\u3002`,
88
+ hint: "\u8865\u4E00\u53E5\u672C\u6B21\u4E3A\u4EC0\u4E48\u8FD9\u6837\u8DE8\u6863\uFF08\u5982\u9886\u57DF\u4F18\u52BF\u3001\u7528\u6237\u660E\u786E\u6307\u5B9A\uFF09\u5373\u53EF\uFF1B\u53EA\u6821\u9A8C\u7406\u7531\u662F\u5426\u5B58\u5728\uFF0C\u4E0D\u4EE3\u8868\u5DF2\u6838\u5B9E\u7528\u6237\u6388\u6743\u3001\u989D\u5EA6/\u8D39\u7528\u6743\u9650\u6216\u7F51\u7EDC\u53EF\u7528\u6027\u3002"
89
+ };
90
+ return { ok: false, check, error };
91
+ }
92
+ function assertDispatchSelectionAdmission(input) {
93
+ const admission = checkDispatchSelectionAdmission(input);
94
+ if (!admission.ok && admission.error)
95
+ throw new Error(`${admission.error.message} ${admission.error.hint}`);
96
+ return admission.check;
97
+ }
98
+
99
+ export {
100
+ DISPATCH_TIER_RANK,
101
+ MODEL_TIER_GUIDANCE,
102
+ DIFFICULTY_GRADING_ORDER,
103
+ DIFFICULTY_GRADING_TIERS,
104
+ resolveModelTier,
105
+ assertDispatchSelectionAdmission
106
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isPidGone
3
- } from "./chunk-OWKNSIXL.js";
3
+ } from "./chunk-JAKRY74O.js";
4
4
 
5
5
  // packages/cli/tui/tuiRestart.ts
6
6
  import { realpathSync } from "node:fs";
@@ -1,6 +1,3 @@
1
- import {
2
- fnv1a32
3
- } from "./chunk-UEILX4EV.js";
4
1
  import {
5
2
  createSelector,
6
3
  noloDeleteRequest,
@@ -8,11 +5,16 @@ import {
8
5
  noloUploadRequest,
9
6
  noloWriteRequest,
10
7
  syncWithServers
11
- } from "./chunk-7Z6EW7AH.js";
8
+ } from "./chunk-ZTHAJU3O.js";
12
9
  import {
13
10
  getAllServers,
14
- getIsDesktopApp
15
- } from "./chunk-4N6G2CKP.js";
11
+ getIsDesktopApp,
12
+ googleSessionServer,
13
+ scopeGoogleSessionServers
14
+ } from "./chunk-HDKMVYNJ.js";
15
+ import {
16
+ fnv1a32
17
+ } from "./chunk-UEILX4EV.js";
16
18
  import {
17
19
  selectIdentityToken,
18
20
  selectIdentityUser,
@@ -21,6 +23,9 @@ import {
21
23
  import {
22
24
  isTombstoneRecord
23
25
  } from "./chunk-BV3FLP2L.js";
26
+ import {
27
+ isTokenStatsKey
28
+ } from "./chunk-SYTHYBMI.js";
24
29
  import {
25
30
  asOptionalPositiveFiniteNumber
26
31
  } from "./chunk-U6VC4MU4.js";
@@ -88,8 +93,8 @@ var selectRuntimeSnapshot = createSelector(
88
93
  (currentToken, currentUserId, currentServer, syncServers, localRuntimeOrigin) => ({
89
94
  currentToken,
90
95
  currentUserId,
91
- currentServer,
92
- syncServers,
96
+ currentServer: googleSessionServer(currentToken, currentServer) ?? currentServer,
97
+ syncServers: googleSessionServer(currentToken, currentServer) === void 0 ? syncServers : [],
93
98
  localRuntimeOrigin
94
99
  })
95
100
  );
@@ -99,7 +104,7 @@ var selectRuntimeCurrentServer = createSelector(
99
104
  );
100
105
  var selectRuntimeRemoteServers = createSelector(
101
106
  [selectRuntimeSnapshot],
102
- (runtime) => getAllServers(runtime.currentServer, runtime.syncServers)
107
+ (runtime) => scopeGoogleSessionServers(runtime.currentToken, runtime.currentServer, getAllServers(runtime.currentServer, runtime.syncServers))
103
108
  );
104
109
 
105
110
  // packages/database/runtimeServerContext.ts
@@ -116,11 +121,11 @@ var getRuntimeServerContext = (state, preferredServerOrigin) => {
116
121
  currentServer,
117
122
  syncServers,
118
123
  userAuthorityRegistry: resolveRuntimeUserAuthorityRegistry(state),
119
- remoteServers: getAllServers(
124
+ remoteServers: scopeGoogleSessionServers(currentToken, currentServer, getAllServers(
120
125
  currentServer,
121
126
  syncServers,
122
127
  preferredServerOrigin
123
- )
128
+ ))
124
129
  };
125
130
  };
126
131
  var resolveRuntimeUserAuthorityRegistry = (state) => {
@@ -173,6 +178,18 @@ var resolveCandidateOwnerFromKeyRemainder = (remainder, candidateOwnerUserIds) =
173
178
  }
174
179
  return null;
175
180
  };
181
+ var isMalformedAgentAutomationKey = (dbKey) => {
182
+ const normalized = cleanSegment(dbKey);
183
+ if (!normalized) return false;
184
+ if (normalized !== "agent-automation" && !normalized.startsWith("agent-automation-")) {
185
+ return false;
186
+ }
187
+ const parts = normalized.split("-");
188
+ if (parts[2] === "owner" && parts[3] === "idx") {
189
+ return parts.length < 5 || !cleanSegment(parts[4]) || !cleanSegment(parts[parts.length - 1]);
190
+ }
191
+ return parts.length < 4 || !cleanSegment(parts[2]) || !cleanSegment(parts[parts.length - 1]);
192
+ };
176
193
  var parseOwnerUserIdFromDbKey = (dbKey, options = {}) => {
177
194
  const normalized = cleanSegment(dbKey);
178
195
  if (!normalized) return null;
@@ -187,6 +204,29 @@ var parseOwnerUserIdFromDbKey = (dbKey, options = {}) => {
187
204
  }
188
205
  return null;
189
206
  }
207
+ if (prefix === "agent" && parts[1] === "automation") {
208
+ if (isMalformedAgentAutomationKey(normalized)) return null;
209
+ if (parts[2] === "owner" && parts[3] === "idx") {
210
+ const ownerAndRest3 = parts.slice(4).join("-");
211
+ const candidateOwner3 = resolveCandidateOwnerFromKeyRemainder(
212
+ ownerAndRest3,
213
+ options.candidateOwnerUserIds
214
+ );
215
+ if (candidateOwner3) return candidateOwner3;
216
+ const ownerUserId3 = cleanSegment(parts[4]);
217
+ if (!ownerUserId3 || PUBLIC_OWNER_SENTINELS.has(ownerUserId3)) return null;
218
+ return ownerUserId3;
219
+ }
220
+ const ownerAndRest2 = parts.slice(2).join("-");
221
+ const candidateOwner2 = resolveCandidateOwnerFromKeyRemainder(
222
+ ownerAndRest2,
223
+ options.candidateOwnerUserIds
224
+ );
225
+ if (candidateOwner2) return candidateOwner2;
226
+ const ownerUserId2 = cleanSegment(parts[2]);
227
+ if (!ownerUserId2 || PUBLIC_OWNER_SENTINELS.has(ownerUserId2)) return null;
228
+ return ownerUserId2;
229
+ }
190
230
  if (prefix === "dialog") {
191
231
  const messageSeparator = normalized.lastIndexOf("-msg-");
192
232
  if (messageSeparator !== -1) {
@@ -570,6 +610,9 @@ var resolveAuthorityReplicationServers = ({
570
610
  record,
571
611
  state
572
612
  }) => {
613
+ if (isTokenStatsKey(dbKey)) {
614
+ return [];
615
+ }
573
616
  const allServers = resolveReplicationServers(
574
617
  currentServer,
575
618
  syncServers,
@@ -585,11 +628,11 @@ var resolveAuthorityReplicationServers = ({
585
628
  if (isDeviceLocalOwnerId(authority.ownerUserId) || isDeviceLocalOwnerId(record?.userId) || isDeviceLocalDbKey(dbKey)) {
586
629
  return [];
587
630
  }
588
- return planAuthorityReadServers({
631
+ return scopeGoogleSessionServers(selectIdentityToken(state), currentServer, planAuthorityReadServers({
589
632
  allServers,
590
633
  authorityServer: preferredServerOrigin ?? authority.authorityServer,
591
634
  serverOrigin: authority.serverOrigin
592
- });
635
+ }));
593
636
  };
594
637
  var scheduleWriteReplication = (servers, request, state) => {
595
638
  if (servers.length === 0) return null;
@@ -680,17 +723,17 @@ var resolveUploadReplicationServers = ({
680
723
  userAuthorityRegistry: state?.settings?.userAuthorityRegistry ?? selectIdentityUser(state)?.authorityRegistry
681
724
  });
682
725
  if (authority.ownerUserId || authority.authorityServer) {
683
- return planAuthorityReadServers({
726
+ return scopeGoogleSessionServers(selectIdentityToken(state), currentServer, planAuthorityReadServers({
684
727
  allServers,
685
728
  authorityServer: authority.authorityServer,
686
729
  serverOrigin: authority.serverOrigin
687
- });
730
+ }));
688
731
  }
689
- return resolveTenantReplicationServers({
732
+ return scopeGoogleSessionServers(selectIdentityToken(state), currentServer, resolveTenantReplicationServers({
690
733
  currentServer,
691
734
  syncServers,
692
735
  tenantId
693
- });
736
+ }));
694
737
  };
695
738
  var scheduleExistingRecordReplication = ({
696
739
  currentServer,