nolo-cli 0.227.0-alpha.1 → 0.227.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 (258) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-JKQGZ3HU.js → _executeModel-CXOFYVHC.js} +93 -87
  3. package/{action-CK64LS6S.js → action-R2EIXR7I.js} +11 -8
  4. package/{addContentAction-CARFID6E.js → addContentAction-W6JVLQ6H.js} +17 -16
  5. package/{addDialogAgentAction-APLZLFW5.js → addDialogAgentAction-LVNKMXKZ.js} +20 -19
  6. package/{agentDeleteCommand-NVR2V2HH.js → agentDeleteCommand-VFSZPEQ5.js} +145 -137
  7. package/{agentEmailCommands-UCVOWD3S.js → agentEmailCommands-KRUIF4EH.js} +149 -137
  8. package/{agentFavoriteCommands-4PDOP3GW.js → agentFavoriteCommands-7LOP3HUD.js} +6 -6
  9. package/{agentGrantCommands-FLCEXLUH.js → agentGrantCommands-L6O2HVJI.js} +7 -7
  10. package/agentListCommands-TDFOLWN3.js +644 -0
  11. package/{agentMachineCommands-V3DGEJU4.js → agentMachineCommands-PSH7Q5PF.js} +76 -67
  12. package/{agentProviderCommands-7QBFRFRK.js → agentProviderCommands-C5T7C5KZ.js} +7 -7
  13. package/{agentPullCommand-E6JBGBVG.js → agentPullCommand-QQQZSC6S.js} +7 -7
  14. package/agentRecordCommands-KCKCW2QU.js +188 -0
  15. package/agentRunCommand-EF2T2QWD.js +223 -0
  16. package/{agentRunControl-SNZZ5XP4.js → agentRunControl-CSMSJFFB.js} +25 -17
  17. package/{agentRuntimeLocal-GOX2DIY7.js → agentRuntimeLocal-6QXQS3TS.js} +64 -50
  18. package/{agentSlice-N7H2FRJA.js → agentSlice-IZ5ANAF7.js} +19 -18
  19. package/{appDeleteCommands-LZDN26FU.js → appDeleteCommands-4M7ETEEG.js} +68 -59
  20. package/{appDeployCommands-6IO6TTZH.js → appDeployCommands-2VJ2NDW5.js} +68 -59
  21. package/{appDeployStatusCommands-FG3LX24J.js → appDeployStatusCommands-LDFSWOPQ.js} +68 -59
  22. package/{appGetCommands-NAKVDVD4.js → appGetCommands-RHVNOPT4.js} +68 -59
  23. package/{appListCommands-KL56RN73.js → appListCommands-U3XEVTL4.js} +68 -59
  24. package/{authCommand-AUN5MXV2.js → authCommand-PVZ45QRO.js} +36 -31
  25. package/{authCommands-D2IPS6ES.js → authCommands-6AUYO65N.js} +18 -13
  26. package/{builtinSkillRegistry-UQGLKRYP.js → builtinSkillRegistry-LRVAQCPW.js} +6 -6
  27. package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
  28. package/{chromeOpsCommands-UJWN5HWH.js → chromeOpsCommands-TBPM6MR4.js} +8 -8
  29. package/{chunk-ABGULE7H.js → chunk-22YUCKMK.js} +16 -16
  30. package/{chunk-P2ZLUIW2.js → chunk-2BSLGODA.js} +350 -25
  31. package/{chunk-GOLPOTG5.js → chunk-2COM7SAH.js} +4 -4
  32. package/{chunk-ULAQPRHX.js → chunk-2FK2KZSL.js} +1 -1
  33. package/{chunk-PLPLH2XZ.js → chunk-2IPR4PBB.js} +2 -2
  34. package/chunk-2SXN7LAY.js +15 -0
  35. package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
  36. package/{chunk-7Z3WUZ4Q.js → chunk-3YYFU6H7.js} +74 -46
  37. package/{chunk-C2B7M567.js → chunk-4OXPN3WC.js} +17 -6
  38. package/chunk-4TVOZGOS.js +62 -0
  39. package/chunk-4ZCTKB27.js +31 -0
  40. package/chunk-53AEDFBL.js +33394 -0
  41. package/chunk-53W5BXLN.js +340 -0
  42. package/{chunk-OXA5GWHU.js → chunk-56O2J2Y4.js} +3 -3
  43. package/{chunk-IAJJYHIB.js → chunk-56PB7FEN.js} +8 -8
  44. package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
  45. package/{chunk-AGP3YSEC.js → chunk-5PASH2MB.js} +46 -1
  46. package/{chunk-PHOSZT3E.js → chunk-5UAKGCQG.js} +1 -1
  47. package/{chunk-5RKRXQ2H.js → chunk-5VVP7DW3.js} +20 -13
  48. package/chunk-6ASGEP5D.js +21 -0
  49. package/chunk-6PXFEPHL.js +103 -0
  50. package/chunk-6RSNVJGO.js +279 -0
  51. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  52. package/{chunk-KMRKZNGT.js → chunk-6YYTTLJV.js} +14 -13
  53. package/{chunk-VREDDN25.js → chunk-76HAJUOJ.js} +14 -9
  54. package/{chunk-FKEZOMIF.js → chunk-7DXFOL5B.js} +1410 -768
  55. package/{chunk-LA7JYAKF.js → chunk-AKPKOI5Z.js} +6 -6
  56. package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
  57. package/{chunk-F5AY2UZL.js → chunk-AO6T7U62.js} +592 -68
  58. package/{chunk-LJSNEV7M.js → chunk-AS6L5KSD.js} +8 -8
  59. package/{chunk-GOQ6ZVTN.js → chunk-AVSZ6PBM.js} +5 -5
  60. package/chunk-BIDSIRTS.js +307 -0
  61. package/chunk-C5A54QS7.js +108 -0
  62. package/{chunk-KYH7XW3K.js → chunk-CD2DK5JA.js} +135 -14
  63. package/{chunk-G6HJUMST.js → chunk-CJQBWHNM.js} +2 -2
  64. package/{chunk-EVGU5P4U.js → chunk-CO6E7YK6.js} +1 -1
  65. package/{chunk-ZYA2YDB6.js → chunk-CT5JXREL.js} +17 -17
  66. package/{chunk-VPAZ6BEN.js → chunk-CTWCZKNS.js} +42 -17
  67. package/{chunk-4OKTPFNX.js → chunk-CX2LYFZQ.js} +107 -66
  68. package/{chunk-YFLVRVYK.js → chunk-DLT2DN4M.js} +1 -1
  69. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  70. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  71. package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
  72. package/{chunk-IX2BXN2K.js → chunk-EDT65EUE.js} +6 -6
  73. package/{chunk-VP3BINY7.js → chunk-EQZZASCD.js} +31 -1
  74. package/{chunk-45LZIYXB.js → chunk-ESN4WNWU.js} +3 -2
  75. package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
  76. package/{chunk-CVERLOJM.js → chunk-F4XIS5DL.js} +1215 -1431
  77. package/chunk-FDZ2GBWO.js +166 -0
  78. package/chunk-FGHEF6WI.js +34 -0
  79. package/{chunk-CSW7IPVD.js → chunk-FMYNIAI6.js} +61 -24
  80. package/{chunk-VIHDJ3FK.js → chunk-FNT5VENS.js} +15 -15
  81. package/{chunk-PMDVQBGA.js → chunk-GAHJLSDO.js} +14 -7
  82. package/{chunk-GRXSJR2Z.js → chunk-GVTFSLNI.js} +112 -109
  83. package/{chunk-UN7HIYMH.js → chunk-GX6DITLQ.js} +1 -1
  84. package/{chunk-3VFYQH3I.js → chunk-HIDVLMZC.js} +203 -156
  85. package/{chunk-5LQDHFBN.js → chunk-IDFGIROZ.js} +20 -17
  86. package/{chunk-UCFPVYP7.js → chunk-IFWXH7LH.js} +1 -1
  87. package/{chunk-LXTC53TN.js → chunk-J45ACAOQ.js} +815 -361
  88. package/{chunk-S6K5F3KP.js → chunk-JP2BH4NC.js} +1 -1
  89. package/{chunk-X2KRQP7V.js → chunk-JV5FHHF7.js} +1 -1
  90. package/{chunk-6EDAMVG6.js → chunk-K26XPZRB.js} +11 -11
  91. package/{chunk-RU6DULV4.js → chunk-KB5RQRSJ.js} +1 -1
  92. package/{chunk-T43K75CK.js → chunk-KC2QVCI7.js} +24 -178
  93. package/chunk-KK3FCYZM.js +647 -0
  94. package/{chunk-XZODOEKU.js → chunk-KMDHRVS7.js} +29 -5
  95. package/{chunk-4JVNURX4.js → chunk-KQHEGELM.js} +68 -16
  96. package/{chunk-UAPNPNSG.js → chunk-KW72WVHO.js} +2085 -1046
  97. package/{chunk-ILHQ2AXT.js → chunk-KZAT2M2V.js} +14 -8
  98. package/{chunk-L42CBKBZ.js → chunk-KZKMH374.js} +3 -3
  99. package/{chunk-ZI5SZ3MV.js → chunk-L6BLA6BT.js} +40 -31
  100. package/{chunk-AK5O76CC.js → chunk-LC5CVWP2.js} +3 -3
  101. package/{chunk-N5Z2V73W.js → chunk-LELADM5Q.js} +1 -1
  102. package/chunk-LHCGKAFO.js +739 -0
  103. package/{chunk-YOT437BH.js → chunk-LOF2EFUE.js} +203 -123
  104. package/{chunk-YQETUZ5V.js → chunk-LTVEOOZL.js} +29 -16
  105. package/{chunk-T2BEPTAG.js → chunk-MAA42MMV.js} +272 -26
  106. package/{chunk-NAOO4PVX.js → chunk-MECW2HJG.js} +16 -16
  107. package/{chunk-5HL4KC4A.js → chunk-MEDPR36J.js} +62 -87
  108. package/chunk-MVOZ22RZ.js +26 -0
  109. package/{chunk-YPPKC6FL.js → chunk-MYYNZG2M.js} +140 -40
  110. package/{chunk-UVUVQVZ6.js → chunk-MZVCFV3T.js} +19 -15
  111. package/{chunk-CQVGR3MX.js → chunk-N7MXFYLU.js} +7 -7
  112. package/{chunk-IC2I373Q.js → chunk-NEG5LYK5.js} +4 -4
  113. package/chunk-NJJK3PDA.js +133 -0
  114. package/{chunk-OB6DVWPF.js → chunk-OGZE6BZG.js} +331 -99
  115. package/{chunk-M3Y4IBIR.js → chunk-OHUYN3YU.js} +6 -6
  116. package/chunk-P27E22MA.js +203 -0
  117. package/{chunk-SFTTXGPM.js → chunk-PDAXMBLW.js} +35 -28
  118. package/{chunk-OBSEKCVK.js → chunk-PQ63BDV3.js} +210 -51
  119. package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
  120. package/{chunk-SRG5CNLC.js → chunk-QIVE5WJE.js} +8 -8
  121. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  122. package/{chunk-5RKUPJYL.js → chunk-QLUYDJST.js} +11 -3
  123. package/{chunk-7Z6EW7AH.js → chunk-QOURTDZL.js} +97 -11
  124. package/{chunk-VZW34YUL.js → chunk-QWSH3UAQ.js} +8 -5
  125. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  126. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  127. package/{chunk-SW6OD4KE.js → chunk-RDPAIR67.js} +351 -18
  128. package/{chunk-NO3VBWTL.js → chunk-RXTZB2DH.js} +4 -4
  129. package/{chunk-AXYH4734.js → chunk-S25VJYXV.js} +21 -15
  130. package/{chunk-MWHOH4RJ.js → chunk-SESKIWB4.js} +6 -6
  131. package/{chunk-GUVXQSFZ.js → chunk-SF4GMDZO.js} +18 -108
  132. package/{chunk-TINJKQSO.js → chunk-SQRKAYQW.js} +25 -25
  133. package/chunk-SR4FE5VD.js +9 -0
  134. package/{chunk-3HTP4WZQ.js → chunk-SX6AWTNK.js} +46 -8
  135. package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
  136. package/{chunk-CLCXHIBS.js → chunk-T4QY3HZ5.js} +1 -1
  137. package/{chunk-HVUDBOQG.js → chunk-TB5KTLNB.js} +9 -6
  138. package/{chunk-KRRE4A7D.js → chunk-TKE4OJ4B.js} +280 -56
  139. package/{chunk-S2NTVGA2.js → chunk-U35UUM5K.js} +2 -1
  140. package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
  141. package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
  142. package/{chunk-T5N6NHAT.js → chunk-UPOW5HTG.js} +6 -6
  143. package/{chunk-WJP4TH6U.js → chunk-VEVLLBFK.js} +2 -2
  144. package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
  145. package/{chunk-KJAAPGBE.js → chunk-VUHKG4KS.js} +6 -6
  146. package/{chunk-TOKPHZ55.js → chunk-W3HSD32M.js} +17 -10
  147. package/{chunk-2SKTCNWO.js → chunk-W5OJBZLZ.js} +4 -4
  148. package/chunk-WBSJAIZP.js +170 -0
  149. package/chunk-WDWZPASX.js +29 -0
  150. package/chunk-WFGNWWJI.js +326 -0
  151. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  152. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  153. package/{chunk-HYKGIXNO.js → chunk-XGWRH3OF.js} +114 -29
  154. package/{chunk-XIEYGCN6.js → chunk-XKV53E4E.js} +460 -117
  155. package/{chunk-JHF6VLVL.js → chunk-XYRTC2Y3.js} +155 -170
  156. package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
  157. package/{chunk-ZADGPNTV.js → chunk-YHWMKGOX.js} +77 -103
  158. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  159. package/chunk-Z6YTCDU4.js +24 -0
  160. package/{chunk-PVAWNHP5.js → chunk-ZP26NIZE.js} +647 -387
  161. package/{chunk-2G3YSVO6.js → chunk-ZQ6K57FJ.js} +3 -3
  162. package/{cliAgentConfigHelpers-QVSQYTKC.js → cliAgentConfigHelpers-37ZNEY5Y.js} +16 -16
  163. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
  164. package/{cliEnvHelpers-D6HMC46Z.js → cliEnvHelpers-CNMP3RDX.js} +2 -2
  165. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  166. package/cliLocalAgentRecordReader-53773JID.js +102 -0
  167. package/{commandRegistry-TKR6OWXP.js → commandRegistry-RJUO2VOD.js} +113 -101
  168. package/{contentThunks-BQWRPCTM.js → contentThunks-4EFHLUTB.js} +44 -41
  169. package/{cooldownCommands-FZYQOWI5.js → cooldownCommands-QL6DWGVU.js} +3 -3
  170. package/{createAgentAutomationAction-GFI6SJZV.js → createAgentAutomationAction-ZFFGJ7CZ.js} +44 -41
  171. package/{createDialogAction-MMBIHFFU.js → createDialogAction-SDUGVTPS.js} +45 -43
  172. package/{createPageAction-EEYUE5FB.js → createPageAction-NNM3OFLY.js} +49 -46
  173. package/{db-CS4ZJQKV.js → db-6NRZLEW2.js} +10 -7
  174. package/{dbSlice-X4Z4E4QU.js → dbSlice-5MQ3ELID.js} +16 -15
  175. package/{deleteFile-QOOP2UK7.js → deleteFile-VCCHS72Y.js} +12 -9
  176. package/{dialogCommands-OXBQ73DD.js → dialogCommands-SJK5KWXU.js} +73 -66
  177. package/dialogMessageRecord-OAV77LT7.js +7 -0
  178. package/{dialogNotifyCommand-VWS5G4OO.js → dialogNotifyCommand-PST75COP.js} +19 -19
  179. package/{dialogSlice-KGYIABDY.js → dialogSlice-2KLMHECR.js} +44 -41
  180. package/{dialogUsageCommand-FEWCN7IA.js → dialogUsageCommand-BZPKR3DW.js} +8 -8
  181. package/{docCreateCommands-LS32VKY3.js → docCreateCommands-K7CDL2HY.js} +66 -57
  182. package/{docDeleteCommands-JTYR5RPH.js → docDeleteCommands-ZEY5YCSP.js} +69 -60
  183. package/{docReadCommands-E5LTVKWN.js → docReadCommands-A4ROLIQG.js} +66 -57
  184. package/{docStore-TVS2FNER.js → docStore-A4O6YJAM.js} +19 -18
  185. package/{docUpdateCommands-I3J3JDZ2.js → docUpdateCommands-6HTFQY4O.js} +66 -57
  186. package/{fetchMessages-Q3INLN5F.js → fetchMessages-TQEUZD7H.js} +3 -3
  187. package/{getPricing-VNGFM4PN.js → getPricing-FCHYVRJU.js} +6 -6
  188. package/{handleSendMessageAction-SSON36TJ.js → handleSendMessageAction-6WEFYBUC.js} +87 -82
  189. package/{hostCredentialCreate-WTW4THJF.js → hostCredentialCreate-WOWCNOYM.js} +136 -123
  190. package/index.js +54 -16
  191. package/keys-RWF7UCB4.js +1 -1
  192. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  193. package/{localDialogRead-V36DX2Q2.js → localDialogRead-3T2KMCRC.js} +2 -2
  194. package/{localRuntimeAdapter-MI2JGXSF.js → localRuntimeAdapter-7EDBDRYW.js} +147 -133
  195. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-7DKIT7UH.js} +4 -2
  196. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
  197. package/{machineCommands-3LROJZDK.js → machineCommands-XRPC67LL.js} +290 -354
  198. package/machineWsRunDispatch-SOGFW472.js +203 -0
  199. package/markdownToSlate-KIYM7B3P.js +8 -0
  200. package/mcpLocalAuthorizeCommand-VOJARP3M.js +106 -0
  201. package/{memberThunks-CFEPHAND.js → memberThunks-KC3WJGL3.js} +26 -21
  202. package/{memoryCommands-JQMEJO7J.js → memoryCommands-BC6REPQB.js} +6 -6
  203. package/{models-H5NNZRLH.js → models-EP7VG6N2.js} +2 -2
  204. package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
  205. package/package.json +1 -1
  206. package/{projectArchive-3X54XFVN.js → projectArchive-GDVPIZX2.js} +50 -47
  207. package/{providerPresetApply-FO36N5TX.js → providerPresetApply-4H7YP5D7.js} +9 -9
  208. package/{providerRegistry-U2BSFE6K.js → providerRegistry-F3UPOTIY.js} +9 -9
  209. package/{read-KA3L2V7O.js → read-T7VU2IMO.js} +11 -10
  210. package/{readDocTool-AMAZAPAW.js → readDocTool-BPQ3QJSD.js} +1 -1
  211. package/{readlineWorkspace-Z3YUH4SX.js → readlineWorkspace-OWQIIUGH.js} +9406 -6791
  212. package/rememberExplicit-CPAPONSI.js +15 -0
  213. package/{removeDialogAgentAction-JQOJSUM7.js → removeDialogAgentAction-FEUUVMYC.js} +23 -22
  214. package/{runAgentClientLoop-4FCFLMDJ.js → runAgentClientLoop-SJREK2B7.js} +107 -86
  215. package/{runtimeDoctorCommands-CXOCVDPU.js → runtimeDoctorCommands-XQD4MN4I.js} +19 -19
  216. package/{secretCommands-GGUAWAE7.js → secretCommands-LH7QTJO2.js} +3 -3
  217. package/{setDialogExtraReferencesAction-YXQTGXIN.js → setDialogExtraReferencesAction-JSTQJPXL.js} +19 -18
  218. package/{setPrimaryDialogAgentAction-YNLB66WE.js → setPrimaryDialogAgentAction-Z2BQE3IY.js} +23 -22
  219. package/{settingThunks-E6N7RSSS.js → settingThunks-C2YWCNYI.js} +186 -67
  220. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
  221. package/{spaceCommands-DB5DKC2J.js → spaceCommands-YRBQ52PG.js} +71 -62
  222. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  223. package/{streamAgentChatTurn-FCBGMD4D.js → streamAgentChatTurn-NCA4BKDZ.js} +244 -185
  224. package/{switchDialogAgentAction-LAHLUECU.js → switchDialogAgentAction-G7XVAOGH.js} +20 -19
  225. package/{tableCommands-VNSXHAMG.js → tableCommands-UHEA5QNL.js} +14 -11
  226. package/{toolApiClient-OGQEBQVX.js → toolApiClient-N5PYW2R3.js} +8 -6
  227. package/{tools-6JD36D6K.js → tools-6WQVUGKV.js} +74 -70
  228. package/tuiRestart-3J7LRMPR.js +41 -0
  229. package/{tuiSummaryLlmCaller-UHZIPGAX.js → tuiSummaryLlmCaller-2J6NG53N.js} +24 -23
  230. package/{updateCommands-KZ54HCU5.js → updateCommands-5OYND6EF.js} +8 -6
  231. package/{updateDialogTitleAction-RV3EUEN3.js → updateDialogTitleAction-QCSN3RYO.js} +46 -43
  232. package/{usageCommand-KFVV6UL3.js → usageCommand-SK7JTEPC.js} +3 -3
  233. package/{usageRebuildCommand-HHFSNK46.js → usageRebuildCommand-DF3HUP6F.js} +4 -4
  234. package/webapi-QVV65DQF.js +2487 -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-C65UESYM.js +0 -1004
  241. package/agentRecordCommands-6RCJS2EY.js +0 -176
  242. package/agentRunCommand-P3GRKXKS.js +0 -208
  243. package/chunk-2WZXXAQD.js +0 -57
  244. package/chunk-5ZMIIR23.js +0 -265
  245. package/chunk-62HXNQVV.js +0 -134
  246. package/chunk-BJF2MHJ3.js +0 -118
  247. package/chunk-KEPOVMF4.js +0 -91
  248. package/chunk-PXKF5CV4.js +0 -357
  249. package/chunk-WACI5I6V.js +0 -147
  250. package/chunk-YGILMZ7N.js +0 -81
  251. package/cliLocalAgentRecordReader-SPKAJYME.js +0 -90
  252. package/machineWsRunDispatch-BUUJRUUB.js +0 -191
  253. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +4 -4
  254. package/{chunk-VXL2FZTP.js → chunk-HXER7YJF.js} +3 -3
  255. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  256. package/{chunk-SSGTV4FC.js → chunk-USGHJSGO.js} +5 -5
  257. package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
  258. package/{offlineMarxistsAgentCommand-AGA2X5E4.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +5 -5
@@ -7,22 +7,26 @@ import {
7
7
  scheduleExistingRecordReplication,
8
8
  shouldReplaceLocalWithRemoteRecord,
9
9
  shouldReplicateLocalRecord
10
- } from "./chunk-CSW7IPVD.js";
10
+ } from "./chunk-FMYNIAI6.js";
11
11
  import {
12
12
  fetchFromClientDb,
13
13
  fetchFromServer,
14
+ googleSessionRequestToken,
15
+ googleSessionServer,
14
16
  isReadTimeoutError,
15
- logger
16
- } from "./chunk-AGP3YSEC.js";
17
- import {
18
- shouldReplaceWithNextRecord
19
- } from "./chunk-BV3FLP2L.js";
17
+ logger,
18
+ scopeGoogleSessionServers
19
+ } from "./chunk-5PASH2MB.js";
20
20
  import {
21
21
  isAbortError
22
22
  } from "./chunk-7DPNBQSV.js";
