nolo-cli 0.149.0-alpha.1 → 0.151.0-alpha.3

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/{_executeModel-OW3H7ICR.js → _executeModel-T7ANHTUW.js} +134 -91
  2. package/accountResolver-7RYB4D2P.js +300 -0
  3. package/action-SXJD5N5R.js +23 -0
  4. package/{addContentAction-B2DRF7P6.js → addContentAction-ZV774PHH.js} +20 -14
  5. package/{addDialogAgentAction-2P2FLTLD.js → addDialogAgentAction-A6SMKAGH.js} +26 -22
  6. package/{agentDeleteCommand-7IDWF6E3.js → agentDeleteCommand-4L5KCKFY.js} +181 -93
  7. package/{agentEmailCommands-A6XBQZBN.js → agentEmailCommands-2IMMIRO2.js} +132 -112
  8. package/{agentGrantCommands-M3XFO6EN.js → agentGrantCommands-HOJ3JBBQ.js} +3 -3
  9. package/agentListCommands-TWFLUYIZ.js +802 -0
  10. package/{agentMachineCommands-DQPUIMAC.js → agentMachineCommands-KIWXWT6L.js} +58 -62
  11. package/{agentProviderCommands-YK2BIIXZ.js → agentProviderCommands-HL6MBLCL.js} +149 -2
  12. package/{agentPullCommand-HF4A42D4.js → agentPullCommand-FA43RBRU.js} +7 -7
  13. package/agentRecordCommands-727NPCRW.js +154 -0
  14. package/agentRunCommand-JASIG3FZ.js +183 -0
  15. package/{agentRunControl-2SKCR4SB.js → agentRunControl-IFM7IGMG.js} +10 -2
  16. package/{agentRuntimeLocal-AK2QVJHY.js → agentRuntimeLocal-KKSQJMTE.js} +47 -50
  17. package/{agentSlice-O4RUQUMT.js → agentSlice-SLV57QGU.js} +23 -16
  18. package/{appDeleteCommands-N3XEVVYC.js → appDeleteCommands-4PL4KYRN.js} +58 -59
  19. package/{appDeployCommands-AWFIXYVW.js → appDeployCommands-EEEXCEB6.js} +67 -63
  20. package/{appDeployStatusCommands-CZRON2FO.js → appDeployStatusCommands-35ZX7T66.js} +56 -56
  21. package/{appGetCommands-XQIUY4TD.js → appGetCommands-WFCHXJWF.js} +56 -56
  22. package/{appListCommands-NNG4H36Y.js → appListCommands-XY2U6DPF.js} +57 -59
  23. package/{authCommand-UBJ4EWYZ.js → authCommand-QYN47CQD.js} +371 -68
  24. package/{authCommands-H6WKKCRW.js → authCommands-77CHYBGF.js} +12 -9
  25. package/{builtinSkillRegistry-ZMF6YGNO.js → builtinSkillRegistry-TDQ6JB2E.js} +13 -11
  26. package/{chromeCommands-2N6MEWRU.js → chromeCommands-OBBNJCLS.js} +314 -13
  27. package/chromeOpsCommands-3Z34RKSE.js +472 -0
  28. package/{chunk-ALXHV7NK.js → chunk-2GGXHQIW.js} +43 -4
  29. package/{localRuntimeAuthority-5W6IJRAD.js → chunk-2IXDJNZI.js} +154 -75
  30. package/{chunk-IVZJWTDI.js → chunk-36OMEXXR.js} +89 -21
  31. package/{chunk-H6A6X4EK.js → chunk-3MZAGMYY.js} +16 -0
  32. package/chunk-3PVYUPXK.js +40 -0
  33. package/chunk-3SZA4U64.js +1192 -0
  34. package/{chunk-ID7LNBWR.js → chunk-3T4ZG6AC.js} +1920 -644
  35. package/{chunk-GNMAFAIS.js → chunk-44WXLHFI.js} +1 -1
  36. package/{chunk-AGGIDPCZ.js → chunk-4JH2UMJR.js} +6 -0
  37. package/chunk-4LCOCOR5.js +50 -0
  38. package/chunk-4YRTZIVN.js +871 -0
  39. package/{chunk-N7J63Q6C.js → chunk-56GBUMO5.js} +10 -1
  40. package/{chunk-W7XHHYWM.js → chunk-5BHQICF2.js} +5 -1
  41. package/{chunk-XUWRURDF.js → chunk-5EBLANFT.js} +1 -1
  42. package/{chunk-3AH7LNUB.js → chunk-5EMSBTQ6.js} +33 -14
  43. package/{chunk-YRRASA5Q.js → chunk-5MM7NNO6.js} +113 -52
  44. package/chunk-5MMAK75Q.js +15 -0
  45. package/{chunk-TXH4IWJL.js → chunk-626KHJNX.js} +20 -11
  46. package/{chunk-M5PVFLD4.js → chunk-64K7WX26.js} +90 -21
  47. package/{chunk-AKG5W4LG.js → chunk-6CCFTVBP.js} +76 -221
  48. package/chunk-6MJNEXUU.js +614 -0
  49. package/{chunk-62IL3KQV.js → chunk-6MXDOUMH.js} +15 -3
  50. package/{chunk-QOKAKDPE.js → chunk-6Q7UTJKR.js} +6 -94
  51. package/chunk-6QDYSCPW.js +223 -0
  52. package/{chunk-HYZIYH2H.js → chunk-74RAWNQN.js} +56 -63
  53. package/chunk-7DPNBQSV.js +9 -0
  54. package/{chunk-IAESIMK7.js → chunk-A4MW3YZL.js} +10 -14
  55. package/{chunk-OMRJYNCI.js → chunk-AG7MCDLR.js} +26 -31
  56. package/chunk-AGIM7IMJ.js +147 -0
  57. package/{chunk-7CHC4W22.js → chunk-AIZE5TDM.js} +3 -3
  58. package/chunk-AJ3G7X2K.js +7012 -0
  59. package/{chunk-5GVBDNTO.js → chunk-AU7AXHUL.js} +1 -1
  60. package/{chunk-4H22P2JV.js → chunk-AUIJZACN.js} +2073 -1275
  61. package/{chunk-CIF4X6ZM.js → chunk-AWVFQMOV.js} +25 -3
  62. package/{chunk-YAQJJDC2.js → chunk-BJEZC5RA.js} +214 -51
  63. package/{chunk-RYZINGPM.js → chunk-BPMPOFWP.js} +347 -235
  64. package/{chunk-YUNJN43V.js → chunk-BU2YQBV4.js} +215 -28
  65. package/{chunk-XPRWFQQK.js → chunk-CBHGZRCE.js} +38 -12
  66. package/{chunk-Y3PMXGLH.js → chunk-CHCS6XPJ.js} +365 -144
  67. package/chunk-CHOZJMJS.js +78 -0
  68. package/chunk-CYJWI3NH.js +119 -0
  69. package/{chunk-GBRG75BQ.js → chunk-D2MDMY2M.js} +1 -0
  70. package/{chunk-3SV7RM24.js → chunk-D2QN6CTI.js} +117 -72
  71. package/{chunk-TZZ2WRBL.js → chunk-DFDXM2Y4.js} +20 -16
  72. package/{chunk-5TEEECZM.js → chunk-E2AKSW7L.js} +10 -7
  73. package/{chunk-RSEEDUMS.js → chunk-EDX5XSJM.js} +2 -2
  74. package/{chunk-QDSINZM3.js → chunk-EUGTFFO6.js} +2 -23
  75. package/{chunk-UNYJU5L6.js → chunk-EYLGAEB4.js} +5 -1
  76. package/{chunk-CU3QB4HW.js → chunk-EYWJT7A2.js} +12 -12
  77. package/{chunk-BNGW5ASC.js → chunk-EZVK3N5L.js} +66 -18
  78. package/{chunk-6FGTMQCL.js → chunk-F32Z66T4.js} +6 -10
  79. package/{chunk-ZOVKKMF6.js → chunk-FY4SDK2E.js} +1 -1
  80. package/chunk-G6OOUQWJ.js +417 -0
  81. package/{chunk-PQWU42UQ.js → chunk-GCKHQECX.js} +6 -6
  82. package/chunk-GKXCHNTE.js +15 -0
  83. package/{chunk-P6GMCCAT.js → chunk-GQV5KHJU.js} +78 -12
  84. package/{chunk-B2XUQXQX.js → chunk-HIQ4GF53.js} +191 -68
  85. package/{chunk-GMZLP5DV.js → chunk-HNUWUO75.js} +30 -19
  86. package/{chunk-UASIEDKM.js → chunk-I2XLRXVX.js} +36 -31
  87. package/{chunk-5UTFL4QJ.js → chunk-I2ZMGXXF.js} +10 -5
  88. package/chunk-I42VC5KR.js +15 -0
  89. package/{chunk-3BXNTXYI.js → chunk-I4SN4NUQ.js} +1199 -56
  90. package/chunk-IA7TRNNR.js +11 -0
  91. package/{chunk-WIWM4FE3.js → chunk-IJERIUXS.js} +55 -748
  92. package/{chunk-BIDGLJQ3.js → chunk-IK2TSJQA.js} +45 -8
  93. package/{chunk-CPUFH46E.js → chunk-ILU2NPWY.js} +10 -10
  94. package/{chunk-SLLGJZDT.js → chunk-ISQL4V7C.js} +4 -4
  95. package/chunk-IT3ZZRJE.js +12 -0
  96. package/{chunk-DY7ANLKG.js → chunk-JKMLSTZK.js} +43 -12
  97. package/{chunk-6TPOEJMQ.js → chunk-JZX2XLKC.js} +64 -23
  98. package/{chunk-27ONFIEY.js → chunk-K2AER7RX.js} +19 -12
  99. package/{chunk-O2OWEFII.js → chunk-KFHQQ3NO.js} +1 -1
  100. package/{chunk-QXGPFY6J.js → chunk-LGN377P3.js} +27 -17
  101. package/{chunk-L36OWPP3.js → chunk-LIQJTQRN.js} +118 -139
  102. package/{chunk-BFU6C242.js → chunk-NMFV26UG.js} +1 -1
  103. package/{chunk-5J3PYNUP.js → chunk-NYYFIKHI.js} +17 -3
  104. package/{chunk-6O4IK4V2.js → chunk-OFFL4DCR.js} +1 -1
  105. package/{chunk-B6SAMB33.js → chunk-OWYYDMGJ.js} +209 -9
  106. package/{chunk-KQHGZWSV.js → chunk-OXME3PEE.js} +1 -1
  107. package/{chunk-CTUQJVQM.js → chunk-P5QACQDK.js} +1 -1
  108. package/{chunk-TB3MIBRC.js → chunk-PIDUNDFS.js} +572 -430
  109. package/{chunk-4JMDLJAD.js → chunk-PJNFNEJE.js} +114 -37
  110. package/chunk-PKZKOVA5.js +11507 -0
  111. package/{chunk-Z4CSIXYP.js → chunk-PLSVXHSA.js} +3 -3
  112. package/chunk-PWTNI4N7.js +47 -0
  113. package/chunk-QFEW2ULV.js +42 -0
  114. package/{chunk-RGNEEJ3Y.js → chunk-QLQ573SU.js} +35 -9
  115. package/chunk-QQ56R7KS.js +88 -0
  116. package/chunk-QYPE3TS3.js +43 -0
  117. package/{chunk-HTVYCXBP.js → chunk-RN2GPWN6.js} +354 -120
  118. package/{chunk-ATLTFRYJ.js → chunk-ROCUB2H2.js} +280 -98
  119. package/{chunk-4DPP773Q.js → chunk-RSHPU4PD.js} +59 -11
  120. package/chunk-RVWMAFIT.js +134 -0
  121. package/{chunk-ESHYE7WU.js → chunk-S73EPYNC.js} +10 -7
  122. package/{chunk-UQNS32WZ.js → chunk-SCMHQUMK.js} +1 -1
  123. package/chunk-SW4S4XYB.js +1794 -0
  124. package/{chunk-ZUEK6A6C.js → chunk-TTH4HOJD.js} +1973 -754
  125. package/chunk-TY3TIUJK.js +89 -0
  126. package/{chunk-X2QRZXZH.js → chunk-TYJ5XFEA.js} +4 -4
  127. package/{chunk-ALFH24P3.js → chunk-TYYRSFBG.js} +197 -155
  128. package/{chunk-MST6R3E4.js → chunk-U5GPBQDG.js} +34 -22
  129. package/chunk-U5ICMAFV.js +14110 -0
  130. package/{chunk-7KVZ5LDQ.js → chunk-UBUH2TCC.js} +18 -4
  131. package/chunk-UEILX4EV.js +15 -0
  132. package/chunk-UHTDNB5Y.js +140 -0
  133. package/{chunk-YYLHWIW6.js → chunk-UKZX3NHN.js} +1 -1
  134. package/{chunk-OHOVNO7I.js → chunk-UOKFKFPO.js} +6 -3
  135. package/{chunk-XISEYOGH.js → chunk-USHQX6VT.js} +5 -5
  136. package/chunk-UUPR3TD7.js +53 -0
  137. package/{chunk-3DAVPNFT.js → chunk-V4EE3D54.js} +122 -107
  138. package/{chunk-HDLLCBRF.js → chunk-VEA7H5FG.js} +2 -2
  139. package/chunk-VHGD6FHV.js +116 -0
  140. package/chunk-VIWDGTDA.js +8 -0
  141. package/{chunk-GOH6RW6F.js → chunk-VJXHL6MH.js} +34 -11
  142. package/{chunk-4XEYAFLY.js → chunk-VL5KOY2C.js} +623 -94
  143. package/{chunk-EADNWBAZ.js → chunk-VP3BINY7.js} +13 -0
  144. package/{chunk-DXHL7G2L.js → chunk-VWW6O2TL.js} +274 -93
  145. package/{chunk-EOARMOVD.js → chunk-W4S6OTSC.js} +6 -3
  146. package/chunk-WD4XYDYC.js +567 -0
  147. package/chunk-WJZOQR2J.js +151 -0
  148. package/{chunk-AUDNYVRC.js → chunk-XETG4RIX.js} +5 -5
  149. package/{chunk-MX574M24.js → chunk-XI7DGLUK.js} +4 -4
  150. package/{chunk-3L2WKC3W.js → chunk-XPWGOTBQ.js} +8 -1
  151. package/chunk-XRUSXPCQ.js +514 -0
  152. package/{chunk-I4OPU5TK.js → chunk-XS47QOFV.js} +273 -11
  153. package/{chunk-S5XGT6GB.js → chunk-XZNCX52W.js} +30 -9
  154. package/{chunk-5OA5HMTL.js → chunk-YLMMECCH.js} +1 -1
  155. package/{chunk-CFT5HBGW.js → chunk-YVLQXTUB.js} +448 -12
  156. package/chunk-YVPQATSC.js +709 -0
  157. package/chunk-ZEZC7IIM.js +126 -0
  158. package/{chunk-ALGORS6Y.js → chunk-ZF6526IQ.js} +43 -8
  159. package/chunk-ZIWPQEFU.js +165 -0
  160. package/chunk-ZRAU6T47.js +56 -0
  161. package/{cliExecutor-AWYR3T33.js → cliExecutor-BWBF2MTI.js} +4 -3
  162. package/{clipboardy-BX4NMYHE.js → clipboardy-GCO3GT3I.js} +3 -8
  163. package/{commandRegistry-2KBOXZQC.js → commandRegistry-NBLZEMCW.js} +183 -107
  164. package/contentThunks-6AIWNSGO.js +84 -0
  165. package/{cooldownCommands-ZLEPIB4A.js → cooldownCommands-JFKTYS2D.js} +2 -2
  166. package/{createAgentAutomationAction-5UGTB26P.js → createAgentAutomationAction-4BUS65DZ.js} +53 -44
  167. package/createDialogAction-QAIKSCG4.js +76 -0
  168. package/{createPageAction-CDLDKPRM.js → createPageAction-DXCZ334C.js} +65 -54
  169. package/cursorProvider-YGGNMVWX.js +6123 -0
  170. package/{db-VQSAOWAO.js → db-2QOTXYGH.js} +11 -5
  171. package/{dbSlice-DQ32LYTJ.js → dbSlice-J37OGIXH.js} +19 -13
  172. package/{deleteFile-NX6QHCWZ.js → deleteFile-6JWDDRVP.js} +10 -6
  173. package/dialogCommands-YZLSJB6X.js +113 -0
  174. package/{dialogSlice-N3YB65G5.js → dialogSlice-PVUSMKFW.js} +53 -39
  175. package/{docCreateCommands-ZSLGVBZT.js → docCreateCommands-JB2RRMRJ.js} +54 -57
  176. package/{docDeleteCommands-5N4GVZBG.js → docDeleteCommands-AQENULNM.js} +56 -58
  177. package/{docReadCommands-YJSAA7AV.js → docReadCommands-DYD25YLQ.js} +53 -56
  178. package/{docStore-E3CEOV5Q.js → docStore-CSEBEMKP.js} +25 -16
  179. package/{docUpdateCommands-WEMLSW6W.js → docUpdateCommands-3GVS23QL.js} +54 -57
  180. package/{fetchMessages-67MEFPZR.js → fetchMessages-IIJWQ3HR.js} +5 -4
  181. package/{getPricing-NMMFT3YI.js → getPricing-FKK3F5EJ.js} +11 -9
  182. package/{handleSendMessageAction-DQAD5ERJ.js → handleSendMessageAction-G2TLYGC4.js} +422 -118
  183. package/index.js +11 -7
  184. package/{lib-FRRS27KN.js → lib-4YTWAGY7.js} +581 -248
  185. package/{localDialogRead-EBRS242U.js → localDialogRead-FSOMOPDZ.js} +2 -2
  186. package/localRuntimeAdapter-B4TAYYA7.js +244 -0
  187. package/localRuntimeAuthority-JDAD7CB6.js +16 -0
  188. package/{localRuntimeDb-3LRMNLCM.js → localRuntimeDb-CVC62PM5.js} +1 -1
  189. package/{machineCommands-HAP75VSG.js → machineCommands-6OBFD3XF.js} +503 -161
  190. package/{machineInfo-66ZFUMLE.js → machineInfo-UKPTZO5Y.js} +2 -2
  191. package/machineWsRunDispatch-OO7N3O3Y.js +169 -0
  192. package/{memberThunks-5ZXPR63F.js → memberThunks-66DH6ABQ.js} +25 -18
  193. package/{models-ZPU5EDF4.js → models-LAS4B2B5.js} +2 -2
  194. package/package.json +1 -1
  195. package/{providerPresetApply-DD6NGWW6.js → providerPresetApply-MY66I6NT.js} +10 -10
  196. package/{providerRegistry-XDRLMYGJ.js → providerRegistry-QOE2FT57.js} +13 -9
  197. package/{read-EPTJRAEF.js → read-DC4NUGN6.js} +12 -8
  198. package/{readDocTool-W4NDXNEX.js → readDocTool-NCJ5NT25.js} +1 -1
  199. package/{readlineWorkspace-7BC66QSX.js → readlineWorkspace-UIQN7JUR.js} +5017 -915
  200. package/{removeDialogAgentAction-OSYNZRX7.js → removeDialogAgentAction-E2H3OZU6.js} +29 -28
  201. package/{runAgentClientLoop-6E6UC3CE.js → runAgentClientLoop-GS3SGG37.js} +154 -97
  202. package/{runtimeDoctorCommands-ID23PNNZ.js → runtimeDoctorCommands-GIOGC5SC.js} +17 -17
  203. package/secretCommands-ZXZRLR3R.js +700 -0
  204. package/setDialogExtraReferencesAction-SITRPMYU.js +37 -0
  205. package/{setPrimaryDialogAgentAction-WZ7KI3YA.js → setPrimaryDialogAgentAction-U7N45TGC.js} +30 -29
  206. package/{chunk-SONWNI3L.js → settingThunks-Y7SVJOMZ.js} +223 -928
  207. package/{skillDiscovery-ZBU76COE.js → skillDiscovery-QC35EQY4.js} +2 -2
  208. package/{slateUtils-RIZES3PV.js → slateUtils-NGV2NMKM.js} +1 -1
  209. package/{spaceCommands-UJOVU4XI.js → spaceCommands-ZR5BR3GX.js} +59 -59
  210. package/{streamAgentChatTurn-3UXPYFNX.js → streamAgentChatTurn-4XYC33KE.js} +309 -165
  211. package/{switchDialogAgentAction-GMR7WN3P.js → switchDialogAgentAction-OMGBD3N2.js} +26 -22
  212. package/{tableCommands-G7RV3RU3.js → tableCommands-U3QDY4L6.js} +19 -17
  213. package/{toolApiClient-CVGWM4PN.js → toolApiClient-7WSJJJBV.js} +6 -5
  214. package/tools-P77EE7Q4.js +124 -0
  215. package/tuiSummaryLlmCaller-BM3VSTBU.js +130 -0
  216. package/{updateCommands-4EHDLF5J.js → updateCommands-NQXAGFM7.js} +3 -3
  217. package/{updateDialogTitleAction-UPFV7TDT.js → updateDialogTitleAction-CIANVPZC.js} +102 -57
  218. package/workloadLifecycle-36DXRZKU.js +320 -0
  219. package/action-GI44T4DR.js +0 -31
  220. package/agentListCommands-IW3GQVUP.js +0 -427
  221. package/agentRecordCommands-VCA76W6B.js +0 -134
  222. package/agentRunCommand-YNLDKVR7.js +0 -161
  223. package/browser-image-compression-MFDTD7K6.js +0 -1763
  224. package/chatQueueReduxAdapter-TJRMXMYA.js +0 -186
  225. package/chromeOpsCommands-IXRLN57H.js +0 -289
  226. package/chunk-36KZDDO5.js +0 -2415
  227. package/chunk-ACQD6YI2.js +0 -25363
  228. package/chunk-CQ3WA2NE.js +0 -299
  229. package/chunk-CYSYR67N.js +0 -93
  230. package/chunk-JBTJAPUF.js +0 -35
  231. package/chunk-K2CSUCHJ.js +0 -620
  232. package/chunk-LTRXGFMS.js +0 -83
  233. package/chunk-M76ECQRD.js +0 -13658
  234. package/chunk-MEYIRKDN.js +0 -8967
  235. package/chunk-OCZKATRC.js +0 -129
  236. package/chunk-OTGFTBLI.js +0 -13
  237. package/chunk-PUOC4YRO.js +0 -394
  238. package/chunk-PZZTFEKK.js +0 -34
  239. package/chunk-URMS4XY2.js +0 -10
  240. package/chunk-UV6VISQJ.js +0 -20
  241. package/chunk-VJVNU77E.js +0 -83
  242. package/chunk-XYJSY4KG.js +0 -13807
  243. package/chunk-Y5GCAMGP.js +0 -9
  244. package/chunk-YPREESF4.js +0 -225
  245. package/contentThunks-BDIQRZR6.js +0 -73
  246. package/createDialogAction-B7VGVEVU.js +0 -66
  247. package/dialogCommands-G7YBVAMC.js +0 -102
  248. package/levelLazyShim-GZBKODGI.js +0 -7
  249. package/machineWsRunDispatch-L32G7C4P.js +0 -149
  250. package/serverStoreFactory-YMXDF4NI.js +0 -20
  251. package/setDialogExtraReferencesAction-M32UYNCG.js +0 -30
  252. package/settingSlice-Q6EKL7EQ.js +0 -204
  253. package/syncMapping-N6RGXGBW.js +0 -437
  254. package/tools-MKYDMWA4.js +0 -111
  255. package/tuiSummaryLlmCaller-3YFNHCTW.js +0 -128
  256. package/{chunk-SV5IJK6K.js → chunk-NBTY7YJF.js} +3 -3
  257. package/{chunk-2SYTUTLI.js → chunk-YBNHPX4S.js} +3 -3
  258. package/{offlineMarxistsAgentCommand-HGXZV4XJ.js → offlineMarxistsAgentCommand-2QTHJCHV.js} +4 -4
