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
@@ -1,16 +1,16 @@
1
- import {
2
- resolveLocalUserId
3
- } from "./chunk-T5N6NHAT.js";
4
1
  import {
5
2
  resolveNoloHome
6
3
  } from "./chunk-GLKOYSRU.js";
7
- import {
8
- toErrorMessage
9
- } from "./chunk-HNMXYYJR.js";
10
4
  import {
11
5
  isSupportedDialogId,
12
6
  splitDialogKeyIdentity
13
7
  } from "./chunk-YZMNK53S.js";
8
+ import {
9
+ resolveLocalUserId
10
+ } from "./chunk-UPOW5HTG.js";
11
+ import {
12
+ toErrorMessage
13
+ } from "./chunk-HNMXYYJR.js";
14
14
 
15
15
  // packages/cli/dialogNotifyCommand.ts
16
16
  import { lstatSync as lstatSync2, readFileSync as readFileSync2 } from "node:fs";
@@ -0,0 +1,203 @@
1
+ import {
2
+ parseUserIdFromAuthToken,
3
+ resolveAuthToken,
4
+ resolveServerUrl
5
+ } from "./chunk-BIDSIRTS.js";
6
+
7
+ // packages/cli/subscriptionQuotaRefresh.ts
8
+ import {
9
+ mkdirSync,
10
+ readFileSync,
11
+ renameSync,
12
+ writeFileSync
13
+ } from "node:fs";
14
+ import { dirname, join } from "node:path";
15
+ var CATALOG_QUOTA_REFRESH_TIMEOUT_MS = 2e3;
16
+ var FRESH_QUOTA_TTL_MS = 45e3;
17
+ var CACHE_ENTRY_RETENTION_MS = 10 * 6e4;
18
+ var EMPTY_REFRESH_BACKOFF_MS = 5 * 6e4;
19
+ var lastRefreshEmptyAt = 0;
20
+ function hasPendingReset(quota, now) {
21
+ if (!quota || !Array.isArray(quota.windows)) return false;
22
+ const observedAt = typeof quota.observedAt === "number" && Number.isFinite(quota.observedAt) ? quota.observedAt : void 0;
23
+ return quota.windows.some((win) => {
24
+ if (typeof win?.resetAt !== "number" || !Number.isFinite(win.resetAt)) {
25
+ return false;
26
+ }
27
+ if (win.resetAt > now) return false;
28
+ if (observedAt !== void 0 && observedAt < win.resetAt) return true;
29
+ return typeof win.utilization === "number" && win.utilization >= 1 || win.remaining === 0;
30
+ });
31
+ }
32
+ function quotaSnapshotIsFresh(quota, now) {
33
+ const observedAt = quota?.observedAt;
34
+ if (typeof observedAt !== "number" || !Number.isFinite(observedAt)) return false;
35
+ if (now - observedAt >= FRESH_QUOTA_TTL_MS) return false;
36
+ return !hasPendingReset(quota, now);
37
+ }
38
+ function resolveQuotaCachePath(env, hasCustomFetch) {
39
+ const explicitNoloHome = env.NOLO_HOME?.trim();
40
+ const noloHome = explicitNoloHome || (!hasCustomFetch && env.HOME?.trim() ? `${env.HOME.trim()}/.nolo` : "");
41
+ return noloHome ? join(noloHome, "cache", "subscription-quota-refresh.json") : void 0;
42
+ }
43
+ function readQuotaDiskCache(cachePath) {
44
+ if (!cachePath) return {};
45
+ try {
46
+ const parsed = JSON.parse(readFileSync(cachePath, "utf8"));
47
+ return parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : {};
48
+ } catch {
49
+ return {};
50
+ }
51
+ }
52
+ function writeQuotaDiskCache(cachePath, cacheKey, quotas, wholeBatch, checkedKeys, now) {
53
+ if (!cachePath) return;
54
+ try {
55
+ const current = readQuotaDiskCache(cachePath);
56
+ const prevScope = current[cacheKey] ?? {};
57
+ const mergedQuotas = {};
58
+ for (const [k, v] of Object.entries(prevScope.quotas ?? {})) {
59
+ if (v && typeof v.observedAt === "number" && Number.isFinite(v.observedAt) && now - v.observedAt < CACHE_ENTRY_RETENTION_MS) {
60
+ mergedQuotas[k] = v;
61
+ }
62
+ }
63
+ for (const [k, v] of Object.entries(quotas)) {
64
+ if (v && Array.isArray(v.windows)) {
65
+ mergedQuotas[k] = v;
66
+ }
67
+ }
68
+ const prevBatchFresh = typeof prevScope.lastBatchRefreshAt === "number" && now - prevScope.lastBatchRefreshAt < FRESH_QUOTA_TTL_MS;
69
+ const mergedCheckedKeys = wholeBatch ? Array.from(
70
+ /* @__PURE__ */ new Set([
71
+ ...prevBatchFresh && Array.isArray(prevScope.checkedKeys) ? prevScope.checkedKeys : [],
72
+ ...checkedKeys
73
+ ])
74
+ ) : prevScope.checkedKeys;
75
+ current[cacheKey] = {
76
+ lastBatchRefreshAt: wholeBatch ? now : prevScope.lastBatchRefreshAt,
77
+ ...mergedCheckedKeys ? { checkedKeys: mergedCheckedKeys } : {},
78
+ quotas: mergedQuotas
79
+ };
80
+ mkdirSync(dirname(cachePath), { recursive: true });
81
+ const tmpPath = `${cachePath}.tmp-${process.pid}-${Date.now()}`;
82
+ writeFileSync(tmpPath, JSON.stringify(current), "utf8");
83
+ renameSync(tmpPath, cachePath);
84
+ } catch {
85
+ }
86
+ }
87
+ function pickNewerQuota(a, b) {
88
+ if (!a) return b;
89
+ if (!b) return a;
90
+ const ta = typeof a.observedAt === "number" && Number.isFinite(a.observedAt) ? a.observedAt : -1;
91
+ const tb = typeof b.observedAt === "number" && Number.isFinite(b.observedAt) ? b.observedAt : -1;
92
+ return tb > ta ? b : a;
93
+ }
94
+ async function refreshSubscriptionQuotas(args) {
95
+ const fresh = {};
96
+ try {
97
+ const now = Date.now();
98
+ const env = args.env ?? process.env;
99
+ const authToken = resolveAuthToken(args.cliArgs ?? [], env);
100
+ if (!authToken) return fresh;
101
+ const wholeBatch = !args.onlyKeys || args.onlyKeys.length === 0;
102
+ const serverUrl = resolveServerUrl(args.cliArgs ?? [], env);
103
+ const cachePath = resolveQuotaCachePath(
104
+ env,
105
+ Boolean(args.fetchImpl && args.fetchImpl !== fetch)
106
+ );
107
+ const userId = parseUserIdFromAuthToken(authToken) ?? "anon";
108
+ const cacheKey = `${serverUrl}::${userId}`;
109
+ const diskCache = !args.forceRefresh ? readQuotaDiskCache(cachePath) : {};
110
+ const scopeCache = diskCache[cacheKey];
111
+ const targetEntries = args.entries.filter(
112
+ (entry) => entry.probeable !== false && (!args.onlyKeys || args.onlyKeys.includes(entry.key))
113
+ );
114
+ const staleTargetKeys = [];
115
+ if (!args.forceRefresh) {
116
+ const batchWindowFresh = wholeBatch && typeof scopeCache?.lastBatchRefreshAt === "number" && now - scopeCache.lastBatchRefreshAt < FRESH_QUOTA_TTL_MS;
117
+ const checkedKeySet = batchWindowFresh ? new Set(Array.isArray(scopeCache?.checkedKeys) ? scopeCache.checkedKeys : []) : null;
118
+ for (const entry of targetEntries) {
119
+ const cachedQuota = scopeCache?.quotas?.[entry.key];
120
+ const bestQuota = pickNewerQuota(entry.quota, cachedQuota);
121
+ if (hasPendingReset(bestQuota, now)) {
122
+ staleTargetKeys.push(entry.key);
123
+ continue;
124
+ }
125
+ if (quotaSnapshotIsFresh(bestQuota, now)) {
126
+ if (cachedQuota && bestQuota === cachedQuota && (!entry.quota || typeof entry.quota.observedAt !== "number" || !Number.isFinite(entry.quota.observedAt) || cachedQuota.observedAt > entry.quota.observedAt)) {
127
+ fresh[entry.key] = cachedQuota;
128
+ }
129
+ continue;
130
+ }
131
+ if (checkedKeySet?.has(entry.key)) {
132
+ continue;
133
+ }
134
+ staleTargetKeys.push(entry.key);
135
+ }
136
+ if (staleTargetKeys.length === 0) return fresh;
137
+ if (wholeBatch && lastRefreshEmptyAt && now - lastRefreshEmptyAt < EMPTY_REFRESH_BACKOFF_MS) {
138
+ return fresh;
139
+ }
140
+ }
141
+ const requestAgentKeys = args.onlyKeys && args.onlyKeys.length > 0 ? args.onlyKeys : !args.forceRefresh && staleTargetKeys.length > 0 && staleTargetKeys.length < targetEntries.length ? staleTargetKeys : void 0;
142
+ const isFullBatchProbe = wholeBatch && !requestAgentKeys;
143
+ const fetchImpl = args.fetchImpl ?? fetch;
144
+ const refreshPromise = (async () => {
145
+ const res = await fetchImpl(
146
+ `${serverUrl}/api/agents/quota/refresh`,
147
+ {
148
+ method: "POST",
149
+ headers: {
150
+ "Content-Type": "application/json",
151
+ Authorization: `Bearer ${authToken}`
152
+ },
153
+ body: JSON.stringify(
154
+ requestAgentKeys && requestAgentKeys.length > 0 ? { agentKeys: requestAgentKeys } : {}
155
+ ),
156
+ signal: AbortSignal.timeout(CATALOG_QUOTA_REFRESH_TIMEOUT_MS)
157
+ }
158
+ );
159
+ if (!res.ok) return;
160
+ const payload = await res.json().catch(() => null);
161
+ const quotas = payload?.quotas;
162
+ if (!quotas || typeof quotas !== "object") return;
163
+ const probed = typeof payload?.probed === "number" ? payload.probed : 0;
164
+ const completedAt = Date.now();
165
+ if (probed === 0 && Object.keys(quotas).length === 0) {
166
+ if (isFullBatchProbe) lastRefreshEmptyAt = completedAt;
167
+ return;
168
+ }
169
+ if (wholeBatch) lastRefreshEmptyAt = 0;
170
+ writeQuotaDiskCache(
171
+ cachePath,
172
+ cacheKey,
173
+ quotas,
174
+ wholeBatch,
175
+ requestAgentKeys ?? targetEntries.map((entry) => entry.key),
176
+ completedAt
177
+ );
178
+ for (const entry of args.entries) {
179
+ const quota = quotas[entry.key];
180
+ if (quota && Array.isArray(quota.windows)) {
181
+ fresh[entry.key] = quota;
182
+ }
183
+ }
184
+ })();
185
+ let timer;
186
+ await Promise.race([
187
+ refreshPromise,
188
+ new Promise((resolve) => {
189
+ timer = setTimeout(resolve, CATALOG_QUOTA_REFRESH_TIMEOUT_MS);
190
+ })
191
+ ]).catch(() => {
192
+ });
193
+ if (timer) clearTimeout(timer);
194
+ refreshPromise.catch(() => {
195
+ });
196
+ } catch {
197
+ }
198
+ return fresh;
199
+ }
200
+
201
+ export {
202
+ refreshSubscriptionQuotas
203
+ };
@@ -6,12 +6,12 @@ import {
6
6
  loadFileFromIndexedDb,
7
7
  removeAction,
8
8
  saveFileToIndexedDb
9
- } from "./chunk-PLPLH2XZ.js";
9
+ } from "./chunk-2IPR4PBB.js";
10
10
  import {
11
11
  readAction,
12
12
  readRequestManager,
13
13
  resolveAgentReadServers
14
- } from "./chunk-5RKRXQ2H.js";
14
+ } from "./chunk-5VVP7DW3.js";
15
15
  import {
16
16
  beginWriteAck,
17
17
  compareRemoteRecordsByComparableTime,
@@ -29,28 +29,25 @@ import {
29
29
  shouldReplaceLocalWithRemoteRecord,
30
30
  shouldReplicateLocalRecord,
31
31
  uploadToCurrentServer
32
- } from "./chunk-CSW7IPVD.js";
32
+ } from "./chunk-FMYNIAI6.js";
33
33
  import {
34
34
  asyncThunkCreator,
35
35
  buildCreateSlice,
36
36
  createEntityAdapter,
37
37
  noloDeleteRequest
38
- } from "./chunk-7Z6EW7AH.js";
38
+ } from "./chunk-QOURTDZL.js";
39
39
  import {
40
40
  fetchFromClientDb,
41
41
  fetchFromServer,
42
+ googleSessionRequestToken,
43
+ googleSessionServer,
42
44
  logger,
43
- normalizeTimeFields
44
- } from "./chunk-AGP3YSEC.js";
45
+ normalizeTimeFields,
46
+ scopeGoogleSessionServers
47
+ } from "./chunk-5PASH2MB.js";
45
48
  import {
46
49
  isTombstoneRecord
47
50
  } from "./chunk-BV3FLP2L.js";