23
23
  import {
24
- isBuiltinPlatformAgentKey
25
- } from "./chunk-ILHQ2AXT.js";
24
+ shouldReplaceWithNextRecord
25
+ } from "./chunk-BV3FLP2L.js";
26
+ import {
27
+ isBuiltinPlatformAgentKey,
28
+ isPublicBuiltinPlatformAgentKey
29
+ } from "./chunk-KZAT2M2V.js";
26
30
  import {
27
31
  NOLO_CLUSTER_SERVERS,
28
32
  normalizeKnownServerOrigin
@@ -247,6 +251,7 @@ var readAction = async (payload, thunkApi) => {
247
251
  userAuthorityRegistry
248
252
  } = getRuntimeServerContext(state, preferredServerOrigin);
249
253
  const allServers = resolveAgentReadServers({ dbKey, configuredServers });
254
+ const fetchScopedFromServer = (server, key, token, signal2) => fetchFromServer(server, key, googleSessionRequestToken(token, server, isPublicBuiltinPlatformAgentKey(key)), signal2);
250
255
  const isLoggedIn = !!currentToken;
251
256
  const now = Date.now();
252
257
  const localData = await fetchFromClientDb(clientDb, dbKey);
@@ -265,14 +270,15 @@ var readAction = async (payload, thunkApi) => {
265
270
  currentServer,
266
271
  userAuthorityRegistry
267
272
  });