@@ -1,204 +0,0 @@
1
- import {
2
- LOCAL_FIRST_APPEARANCE_KEYS,
3
- LOCAL_ONLY_SETTINGS_KEYS,
4
- SYSTEM_DEFAULT_AGENT_ID,
5
- addHostToCurrentServer,
6
- buildSettingsPersistencePlan,
7
- changeDarkMode,
8
- changeDensity,
9
- changeFontPreset,
10
- changeTheme,
11
- getCachedDefaultAgentRegisterRecord,
12
- getSettings,
13
- hydrateStoredSettings,
14
- isLocalFirstAppearanceChange,
15
- normalizeSettingChanges,
16
- persistDefaultAgentRegister,
17
- sanitizeStoredSettingsRecord,
18
- selectAiRecentContentLimit,
19
- selectAutoApproveSelfUpdateFields,
20
- selectCopyDiagnosticsEnabled,
21
- selectCreateMenuOpenCount,
22
- selectCurrentServer,
23
- selectDefaultAgentId,
24
- selectDefaultAgentPreference,
25
- selectDeleteShortcut,
26
- selectDensity,
27
- selectDesktopChromeConnectorEnabled,
28
- selectDeveloperModeEnabled,
29
- selectDiagnosticModeEnabled,
30
- selectEditorAutoSave,
31
- selectEditorAutoSaveInterval,
32
- selectEditorCodeTheme,
33
- selectEditorConfig,
34
- selectEditorDarkCodeTheme,
35
- selectEditorDefaultMode,
36
- selectEditorFontSize,
37
- selectEditorLightCodeTheme,
38
- selectEditorShortcuts,
39
- selectEditorWordCountEnabled,
40
- selectEnableReadCurrentSpace,
41
- selectFontPreset,
42
- selectGlobalPrompt,
43
- selectHeaderHeight,
44
- selectIsDark,
45
- selectKnowledgeCaptureLevel,
46
- selectMaxCost,
47
- selectMaxExecutionTime,
48
- selectOcrModel,
49
- selectPreferredAnimationSet,
50
- selectRemoteServer,
51
- selectRemoteServers,
52
- selectRemoteSyncServers,
53
- selectSettings,
54
- selectShowScrollToBottomButton,
55
- selectShowScrollToTopButton,
56
- selectShowThinking,
57
- selectSidebarWidth,
58
- selectSpaceContextLevel,
59
- selectSyncServers,
60
- selectSystemBuiltinSkills,
61
- selectTheme,
62
- selectThemeFollowsSystem,
63
- selectThemeMode,
64
- selectThemeName,
65
- selectUserTonePreset,
66
- setAiRecentContentLimit,
67
- setDefaultAgentId,
68
- setEditorAutoSaveInterval,
69
- setEditorCodeTheme,
70
- setEditorDarkCodeTheme,
71
- setEditorDefaultMode,
72
- setEditorFontSize,
73
- setEditorLightCodeTheme,
74
- setGlobalPrompt,
75
- setKnowledgeCaptureLevel,
76
- setMaxExecutionTime,
77
- setSettings,
78
- setSidebarWidth,
79
- setSpaceContextLevel,
80
- setThemeFollowsSystem,
81
- setThemeMode,
82
- setUserTonePreset,
83
- settingSlice_default,
84
- stripRegisterBackedFieldsFromSettingsWrite,
85
- toggleEditorAutoSave,
86
- toggleEditorShortcut,
87
- toggleEditorWordCount,
88
- toggleEnableReadCurrentSpace,
89
- toggleShowThinking
90
- } from "./chunk-SONWNI3L.js";
91
- import "./chunk-Y5GCAMGP.js";
92
- import "./chunk-QDSINZM3.js";
93
- import "./chunk-KX6YBIHG.js";
94
- import "./chunk-HYZIYH2H.js";
95
- import "./chunk-7CHC4W22.js";
96
- import "./chunk-3AH7LNUB.js";
97
- import "./chunk-WWC7I6TA.js";
98
- import "./chunk-QSJ3HFEF.js";
99
- import "./chunk-IAESIMK7.js";
100
- import "./chunk-WIWM4FE3.js";
101
- import "./chunk-QOKAKDPE.js";
102
- import "./chunk-SEJ5OS6F.js";
103
- import "./chunk-OW765XBU.js";
104
- import "./chunk-GBRG75BQ.js";
105
- import "./chunk-KUG52IAP.js";
106
- import "./chunk-BNGW5ASC.js";
107
- import "./chunk-M2EJHDJP.js";
108
- import "./chunk-3EUW3WEO.js";
109
- import "./chunk-U6VC4MU4.js";
110
- import "./chunk-LCBAMY2M.js";
111
- import "./chunk-4SN6J65J.js";
112
- import "./chunk-CF7PE763.js";
113
- import "./chunk-G3SUCT4W.js";
114
- import "./chunk-4VNS5WPM.js";
115
- export {
116
- LOCAL_FIRST_APPEARANCE_KEYS,
117
- LOCAL_ONLY_SETTINGS_KEYS,
118
- SYSTEM_DEFAULT_AGENT_ID,
119
- addHostToCurrentServer,
120
- buildSettingsPersistencePlan,
121
- changeDarkMode,
122
- changeDensity,
123
- changeFontPreset,
124
- changeTheme,
125
- settingSlice_default as default,
126
- getCachedDefaultAgentRegisterRecord,
127
- getSettings,
128
- hydrateStoredSettings,
129
- isLocalFirstAppearanceChange,
130
- normalizeSettingChanges,
131
- persistDefaultAgentRegister,
132
- sanitizeStoredSettingsRecord,
133
- selectAiRecentContentLimit,
134
- selectAutoApproveSelfUpdateFields,
135
- selectCopyDiagnosticsEnabled,
136
- selectCreateMenuOpenCount,
137
- selectCurrentServer,
138
- selectDefaultAgentId,
139
- selectDefaultAgentPreference,
140
- selectDeleteShortcut,
141
- selectDensity,
142
- selectDesktopChromeConnectorEnabled,
143
- selectDeveloperModeEnabled,
144
- selectDiagnosticModeEnabled,
145
- selectEditorAutoSave,
146
- selectEditorAutoSaveInterval,
147
- selectEditorCodeTheme,
148
- selectEditorConfig,
149
- selectEditorDarkCodeTheme,
150
- selectEditorDefaultMode,
151
- selectEditorFontSize,
152
- selectEditorLightCodeTheme,
153
- selectEditorShortcuts,
154
- selectEditorWordCountEnabled,
155
- selectEnableReadCurrentSpace,
156
- selectFontPreset,
157
- selectGlobalPrompt,
158
- selectHeaderHeight,
159
- selectIsDark,
160
- selectKnowledgeCaptureLevel,
161
- selectMaxCost,
162
- selectMaxExecutionTime,
163
- selectOcrModel,
164
- selectPreferredAnimationSet,
165
- selectRemoteServer,
166
- selectRemoteServers,
167
- selectRemoteSyncServers,
168
- selectSettings,
169
- selectShowScrollToBottomButton,
170
- selectShowScrollToTopButton,
171
- selectShowThinking,
172
- selectSidebarWidth,
173
- selectSpaceContextLevel,
174
- selectSyncServers,
175
- selectSystemBuiltinSkills,
176
- selectTheme,
177
- selectThemeFollowsSystem,
178
- selectThemeMode,
179
- selectThemeName,
180
- selectUserTonePreset,
181
- setAiRecentContentLimit,
182
- setDefaultAgentId,
183
- setEditorAutoSaveInterval,
184
- setEditorCodeTheme,
185
- setEditorDarkCodeTheme,
186
- setEditorDefaultMode,
187
- setEditorFontSize,
188
- setEditorLightCodeTheme,
189
- setGlobalPrompt,
190
- setKnowledgeCaptureLevel,
191
- setMaxExecutionTime,
192
- setSettings,
193
- setSidebarWidth,
194
- setSpaceContextLevel,
195
- setThemeFollowsSystem,
196
- setThemeMode,
197
- setUserTonePreset,
198
- stripRegisterBackedFieldsFromSettingsWrite,
199
- toggleEditorAutoSave,
200
- toggleEditorShortcut,
201
- toggleEditorWordCount,
202
- toggleEnableReadCurrentSpace,
203
- toggleShowThinking
204
- };
@@ -1,437 +0,0 @@
1
- import {
2
- asOptionalFiniteNumber
3
- } from "./chunk-WWC7I6TA.js";
4
- import {
5
- isLevelNotFoundError
6
- } from "./chunk-OW765XBU.js";
7
- import {
8
- asTrimmedString
9
- } from "./chunk-3EUW3WEO.js";
10
- import {
11
- asOptionalPositiveFiniteNumber
12
- } from "./chunk-U6VC4MU4.js";
13
- import "./chunk-4VNS5WPM.js";
14
-
15
- // packages/database/sync/syncMappingKeys.ts
16
- var SYNC_MAPPING_KEY_PREFIX = "syncmap-local-";
17
- var SYNC_MAPPING_KEY_SEPARATOR = "::";
18
- var SYNC_MAPPING_RECORD_TYPE = "sync_mapping";
19
- var normalizeSegment = (value) => asTrimmedString(value);
20
- function buildSyncMappingRecordKey(accountUserId, localDbKey) {
21
- const account = normalizeSegment(accountUserId);
22
- const local = normalizeSegment(localDbKey);
23
- if (!account) {
24
- throw new Error("syncMapping record key requires accountUserId");
25
- }
26
- if (!local) {
27
- throw new Error("syncMapping record key requires localDbKey");
28
- }
29
- if (account.includes(SYNC_MAPPING_KEY_SEPARATOR)) {
30
- throw new Error(
31
- `syncMapping accountUserId must not contain "${SYNC_MAPPING_KEY_SEPARATOR}"`
32
- );
33
- }
34
- return `${SYNC_MAPPING_KEY_PREFIX}${account}${SYNC_MAPPING_KEY_SEPARATOR}${local}`;
35
- }
36
- function isSyncMappingRecordKey(dbKey) {
37
- const key = normalizeSegment(dbKey);
38
- return key.startsWith(SYNC_MAPPING_KEY_PREFIX);
39
- }
40
- function syncMappingRecordKeyRange() {
41
- const start = SYNC_MAPPING_KEY_PREFIX;
42
- return {
43
- gte: start,
44
- lte: `${start}\uFFFF`
45
- };
46
- }
47
-
48
- // packages/database/sync/syncMappingDurable.ts
49
- var clean = (value) => asTrimmedString(value);
50
- function toDurableSyncMappingRecord(input) {
51
- const localDbKey = clean(input.localDbKey);
52
- const remoteDbKey = clean(input.remoteDbKey);
53
- const accountUserId = clean(input.accountUserId);
54
- const contentType = clean(input.contentType) || "unknown";
55
- const updatedAt = asOptionalFiniteNumber(input.updatedAt) ?? Date.now();
56
- if (!localDbKey || !remoteDbKey || !accountUserId) {
57
- throw new Error("durable syncMapping requires local/remote/account keys");
58
- }
59
- const dbKey = buildSyncMappingRecordKey(accountUserId, localDbKey);
60
- return {
61
- type: SYNC_MAPPING_RECORD_TYPE,
62
- userId: "local",
63
- dbKey,
64
- localDbKey,
65
- remoteDbKey,
66
- accountUserId,
67
- contentType,
68
- updatedAt
69
- };
70
- }
71
- function parseDurableSyncMappingRecord(value) {
72
- if (!value || typeof value !== "object") return null;
73
- const row = value;
74
- if (row.type !== SYNC_MAPPING_RECORD_TYPE) return null;
75
- if (row.userId !== "local" && row.userId !== void 0) {
76
- return null;
77
- }
78
- const localDbKey = clean(row.localDbKey);
79
- const remoteDbKey = clean(row.remoteDbKey);
80
- const accountUserId = clean(row.accountUserId);
81
- const contentType = clean(row.contentType) || "unknown";
82
- const updatedAt = asOptionalFiniteNumber(row.updatedAt) ?? Date.now();
83
- if (!localDbKey || !remoteDbKey || !accountUserId) return null;
84
- if (localDbKey === remoteDbKey) return null;
85
- if (accountUserId === "local") return null;
86
- return {
87
- localDbKey,
88
- remoteDbKey,
89
- accountUserId,
90
- contentType,
91
- updatedAt
92
- };
93
- }
94
- async function persistSyncMappingToDb(db, input) {
95
- const record = toDurableSyncMappingRecord(input);
96
- await db.put(record.dbKey, record);
97
- return record;
98
- }
99
- async function removeSyncMappingFromDb(db, accountUserId, localDbKey) {
100
- const dbKey = buildSyncMappingRecordKey(accountUserId, localDbKey);
101
- try {
102
- if (typeof db.del === "function") {
103
- await db.del(dbKey);
104
- return true;
105
- }
106
- await db.put(dbKey, null);
107
- return true;
108
- } catch (err) {
109
- if (isLevelNotFoundError(err)) return false;
110
- throw err;
111
- }
112
- }
113
- async function loadSyncMappingsFromDb(db) {
114
- if (typeof db.iterator !== "function") {
115
- return [];
116
- }
117
- const range = syncMappingRecordKeyRange();
118
- let iterator = db.iterator(range);
119
- if (iterator && typeof iterator.then === "function") {
120
- iterator = await iterator;
121
- }
122
- if (!iterator) return [];
123
- const out = [];
124
- for await (const entry of iterator) {
125
- const pair = entry;
126
- const key = Array.isArray(pair) ? pair[0] : "";
127
- const value = Array.isArray(pair) ? pair[1] : null;
128
- if (!isSyncMappingRecordKey(key)) continue;
129
- if (value == null) continue;
130
- const mapping = parseDurableSyncMappingRecord(value);
131
- if (mapping) out.push(mapping);
132
- }
133
- return out;
134
- }
135
-
136
- // packages/database/sync/syncMapping.ts
137
- var normalizeKey = (value) => asTrimmedString(value);
138
- var normalizeContentType = (value) => {
139
- const trimmed = normalizeKey(value);
140
- return trimmed.length > 0 ? trimmed : "unknown";
141
- };
142
- var toUpdatedAt = (value, fallback) => {
143
- const asNumber = asOptionalPositiveFiniteNumber(value);
144
- if (asNumber !== void 0) return asNumber;
145
- if (typeof value === "string" && value.trim()) {
146
- return asOptionalPositiveFiniteNumber(Date.parse(value)) ?? fallback;
147
- }
148
- return fallback;
149
- };
150
- var pairKey = (accountUserId, localDbKey) => `${accountUserId}\0${localDbKey}`;
151
- function normalizeSyncMapping(input, now = Date.now()) {
152
- const localDbKey = normalizeKey(input.localDbKey);
153
- const remoteDbKey = normalizeKey(input.remoteDbKey);
154
- const accountUserId = normalizeKey(input.accountUserId);
155
- const contentType = normalizeContentType(input.contentType);
156
- if (!localDbKey) {
157
- throw new Error("syncMapping.localDbKey is required");
158
- }
159
- if (!remoteDbKey) {
160
- throw new Error("syncMapping.remoteDbKey is required");
161
- }
162
- if (!accountUserId) {
163
- throw new Error("syncMapping.accountUserId is required");
164
- }
165
- if (localDbKey === remoteDbKey) {
166
- throw new Error("syncMapping.localDbKey and remoteDbKey must differ");
167
- }
168
- if (accountUserId === "local") {
169
- throw new Error(
170
- "syncMapping.accountUserId must be a non-local account user id"
171
- );
172
- }
173
- return {
174
- localDbKey,
175
- remoteDbKey,
176
- accountUserId,
177
- contentType,
178
- updatedAt: toUpdatedAt(input.updatedAt, now)
179
- };
180
- }
181
- function createSyncMappingStore(options) {
182
- const now = options?.now ?? Date.now;
183
- const byPair = /* @__PURE__ */ new Map();
184
- const remoteToPair = /* @__PURE__ */ new Map();
185
- const forgetRemoteIndex = (mapping) => {
186
- if (!mapping) return;
187
- const current = remoteToPair.get(mapping.remoteDbKey);
188
- if (current === pairKey(mapping.accountUserId, mapping.localDbKey)) {
189
- remoteToPair.delete(mapping.remoteDbKey);
190
- }
191
- };
192
- return {
193
- put(input) {
194
- const mapping = normalizeSyncMapping(input, now());
195
- const key = pairKey(mapping.accountUserId, mapping.localDbKey);
196
- const previousLocal = byPair.get(key);
197
- if (previousLocal) {
198
- forgetRemoteIndex(previousLocal);
199
- }
200
- const previousPairForRemote = remoteToPair.get(mapping.remoteDbKey);
201
- if (previousPairForRemote && previousPairForRemote !== key) {
202
- const displaced = byPair.get(previousPairForRemote);
203
- if (displaced) {
204
- byPair.delete(previousPairForRemote);
205
- }
206
- }
207
- byPair.set(key, mapping);
208
- remoteToPair.set(mapping.remoteDbKey, key);
209
- return { ...mapping };
210
- },
211
- get(localDbKey, accountUserId) {
212
- const local = normalizeKey(localDbKey);
213
- if (!local) return null;
214
- const account = normalizeKey(accountUserId);
215
- if (account) {
216
- const mapping = byPair.get(pairKey(account, local));
217
- return mapping ? { ...mapping } : null;
218
- }
219
- let best = null;
220
- for (const mapping of byPair.values()) {
221
- if (mapping.localDbKey !== local) continue;
222
- if (!best || mapping.updatedAt > best.updatedAt) {
223
- best = mapping;
224
- }
225
- }
226
- return best ? { ...best } : null;
227
- },
228
- getByRemoteDbKey(remoteDbKey, accountUserId) {
229
- const key = normalizeKey(remoteDbKey);
230
- if (!key) return null;
231
- const pair = remoteToPair.get(key);
232
- if (!pair) return null;
233
- const mapping = byPair.get(pair);
234
- if (!mapping) return null;
235
- const account = normalizeKey(accountUserId);
236
- if (account && mapping.accountUserId !== account) return null;
237
- return { ...mapping };
238
- },
239
- list(filter) {
240
- const accountUserId = normalizeKey(filter?.accountUserId);
241
- const contentType = normalizeKey(filter?.contentType);
242
- const rows = Array.from(byPair.values()).filter((mapping) => {
243
- if (accountUserId && mapping.accountUserId !== accountUserId) {
244
- return false;
245
- }
246
- if (contentType && mapping.contentType !== contentType) return false;
247
- return true;
248
- });
249
- return rows.map((mapping) => ({ ...mapping })).sort(
250
- (left, right) => right.updatedAt - left.updatedAt || left.localDbKey.localeCompare(right.localDbKey) || left.accountUserId.localeCompare(right.accountUserId)
251
- );
252
- },
253
- remove(localDbKey, accountUserId) {
254
- const local = normalizeKey(localDbKey);
255
- if (!local) return false;
256
- const account = normalizeKey(accountUserId);
257
- if (account) {
258
- const key = pairKey(account, local);
259
- const existing = byPair.get(key);
260
- if (!existing) return false;
261
- byPair.delete(key);
262
- forgetRemoteIndex(existing);
263
- return true;
264
- }
265
- let removed = false;
266
- for (const [key, mapping] of Array.from(byPair.entries())) {
267
- if (mapping.localDbKey !== local) continue;
268
- byPair.delete(key);
269
- forgetRemoteIndex(mapping);
270
- removed = true;
271
- }
272
- return removed;
273
- },
274
- clear() {
275
- byPair.clear();
276
- remoteToPair.clear();
277
- },
278
- size() {
279
- return byPair.size;
280
- }
281
- };
282
- }
283
- var defaultSyncMappingStore = createSyncMappingStore();
284
- var mappingVersion = 0;
285
- var mappingListeners = /* @__PURE__ */ new Set();
286
- var sameConsumerMapping = (a, b) => {
287
- if (a === b) return true;
288
- if (!a || !b) return false;
289
- return a.localDbKey === b.localDbKey && a.remoteDbKey === b.remoteDbKey && a.accountUserId === b.accountUserId && a.contentType === b.contentType;
290
- };
291
- var notifySyncMappingListeners = () => {
292
- mappingVersion += 1;
293
- for (const listener of mappingListeners) {
294
- try {
295
- listener();
296
- } catch {
297
- }
298
- }
299
- };
300
- function subscribeSyncMappingVersion(listener) {
301
- mappingListeners.add(listener);
302
- return () => {
303
- mappingListeners.delete(listener);
304
- };
305
- }
306
- function getSyncMappingVersion() {
307
- return mappingVersion;
308
- }
309
- var boundClientDb = null;
310
- var mappingsHydrated = false;
311
- var hydrateEpoch = 0;
312
- var hydrateInFlight = null;
313
- function bindSyncMappingClientDb(db) {
314
- boundClientDb = db;
315
- mappingsHydrated = false;
316
- hydrateEpoch += 1;
317
- }
318
- function getBoundSyncMappingClientDb() {
319
- return boundClientDb;
320
- }
321
- async function ensureSyncMappingsHydrated(db) {
322
- const client = db ?? boundClientDb;
323
- if (!client) return false;
324
- if (mappingsHydrated) return false;
325
- if (hydrateInFlight && hydrateInFlight.epoch === hydrateEpoch) {
326
- await hydrateInFlight.promise;
327
- return false;
328
- }
329
- const epoch = hydrateEpoch;
330
- const clientAtStart = client;
331
- const promise = (async () => {
332
- const rows = await loadSyncMappingsFromDb(clientAtStart);
333
- if (epoch !== hydrateEpoch) {
334
- return false;
335
- }
336
- const beforeSize = defaultSyncMappingStore.size();
337
- defaultSyncMappingStore.clear();
338
- for (const row of rows) {
339
- try {
340
- defaultSyncMappingStore.put(row);
341
- } catch {
342
- }
343
- }
344
- mappingsHydrated = true;
345
- if (beforeSize > 0 || rows.length > 0 || defaultSyncMappingStore.size() > 0) {
346
- notifySyncMappingListeners();
347
- }
348
- return true;
349
- })();
350
- hydrateInFlight = { epoch, promise };
351
- try {
352
- return await promise;
353
- } finally {
354
- if (hydrateInFlight?.promise === promise) {
355
- hydrateInFlight = null;
356
- }
357
- }
358
- }
359
- function putSyncMapping(mapping) {
360
- const account = normalizeKey(mapping.accountUserId);
361
- const local = normalizeKey(mapping.localDbKey);
362
- const previous = account && local ? defaultSyncMappingStore.get(local, account) : null;
363
- const next = defaultSyncMappingStore.put(mapping);
364
- if (!sameConsumerMapping(previous, next)) {
365
- notifySyncMappingListeners();
366
- }
367
- return next;
368
- }
369
- async function putSyncMappingDurable(mapping) {
370
- const normalized = normalizeSyncMapping(mapping);
371
- if (!boundClientDb) {
372
- throw new Error(
373
- "putSyncMappingDurable requires a bound client DB; refuse silent memory-only durability"
374
- );
375
- }
376
- await persistSyncMappingToDb(boundClientDb, normalized);
377
- return putSyncMapping(normalized);
378
- }
379
- function getSyncMapping(localDbKey, accountUserId) {
380
- return defaultSyncMappingStore.get(localDbKey, accountUserId);
381
- }
382
- function getSyncMappingByRemoteDbKey(remoteDbKey, accountUserId) {
383
- return defaultSyncMappingStore.getByRemoteDbKey(remoteDbKey, accountUserId);
384
- }
385
- function listSyncMappings(filter) {
386
- return defaultSyncMappingStore.list(filter);
387
- }
388
- function removeSyncMapping(localDbKey, accountUserId) {
389
- const removed = defaultSyncMappingStore.remove(localDbKey, accountUserId);
390
- if (removed) {
391
- notifySyncMappingListeners();
392
- }
393
- return removed;
394
- }
395
- async function removeSyncMappingDurable(localDbKey, accountUserId) {
396
- const account = normalizeKey(accountUserId);
397
- const local = normalizeKey(localDbKey);
398
- if (!account || !local) return false;
399
- if (boundClientDb) {
400
- await removeSyncMappingFromDb(boundClientDb, account, local);
401
- }
402
- return removeSyncMapping(local, account);
403
- }
404
- function clearSyncMappings() {
405
- const hadRows = defaultSyncMappingStore.size() > 0;
406
- defaultSyncMappingStore.clear();
407
- mappingsHydrated = false;
408
- hydrateEpoch += 1;
409
- if (hadRows) {
410
- notifySyncMappingListeners();
411
- }
412
- }
413
- function getDefaultSyncMappingStore() {
414
- return defaultSyncMappingStore;
415
- }
416
- function areSyncMappingsHydrated() {
417
- return mappingsHydrated;
418
- }
419
- export {
420
- areSyncMappingsHydrated,
421
- bindSyncMappingClientDb,
422
- clearSyncMappings,
423
- createSyncMappingStore,
424
- ensureSyncMappingsHydrated,
425
- getBoundSyncMappingClientDb,
426
- getDefaultSyncMappingStore,
427
- getSyncMapping,
428
- getSyncMappingByRemoteDbKey,
429
- getSyncMappingVersion,
430
- listSyncMappings,
431
- normalizeSyncMapping,
432
- putSyncMapping,
433
- putSyncMappingDurable,
434
- removeSyncMapping,
435
- removeSyncMappingDurable,
436
- subscribeSyncMappingVersion
437
- };