48
- import {
49
- isRecord
50
- } from "./chunk-KUG52IAP.js";
51
- import {
52
- API_ENDPOINTS
53
- } from "./chunk-LCBAMY2M.js";
54
51
  import {
55
52
  fileKey,
56
53
  getFileIdFromKey
@@ -58,6 +55,15 @@ import {
58
55
  import {
59
56
  ulid
60
57
  } from "./chunk-OJKUU3LP.js";
58
+ import {
59
+ isPublicBuiltinPlatformAgentKey
60
+ } from "./chunk-KZAT2M2V.js";
61
+ import {
62
+ API_ENDPOINTS
63
+ } from "./chunk-LCBAMY2M.js";
64
+ import {
65
+ isRecord
66
+ } from "./chunk-KUG52IAP.js";
61
67
 
62
68
  // packages/database/protectedRecordProtocol.ts
63
69
  var PROTECTED_RECORD_PROTOCOL_VERSION = 1;
@@ -643,14 +649,14 @@ async function getPageReadBaseline(db, actorId, dbKey) {
643
649
  async function readProtectedPage(options) {
644
650
  const { db, actorId, dbKey } = options;
645
651
  const assertAccess = (origin) => {
646
- const access = options.getCurrentAccess?.() ?? options;
647
- if (access.actorId !== actorId || !access.token?.trim()) {
652
+ const access2 = options.getCurrentAccess?.() ?? options;
653
+ if (access2.actorId !== actorId || !access2.token?.trim()) {
648
654
  throw Error("\u6587\u6863\u8BFB\u53D6\u8EAB\u4EFD\u5DF2\u53D8\u5316\u6216\u8BA4\u8BC1\u5DF2\u64A4\u9500\uFF0C\u5DF2\u505C\u6B62\u8BFB\u53D6");
649
655
  }
650
- if (origin && !access.servers.some((server) => originOf(server) === origin)) {
656
+ if (origin && !access2.servers.some((server) => originOf(server) === origin)) {
651
657
  throw Error("\u6587\u6863\u5F52\u5C5E\u670D\u52A1\u5668\u4E0D\u5728\u5DF2\u914D\u7F6E\u670D\u52A1\u5668\u4E2D\u6216\u5DF2\u79FB\u9664\uFF0C\u672A\u53D1\u9001\u8BA4\u8BC1\u4FE1\u606F\uFF0C\u672A\u8F6C\u53D1\u8BA4\u8BC1\u4FE1\u606F");
652
658
  }
653
- return access.token;
659
+ return origin ? googleSessionRequestToken(access2.token, origin) : access2.token;
654
660
  };
655
661
  assertAccess();
656
662
  const sync = options.sync ?? createProtectedRecordSync({ db });
@@ -664,13 +670,10 @@ async function readProtectedPage(options) {
664
670
  sync,
665
671
  fetch: options.fetch,
666
672
  isAuthorityAllowed: (origin) => {
667
- const access = options.getCurrentAccess();
668
- return access.actorId === actorId && access.servers.some((server) => originOf(server) === origin);
673
+ const access2 = options.getCurrentAccess();
674
+ return access2.actorId === actorId && access2.servers.some((server) => originOf(server) === origin);
669
675
  },
670
- getToken: async () => {
671
- const access = options.getCurrentAccess();
672
- return access.actorId === actorId ? access.token ?? null : null;
673
- }
676
+ getToken: async ({ authorityServer }) => assertAccess(authorityServer)
674
677
  });
675
678
  for (let count = 0; count < state.outbox.length; count++) {
676
679
  if ((await transport.sendNext({ actorId, dbKey })).outcome !== "acked") break;
@@ -683,7 +686,9 @@ async function readProtectedPage(options) {
683
686
  return state.workingCopy.data;
684
687
  }
685
688
  }
686
- const servers = saved ? [saved.authorityServer] : options.servers;
689
+ const access = options.getCurrentAccess?.() ?? options;
690
+ const googleAuthority = googleSessionServer(access.token);
691
+ const servers = saved ? [saved.authorityServer] : options.servers.filter((server) => access.servers.some((candidate) => originOf(candidate) === originOf(server)) && (!googleAuthority || originOf(server) === googleAuthority));
687
692
  for (const server of servers) {
688
693
  const origin = originOf(server);
689
694
  if (!origin) continue;
@@ -832,6 +837,7 @@ var readAndWaitAction = async (payload, thunkApi) => {
832
837
  userAuthorityRegistry
833
838
  } = getRuntimeServerContext(state, preferredServerOrigin);
834
839
  const allServers = resolveAgentReadServers({ dbKey, configuredServers });
840
+ const fetchScopedFromServer = (server, key, token, signal) => signal === void 0 ? fetchFromServer(server, key, googleSessionRequestToken(token, server, isPublicBuiltinPlatformAgentKey(key))) : fetchFromServer(server, key, googleSessionRequestToken(token, server, isPublicBuiltinPlatformAgentKey(key)), signal);
835
841
  const isLoggedIn = !!currentToken;
836
842
  const executeReadAndWait = async () => {
837
843
  if (dbKey.startsWith("page-") && currentUserId && currentToken && typeof db.batch === "function") {
@@ -857,11 +863,12 @@ var readAndWaitAction = async (payload, thunkApi) => {
857
863
  currentServer,
858
864
  userAuthorityRegistry
859
865
  });
860
- const readServers = planAuthorityReadServers({
866
+ let readServers = planAuthorityReadServers({
861
867
  allServers,
862
868
  authorityServer: preferredServerOrigin ?? authority.authorityServer,
863
869
  serverOrigin: authority.serverOrigin
864
870
  });
871
+ if (!isPublicBuiltinPlatformAgentKey(dbKey)) readServers = scopeGoogleSessionServers(currentToken, currentServer, readServers);
865
872
  const hasPreferredAuthorityServer = !!preferredServerOrigin || !!authority.authorityServer;
866
873
  const preferredAuthorityServer = hasPreferredAuthorityServer ? readServers[0] : null;
867
874
  if (readServers.length === 0) {
@@ -874,7 +881,7 @@ var readAndWaitAction = async (payload, thunkApi) => {
874
881
  }
875
882
  if (preferredAuthorityServer) {
876
883
  try {
877
- const preferredRemoteData = await fetchFromServer(
884
+ const preferredRemoteData = await fetchScopedFromServer(
878
885
  preferredAuthorityServer,
879
886
  dbKey,
880
887
  isLoggedIn ? currentToken : void 0
@@ -888,7 +895,7 @@ var readAndWaitAction = async (payload, thunkApi) => {
888
895
  }
889
896
  const remainingReadServers = preferredAuthorityServer ? readServers.filter((server) => server !== preferredAuthorityServer) : readServers;
890
897
  const remotePromises = remainingReadServers.map(
891
- (server) => fetchFromServer(server, dbKey, isLoggedIn ? currentToken : void 0)
898
+ (server) => fetchScopedFromServer(server, dbKey, isLoggedIn ? currentToken : void 0)
892
899
  );
893
900
  const chosenData = await processRemoteData(
894
901
  db,
@@ -1487,7 +1494,7 @@ var dbSlice = createSliceWithThunks({
1487
1494
  // 动态 import 在调用期解析,避开 TDZ/求值顺序问题(同下方 share)。
1488
1495
  read: create.asyncThunk(
1489
1496
  async (payload, thunkApi) => {
1490
- const { readAction: readAction2 } = await import("./read-KA3L2V7O.js");
1497
+ const { readAction: readAction2 } = await import("./read-T7VU2IMO.js");
1491
1498
  return readAction2(payload, thunkApi);
1492
1499
  },
1493
1500
  {
@@ -1561,7 +1568,7 @@ var dbSlice = createSliceWithThunks({
1561
1568
  // 这里改成动态 import,运行期才解析,彻底断开这条边。
1562
1569
  share: create.asyncThunk(
1563
1570
  async (config, thunkApi) => {
1564
- const { shareResourceAction } = await import("./action-CK64LS6S.js");
1571
+ const { shareResourceAction } = await import("./action-R2EIXR7I.js");
1565
1572
  return shareResourceAction(config, thunkApi);
1566
1573
  }
1567
1574
  ),