268
- const authorityPlannedServers = planAuthorityReadServers({
273
+ let authorityPlannedServers = planAuthorityReadServers({
269
274
  allServers,
270
275
  authorityServer: preferredServerOrigin ?? authority.authorityServer,
271
276
  serverOrigin: authority.serverOrigin
272
277
  });
278
+ if (!isPublicBuiltinPlatformAgentKey(dbKey)) authorityPlannedServers = scopeGoogleSessionServers(currentToken, currentServer, authorityPlannedServers);
273
279
  let { preferredServer, fallbackServers, orderedServersForLocalHit } = partitionReadServers({
274
280
  allServers: authorityPlannedServers,
275
- preferredServerOrigin: preferredServerOrigin ?? authority.authorityServer
281
+ preferredServerOrigin: googleSessionServer(currentToken, currentServer) ?? preferredServerOrigin ?? authority.authorityServer
276
282
  });
277
283
  readRequestManager.cleanupMisses(now);
278
284
  readRequestManager.cleanupLocalHitRevalidations(now);
@@ -321,7 +327,7 @@ var readAction = async (payload, thunkApi) => {
321
327
  if (retryInMs === null) {
322
328
  readRequestManager.markLocalHitRevalidated(dbKey, now);
323
329
  const remotePromises2 = orderedServersForLocalHit.map(
324
- (server) => fetchFromServer(
330
+ (server) => fetchScopedFromServer(
325
331
  server,
326
332
  dbKey,
327
333
  isLoggedIn ? currentToken : void 0,
@@ -353,12 +359,13 @@ var readAction = async (payload, thunkApi) => {
353
359
  return normalizeReadRecord(dbKey, localData);
354
360
  }
355
361
  if (authoritativeServerOrigin) {
362
+ googleSessionRequestToken(currentToken, authoritativeServerOrigin, isPublicBuiltinPlatformAgentKey(dbKey));
356
363
  preferredServer = authoritativeServerOrigin;
357
364
  fallbackServers = [];
358
365
  }
359
366
  if (preferredServer) {
360
367
  try {
361
- const preferredRemoteData = await fetchFromServer(
368
+ const preferredRemoteData = await fetchScopedFromServer(
362
369
  preferredServer,
363
370
  dbKey,
364
371
  isLoggedIn ? currentToken : void 0,
@@ -402,7 +409,7 @@ var readAction = async (payload, thunkApi) => {
402
409
  }
403
410
  }
404
411
  const remotePromises = fallbackServers.map(
405
- (server) => fetchFromServer(
412
+ (server) => fetchScopedFromServer(
406
413
  server,
407
414
  dbKey,
408
415
  isLoggedIn ? currentToken : void 0,
@@ -0,0 +1,21 @@
1
+ import {
2
+ cloudflareModels,
3
+ gmiModels,
4
+ openrouterModels,
5
+ platformHostedModels,
6
+ zaiModels
7
+ } from "./chunk-PQ63BDV3.js";
8
+
9
+ // packages/ai/llm/models.ts
10
+ var withProvider = (provider) => (models) => models.map((model) => ({ ...model, provider }));
11
+ var ALL_MODELS = [
12
+ ...withProvider("nolo")(platformHostedModels),
13
+ ...withProvider("openrouter")(openrouterModels),
14
+ ...withProvider("cloudflare")(cloudflareModels),
15
+ ...withProvider("gmi")(gmiModels),
16
+ ...withProvider("zai")(zaiModels)
17
+ ];
18
+
19
+ export {
20
+ ALL_MODELS
21
+ };
@@ -0,0 +1,103 @@
1
+ import {
2
+ WORKFLOW_GUIDANCE_SKILL_SLUGS
3
+ } from "./chunk-TKE4OJ4B.js";
4
+
5
+ // packages/ai/policy/types.ts
6
+ var DEFAULT_USER_PREFERENCE_PROFILE = {
7
+ version: 1,
8
+ tone: {
9
+ preset: "default"
10
+ },
11
+ knowledgeCaptureLevel: 2,
12
+ spaceContextLevel: 3
13
+ };
14
+
15
+ // packages/ai/skills/userPromptSkills.ts
16
+ var RECOMMENDED_PROMPT_SKILL_SLUGS = ["ub-mode"];
17
+ var ALLOWED_PROMPT_SKILL_SLUGS = new Set(
18
+ RECOMMENDED_PROMPT_SKILL_SLUGS
19
+ );
20
+ function normalizeEnabledPromptSkills(value) {
21
+ if (!Array.isArray(value)) {
22
+ return [];
23
+ }
24
+ const result = [];
25
+ const seen = /* @__PURE__ */ new Set();
26
+ for (const item of value) {
27
+ if (typeof item !== "string") {
28
+ continue;
29
+ }
30
+ const trimmed = item.trim();
31
+ if (ALLOWED_PROMPT_SKILL_SLUGS.has(trimmed) && !seen.has(trimmed)) {
32
+ seen.add(trimmed);
33
+ result.push(trimmed);
34
+ }
35
+ }
36
+ return result;
37
+ }
38
+
39
+ // packages/ai/skills/userSkills.ts
40
+ var NEW_ACCOUNT_DEFAULT_WORKFLOW_SKILLS = WORKFLOW_GUIDANCE_SKILL_SLUGS;
41
+ function isAccountOnDemandWorkflowSkill(slug) {
42
+ return typeof slug === "string" && NEW_ACCOUNT_DEFAULT_WORKFLOW_SKILLS.some((candidate) => candidate === slug.trim());
43
+ }
44
+ var SUPPORTED_USER_SKILL_SLUGS = [
45
+ "ub-mode",
46
+ "auto-review",
47
+ "code-style",
48
+ "worktree-isolation",
49
+ "systematic-investigation",
50
+ "show-me",
51
+ "caveman",
52
+ "secrets-manager",
53
+ "skill-creator",
54
+ "code-planning",
55
+ "coding",
56
+ "coding-review",
57
+ "android-adb",
58
+ "mihome-assistant",
59
+ "stock-quotes",
60
+ ...NEW_ACCOUNT_DEFAULT_WORKFLOW_SKILLS
61
+ ];
62
+ var SUPPORTED_USER_SKILL_SLUG_SET = new Set(
63
+ SUPPORTED_USER_SKILL_SLUGS
64
+ );
65
+ function normalizeEnabledSkills(value) {
66
+ if (!Array.isArray(value)) {
67
+ return [];
68
+ }
69
+ const result = [];
70
+ const seen = /* @__PURE__ */ new Set();
71
+ for (const item of value) {
72
+ if (typeof item !== "string") {
73
+ continue;
74
+ }
75
+ const trimmed = item.trim();
76
+ if (SUPPORTED_USER_SKILL_SLUG_SET.has(trimmed) && !seen.has(trimmed)) {
77
+ seen.add(trimmed);
78
+ result.push(trimmed);
79
+ }
80
+ }
81
+ return result;
82
+ }
83
+ function resolveUserEnabledSkills(preferences) {
84
+ if (!preferences || typeof preferences !== "object") {
85
+ return [];
86
+ }
87
+ if (Object.prototype.hasOwnProperty.call(preferences, "enabledSkills")) {
88
+ return normalizeEnabledSkills(preferences.enabledSkills);
89
+ }
90
+ if (Object.prototype.hasOwnProperty.call(preferences, "enabledPromptSkills")) {
91
+ const legacy = normalizeEnabledPromptSkills(preferences.enabledPromptSkills);
92
+ return legacy.filter((slug) => SUPPORTED_USER_SKILL_SLUG_SET.has(slug));
93
+ }
94
+ return [];
95
+ }
96
+
97
+ export {
98
+ DEFAULT_USER_PREFERENCE_PROFILE,
99
+ normalizeEnabledPromptSkills,
100
+ isAccountOnDemandWorkflowSkill,
101
+ normalizeEnabledSkills,
102
+ resolveUserEnabledSkills
103
+ };
@@ -0,0 +1,279 @@
1
+ import {
2
+ _appendEntityBatch,
3
+ _appendEvidenceBatch,
4
+ _appendRelationBatch,
5
+ _appendRetiredStateBatch,
6
+ _appendStateBatch,
7
+ getMemoryEntityVNext,
8
+ getMemoryEvidenceVNext,
9
+ getMemoryEvidenceVNextStrict,
10
+ getMemoryStateVNext,
11
+ listMemoryStatesForEntityVNext
12
+ } from "./chunk-324FWHUA.js";
13
+
14
+ // packages/ai/memory/vnext/applyMutation.ts
15
+ async function validateMutation(db, ownerId, mutation) {
16
+ const pending = {
17
+ evidenceIds: /* @__PURE__ */ new Set(),
18
+ entityIds: /* @__PURE__ */ new Set(),
19
+ stateIds: /* @__PURE__ */ new Set(),
20
+ relationIds: /* @__PURE__ */ new Set()
21
+ };
22
+ for (const ev of mutation.evidence ?? []) {
23
+ if (!ev.id || typeof ev.id !== "string") {
24
+ throw new Error("evidence id must be a non-empty string");
25
+ }
26
+ if (pending.evidenceIds.has(ev.id)) {
27
+ throw new Error(`duplicate evidence id in mutation: ${ev.id}`);
28
+ }
29
+ pending.evidenceIds.add(ev.id);
30
+ }
31
+ for (const ent of mutation.entities ?? []) {
32
+ if (!ent.id || typeof ent.id !== "string") {
33
+ throw new Error("entity id must be a non-empty string");
34
+ }
35
+ if (pending.entityIds.has(ent.id)) {
36
+ throw new Error(`duplicate entity id in mutation: ${ent.id}`);
37
+ }
38
+ pending.entityIds.add(ent.id);
39
+ }
40
+ for (const st of mutation.states ?? []) {
41
+ if (!st.id || typeof st.id !== "string") {
42
+ throw new Error("state id must be a non-empty string");
43
+ }
44
+ if (pending.stateIds.has(st.id)) {
45
+ throw new Error(`duplicate state id in mutation: ${st.id}`);
46
+ }
47
+ pending.stateIds.add(st.id);
48
+ }
49
+ for (const rel of mutation.relations ?? []) {
50
+ if (!rel.id || typeof rel.id !== "string") {
51
+ throw new Error("relation id must be a non-empty string");
52
+ }
53
+ if (pending.relationIds.has(rel.id)) {
54
+ throw new Error(`duplicate relation id in mutation: ${rel.id}`);
55
+ }
56
+ pending.relationIds.add(rel.id);
57
+ }
58
+ const supersededIds = /* @__PURE__ */ new Set();
59
+ for (const sid of mutation.supersededStateIds ?? []) {
60
+ if (supersededIds.has(sid)) {
61
+ throw new Error(`duplicate supersededStateId in mutation: ${sid}`);
62
+ }
63
+ supersededIds.add(sid);
64
+ }
65
+ for (const ev of mutation.evidence ?? []) {
66
+ if (ev.ownerId !== ownerId) {
67
+ throw new Error(
68
+ `evidence ${ev.id} has ownerId ${ev.ownerId}, expected ${ownerId}`
69
+ );
70
+ }
71
+ }
72
+ for (const ent of mutation.entities ?? []) {
73
+ if (ent.ownerId !== ownerId) {
74
+ throw new Error(
75
+ `entity ${ent.id} has ownerId ${ent.ownerId}, expected ${ownerId}`
76
+ );
77
+ }
78
+ }
79
+ for (const st of mutation.states ?? []) {
80
+ if (st.ownerId !== ownerId) {
81
+ throw new Error(
82
+ `state ${st.id} has ownerId ${st.ownerId}, expected ${ownerId}`
83
+ );
84
+ }
85
+ }
86
+ for (const rel of mutation.relations ?? []) {
87
+ if (rel.ownerId !== ownerId) {
88
+ throw new Error(
89
+ `relation ${rel.id} has ownerId ${rel.ownerId}, expected ${ownerId}`
90
+ );
91
+ }
92
+ }
93
+ for (const st of mutation.states ?? []) {
94
+ if (supersededIds.has(st.id)) {
95
+ throw new Error(
96
+ `state ${st.id} appears in both states and supersededStateIds; a record cannot be created and retired in the same mutation`
97
+ );
98
+ }
99
+ }
100
+ const facetSlots = /* @__PURE__ */ new Set();
101
+ for (const st of mutation.states ?? []) {
102
+ const slot = `${st.entityId} ${st.facet}`;
103
+ if (facetSlots.has(slot)) {
104
+ throw new Error(
105
+ `mutation writes parallel current states for entity ${st.entityId} facet ${st.facet}`
106
+ );
107
+ }
108
+ facetSlots.add(slot);
109
+ }
110
+ for (const ev of mutation.evidence ?? []) {
111
+ const existing = await getMemoryEvidenceVNext(db, ownerId, ev.id);
112
+ if (existing) {
113
+ throw new Error(
114
+ `evidence ${ev.id} already exists (owner ${ownerId}); use a unique id`
115
+ );
116
+ }
117
+ }
118
+ for (const ent of mutation.entities ?? []) {
119
+ const existing = await getMemoryEntityVNext(db, ownerId, ent.id);
120
+ if (existing) {
121
+ throw new Error(
122
+ `entity ${ent.id} already exists (owner ${ownerId}); use a unique id`
123
+ );
124
+ }
125
+ }
126
+ for (const st of mutation.states ?? []) {
127
+ if (!pending.entityIds.has(st.entityId)) {
128
+ const entity = await getMemoryEntityVNext(db, ownerId, st.entityId);
129
+ if (!entity) {
130
+ throw new Error(
131
+ `memory state ${st.id} references missing entity ${st.entityId} (owner ${ownerId})`
132
+ );
133
+ }
134
+ }
135
+ for (const evidenceId of st.evidenceIds) {
136
+ if (!pending.evidenceIds.has(evidenceId)) {
137
+ const ev = await getMemoryEvidenceVNext(db, ownerId, evidenceId);
138
+ if (!ev) {
139
+ throw new Error(
140
+ `memory state ${st.id} references missing evidence ${evidenceId} (owner ${ownerId})`
141
+ );
142
+ }
143
+ }
144
+ }
145
+ const existing = await getMemoryStateVNext(db, ownerId, st.id);
146
+ if (existing) {
147
+ if (existing.retiredAt) {
148
+ throw new Error(
149
+ `cannot update retired memory state ${st.id} (owner ${ownerId})`
150
+ );
151
+ }
152
+ if (existing.entityId !== st.entityId || existing.facet !== st.facet) {
153
+ throw new Error(
154
+ `state ${st.id} already exists with different entity/facet (${existing.entityId}/${existing.facet} vs ${st.entityId}/${st.facet}); use supersede instead`
155
+ );
156
+ }
157
+ }
158
+ if (!existing) {
159
+ const existingStates = await listMemoryStatesForEntityVNext(db, ownerId, st.entityId);
160
+ for (const es of existingStates) {
161
+ if (es.facet === st.facet && !es.retiredAt) {
162
+ if (!supersededIds.has(es.id)) {
163
+ throw new Error(
164
+ `entity ${st.entityId} facet ${st.facet} already has current state ${es.id}; supersede it or use a different facet`
165
+ );
166
+ }
167
+ }
168
+ }
169
+ }
170
+ }
171
+ for (const sid of mutation.supersededStateIds ?? []) {
172
+ const existing = await getMemoryStateVNext(db, ownerId, sid);
173
+ if (!existing) {
174
+ throw new Error(
175
+ `cannot supersede missing memory state: ${sid} (owner ${ownerId})`
176
+ );
177
+ }
178
+ if (existing.retiredAt) {
179
+ throw new Error(
180
+ `cannot supersede already retired memory state: ${sid} (owner ${ownerId})`
181
+ );
182
+ }
183
+ const replacement = (mutation.states ?? []).find(
184
+ (st) => st.entityId === existing.entityId && st.facet === existing.facet
185
+ );
186
+ if (!replacement) {
187
+ throw new Error(
188
+ `superseded state ${sid} (entity ${existing.entityId} facet ${existing.facet}) has no replacement in this mutation`
189
+ );
190
+ }
191
+ }
192
+ for (const rel of mutation.relations ?? []) {
193
+ for (const [side, ref] of [
194
+ ["from", rel.from],
195
+ ["to", rel.to]
196
+ ]) {
197
+ if (pending.entityIds.has(ref) || pending.stateIds.has(ref) || pending.evidenceIds.has(ref)) {
198
+ continue;
199
+ }
200
+ const resolved = await getMemoryEntityVNext(db, ownerId, ref) ?? await getMemoryStateVNext(db, ownerId, ref) ?? await getMemoryEvidenceVNext(db, ownerId, ref);
201
+ if (!resolved) {
202
+ throw new Error(
203
+ `memory relation ${rel.id} references missing ${side} ${ref} (owner ${ownerId})`
204
+ );
205
+ }
206
+ }
207
+ }
208
+ }
209
+ var applyMutationWithoutCoordination = async (db, ownerId, mutation) => {
210
+ await validateMutation(db, ownerId, mutation);
211
+ const completion = mutation.nativeCaptureCompletion;
212
+ if (completion) {
213
+ const prior = await getMemoryEvidenceVNextStrict(db, ownerId, completion.id);
214
+ const withoutOutcome = (ev) => ({
215
+ ...ev,
216
+ nativeCapture: ev.nativeCapture && { ...ev.nativeCapture, outcome: void 0 }
217
+ });
218
+ if (!prior?.nativeCapture || prior.nativeCapture.outcome || completion.ownerId !== ownerId || !["applied", "no_op"].includes(completion.nativeCapture?.outcome ?? "") || completion.nativeCapture?.outcome === "applied" && (["no_op", "ambiguous"].includes(mutation.action) || !mutation.states?.length || mutation.states.some((st) => !st.evidenceIds.includes(completion.id))) || completion.nativeCapture?.outcome === "no_op" && (mutation.action !== "no_op" || !!(mutation.entities?.length || mutation.states?.length || mutation.relations?.length || mutation.evidence?.length || mutation.supersededStateIds?.length)) || JSON.stringify(withoutOutcome(prior)) !== JSON.stringify(withoutOutcome(completion)) || mutation.evidence?.some((ev) => ev.id === completion.id)) {
219
+ throw new Error("invalid native capture completion");
220
+ }
221
+ }
222
+ const batch = db.batch();
223
+ if (completion) _appendEvidenceBatch(batch, completion);
224
+ for (const ev of mutation.evidence ?? []) {
225
+ _appendEvidenceBatch(batch, ev);
226
+ }
227
+ for (const ent of mutation.entities ?? []) {
228
+ _appendEntityBatch(batch, ent);
229
+ }
230
+ for (const st of mutation.states ?? []) {
231
+ _appendStateBatch(batch, st);
232
+ }
233
+ for (const sid of mutation.supersededStateIds ?? []) {
234
+ const existing = await getMemoryStateVNext(db, ownerId, sid);
235
+ if (!existing) {
236
+ throw new Error(
237
+ `cannot supersede missing memory state: ${sid} (owner ${ownerId})`
238
+ );
239
+ }
240
+ const replacement = (mutation.states ?? []).find(
241
+ (st) => st.entityId === existing.entityId && st.facet === existing.facet
242
+ );
243
+ const retired = {
244
+ ...existing,
245
+ retiredAt: replacement?.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString()
246
+ };
247
+ _appendRetiredStateBatch(batch, retired);
248
+ }
249
+ for (const rel of mutation.relations ?? []) {
250
+ _appendRelationBatch(batch, rel);
251
+ }
252
+ await batch.write();
253
+ };
254
+ var pendingByDb = /* @__PURE__ */ new WeakMap();
255
+ var applyMemoryInterpreterMutation = async (db, ownerId, mutation) => {
256
+ let owners = pendingByDb.get(db);
257
+ if (!owners) {
258
+ owners = /* @__PURE__ */ new Map();
259
+ pendingByDb.set(db, owners);
260
+ }
261
+ const previous = owners.get(ownerId) ?? Promise.resolve();
262
+ const operation = previous.then(async () => {
263
+ const resolved = typeof mutation === "function" ? await mutation() : mutation;
264
+ await applyMutationWithoutCoordination(db, ownerId, resolved);
265
+ });
266
+ const settled = operation.then(() => {
267
+ }, () => {
268
+ });
269
+ owners.set(ownerId, settled);
270
+ try {
271
+ await operation;
272
+ } finally {
273
+ if (owners.get(ownerId) === settled) owners.delete(ownerId);
274
+ }
275
+ };
276
+
277
+ export {
278
+ applyMemoryInterpreterMutation
279
+ };
@@ -8,7 +8,9 @@ var KNOWN_SYNC_FAILURE_CODES = /* @__PURE__ */ new Set([
8
8
  "owner_oauth_unavailable",
9
9
  "invalid_grant",
10
10
  "auth_no_token",
11
- "token_expired"
11
+ "token_expired",
12
+ "user_batch_authority_controlled",
13
+ "tombstone_conflict"
12
14
  ]);
13
15
  var SYNC_FAILURE_CODE_RE = /"(?:code|error|reason)"\s*:\s*"([A-Za-z0-9_.:-]{1,48})"/;
14
16
  function classifyDialogSyncFailure(error) {
@@ -122,7 +124,7 @@ async function runCliCommandWithSyncDrain(command, options) {
122
124
  }
123
125
  const complete = await drain(scope);
124
126
  if (commandThrew) throw commandError;
125
- options.exit(code === 0 && !complete ? 1 : code);
127
+ await options.exit(code === 0 && !complete ? 1 : code);
126
128
  });
127
129
  }
128
130
 
@@ -1,27 +1,28 @@
1
- import {
2
- buildLocalAgentLookupKeys
3
- } from "./chunk-CLCXHIBS.js";
4
- import {
5
- LOCAL_CODEX_AGENT_ID,
6
- LOCAL_CODEX_AGENT_KEY
7
- } from "./chunk-BR3GT6MR.js";
8
1
  import {
9
2
  applyPublicAgentCatalogOverride
10
- } from "./chunk-UVUVQVZ6.js";
3
+ } from "./chunk-MZVCFV3T.js";
11
4
  import {
12
5
  applyBuiltinAgentRuntimeOverride,
13
6
  resolveBuiltinPlatformAgentConfig
14
- } from "./chunk-S6K5F3KP.js";
7
+ } from "./chunk-JP2BH4NC.js";
15
8
  import {
16
- localDialogMessageRecordToRuntimeMessage
17
- } from "./chunk-CVERLOJM.js";
9
+ buildLocalAgentLookupKeys
10
+ } from "./chunk-T4QY3HZ5.js";
11
+ import {
12
+ localDialogMessageRecordToRuntimeMessage,
13
+ orderDialogHistory
14
+ } from "./chunk-F4XIS5DL.js";
18
15
  import {
19
16
  resolveAgentRuntimeConfigFromRecord
20
- } from "./chunk-C2B7M567.js";
17
+ } from "./chunk-4OXPN3WC.js";
21
18
  import {
22
19
  dialogMessagePrefix,
23
20
  dialogMessageRange
24
21
  } from "./chunk-OJKUU3LP.js";
22
+ import {
23
+ LOCAL_CODEX_AGENT_ID,
24
+ LOCAL_CODEX_AGENT_KEY
25
+ } from "./chunk-BR3GT6MR.js";
25
26
 
26
27
  // packages/cli/client/cliLocalAgentRecordReader.ts
27
28
  function resolveBuiltinLocalCliAgentConfig(agentRef, userId) {
@@ -86,7 +87,7 @@ async function readDialogMessages(args) {
86
87
  const message = localDialogMessageRecordToRuntimeMessage(entry.record);
87
88
  if (message) messages.push({ ...message, cliMessageId: entry.messageId });
88
89
  }
89
- return messages;
90
+ return orderDialogHistory(messages);
90
91
  }
91
92
 
92
93
  export {
@@ -1,10 +1,15 @@
1
1
  import {
2
2
  createSelector
3
- } from "./chunk-7Z6EW7AH.js";
3
+ } from "./chunk-QOURTDZL.js";
4
4
  import {
5
5
  getAllServers,
6
- getIsDesktopApp
7
- } from "./chunk-AGP3YSEC.js";
6
+ getIsDesktopApp,
7
+ googleSessionServer,
8
+ scopeGoogleSessionServers
9
+ } from "./chunk-5PASH2MB.js";
10
+ import {
11
+ selectIdentityToken
12
+ } from "./chunk-PXYBUFDB.js";
8
13
  import {
9
14
  SERVERS
10
15
  } from "./chunk-LCBAMY2M.js";
@@ -19,20 +24,20 @@ var resolveDesktopSafeServer = (value) => {
19
24
  };
20
25
  var selectSettings = (state) => state.settings;
21
26
  var selectCurrentServer = createSelector(
22
- [selectSettings],
23
- (settings) => resolveDesktopSafeServer(settings.currentServer)
27
+ [selectSettings, selectIdentityToken],
28
+ (settings, token) => googleSessionServer(token, settings.currentServer) ?? resolveDesktopSafeServer(settings.currentServer)
24
29
  );
25
30
  var selectSyncServers = createSelector(
26
- [selectSettings],
27
- (settings) => (settings.syncServers || []).filter(
31
+ [selectSettings, selectIdentityToken],
32
+ (settings, token) => googleSessionServer(token, settings.currentServer) !== void 0 ? [] : (settings.syncServers || []).filter(
28
33
  (server) => !getIsDesktopApp() || !isLocalServerUrl(server)
29
34
  )
30
35
  );
31
36
  var selectRemoteServer = selectCurrentServer;
32
37
  var selectRemoteSyncServers = selectSyncServers;
33
38
  var selectRemoteServers = createSelector(
34
- [selectRemoteServer, selectRemoteSyncServers],
35
- (currentServer, syncServers) => getAllServers(currentServer, syncServers)
39
+ [selectRemoteServer, selectRemoteSyncServers, selectIdentityToken],
40
+ (currentServer, syncServers, token) => scopeGoogleSessionServers(token, currentServer, getAllServers(currentServer, syncServers))
36
41
  );
37
42
 
38
43
  export {